/* Base styles for the page content, using custom colors */
.page-index {
  background-color: #0A0A0A; /* Custom Background */
  color: #FFF6D6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

/* Module 1: Top Section */
.page-index__top-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 40px; /* 10px top padding as per instruction, not var(--header-offset) */
  box-sizing: border-box;
  text-align: center;
}

.page-index__top-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD36B; /* Custom Glow */
  line-height: 1.2;
}

.page-index__top-lead {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__start-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom Button gradient */
  color: #3A2A12; /* Dark text for contrast on bright button */
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 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, 211, 107, 0.6);
}

/* Module 2 & 3: Casino & Sports Sections */
.page-index__casino-main,
.page-index__sports-section {
  display: grid;
  grid-template-columns: 5fr 7fr; /* Desktop layout */
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px 20px;
  box-sizing: border-box;
  background-color: #111111; /* Custom Card BG */
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Custom Border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__sports-section {
  grid-template-columns: 7fr 5fr; /* Mirrored layout */
}

.page-index__casino-image-wrapper,
.page-index__sports-image-wrapper {
  text-align: center;
}

.page-index__casino-image,
.page-index__sports-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #F2C14E; /* Primary color border */
}

.page-index__casino-content,
.page-index__sports-content {
  text-align: left;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD36B; /* Custom Glow */
  line-height: 1.2;
}

.page-index__casino-content p,
.page-index__sports-content p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #FFF6D6; /* Custom Text Main */
}

.page-index__reg-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  background: #F2C14E; /* Primary color solid button */
  color: #0A0A0A; /* Dark text for contrast */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__reg-button:hover {
  background-color: #FFD36B; /* Auxiliary color on hover */
  transform: translateY(-1px);
}

/* Module 4: Promo Section */
.page-index__promo-section {
  background-color: #111111; /* Custom Card BG */
  padding: 50px 20px;
  margin: 50px auto;
  max-width: 1200px;
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Custom Border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  box-sizing: border-box;
}

.page-index__promo-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__promo-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Primary color */
}

.page-index__promo-subtitle {
  font-size: 20px;
  margin-bottom: 25px;
  color: #FFD36B; /* Custom Glow */
}

.page-index__promo-section p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #FFF6D6; /* Custom Text Main */
}

.page-index__promo-table-wrapper {
  overflow-x: auto; /* For responsive table */
  margin-bottom: 25px;
  border-radius: 8px;
  border: 1px solid #3A2A12;
}

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

.page-index__promo-table th,
.page-index__promo-table td {
  border: 1px solid #3A2A12; /* Custom Border */
  padding: 15px;
  text-align: left;
  color: #FFF6D6; /* Custom Text Main */
}

.page-index__promo-table th {
  background-color: #F2C14E; /* Primary color for table header */
  color: #0A0A0A; /* Dark text for contrast */
  font-weight: bold;
  font-size: 18px;
}

.page-index__promo-table tr:nth-child(even) {
  background-color: rgba(255, 211, 107, 0.05); /* Light stripe for readability */
}

.page-index__table-link {
  color: #FFD36B; /* Custom Glow for links */
  text-decoration: none;
  font-weight: bold;
}

.page-index__table-link:hover {
  text-decoration: underline;
}

.page-index__promo-disclaimer {
  font-size: 14px;
  color: #999;
  font-style: italic;
}

/* Module 5: Official Section */
.page-index__official-section {
  background-color: #111111; /* Custom Card BG */
  padding: 50px 20px;
  margin: 50px auto;
  max-width: 1200px;
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Custom Border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.page-index__official-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background-color: #F2C14E; /* Primary color vertical bar */
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.page-index__official-content-wrapper {
  padding-left: 40px; /* Space for the vertical bar */
  text-align: left;
}

.page-index__official-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Primary color */
}

.page-index__official-section p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #FFF6D6; /* Custom Text Main */
}

/* Module 6: Rating Section */
.page-index__rating-section {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Desktop layout */
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px 20px;
  box-sizing: border-box;
  background-color: #111111; /* Custom Card BG */
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Custom Border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__benefits-title,
.page-index__reviews-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD36B; /* Custom Glow */
}

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

.page-index__benefits-list li {
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #FFF6D6; /* Custom Text Main */
}

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

