/* Base styles for the page-index */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main on dark background */
  background: #0A0A0A; /* Body Background */
}

/* Top Text Section (Module 1) */
.page-index__top-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 40px;
  box-sizing: border-box;
  text-align: center;
}

.page-index__top-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Primary color */
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__top-lead {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Casino Main Section (Module 2) */
.page-index__casino-main {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 15px;
  box-sizing: border-box;
  background: #111111; /* Card BG */
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Border */
}

.page-index__casino-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__casino-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index__casino-title {
  font-size: 2.2em;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__casino-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

/* Sports Section (Module 3) */
.page-index__sports-section {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 15px;
  box-sizing: border-box;
  background: #111111; /* Card BG */
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Border */
}

.page-index__sports-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__sports-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index__sports-title {
  font-size: 2.2em;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__sports-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-index__reg-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  color: #111111; /* Dark text for contrast */
  background: #FFD36B; /* Secondary color for buttons */
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__reg-button:hover {
  background-color: #F2C14E; /* Primary color on hover */
  transform: translateY(-2px);
}

/* Promo Section (Module 4) */
.page-index__promo-section {
  background: rgba(242, 193, 78, 0.1); /* Light transparent primary color */
  padding: 50px 15px;
  margin: 40px auto;
  text-align: center;
  border-radius: 12px;
  max-width: 1200px;
  box-sizing: border-box;
  border: 1px solid #3A2A12;
}

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

.page-index__promo-title {
  font-size: 2.5em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-index__promo-subtitle {
  font-size: 1.3em;
  color: #FFD36B;
  margin-bottom: 25px;
}

.page-index__promo-text {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-index__promo-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}

.page-index__promo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background: #111111;
  border-radius: 8px;
  overflow: hidden;
  min-width: 600px; /* Ensure table doesn't get too narrow */
}

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

.page-index__promo-table th {
  background-color: #F2C14E;
  color: #111111;
  font-weight: 700;
}

.page-index__promo-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-index__promo-disclaimer {
  font-style: italic;
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.7);
  margin-top: 10px;
}

/* Official Section (Module 5) */
.page-index__official-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 15px;
  margin: 40px auto;
  max-width: 1200px;
  box-sizing: border-box;
  background: #111111; /* Card BG */
  border-radius: 12px;
  border-left: 8px solid #F2C14E; /* Primary color accent */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-index__official-content {
  max-width: 900px;
  text-align: center;
}

.page-index__official-title {
  font-size: 2.2em;
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-index__official-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

/* Rating Section (Module 6) */
.page-index__rating-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 15px;
  box-sizing: border-box;
  background: #111111; /* Card BG */
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Border */
}

.page-index__benefits-title {
  font-size: 2em;
  color: #F2C14E;
  margin-bottom: 20px;
}

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

.page-index__benefits-list li {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

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

.page-index__rating-stars {
  font-size: 1.5em;
  color: #FFD36B; /* Glow color for stars */
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-index__rating-value {
  font-weight: bold;
  color: #FFF6D6;
}

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

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

.page-index__reviews-title {
  font-size: 2em;
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-index__review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__review-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__review-text {
  font-style: italic;
  color: #FFF6D6;
  margin-bottom: 10px;
}

.page-index__review-author {
  font-weight: 600;
  color: #FFD36B;
  margin-bottom: 5px;
}

.page-index__review-stars {
  color: #F2C14E;
  font-size: 1.1em;
}

.page-index__copyright {
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.6);
  margin-top: 40px;
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-index__top-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-index__casino-main,
  .page-index__sports-section,
  .page-index__rating-section {
    gap: 30px;
    padding: 25px 15px;
  }
  .page-index__casino-title,
  .page-index__sports-title,
  .page-index__promo-title,
  .page-index__official-title,
  .page-index__benefits-title,
  .page-index__reviews-title {
    font-size: 2em;
  }
  .page-index__top-lead,
  .page-index__casino-description,
  .page-index__sports-description,
  .page-index__promo-text,
  .page-index__official-description,
  .page-index__benefits-list li,
  .page-index__promo-subtitle {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* Module 1: Top Text Section */
  .page-index__top-text {
    padding: 10px 15px 30px;
  }
  .page-index__top-title {
    font-size: 2em !important; /* Ensure H1 doesn't get too big */
  }
  .page-index__start-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;
  }

  /* Module 2 & 3: Casino & Sports Sections */
  .page-index__casino-main,
  .page-index__sports-section {
    grid-template-columns: 1fr !important;
    padding: 20px 15px;
  }
  .page-index__sports-section .page-index__sports-content {
    order: 1;
  }
  .page-index__sports-section .page-index__sports-image-wrapper {
    order: 2;
  }
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Module 4: Promo Section */
  .page-index__promo-section {
    padding: 30px 15px;
  }
  .page-index__promo-table-wrapper {
    overflow-x: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__promo-table {
    min-width: 500px;
  }

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

  /* Module 6: Rating Section */
  .page-index__rating-section {
    grid-template-columns: 1fr !important;
    padding: 20px 15px;
  }
  .page-index__rating-stars {
    justify-content: center;
  }

  /* General image and container responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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-container,
  .page-index__official-content,
  .page-index__benefits,
  .page-index__reviews,
  .page-index__review-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__top-text {
    padding-left: 0;
    padding-right: 0;
  }
}