/* style/index.css */

/* Base styles and typography */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure consistency with body background */
}

.page-index h1, .page-index h2, .page-index h3, .page-index h4 {
  color: #017439; /* Primary brand color for headings */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index h1 {
  font-weight: 700;
  letter-spacing: -0.5px;
  max-width: 900px; /* Prevent overly wide titles */
  margin-left: auto;
  margin-right: auto;
}

.page-index h2 {
  font-size: 2.2em;
  font-weight: 600;
}

.page-index h3 {
  font-size: 1.8em;
  font-weight: 600;
}

.page-index h4 {
  font-size: 1.5em;
  font-weight: 600;
}

.page-index p {
  margin-bottom: 1em;
}

.page-index a {
  color: #017439;
  text-decoration: none;
}

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

/* General Section Layout */
.page-index section {
  padding: 40px 20px;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Module 1: Top Text Section */
.page-index__top-text {
  padding: 10px 20px 40px; /* Small top padding, relying on body padding-top */
  text-align: center;
  background-color: #FFFFFF;
}

.page-index__top-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 800;
  margin-bottom: 20px;
  color: #017439;
}

.page-index__top-lead {
  font-size: 1.15em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #555555;
}

.page-index__start-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #FFFF00; /* Custom color for start button background */
  color: #017439; /* Custom color for start button text */
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  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 {
  background-color: #e0e000;
  transform: translateY(-2px);
  text-decoration: none;
}

.page-index__start-btn svg {
  height: 1.2em;
  width: 1.2em;
}

/* Module 2 & 3: Casino & Sports Sections */
.page-index__casino-main,
.page-index__sports-section {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  background-color: #FFFFFF;
}

.page-index__sports-section {
  grid-template-columns: 7fr 5fr;
  background-color: #f0fdf6; /* Light green tint for sports section */
}

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

.page-index__casino-image,
.page-index__sports-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-index__casino-title,
.page-index__sports-title {
  font-size: 2em;
  margin-bottom: 20px;
}

.page-index__reg-button {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login buttons */
  color: #FFFF00; /* Custom color for register/login font */
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__reg-button:hover {
  background-color: #a00606;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Module 4: Promo Section */
.page-index__promo-section {
  background-color: #e6f7ef; /* Lighter green tint */
  text-align: center;
}

.page-index__promo-title {
  color: #017439;
  margin-bottom: 15px;
}

.page-index__promo-subtitle {
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  margin-bottom: 25px;
}

.page-index__promo-description {
  max-width: 800px;
  margin: 0 auto 30px;
  color: #555555;
}

.page-index__promo-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-index__promo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is wide enough for content */
  background-color: #FFFFFF;
}

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

.page-index__promo-table th {
  background-color: #017439;
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
}

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

.page-index__promo-table td a {
  color: #C30808; /* Link color for app download */
  font-weight: bold;
}

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

/* Module 5: Official Section */
.page-index__official-section {
  background-color: #FFFFFF;
  position: relative;
  padding-left: 60px;
}

.page-index__official-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background-color: #017439; /* Brand color vertical bar */
  border-radius: 8px 0 0 8px;
}

.page-index__official-title {
  color: #017439;
  margin-bottom: 15px;
}

.page-index__official-content p {
  color: #555555;
}

/* Module 6: Rating Section */
.page-index__rating-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  background-color: #f0fdf6;
}

.page-index__benefits-title {
  color: #017439;
  margin-bottom: 20px;
}

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

.page-index__benefits-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23017439" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #333333;
}

.page-index__benefits-list li strong {
  color: #017439;
}

.page-index__user-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-index__rating-text {
  font-weight: bold;
  color: #333333;
  margin: 0;
}

.page-index__stars {
  display: flex;
  font-size: 1.8em;
  color: #ccc;
}

.page-index__star {
  cursor: pointer;
  color: #FFD700; /* Gold color for active stars */
}

.page-index__star--half {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 0.9em; /* Adjust width to show half star */
  color: #FFD700;
}

.page-index__star--half::before {
  content: '★';
  position: absolute;
  width: 50%;
  left: 0;
  overflow: hidden;
  color: #FFD700;
}

.page-index__star--half::after {
  content: '★';
  position: absolute;
  width: 50%;
  right: 0;
  overflow: hidden;
  color: #ccc;
}

.page-index__rating-value {
  font-weight: bold;
  color: #017439;
  font-size: 1.2em;
}

.page-index__review-list {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-index__review-title {
  color: #017439;
  margin-bottom: 20px;
  text-align: center;
}

.page-index__review-card {
  background-color: #f5fcf9;
  border-left: 4px solid #017439;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.03);
}

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

.page-index__review-author {
  font-weight: bold;
  color: #333333;
  text-align: right;
  font-size: 0.95em;
}

.page-index__review-stars {
  color: #FFD700;
  text-align: right;
  font-size: 1.1em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.5em;
  }
  .page-index h4 {
    font-size: 1.3em;
  }
  .page-index__casino-main,
  .page-index__sports-section {
    gap: 30px;
  }
  .page-index__rating-section {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* Module 1: Top Text Section */
  .page-index__top-text {
    padding: 10px 15px 30px;
  }
  .page-index__top-title {
    font-size: 2em;
  }
  .page-index__top-lead {
    font-size: 1em;
  }
  .page-index__start-btn {
    font-size: 1em;
    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 & 3: Casino & Sports Sections */
  .page-index__casino-main,
  .page-index__sports-section {
    grid-template-columns: 1fr; /* Stack columns */
    padding: 25px 15px;
    gap: 25px;
  }
  .page-index__casino-title,
  .page-index__sports-title {
    font-size: 1.8em;
  }
  .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: 25px 15px;
  }
  .page-index__promo-title {
    font-size: 1.5em;
  }
  .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;
  }
  .page-index__promo-table {
    min-width: 500px; /* Allow horizontal scroll */
  }
  .page-index__promo-table th,
  .page-index__promo-table td {
    padding: 10px;
    font-size: 0.9em;
  }

  /* Module 5: Official Section */
  .page-index__official-section {
    padding: 25px 15px 25px 40px; /* Adjust padding for vertical bar */
  }
  .page-index__official-section::before {
    width: 8px;
  }
  .page-index__official-title {
    font-size: 1.5em;
  }

  /* Module 6: Rating Section */
  .page-index__rating-section {
    grid-template-columns: 1fr; /* Stack columns */
    padding: 25px 15px;
    gap: 25px;
  }
  .page-index__benefits-title {
    font-size: 1.3em;
  }
  .page-index__benefits-list li {
    font-size: 0.95em;
    padding-left: 25px;
    background-size: 16px;
  }
  .page-index__review-title {
    font-size: 1.3em;
  }

  /* Universal Image & Container Adaptations */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-index__casino-image-wrapper,
  .page-index__sports-image-wrapper,
  .page-index__promo-table-wrapper,
  .page-index__review-list,
  .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__benefits-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__user-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .page-index__stars {
    font-size: 1.5em;
  }
  .page-index__rating-value {
    font-size: 1em;
  }
  .page-index__review-card {
    padding: 12px;
  }
}

/* Ensure images are never smaller than 200x200 */
.page-index img:not(.page-index__start-btn svg) {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-index img {
  filter: none;
}