/* Base styles for the page */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

/* Ensure all images are responsive by default within page-index */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Top Section - Module 1 */
.page-index__top-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 40px;
  box-sizing: border-box;
  text-align: center;
  background-color: #F5F7FA; /* Background */
}

.page-index__top-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #E53935; /* Primary */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__top-lead {
  font-size: 1.1em;
  color: #333333; /* Text Main */
  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: #ffffff;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  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 15px rgba(0, 0, 0, 0.3);
}

/* Casino 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-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

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

.page-index__casino-title {
  font-size: 2em;
  color: #E53935; /* Primary */
  margin-bottom: 20px;
}

.page-index__casino-description {
  font-size: 1.05em;
  color: #333333; /* Text Main */
  margin-bottom: 15px;
}

/* Sports Section - Module 3 (Mirrored layout) */
.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-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

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

.page-index__sports-title {
  font-size: 2em;
  color: #E53935; /* Primary */
  margin-bottom: 20px;
}

.page-index__sports-description {
  font-size: 1.05em;
  color: #333333; /* Text Main */
  margin-bottom: 15px;
}

.page-index__reg-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  color: #ffffff;
  background-color: #E53935; /* Primary */
  transition: background-color 0.2s ease, transform 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-color: #FF5A4F; /* Secondary */
  transform: translateY(-1px);
}

/* Promo Section - Module 4 */
.page-index__promo-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 15px;
  box-sizing: border-box;
  background-color: #fcebeb; /* Lighter shade of primary/secondary */
  border-radius: 12px;
  text-align: center;
}

.page-index__promo-title {
  font-size: 2em;
  color: #E53935; /* Primary */
  margin-bottom: 15px;
}

.page-index__promo-subtitle {
  font-size: 1.2em;
  font-weight: 600;
  color: #333333; /* Text Main */
  margin-bottom: 20px;
}

.page-index__promo-description {
  font-size: 1em;
  color: #333333; /* Text Main */
  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-color: #ffffff; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  min-width: 500px; /* Ensure table is wide enough for mobile scroll */
}

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

.page-index__promo-table th {
  background-color: #FF5A4F; /* Secondary */
  color: #ffffff;
  font-weight: 600;
}

.page-index__promo-table td a {
  color: #E53935; /* Primary */
  text-decoration: none;
  font-weight: 600;
}

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

.page-index__promo-disclaimer {
  font-style: italic;
  font-size: 0.9em;
  color: #666666;
  margin-top: 15px;
}

/* Official Section - Module 5 */
.page-index__official-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 15px;
  box-sizing: border-box;
  background-color: #f9f9f9; /* Light grey background */
  border-left: 5px solid #E53935; /* Primary */
  border-radius: 8px;
}

.page-index__official-title {
  font-size: 2em;
  color: #E53935; /* Primary */
  margin-bottom: 15px;
}

.page-index__official-description {
  font-size: 1.05em;
  color: #333333; /* Text Main */
  margin-bottom: 15px;
}

/* 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-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-index__benefits-title {
  font-size: 1.8em;
  color: #E53935; /* Primary */
  margin-bottom: 20px;
}

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

.page-index__benefits-list li {
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23E53935"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #333333; /* Text Main */
  font-size: 1em;
}

.page-index__rating-display {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.page-index__rating-value {
  font-size: 1.8em;
  font-weight: 700;
  color: #E53935; /* Primary */
  margin-right: 15px;
}

.page-index__stars {
  display: flex;
}

.page-index__stars .star {
  font-size: 1.5em;
  color: #E0E0E0; /* Border */
  cursor: pointer;
  transition: color 0.2s ease;
}

.page-index__stars .star.is-active {
  color: #FFD700; /* Gold color for active stars */
}

.page-index__reviews-title {
  font-size: 1.8em;
  color: #E53935; /* Primary */
  margin-bottom: 20px;
}

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

.page-index__review-item {
  background-color: #F5F7FA; /* Background */
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #E0E0E0; /* Border */
}

.page-index__review-text {
  font-style: italic;
  color: #333333; /* Text Main */
  margin-bottom: 10px;
}

.page-index__review-author {
  font-weight: 600;
  color: #666666;
  font-size: 0.95em;
}

.page-index__review-stars {
  color: #FFD700; /* Gold color for review stars */
  margin-left: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-index__top-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .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: 1.8em;
  }
  .page-index__promo-section {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  /* Top Section */
  .page-index__top-text {
    padding: 10px 15px 30px;
  }
  .page-index__top-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }
  .page-index__top-lead {
    font-size: 1em;
  }
  .page-index__start-btn {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Casino Section */
  .page-index__casino-main {
    grid-template-columns: 1fr; /* Single column */
    padding: 20px 15px;
    margin: 30px auto;
  }
  .page-index__casino-image-wrapper {
    order: 1; /* Image first */
  }
  .page-index__casino-content {
    order: 2; /* Content second */
  }
  .page-index__casino-title {
    font-size: 1.6em;
  }
  .page-index__casino-description {
    font-size: 0.95em;
  }

  /* Sports Section */
  .page-index__sports-section {
    grid-template-columns: 1fr; /* Single column */
    padding: 20px 15px;
    margin: 30px auto;
  }
  .page-index__sports-content {
    order: 1; /* Content first */
  }
  .page-index__sports-image-wrapper {
    order: 2; /* Image second */
  }
  .page-index__sports-title {
    font-size: 1.6em;
  }
  .page-index__sports-description {
    font-size: 0.95em;
  }
  .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;
  }

  /* Promo Section */
  .page-index__promo-section {
    padding: 25px 15px;
    margin: 30px auto;
  }
  .page-index__promo-title {
    font-size: 1.6em;
  }
  .page-index__promo-subtitle {
    font-size: 1.1em;
  }
  .page-index__promo-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }
  .page-index__promo-table {
    min-width: 450px; /* Ensure table is wide enough for mobile scroll */
  }
  .page-index__promo-table th,
  .page-index__promo-table td {
    padding: 10px 12px;
    font-size: 0.9em;
  }

  /* Official Section */
  .page-index__official-section {
    padding: 25px 15px;
    margin: 30px auto;
  }
  .page-index__official-title {
    font-size: 1.6em;
  }
  .page-index__official-description {
    font-size: 0.95em;
  }

  /* Rating Section */
  .page-index__rating-section {
    grid-template-columns: 1fr; /* Single column */
    padding: 20px 15px;
    margin: 30px auto;
  }
  .page-index__benefits-title,
  .page-index__reviews-title {
    font-size: 1.6em;
  }
  .page-index__benefits-list li {
    font-size: 0.95em;
    padding-left: 25px;
    background-size: 16px;
  }
  .page-index__rating-value {
    font-size: 1.5em;
  }
  .page-index__stars .star {
    font-size: 1.3em;
  }
  .page-index__review-item {
    padding: 15px;
  }
  .page-index__review-text {
    font-size: 0.95em;
  }
  .page-index__review-author {
    font-size: 0.9em;
  }
  /* Generic image and container responsiveness for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__casino-main,
  .page-index__sports-section,
  .page-index__promo-section,
  .page-index__official-section,
  .page-index__rating-section,
  .page-index__top-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}