.page-index {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  padding-top: 10px; /* Aligns with shared body padding-top */
  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;
  aspect-ratio: 16 / 9; /* Default aspect ratio for hero */
}

.page-index__access-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 30px 12px;
  box-sizing: border-box;
}

.page-index__btn-access-link {
  display: block;
  padding: 15px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button */
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__btn-access-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4); /* Glow effect */
}

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

.page-index__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-index__intro-text {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF6D6;
  text-align: justify;
}

.page-index__intro-text a {
  color: #FFD36B;
  text-decoration: none;
  font-weight: bold;
}

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

.page-index__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: bold;
  color: #FFD36B;
  text-align: center;
  margin: 40px 0 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #F2C14E;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-index__category-lobby {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 12px;
  box-sizing: border-box;
}

.page-index__category-lobby__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  justify-content: center;
}

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

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

.page-index__category-card-link img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
  max-width: 100%; /* Ensure responsiveness */
}

.page-index__category-card-link:hover img {
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out;
}

.page-index__blog-slider {
  max-width: 1250px;
  margin: 40px auto;
  padding: 20px 12px;
  position: relative;
  box-sizing: border-box;
}

.page-index__slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; /* Allow clicks on content */
  z-index: 10;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: #F2C14E;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5em;
  color: #111111;
  transition: background-color 0.2s ease-in-out;
  pointer-events: auto; /* Re-enable clicks for buttons */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background: #FFD36B;
}

.page-index__blog-slider-prev {
  margin-left: -20px;
}

.page-index__blog-slider-next {
  margin-right: -20px;
}

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

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

.page-index__post-item {
  flex: 0 0 calc(33.333% - 11px); /* 3 items per row on desktop, considering gap */
  scroll-snap-align: start;
  background: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.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%;
}

.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(242, 193, 78, 0.8); /* F2C14E with transparency */
  color: #111111;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: bold;
}

.page-index__post-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__post-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD36B;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__post-title:hover {
  text-decoration: underline;
}

.page-index__post-summary {
  font-size: 0.9em;
  color: #FFF6D6;
  line-height: 1.5;
  flex-grow: 1;
}

.page-index__view-all-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.4);
}

/* --- Responsive Styles --- */

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

/* Mobile/Tablet: max-width 768px */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
  }

  .page-index__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-index__access-links {
    grid-template-columns: 1fr; /* Single column for access links */
    padding: 20px 15px;
  }

  .page-index__btn-access-link {
    padding: 12px 15px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__brand-intro {
    padding: 15px;
  }

  .page-index__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-index__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-index__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
    margin: 30px 0 20px;
  }

  .page-index__category-lobby {
    padding: 15px;
  }

  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for game categories */
    gap: 12px;
  }

  .page-index__category-card-link img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__blog-slider {
    padding: 15px;
    margin: 30px auto;
  }

  .page-index__slider-controls {
    display: none; /* Hide slider controls on small screens */
  }

  .page-index__blog-slider-track {
    gap: 12px;
    padding-bottom: 10px;
  }

  .page-index__post-item {
    flex: 0 0 85%; /* Show one card at a time with some peek of next */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__image-cover img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__post-title {
    font-size: 1.1em;
  }

  .page-index__post-summary {
    font-size: 0.85em;
  }

  .page-index__view-all-button {
    padding: 10px 20px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image and container responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Additional mobile adjustments for very small screens if needed */
@media (max-width: 549px) {
  .page-index__category-lobby__grid {
    grid-template-columns: 1fr; /* Single column for game categories on very small screens */
  }
}