.main {
  margin-top: 2rem;
  padding: 1rem;
  overflow: auto;
}

.main::-webkit-scrollbar {
  width: 8px;
}

/* ********************** Default Main Header */
.default-main-header {
  max-width: 85%;
  margin: 0 auto;
  text-align: center;
  line-height: 1.3;
  font-size: 1em;
}

.default-main-header h1 {
  margin-bottom: 1rem;
  font-size: 2em;
  color: #333;
}

.default-main-header p {
  font-size: 1.2rem;
  color: #555;
}

.default-main-body {
  max-width: 90%;
  margin: 1rem auto;
}

.default-main-body-img {
  display: flex; /* Ensure horizontal alignment */
  gap: 1.5rem; /* Add spacing between the image and text */
  width: 90%;
  margin: 0 auto; /* Center the content */
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fff5e6, #ffd700);
  align-items: flex-start; /* Align items at the top */
}

.default-main-body-img-first {
  flex: 1.8;
  text-align: center;
}

.default-main-body-img img {
  width: 100%; /* Use full width of the container */
  aspect-ratio: 1/0.6;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  transition: transform 0.3s ease-in-out;
}

.default-main-body-img img:hover {
  transform: scale(1.03); /* Add hover effect for slight zoom */
}

.image-caption-bottom {
  text-align: center;
  font-size: 1rem;
  color: #555;
}

.image-caption-right {
  flex: 1; /* Occupy one-third of the container for the text */
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tip-header {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.tip-content {
  font-size: 1rem;
  color: #666;
  line-height: 1.3;
}

/********************************** Media queries */

@media screen and (max-width: 1000px) and (min-width: 820px) {
  .default-main-body {
    max-width: 100%;
    margin: 1rem auto;
  }

  .default-main-body-img {
    display: flex;
    gap: 1.2rem;
    width: 100%;
  }

  .default-main-body-img-first {
    flex: 1.5;
    text-align: center;
  }

  .default-main-body-img img {
    width: 100%;
    aspect-ratio: 1/0.8;
  }

  .default-main-body-img img:hover {
    transform: scale(1.03);
  }

  .image-caption-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
  }

  .image-caption-right {
    flex: 1.3;
    padding: 1rem;
    border-radius: 8px;
  }

  .tip-header {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .tip-content {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
  }
}

@media screen and (max-width: 820px) {
  .default-main-body {
    max-width: 100%;
    margin: 1rem auto;
  }

  .default-main-body-img {
    display: flex;
    gap: 1rem;
    width: 100%;
  }

  .default-main-body-img-first {
    flex: 1.3;
    text-align: center;
  }

  .default-main-body-img img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
  }

  .default-main-body-img img:hover {
    transform: scale(1.03);
  }

  .image-caption-below {
    text-align: center;
    font-size: 0.8rem;
  }

  .image-caption-right {
    flex: 1.3;
    padding: 1rem;
    border-radius: 8px;
  }

  .tip-header {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .tip-content {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
  }
}

@media screen and (max-width: 700px) {
  .default-main-body-img img {
    width: 100%;
    aspect-ratio: 1/1.1;
    border-radius: 8px;
  }

  .default-main-header {
    max-width: 85%;
    margin: 0 auto;
    text-align: center;
    line-height: 1.1;
    font-size: 1em;
  }

  .default-main-header h1 {
    margin-bottom: 1rem;
    font-size: 1.7em;
  }

  .default-main-header p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 550px) {
  .default-main-header h1 {
    margin-bottom: 1rem;
    font-size: 1.5em;
  }

  .default-main-header p {
    font-size: 0.9rem;
  }

  .default-main-body-img {
    flex-direction: column;
  }

  .default-main-body-img img {
    width: 100%;
    aspect-ratio: 1/0.7;
    border-radius: 8px;
  }
  .image-caption-below {
    display: none;
    text-align: center;
    font-size: 0.6rem;
  }
  .tip-header {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .tip-content {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.2;
  }
}
