.page-index {
  padding-top: 10px; /* Small padding to prevent content from touching header, body handles main offset */
  max-width: 1390px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-left: 15px;
  padding-right: 15px;
}

.page-index__hero-section {
  margin-bottom: 30px;
}

.page-index__hero-banner {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.page-index__hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 5; /* 1920x600 */
  object-fit: cover;
  object-position: center;
  filter: none; /* Ensure no color filters */
}

.page-index__section-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  text-align: center;
}

.page-index__title-divider {
  flex-grow: 1;
  height: 2px;
  background-color: #26A9E0;
  max-width: 150px;
  margin: 0 20px;
}

.page-index__main-title {
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0 10px;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem); /* Responsive font size */
  max-width: 800px; /* Limit H1 width on larger screens */
}

.page-index__category-gateway-section {
  margin-bottom: 50px;
}

.page-index__category-gateway {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr); /* Mobile default: 3 rows x 2 columns */
  max-width: 100%;
  margin: 0 auto;
}

.page-index__category-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-index__category-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index__category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure full color, no grayscale */
  transition: transform 0.2s ease;
}

.page-index__article-body {
  line-height: 1.7;
  color: #333333;
  font-size: 16px;
  padding-bottom: 50px;
}

.page-index__blockquote {
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin: 30px 0;
  background-color: #f9f9f9;
  font-style: italic;
  color: #555555;
}

.page-index__blockquote p {
  margin: 0;
}

.page-index__blockquote a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-index__h2 {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-index__h3 {
  font-size: 1.3rem;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-index__article-figure {
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: none; /* Ensure no color filters */
}

.page-index__article-figure figcaption {
  font-size: 0.9em;
  color: #666666;
  padding: 10px;
  background-color: #f0f0f0;
}

.page-index__aligncenter {
  text-align: center;
}

.page-index__article-body ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-index__article-body ul li {
  margin-bottom: 10px;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 15px;
  margin-right: 15px;
  white-space: nowrap;
}

.page-index__btn--register, .page-index__btn--login, .page-index__btn--download {
  background-color: #EA7C07;
  color: #FFFFFF;
}

.page-index__btn--register:hover, .page-index__btn--login:hover, .page-index__btn--download:hover {
  background-color: #d46c06;
  transform: translateY(-2px);
}

.page-index__btn--promotions {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-index__btn--promotions:hover {
  background-color: #1f8ec4;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-index {
    padding-left: 12px;
    padding-right: 12px;
  }
  .page-index__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-index__title-divider {
    max-width: 80px;
  }
  .page-index__category-gateway {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile and tablet */
  }
  .page-index__article-body img {
    max-width: 100%;
    height: auto;
  }
  .page-index__btn {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (min-width: 850px) {
  .page-index__category-gateway {
    grid-template-columns: repeat(6, 1fr); /* 6 columns for desktop */
  }
  .page-index__btn {
    width: auto;
  }
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}