.page-index {
  font-family: Arial, sans-serif;
  color: #FFF1E8; /* Text Main color */
  background: #140C0C; /* Background color */
  line-height: 1.6;
}

/* Module 1: Hero Section */
.page-index__hero-section {
  padding-top: 10px; /* As per fixed header spacing rule */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover; /* Default for desktop */
}

/* Module 2: Access Links */
.page-index__access-links {
  max-width: 1250px;
  margin: 0 auto;
  padding: 30px 12px;
  box-sizing: border-box;
}

.page-index__access-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-index__btn-access-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* For button responsive */
  box-sizing: border-box; /* For button responsive */
  white-space: normal; /* For button responsive */
  word-wrap: break-word; /* For button responsive */
}

.page-index__btn-access-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Module 3: Brand Intro */
.page-index__brand-intro {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 12px;
  box-sizing: border-box;
  text-align: center;
}

.page-index__main-title {
  color: #F3C54D; /* Gold color */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Example clamp for responsive font size */
}

.page-index__intro-text {
  font-size: 16px;
  color: #FFF1E8; /* Text Main color */
  margin-bottom: 30px;
  text-align: justify;
}

.page-index__intro-text a {
  color: #F3C54D; /* Gold color for links */
  text-decoration: none;
  font-weight: bold;
}

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

/* Module 4: Category Lobby */
.page-index__category-lobby {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.page-index__section-title {
  text-align: center;
  color: #F3C54D; /* Gold color */
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  position: relative;
}

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

.page-index__section-title::before {
  left: calc(50% - 150px);
}

.page-index__section-title::after {
  right: calc(50% - 150px);
}

.page-index__category-lobby__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  justify-items: center;
  width: 100%; /* For container responsive */
  max-width: 100%; /* For container responsive */
  overflow: hidden; /* For container responsive */
  box-sizing: border-box; /* For container responsive */
}

.page-index__category-card {
  display: block;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  width: 100%;
}

.page-index__category-card-link {
  display: block;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease;
}

.page-index__category-card-link:hover {
  transform: translateY(-5px);
}

.page-index__category-card-link img {
  aspect-ratio: 1 / 1; /* Enforce square */
  width: 100%;
  height: auto;
  object-fit: contain; /* As per rule */
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
  max-width: 100%; /* For image responsive */
  box-sizing: border-box; /* For image responsive */
}

/* Module 5: Blog Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.page-index__blog-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 40px; /* Space for buttons */
}

.page-index__blog-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 10px; /* Prevent scrollbar from overlapping content */
}

.page-index__blog-slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 11px); /* 3 cards + 2 gaps (16px * 2 / 3) approx */
  scroll-snap-align: start;
  background: #2A1212; /* Card BG color */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 280px; /* Ensure cards are not too small */
}

.page-index__post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__image-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-index__image-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%; /* For image responsive */
  box-sizing: border-box; /* For image responsive */
}

.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(198, 31, 31, 0.8); /* Primary color with transparency */
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
}

.page-index__post-title {
  font-size: 18px;
  font-weight: bold;
  color: #F3C54D; /* Gold color */
  padding: 15px 15px 10px;
  margin: 0;
  line-height: 1.3;
}

.page-index__post-excerpt {
  font-size: 14px;
  color: #FFF1E8; /* Text Main color */
  padding: 0 15px 15px;
  margin: 0;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(198, 31, 31, 0.8); /* Primary color with transparency */
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background: #C61F1F; /* Primary color */
}

.page-index__blog-slider-prev {
  left: 0;
}

.page-index__blog-slider-next {
  right: 0;
}

/* --- Responsive Styles --- */
/* @media (max-width: 849px) for Banner object-fit: contain */
@media (max-width: 849px) {
  .page-index__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none !important;
  }
}

/* @media (max-width: 768px) for mobile-specific rules */
@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-index {
    font-size: 15px;
  }

  /* Module 1: Hero Section */
  .page-index__hero-section {
    padding-left: 0;
    padding-right: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Module 2: Access Links */
  .page-index__access-links {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__access-links-container {
    grid-template-columns: 1fr; /* Single column for buttons */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important; /* Ensure buttons wrap */
  }
  .page-index__btn-access-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Module 3: Brand Intro */
  .page-index__brand-intro {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for smaller screens */
    margin-bottom: 15px;
  }
  .page-index__intro-text {
    font-size: 15px;
  }

  /* Module 4: Category Lobby */
  .page-index__category-lobby {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-index__section-title::before,
  .page-index__section-title::after {
    width: 30px; /* Shorter lines */
    left: calc(50% - 100px); /* Adjust position */
    right: calc(50% - 100px); /* Adjust position */
  }
  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for gameshow */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__category-card-link img {
    min-width: unset; /* Allow smaller sizes on mobile if container shrinks */
    min-height: unset;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Module 5: Blog Slider */
  .page-index__blog-slider {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__blog-slider-wrapper {
    padding: 0 10px; /* Adjust padding for buttons */
  }
  .page-index__post-item {
    flex: 0 0 85%; /* Show approx 1.5 cards, main card is 85% width */
    min-width: unset;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .page-index__blog-slider-prev {
    left: -5px; /* Adjust button position */
  }
  .page-index__blog-slider-next {
    right: -5px; /* Adjust button position */
  }

  /* Ensure all images are responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}