/* Base styles for the page-index content */
.page-index {
  background-color: #0D0E12; /* Body background from shared.css */
  color: #FFF3E6; /* Text Main color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__top-text,
.page-index__casino-main,
.page-index__sports-section,
.page-index__promo-section,
.page-index__official-section,
.page-index__rating-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
  box-sizing: border-box;
}

/* Module 1: Top Text */
.page-index__top-text {
  padding-top: 10px; /* Assuming body padding-top: var(--header-offset) is handled by shared.css */
  text-align: center;
}

.page-index__top-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFF3E6;
  margin-bottom: 15px;
}

.page-index__top-lead {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #E0E0E0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__start-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button custom color */
  color: #FFF3E6; /* Text Main color */
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

/* Module 2: Casino Section */
.page-index__casino-main {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  border: 1px solid #A84F0C; /* Border custom color */
}

.page-index__casino-image-wrapper img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #FFA53A;
}

.page-index__casino-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FF8C1A; /* Primary color */
  margin-bottom: 20px;
}

.page-index__casino-description {
  font-size: 1rem;
  color: #E0E0E0;
  margin-bottom: 15px;
}

.page-index__reg-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button custom color */
  color: #FFF3E6; /* Text Main color */
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__reg-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #D96800 100%); /* Glow color on hover */
}

/* Module 3: Sports Section */
.page-index__sports-section {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  border: 1px solid #A84F0C; /* Border custom color */
}

.page-index__sports-image-wrapper img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #FFA53A;
}

.page-index__sports-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FF8C1A; /* Primary color */
  margin-bottom: 20px;
}

.page-index__sports-description {
  font-size: 1rem;
  color: #E0E0E0;
  margin-bottom: 15px;
}

/* Module 4: Promo Section */
.page-index__promo-section {
  background-color: #2a1a00; /* Darker variant of brand color for contrast */
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  text-align: center;
  border: 1px solid #A84F0C; /* Border custom color */
}

.page-index__promo-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FFB04D; /* Glow color */
  margin-bottom: 15px;
}

.page-index__promo-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-index__promo-description {
  font-size: 1rem;
  color: #E0E0E0;
  margin-bottom: 30px;
}

.page-index__promo-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid #A84F0C;
  border-radius: 8px;
}

.page-index__promo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is wide enough for horizontal scroll on mobile */
}

.page-index__promo-table th,
.page-index__promo-table td {
  padding: 12px 15px;
  border: 1px solid #A84F0C;
  text-align: left;
  color: #FFF3E6;
}

.page-index__promo-table th {
  background-color: #D96800; /* Deep Orange */
  font-weight: bold;
  color: #FFF3E6;
}

.page-index__promo-table tbody tr:nth-child(odd) {
  background-color: #2a1a00;
}

.page-index__promo-table tbody tr:nth-child(even) {
  background-color: #17191F;
}

.page-index__promo-table a {
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
}

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

.page-index__promo-disclaimer {
  font-size: 0.9rem;
  color: #FFB04D;
  margin-top: 10px;
  font-style: italic;
}

/* Module 5: Official Website Section */
.page-index__official-section {
  display: flex;
  gap: 20px;
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  border: 1px solid #A84F0C; /* Border custom color */
}

.page-index__official-vertical-bar {
  width: 8px;
  background-color: #FF8C1A; /* Primary color */
  border-radius: 4px;
  flex-shrink: 0;
}

.page-index__official-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FF8C1A; /* Primary color */
  margin-bottom: 20px;
}

.page-index__official-description {
  font-size: 1rem;
  color: #E0E0E0;
  margin-bottom: 15px;
}

/* Module 6: Rating and Reviews Section */
.page-index__rating-section {
  display: grid;
  grid-template-columns: 2fr 1fr; /* desktop about 8:4 ratio */
  gap: 40px;
  align-items: flex-start;
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  border: 1px solid #A84F0C; /* Border custom color */
}

