.page-index {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  margin-bottom: 20px;
  padding-top: 10px; /* Small top padding for first section */
}

.page-index__hero-link {
  display: block;
}

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

.page-index__hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  object-position: center;
}

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

.page-index__main-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: #FFB04D;
  margin: 0 20px;
  line-height: 1.2;
  max-width: 800px;
}

.page-index__title-divider {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, #A84F0C, transparent);
  max-width: 200px;
}

.page-index__category-gateway-section {
  padding: 20px 15px 40px;
  max-width: 1390px;
  margin: 0 auto;
}

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

.page-index__category-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: #17191F;
  border: 1px solid #A84F0C;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-index__category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 165, 58, 0.3);
}

.page-index__category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no grayscale */
  transition: transform .2s ease;
  min-width: 200px; /* Enforce minimum size for images */
  min-height: 200px;
}

.page-index__category-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #FFF3E6;
  font-weight: bold;
  text-align: center;
  font-size: 1.1em;
}

.page-index__article-body-section {
  padding: 20px 15px 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-index__article-body-container {
  background-color: #17191F;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C;
}

.page-index__blockquote {
  border-left: 5px solid #FF8C1A;
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #FFB04D;
}

.page-index__blockquote p {
  margin: 0;
  font-size: 1.1em;
}

.page-index__section-heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #FF8C1A;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__sub-heading {
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  color: #FFA53A;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__article-body-container p {
  margin-bottom: 15px;
  color: #FFF3E6;
  font-size: 1rem;
}

.page-index__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-index__list li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-index__list li strong {
  color: #FFB04D;
}

.page-index__article-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 800px;
}

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 20px;
  margin-right: 15px;
  min-width: 200px; /* Ensure buttons are large enough */
}

.page-index__btn--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-index__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 165, 58, 0.4);
}

.page-index__btn--secondary {
  background-color: #A84F0C;
  color: #FFF3E6;
  border: 1px solid #A84F0C;
}

.page-index__btn--secondary:hover {
  background-color: #D96800;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(168, 79, 12, 0.4);
}

.page-index__btn--cta {
  display: block;
  width: fit-content;
  margin: 40px auto 20px;
  padding: 15px 30px;
  font-size: 1.2em;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(255, 165, 58, 0.5);
}

.page-index__btn--cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 165, 58, 0.6);
}

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

@media (max-width: 768px) {
  .page-index__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-index__title-divider {
    max-width: 80px;
  }
  .page-index__article-body-container {
    padding: 20px;
  }
  .page-index__article-body-container img {
    max-width: 100%;
    height: auto;
  }
  .page-index__btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    margin-bottom: 15px;
  }
  .page-index__btn--cta {
    width: 90%;
    font-size: 1.1em;
  }
}

@media (max-width: 549px) {
  .page-index__main-title {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }
  .page-index__section-title-container {
    flex-direction: column;
  }
  .page-index__title-divider {
    width: 50%;
    margin: 10px 0;
  }
  .page-index__category-name {
    font-size: 0.9em;
    padding: 8px 0;
  }
  .page-index__section-heading {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .page-index__sub-heading {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }
  .page-index__blockquote {
    padding-left: 15px;
  }
  .page-index__article-body-container p, .page-index__list li {
    font-size: 0.95rem;
  }
}