.page-index {
  font-family: Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for the first section */
}

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 40px auto 30px auto;
  padding: 0 15px;
  text-align: center;
}

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

.page-index__main-title {
  font-size: clamp(1.1rem, 4.5vw, 1.75rem);
  font-weight: bold;
  color: #26A9E0;
  line-height: 1.2;
  margin: 0;
  max-width: 700px;
}

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

.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 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.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 {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 15px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 30px;
}

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

.page-index__blockquote p {
  margin: 0;
  color: #333333;
}

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

.page-index__blockquote a:hover {
  text-decoration: underline;
}

.page-index__article-heading {
  color: #26A9E0;
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.page-index__article-subheading {
  color: #000000;
  font-size: 1.3em;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

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

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

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

.page-index__article-body a:hover {
  text-decoration: underline;
}

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

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it respects max-width and margin auto */
  margin: 0 auto; /* Center the image */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

.page-index__call-to-action {
  text-align: center;
  margin-top: 40px;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  color: #FFFFFF;
  min-width: 200px; /* Enforce min size for buttons */
  min-height: 48px; /* Enforce min size for buttons */
  display: flex; /* Use flex to center text vertically and horizontally */
  align-items: center;
  justify-content: center;
}

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

.page-index__btn--primary:hover {
  background-color: #d46c00;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-index__category-grid {
    grid-template-columns: repeat(2, 1fr); /* PC: one row 6 columns */
  }
  .page-index__section-title-container {
    flex-direction: column;
  }
  .page-index__title-divider {
    max-width: 80px;
    margin: 15px auto;
  }
  .page-index__main-title {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
}

@media (max-width: 768px) {
  .page-index {
    padding: 0;
  }
  .page-index__article-body {
    margin: 30px auto;
    padding: 20px;
  }
  .page-index__article-body img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__article-heading {
    font-size: 1.5em;
  }
  .page-index__article-subheading {
    font-size: 1.1em;
  }
  .page-index__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 549px) {
  .page-index__main-title {
    font-size: clamp(1.1rem, 6vw, 1.3rem);
  }
  .page-index__article-body {
    padding: 15px;
  }
  .page-index__article-body p {
    text-align: left; /* Adjust justify for smaller screens */
  }
}

/* Global image size enforcement for content area */
.page-index img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  filter: none; /* Ensure no CSS filter changes image colors */
}

/* Specific content images CSS size lower bound */
.page-index__article-body img,
.page-index__category-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  min-width: 200px;
  min-height: 200px;
}