.page-index__benefits-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FF8C1A; /* Primary color */
  margin-bottom: 20px;
}

.page-index__benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__benefits-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #E0E0E0;
  font-size: 1rem;
}

.page-index__benefits-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFA53A; /* Auxiliary color */
  font-weight: bold;
}

.page-index__rating-display {
  margin-top: 20px;
  text-align: center;
  border-top: 1px solid #A84F0C;
  padding-top: 20px;
}

.page-index__rating-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFF3E6;
  margin-bottom: 10px;
}

.page-index__stars {
  font-size: 2.2rem;
  color: #666;
  letter-spacing: 5px;
}

.page-index__star {
  cursor: pointer;
  transition: color 0.2s ease;
  color: #666;
}

.page-index__star.is-active {
  color: #FFB04D; /* Glow color for active stars */
}

.page-index__review-list {
  background-color: #0D0E12; /* Background color */
  border-radius: 8px;
  padding: 30px;
  border: 1px solid #A84F0C; /* Border custom color */
}

.page-index__review-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FF8C1A; /* Primary color */
  margin-bottom: 25px;
  text-align: center;
}

.page-index__review-card {
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C;
}

.page-index__review-card:last-child {
  margin-bottom: 0;
}

.page-index__review-text {
  font-size: 1rem;
  color: #E0E0E0;
  font-style: italic;
  margin-bottom: 15px;
}

.page-index__review-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFA53A;
  text-align: right;
}

.page-index__review-stars {
  color: #FFB04D;
  margin-left: 5px;
}

/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-index__top-text,
  .page-index__casino-main,
  .page-index__sports-section,
  .page-index__promo-section,
  .page-index__official-section,
  .page-index__rating-section {
    padding: 20px 15px;
  }

  /* Module 1: Top Text */
  .page-index__top-text {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-index__top-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-index__top-lead {
    font-size: 1rem;
  }

  .page-index__start-btn {
    font-size: 1rem;
    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 2: Casino Section */
  .page-index__casino-main {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
  }

  .page-index__casino-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .page-index__casino-content {
    text-align: center;
  }

  .page-index__reg-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Module 3: Sports Section */
  .page-index__sports-section {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
  }

  .page-index__sports-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .page-index__sports-content {
    order: 2; /* Content after image on mobile */
    text-align: center;
  }
  .page-index__sports-image-wrapper {
    order: 1; /* Image before content on mobile */
  }

  /* Module 4: Promo Section */
  .page-index__promo-section {
    padding: 25px;
  }

  .page-index__promo-title {
    font-size: 1.8rem;
  }

  .page-index__promo-subtitle {
    font-size: 1rem;
  }

  .page-index__promo-table-wrapper {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__promo-table {
    min-width: 500px; /* Ensure horizontal scroll for smaller screens */
  }

  /* Module 5: Official Website Section */
  .page-index__official-section {
    flex-direction: column;
    padding: 25px;
  }

  .page-index__official-vertical-bar {
    width: 100%;
    height: 8px;
  }

  .page-index__official-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .page-index__official-description {
    text-align: center;
  }

  /* Module 6: Rating and Reviews Section */
  .page-index__rating-section {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
  }

  .page-index__benefits-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .page-index__benefits-list li {
    font-size: 0.95rem;
    padding-left: 20px;
  }

  .page-index__review-title {
    font-size: 1.6rem;
  }

  .page-index__review-card {
    padding: 15px;
  }

  .page-index__review-text {
    font-size: 0.95rem;
  }

  .page-index__review-author {
    font-size: 0.85rem;
  }

  /* General image and container responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index__casino-image-wrapper,
  .page-index__sports-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__top-text,
  .page-index__casino-main,
  .page-index__sports-section,
  .page-index__promo-section,
  .page-index__official-section,
  .page-index__rating-section,
  .page-index__promo-table-wrapper,
  .page-index__review-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}