.page-index {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  color: #000000; /* Default text color */
  background-color: #FFFFFF; /* Default background */
}

.page-index__hero-section {
  width: 100%;
  margin-bottom: 20px;
}

.page-index__hero-link {
  display: block;
  text-decoration: none;
}

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

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  object-position: center;
  filter: none; /* Ensure no filter applied */
}

.page-index__section-title-container {
  text-align: center;
  padding: 20px 15px;
  position: relative;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-title-container::before,
.page-index__section-title-container::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%; /* Shorter lines for mobile */
  height: 2px;
  background-color: #26A9E0;
  transform: translateY(-50%);
}

.page-index__section-title-container::before {
  left: 0;
  margin-left: 15px;
}

.page-index__section-title-container::after {
  right: 0;
  margin-right: 15px;
}

.page-index__main-title {
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  line-height: 1.2;
  margin: 0;
  padding: 0 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__category-gateway {
  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 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.page-index__category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.page-index__article-body-section {
  padding: 30px 15px;
  max-width: 1000px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  font-size: 16px;
}

.page-index__container {
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__blockquote {
  border-left: 4px solid #26A9E0;
  padding-left: 15px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}

.page-index__blockquote p {
  margin: 0;
}

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

.page-index__article-heading {
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
  font-weight: 600;
}

.page-index__article-subheading {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
  font-weight: 500;
}

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

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

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

.page-index__article-body-section a {
  color: #26A9E0;
  text-decoration: underline;
}

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

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

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

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 30px;
}

.page-index__btn--register {
  background-color: #EA7C07; /* Login/Register color */
  color: #FFFFFF;
}

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

@media (min-width: 850px) {
  .page-index__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    padding: 0;
  }

  .page-index__section-title-container::before,
  .page-index__section-title-container::after {
    width: 35%; /* Wider lines for desktop */
  }

  .page-index__section-title-container::before {
    left: 50%;
    transform: translate(-100%, -50%);
    margin-left: -20px;
  }

  .page-index__section-title-container::after {
    right: 50%;
    transform: translate(100%, -50%);
    margin-right: -20px;
  }

  .page-index__category-gateway {
    grid-template-columns: repeat(6, 1fr);  /* PC: one row 6 items */
  }

  .page-index__article-heading {
    font-size: 2.2rem;
  }

  .page-index__article-subheading {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .page-index__article-body-section img {
    max-width: 100%;
    height: auto;
  }
  .page-index__container {
    padding: 15px;
  }
  .page-index__article-heading {
    text-align: center;
  }
  .page-index__article-subheading {
    text-align: center;
  }
  .page-index__btn {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 549px) {
  .page-index__section-title-container::before,
  .page-index__section-title-container::after {
    width: 20%;
  }
  .page-index__article-body-section {
    padding: 20px 10px;
  }
  .page-index__container {
    padding: 10px;
  }
  .page-index__article-body-section ul {
    margin-left: 15px;
  }
  .page-index__article-body-section p {
    text-align: left;
  }
}