.page-index__overall-rating {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.page-index__rating-value {
  color: #FFF6D6; /* Custom Text Main */
}

.page-index__stars {
  display: flex;
  gap: 2px;
}

.page-index__star {
  color: #666; /* Default grey star */
  cursor: pointer;
  font-size: 28px;
  transition: color 0.2s ease;
}

.page-index__star.is-active {
  color: #F2C14E; /* Active star color (Primary) */
}

.page-index__review-card {
  background-color: rgba(255, 211, 107, 0.05); /* Light background for review card */
  border: 1px solid #3A2A12; /* Custom Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: #FFF6D6; /* Custom Text Main */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index__review-text {
  font-style: italic;
  margin-bottom: 10px;
  font-size: 15px;
}

.page-index__review-author {
  text-align: right;
  font-weight: bold;
  font-size: 14px;
  color: #F2C14E; /* Primary color for author */
}

/* Global image styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Responsive styles for 1024px and below */
@media (max-width: 1024px) {
  .page-index__top-title {
    font-size: 42px;
  }
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__promo-title,
  .page-index__official-title {
    font-size: 28px;
  }
  .page-index__benefits-title,
  .page-index__reviews-title {
    font-size: 26px;
  }
}

/* Responsive styles for 768px and below */
@media (max-width: 768px) {
  /* 1. Top section padding and elements */
  .page-index__top-text {
    padding: 10px 15px 30px;
  }

  .page-index__top-title {
    font-size: 36px;
  }
  .page-index__top-lead {
    font-size: 16px;
  }
  .page-index__start-btn {
    font-size: 18px;
    padding: 12px 25px;
    width: 100% !important; /* Force full width on mobile */
    display: block;
  }

  /* 2. Double-column modules to single column */
  .page-index__casino-main,
  .page-index__sports-section,
  .page-index__rating-section {
    grid-template-columns: 1fr;
    padding: 20px 15px;
    margin: 30px auto;
    gap: 25px;
  }

  /* Specific order for casino (image then text) */
  .page-index__casino-main .page-index__casino-image-wrapper {
    order: 1;
  }
  .page-index__casino-main .page-index__casino-content {
    order: 2;
  }

  /* Specific order for sports (text then image, already default) */
  .page-index__sports-section .page-index__sports-content {
    order: 1;
  }
  .page-index__sports-section .page-index__sports-image-wrapper {
    order: 2;
  }

  .page-index__section-title {
    font-size: 28px;
    text-align: center;
  }
  .page-index__casino-content p,
  .page-index__sports-content p {
    font-size: 15px;
    text-align: center;
  }
  .page-index__reg-button {
    width: 100% !important; /* Force full width on mobile */
    display: block;
    margin: 0 auto; /* Center button if it's a block */
  }

  /* Promo section */
  .page-index__promo-section,
  .page-index__official-section {
    padding: 30px 15px;
    margin: 30px auto;
  }
  .page-index__promo-title,
  .page-index__official-title {
    font-size: 26px;
    text-align: center;
  }
  .page-index__promo-subtitle {
    font-size: 18px;
  }
  .page-index__promo-section p,
  .page-index__official-section p {
    font-size: 15px;
    text-align: center;
  }

  /* Table responsiveness */
  .page-index__promo-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
  }
  .page-index__promo-table {
    min-width: 600px; /* Ensure table is wide enough to scroll */
  }
  .page-index__promo-table th,
  .page-index__promo-table td {
    padding: 12px;
    font-size: 14px;
  }

  /* Official section */
  .page-index__official-section::before {
    display: none; /* Hide vertical bar on mobile */
  }
  .page-index__official-content-wrapper {
    padding-left: 0;
    text-align: center;
  }

  /* Rating section */
  .page-index__benefits-title,
  .page-index__reviews-title {
    font-size: 24px;
    text-align: center;
  }
  .page-index__benefits-list {
    font-size: 15px;
    text-align: left;
  }
  .page-index__overall-rating {
    justify-content: center; /* Center rating on mobile */
    font-size: 20px;
  }
  .page-index__star {
    font-size: 24px;
  }
  .page-index__review-card {
    padding: 15px;
  }
  .page-index__review-text {
    font-size: 14px;
  }
  .page-index__review-author {
    font-size: 13px;
  }

  /* 3. Universal image and container responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__promo-content-wrapper,
  .page-index__official-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. Button responsive */
  .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;
  }
}