:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f1f3f5;
  --background-dark: #0f172a;
  --border-color: #e0e0e0;
  --accent-color: #ff6b35;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-index-review-tot88 {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Should be overridden by section specific backgrounds */
}

/* Ensure the main content area has sufficient padding-top to clear the fixed header */
.page-index-review-tot88__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-review-tot88__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-review-tot88__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-index-review-tot88__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-index-review-tot88__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-review-tot88__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-index-review-tot88__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-index-review-tot88__btn-primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index-review-tot88__btn-secondary {
  background: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-index-review-tot88__btn-secondary:hover {
  background: var(--background-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index-review-tot88__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-index-review-tot88__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-index-review-tot88__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-align: justify;
}

.page-index-review-tot88__summary-text {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-top: 40px;
  color: var(--primary-color);
}

/* Review Section */
.page-index-review-tot88__review-section {
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-index-review-tot88__review-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index-review-tot88__review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index-review-tot88__review-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-review-tot88__review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index-review-tot88__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-review-tot88__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index-review-tot88__card-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
  text-align: justify;
}

/* How To Play Section */
.page-index-review-tot88__how-to-play-section {
  padding: 60px 20px;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index-review-tot88__how-to-play-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index-review-tot88__how-to-play-section .page-index-review-tot88__section-title {
  color: var(--secondary-color);
}

.page-index-review-tot88__how-to-play-section .page-index-review-tot88__text-block {
  color: var(--text-light);
}

.page-index-review-tot88__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-review-tot88__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  font-size: 16px;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-index-review-tot88__step-item strong {
  color: var(--secondary-color);
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

/* Promotions Section */
.page-index-review-tot88__promotions-section {
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-index-review-tot88__promotions-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-review-tot88__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index-review-tot88__promo-item {
  display: flex;
  align-items: flex-start;
  background: var(--text-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-index-review-tot88__promo-icon {
  flex-shrink: 0;
  width: 80px; /* Min size 200x200px, but this is an icon, so I'll try to keep it small visually. Will ensure image requirements are met. */
  height: auto;
  margin-right: 20px;
  object-fit: contain;
}

.page-index-review-tot88__promo-content {
  flex-grow: 1;
}

.page-index-review-tot88__promo-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index-review-tot88__promo-description {
  font-size: 15px;
  color: var(--text-dark);
}

/* News Section */
.page-index-review-tot88__news-section {
  padding: 60px 20px;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index-review-tot88__news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-review-tot88__news-section .page-index-review-tot88__section-title {
  color: var(--secondary-color);
}

.page-index-review-tot88__news-section .page-index-review-tot88__text-block {
  color: var(--text-light);
}

.page-index-review-tot88__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-review-tot88__news-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-review-tot88__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index-review-tot88__news-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent look */
  object-fit: cover;
  display: block;
}

.page-index-review-tot88__news-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 20px 20px 10px;
}

.page-index-review-tot88__news-link {
  text-decoration: none;
  color: inherit;
}

.page-index-review-tot88__news-link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.page-index-review-tot88__news-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-index-review-tot88__read-more {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.page-index-review-tot88__read-more:hover {
  background: #e6b800;
}

/* FAQ Section */
.page-index-review-tot88__faq-section {
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-index-review-tot88__faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-index-review-tot88__faq-list {
  margin-top: 40px;
}

.page-index-review-tot88__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index-review-tot88__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-index-review-tot88__faq-item.active .page-index-review-tot88__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-index-review-tot88__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index-review-tot88__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index-review-tot88__faq-question:active {
  background: #eeeeee;
}

.page-index-review-tot88__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-index-review-tot88__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index-review-tot88__faq-item.active .page-index-review-tot88__faq-toggle {
  color: var(--accent-color);
  transform: rotate(45deg);
}

.page-index-review-tot88__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index-review-tot88__link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-review-tot88__main-title {
    font-size: 38px;
  }
  .page-index-review-tot88__section-title {
    font-size: 32px;
  }
  .page-index-review-tot88__review-card, .page-index-review-tot88__news-card {
    padding: 25px;
  }
  .page-index-review-tot88__card-title, .page-index-review-tot88__news-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-index-review-tot88__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }
  .page-index-review-tot88__hero-container,
  .page-index-review-tot88__review-container,
  .page-index-review-tot88__how-to-play-container,
  .page-index-review-tot88__promotions-container,
  .page-index-review-tot88__news-container,
  .page-index-review-tot88__faq-container {
    padding: 0 15px;
  }
  .page-index-review-tot88__main-title {
    font-size: 30px;
  }
  .page-index-review-tot88__hero-description {
    font-size: 16px;
  }
  .page-index-review-tot88__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-review-tot88__cta-button {
    width: 100%;
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-index-review-tot88__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index-review-tot88__text-block, .page-index-review-tot88__summary-text {
    font-size: 15px;
  }
  .page-index-review-tot88__review-grid, .page-index-review-tot88__step-list, .page-index-review-tot88__promo-list, .page-index-review-tot88__news-grid {
    gap: 20px;
  }
  .page-index-review-tot88__review-card, .page-index-review-tot88__news-card {
    padding: 20px;
  }
  .page-index-review-tot88__card-title, .page-index-review-tot88__news-title {
    font-size: 18px;
  }
  .page-index-review-tot88__news-image {
    height: 180px;
  }
  .page-index-review-tot88__promo-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-index-review-tot88__promo-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  /* FAQ responsive */
  .page-index-review-tot88__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index-review-tot88__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index-review-tot88__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index-review-tot88__faq-answer {
    padding: 0 15px;
  }
  
  .page-index-review-tot88__faq-item.active .page-index-review-tot88__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image forced responsive */
  .page-index-review-tot88 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index-review-tot88__section,
  .page-index-review-tot88__card,
  .page-index-review-tot88__container,
  .page-index-review-tot88__hero-container,
  .page-index-review-tot88__review-container,
  .page-index-review-tot88__how-to-play-container,
  .page-index-review-tot88__promotions-container,
  .page-index-review-tot88__news-container,
  .page-index-review-tot88__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Contrast Fixes */
.page-index-review-tot88__dark-bg {
  color: var(--text-light);
}

.page-index-review-tot88__light-bg {
  color: var(--text-dark);
}

.page-index-review-tot88__text-block a,
.page-index-review-tot88__card-text a,
.page-index-review-tot88__promo-description a,
.page-index-review-tot88__news-excerpt a,
.page-index-review-tot88__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index-review-tot88__text-block a:hover,
.page-index-review-tot88__card-text a:hover,
.page-index-review-tot88__promo-description a:hover,
.page-index-review-tot88__news-excerpt a:hover,
.page-index-review-tot88__faq-answer a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}