/* General styles */
.page-index {
  color: #F2FFF6; /* Text Main for general content */
  background-color: #08160F; /* Background color from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__section-title,
.page-index__section-subtitle {
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after,
.page-index__section-subtitle::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #22C768; /* Auxiliary color */
  border-radius: 2px;
}

/* Module 1: Hero Section (Banner) */
.page-index__hero-section {
  padding-top: 10px; /* As shared.css handles body padding-top */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.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;
  margin-bottom: 40px;
}

.page-index__btn-access-link {
  display: block;
  padding: 15px 20px;
  text-align: center;
  color: #F2FFF6; /* Text Main */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-access-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4); /* Glow effect */
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
}

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

.page-index__main-title {
  font-size: clamp(28px, 4vw, 42px); /* Clamp for h1 */
  font-weight: bold;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-index__intro-text {
  font-size: 17px;
  line-height: 1.7;
  color: #A7D9B8; /* Text Secondary */
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.page-index__intro-link {
  color: #2AD16F; /* A brighter green for links */
  text-decoration: underline;
}

.page-index__keyword {
  font-weight: bold;
  color: #57E38D; /* Glow color */
}

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

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

.page-index__category-card {
  display: block;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  overflow: hidden; /* Ensure no overflow */
}

.page-index__category-card-link {
  display: block;
  text-decoration: none;
  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; /* Ensure image is not cropped */
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

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

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

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

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