.page-index {
  padding-top: 10px; /* Small top padding for the first section, body padding-top is handled by shared.css */
}

.page-index__hero-slider-section {
  margin-bottom: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 15px;
}

.page-index__hero-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.page-index__slide {
  width: 100%;
  flex: 0 0 100%;
  display: none;
}

.page-index__slide--active {
  display: block;
}

.page-index__hero-slider img {
  width: 100%;
  height: auto; /* Responsive height */
  display: block;
  aspect-ratio: 16/5; /* Fallback for image aspect ratio 1920x600 */
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.page-index__slider-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-index__slider-prev,
.page-index__slider-next {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.page-index__slider-prev:hover,
.page-index__slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.page-index__slider-prev::before {
  content: '‹';
}

.page-index__slider-next::before {
  content: '›';
}

.page-index__slider-dots {
  display: flex;
  gap: 8px;
}

.page-index__slider-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index__slider-dot--active {
  background: #2F6BFF;
}

.page-index__hero-content {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.page-index__main-h1 {
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Responsive font size */
  font-weight: 700;
  color: #1F2D3D;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-index__hero-description {
  font-size: 1.1rem;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
}

.page-index__btn--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-index__btn--secondary {
  background-color: #6FA3FF;
  color: #FFFFFF;
  border: 1px solid #6FA3FF;
}

.page-index__btn--secondary:hover {
  background-color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(111, 163, 255, 0.4);
}

.page-index__section-title-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.page-index__section-title-container {
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.page-index__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1F2D3D;
  position: relative;
  display: inline-block;
  margin: 0;
}

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

.page-index__section-title::before {
  left: -70px;
}

.page-index__section-title::after {
  right: -70px;
}

@media (max-width: 768px) {
  .page-index__section-title::before,
  .page-index__section-title::after {
    width: 30px;
    left: -40px;
    right: -40px;
  }
}

.page-index__category-gateway {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__category-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.page-index__category-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/25; /* For gameshow images */
  object-fit: cover;
  display: block;
  filter: grayscale(100%); /* Default grayscale */
  transition: filter 0.3s ease;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-index__category-card:hover img {
  filter: grayscale(0%); /* Color on hover */
}

.page-index__card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 15px 10px 10px;
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.page-index__article-body {
  max-width: 900px;
  margin: 0 auto 80px auto;
  padding: 0 15px;
  line-height: 1.7;
  color: #1F2D3D;
}

.page-index__blockquote {
  border-left: 5px solid #2F6BFF;
  padding-left: 20px;
  margin: 40px 0;
  font-style: italic;
  color: #000000;
  background-color: #F4F7FB;
  padding: 20px;
  border-radius: 8px;
}

.page-index__blockquote p {
  margin: 0;
}

.page-index__blockquote a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

.page-index__h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1F2D3D;
  margin-top: 50px;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-index__h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-top: 35px;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

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

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

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

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

.page-index__article-body a {
  color: #2F6BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__article-body a:hover {
  color: #6FA3FF;
}

/* Responsive Styles */
@media (max-width: 849px) {
  .page-index__section-title::before,
  .page-index__section-title::after {
    width: 30px;
    left: -45px;
    right: -45px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-slider-section {
    margin-bottom: 30px;
  }

  .page-index__main-h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-index__hero-description {
    font-size: 1rem;
  }

  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__btn {
    width: 100%;
    max-width: 300px;
  }

  .page-index__section-title {
    font-size: 1.8rem;
  }

  .page-index__category-gateway {
    margin-bottom: 40px;
  }

  .page-index__category-row {
    grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns for smaller tablets/large phones */
  }
  .page-index__category-card img {
    min-width: 200px;
    min-height: 200px;
  }

  .page-index__h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-index__h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 12px;
  }

  .page-index__article-body p,
  .page-index__article-body li {
    font-size: 0.95rem;
  }

  .page-index__article-body img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
}

@media (max-width: 549px) {
  .page-index__section-title::before,
  .page-index__section-title::after {
    width: 20px;
    left: -30px;
    right: -30px;
  }

  .page-index__category-row {
    grid-template-columns: repeat(2, 1fr); /* Maintain 2 columns for mobile */
  }

  .page-index__hero-slider-prev, .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .page-index__article-body img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-index {
    overflow-x: hidden;
  }
}

@media (min-width: 850px) {
  .page-index__category-gateway {
    flex-direction: row;
  }
  .page-index__category-row {
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__section-title::before,
  .page-index__section-title::after {
    width: 100px; /* Restore wider lines for desktop */
    left: -120px;
    right: -120px;
  }
}