:root {
  --e88ball-primary: #FF8C1A;
  --e88ball-secondary: #FFA53A;
  --e88ball-card-bg: #17191F;
  --e88ball-background: #0D0E12;
  --e88ball-text-main: #FFF3E6;
  --e88ball-border: #A84F0C;
  --e88ball-glow: #FFB04D;
  --e88ball-deep-orange: #D96800;
  --e88ball-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-index {
  color: var(--e88ball-text-main); /* Dark background, so light text */
  background: var(--e88ball-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* General container for content */
.page-index__container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

/* Headings */
.page-index__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 */
  font-weight: 700;
  color: var(--e88ball-primary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--e88ball-primary);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  line-height: 1.3;
  position: relative;
}
.page-index__section-title::before,
.page-index__section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 15%;
  height: 2px;
  background: var(--e88ball-border);
  transform: translateY(-50%);
}
.page-index__section-title::before {
  left: 0;
  margin-left: 15%;
}
.page-index__section-title::after {
  right: 0;
  margin-right: 15%;
}

.page-index__sub-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  color: var(--e88ball-secondary);
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

/* Paragraphs and lists */
.page-index p {
  margin-bottom: 15px;
  color: var(--e88ball-text-main);
  text-align: justify;
}
.page-index__intro-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center; /* Intro text can be centered */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.page-index__intro-text a {
  color: var(--e88ball-secondary);
  text-decoration: underline;
}

.page-index__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}
.page-index__feature-list li {
  background: var(--e88ball-card-bg);
  border: 1px solid var(--e88ball-border);
  padding: 15px;
  border-radius: 8px;
  color: var(--e88ball-text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.page-index__feature-list li strong {
  color: var(--e88ball-primary);
}

/* Buttons general style */
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-access-link,
.page-index__btn-read-more {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: var(--e88ball-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}
.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-index__btn-secondary {
  background: transparent;
  color: var(--e88ball-primary);
  border: 2px solid var(--e88ball-primary);
}
.page-index__btn-secondary:hover {
  background: var(--e88ball-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.page-index__cta-buttons--bottom {
  margin-top: 40px;
  margin-bottom: 60px;
}

/* Module 1: Hero Banner */
.page-index__hero-section {
  padding-top: 10px; /* As shared.css handles body padding */
  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: Three Access Links */
.page-index__access-links-section {
  background: var(--e88ball-background);
  padding: 30px 0;
}
.page-index__access-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}