.page-index {
  max-width: 1390px;
  margin: 0 auto;
  padding: 0 15px; /* Added for mobile safety, will be adjusted by shared.css body padding-top */
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-index__section-spacing {
  margin-bottom: 40px;
}

/* 2.1 Hero Banner */
.page-index__hero-section {
  margin-top: 10px; /* Small top margin, body padding-top handles header offset */
  margin-bottom: 40px;
}

.page-index__hero-banner-link {
  display: block;
  width: 100%;
}

.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 CSS filter */
}

/* 2.2 Section Title */
.page-index__section-title-container {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.page-index__divider {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #6A1E1E 50%, transparent 100%); /* Border color */
  margin: 0 20px;
}

.page-index__main-title {
  color: #F3C54D; /* Gold for main title */
  font-size: clamp(1.1rem, 4.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  flex-shrink: 0;
  text-align: center;
}

/* 2.3 Category Gateway */
.page-index__category-gateway {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr); /* Mobile default: 3 rows x 2 columns */
  margin-bottom: 40px;
}

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

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

.page-index__category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: none; /* Prohibit grayscale */
}

/* 2.4 Article Body */
.page-index__article-body {
  background-color: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  color: #FFF1E8; /* Text Main */
  line-height: 1.8;
}

.page-index__article-body h2,
.page-index__article-body h3 {
  color: #F3C54D; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-index__article-body h2 {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-top: 50px;
  padding-bottom: 10px;
  border-bottom: 1px solid #6A1E1E; /* Border */
}

.page-index__article-body h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

.page-index__article-body p {
  margin-bottom: 15px;
}

.page-index__article-body a {
  color: #FFB04A; /* Part of button gradient, good for links */
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-index__article-body a:hover {
  color: #D86A14; /* Darker part of button gradient */
}

.page-index__blockquote {
  background-color: #140C0C; /* Background */
  border-left: 5px solid #F3C54D; /* Gold accent */
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
  color: #FFF1E8;
  border-radius: 0 8px 8px 0;
}

.page-index__article-figure {
  margin: 30px 0;
}

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
}

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

.page-index__aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.page-index__article-figure figcaption {
  color: #FFF1E8;
  font-size: 0.9em;
  margin-top: 10px;
}

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

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

.page-index__offer-list li strong {
  color: #F3C54D; /* Gold */
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
  color: #140C0C; /* Dark text for contrast */
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  margin-right: 15px; /* For multiple buttons */
}

.page-index__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-index__btn--register, .page-index__btn--login, .page-index__btn--download, .page-index__btn--contact {
  /* Specific styling if needed, but primarily uses the general .page-index__btn */
}

/* Responsive adjustments */
@media (min-width: 850px) {
  .page-index__category-gateway {
    grid-template-columns: repeat(6, 1fr); /* PC: 6 columns */
  }
}

@media (max-width: 768px) {
  .page-index {
    padding: 0 12px; /* Ensure content is not too wide on small screens */
  }

  .page-index__hero-banner img,
  .page-index__category-card img,
  .page-index__article-figure img {
    max-width: 100%;
    height: auto;
  }

  .page-index__main-title {
    font-size: clamp(1.1rem, 6vw, 1.75rem); /* Slightly larger on mobile */
  }

  .page-index__divider {
    margin: 0 10px;
  }

  .page-index__article-body {
    padding: 20px;
  }

  .page-index__article-body h2 {
    font-size: 1.6rem;
  }

  .page-index__article-body h3 {
    font-size: 1.2rem;
  }

  .page-index__btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Table overflow for small screens */
  .page-index__article-body table {
    overflow-x: auto;
    display: block;
    white-space: nowrap; /* Prevent text wrapping in table cells */
  }
}

@media (max-width: 549px) {
  .page-index__section-title-container {
    flex-direction: column;
  }

  .page-index__divider {
    width: 80%;
    margin: 15px auto;
  }

  .page-index__main-title {
    padding: 0 5px;
  }

  .page-index__blockquote {
    margin: 20px 0;
    padding: 15px 20px;
  }

  .page-index__article-body h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-top: 40px;
  }

  .page-index__article-body h3 {
    font-size: 1.1rem;
  }

  .page-index__article-figure {
    margin: 20px 0;
  }

  .page-index__btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Ensure category card images are not smaller than 200px */
.page-index__category-card img {
  min-width: 200px;
  min-height: 200px;
}