:root {
  --primary-color: #11A84E; /* Green Gold */
  --secondary-color: #22C768; /* Green Gold */

  --btn-background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  --bg-card-bg: #11271B; /* Card BG */
  --bg-background: #08160F; /* Background */
  --text-main: #F2FFF6; /* Text Main */
  --text-secondary: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E; /* Border */
  --glow: #57E38D; /* Glow */
  --gold: #F2C14E; /* Gold */
  --divider: #1E3A2A; /* Divider */
  --deep-green: #0A4B2C; /* Deep Green */
}

.page-index__section {
  padding: 40px 0;
  background-color: var(--bg-background);
  color: var(--text-main);
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Banner */
.page-index__hero-banner {
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
}

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

/* Main Title Section */
.page-index__main-title-section {
  text-align: center;
  padding: 20px 0 40px;
  background-color: var(--bg-background);
}

.page-index__main-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Adjusted clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category Gateway */
.page-index__category-gateway {
  padding: 50px 0;
  background-color: var(--bg-card-bg);
}

.page-index__section-heading {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--text-main);
  margin-bottom: 40px;
  position: relative;
}

.page-index__section-heading::before,
.page-index__section-heading::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background-color: var(--divider);
  transform: translateY(-50%);
}

.page-index__section-heading::before {
  left: calc(50% - 100px - 50px); /* Adjust position for lines */
}

.page-index__section-heading::after {
  right: calc(50% - 100px - 50px); /* Adjust position for lines */
}

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

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

.page-index__category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px 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 */
  transition: filter 0.2s ease;
  border-radius: 8px; /* Apply border-radius to image as well for consistency */
}

/* Article Body */
.page-index__article-body {
  padding: 60px 0;
  background-color: var(--bg-background);
}

.page-index__article-container {
  max-width: 800px; /* Narrower for long-form content */
}

.page-index__article-heading {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-index__article-subheading {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-index__article-body p,
.page-index__article-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

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

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

.page-index__article-body a {
  color: var(--glow); /* Use glow color for links in text */
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-index__article-body a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.page-index__blockquote {
  border-left: 4px solid var(--gold); /* Use gold for blockquote emphasis */
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.page-index__blockquote p {
  margin-bottom: 0;
}

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

.page-index__article-figure.page-index__aligncenter img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-index__article-figure figcaption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

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

  .page-index__section-heading::before {
    left: calc(50% - 250px); /* Adjust position for lines on PC */
    width: 200px;
  }

  .page-index__section-heading::after {
    right: calc(50% - 250px); /* Adjust position for lines on PC */
    width: 200px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-banner img,
  .page-index__article-figure img {
    max-width: 100%;
    height: auto;
  }
  .page-index__section-heading::before,
  .page-index__section-heading::after {
    width: 30px; /* Shorter lines on mobile */
    left: calc(50% - 80px);
    right: calc(50% - 80px);
  }
  .page-index__main-title {
    font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Adhering to H1 font size rule */
  }
}

@media (max-width: 549px) {
  .page-index__section {
    padding: 20px 0;
  }
  .page-index__main-title-section {
    padding: 15px 0 30px;
  }
  .page-index__section-heading {
    margin-bottom: 25px;
  }
  .page-index__article-body p,
  .page-index__article-body li {
    text-align: left; /* Adjust justify for smaller screens */
  }
  .page-index__section-heading::before,
  .page-index__section-heading::after {
    display: none; /* Hide decorative lines on very small screens */
  }
}