.page-index {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

/* --- Module 1: Hero Banner --- */
.page-index__hero-section {
  padding-top: 10px; /* Adjusted for shared header offset */
  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;
}

/* --- Module 2: Access Links --- */
.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 {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__btn-access-link:hover {
  box-shadow: 0 6px 16px #A5C4FF; /* Glow */
  transform: translateY(-2px);
}

/* --- Module 3: Brand Intro --- */
.page-index__brand-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 12px;
  box-sizing: border-box;
  text-align: center;
  color: #1F2D3D; /* Text Main */
}

.page-index__brand-title {
  font-size: clamp(28px, 3.5vw, 42px); /* Clamp for responsive H1 */
  font-weight: 800;
  line-height: 1.2;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
}

.page-index__brand-description {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  text-align: justify;
}

.page-index__brand-description a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-index__category-lobby-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

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

.page-index__category-card,
.page-index__category-card-link {
  display: block;
  border: none;
  box-shadow: none;
  outline: 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;
  transition: transform 0.3s ease;
}

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

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

.page-index__blog-slider-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-index__blog-slider-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

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

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

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

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: #4A8BFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

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

.page-index__post-item {
  flex: 0 0 calc(33.333% - 11px); /* 3 items per row with gap */
  scroll-snap-align: start;
  background: #ffffff; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-index__image-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-index__post-title a {
  color: #1F2D3D; /* Text Main */
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.4;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.page-index__post-title a:hover {
  color: #2F6BFF;
}

.page-index__post-summary {
  font-size: 14px;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 10px;
}

.page-index__post-date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 5;
}

/* --- General Image & Button Responsive Styles --- */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index__btn-access-link,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__access-links,
.page-index__button-group,
.page-index__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Styles --- */
@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) {
  /* Module 1: Hero Banner */
  .page-index__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Module 2: Access Links */
  .page-index__access-links {
    grid-template-columns: 1fr;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Module 3: Brand Intro */
  .page-index__brand-intro {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__brand-title {
    font-size: 26px;
  }

  .page-index__brand-description {
    font-size: 15px;
  }

  /* Module 4: Game Lobby */
  .page-index__category-lobby {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__category-lobby-title {
    font-size: 24px;
  }

  .page-index__category-lobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Module 5: Blog Slider */
  .page-index__blog-slider {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__blog-slider-title {
    font-size: 24px;
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 30px;
    height: 30px;
    font-size: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    top: calc(50% + 15px); /* Adjust for smaller buttons */
  }

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

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

  .page-index__post-item {
    flex: 0 0 85%; /* Show approximately 1.2 items for better scroll indication */
  }
  
  .page-index__post-title a {
    font-size: 16px;
  }

  .page-index__post-summary {
    font-size: 13px;
  }

  /* Generic Image & Button Responsive Styles for 768px */
  .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;
  }

  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-index__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 549px) {
  .page-index__category-lobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}