/* Color Variables */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --border-color: #244D84;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg-color: #10233F;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
}

/* General Page Styles */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Light text on dark body background */
  background-color: var(--deep-navy-color); /* Assuming body background is deep navy */
}

.page-index a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

.page-index__section-title,
.page-index__section-subtitle {
  text-align: center;
  color: var(--text-main-color);
  margin-bottom: 30px;
  position: relative;
  padding-top: 20px;
}

.page-index__section-title::after,
.page-index__section-subtitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-color);
  margin: 10px auto 0;
}

.page-index__text-block {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 15px;
  text-align: justify;
  color: var(--text-secondary-color);
}

/* Module 1: Hero Banner */
.page-index__hero-section {
  padding-top: 10px; /* Assuming shared.css handles 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;
}

/* 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: var(--button-gradient);
  color: var(--text-main-color);
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-access-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
  text-decoration: none;
}

/* Module 3: Brand Main Title + Extended Introduction */
.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: var(--gold-color);
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp as per instructions */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-index__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
  text-align: justify;
}

/* New Section: Game88 Ecosystem Overview */
.page-index__ecosystem-overview {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

/* New Section: Commitment to Security and Fair Play */
.page-index__security-fairplay {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

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

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

.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.2s ease-in-out;
}

.page-index__category-card-link:hover img {
  transform: scale(1.03);
}

/* New Section: Seamless Mobile Experience & Dedicated Support */
.page-index__mobile-support {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

/* New Section: Exclusive Promotions and VIP Program */
.page-index__promotions-vip {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

/* Module 5: Member Practical Info · Blog Card Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 12px 60px; /* Added bottom padding for spacing */
  box-sizing: border-box;
}

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