/* style/bookmaker-review.css */
:root {
  --primary-color: #8B0000;
  --secondary-color: #FFD700;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-color-dark: #0d0d0d;
  --background-color-light: #f1f3f5;
  --card-background-color: #ffffff;
  --border-color-light: #e0e0e0;
}

.page-bookmaker-review {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-color-dark);
}

.page-bookmaker-review__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-bookmaker-review__card {
  background: var(--card-background-color);
  color: var(--text-color-light-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
}

.page-bookmaker-review__main-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-bookmaker-review__intro-paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-bookmaker-review__section-title {
  font-size: 30px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
}

.page-bookmaker-review__keyword {
  color: var(--primary-color);
  font-weight: bold;
}

/* Introduction Section */
.page-bookmaker-review__introduction-section {
  background-color: var(--background-color-dark);
  padding-bottom: 40px;
  padding-top: 180px; /* Desktop: Ensure content clears fixed header */
}

.page-bookmaker-review__introduction-section .page-bookmaker-review__card {
  background: var(--card-background-color);
  color: var(--text-color-light-bg);
}

/* Criteria Section */
.page-bookmaker-review__criteria-section {
  background-color: var(--background-color-dark);
  padding-bottom: 40px;
}

.page-bookmaker-review__criteria-intro {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
}

.page-bookmaker-review__criteria-item {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color-light);
}

.page-bookmaker-review__criteria-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-bookmaker-review__criteria-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: left;
}

.page-bookmaker-review__criteria-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-bookmaker-review__criteria-item p {
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

/* Top Platforms Section */
.page-bookmaker-review__top-platforms-section {
  background-color: var(--background-color-dark);
  padding-bottom: 40px;
}

.page-bookmaker-review__platform-list {
  list-style: none;
  padding: 0;
  margin-top: 25px;
}

.page-bookmaker-review__platform-list li {
  background: #f9f9f9;
  border: 1px solid var(--border-color-light);
  border-radius: 5px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.page-bookmaker-review__platform-link {
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 10px;
}

.page-bookmaker-review__platform-link:hover {
  text-decoration: underline;
  color: #a00000;
}

.page-bookmaker-review__cta-text-link {
  color: #007bff; /* Standard link color */
  text-decoration: none;
  font-weight: bold;
}

.page-bookmaker-review__cta-text-link:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Summary Section */
.page-bookmaker-review__summary-section {
  background-color: var(--background-color-dark);
  padding-bottom: 40px;
}

.page-bookmaker-review__summary-section p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-bookmaker-review__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-bookmaker-review__cta-button:hover {
  background: #a00000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-bookmaker-review__faq-section {
  background-color: var(--background-color-dark);
  padding-bottom: 60px;
}

.page-bookmaker-review__faq-list {
  margin-top: 30px;
}

.page-bookmaker-review__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-bookmaker-review__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;
}

.page-bookmaker-review__faq-item.active .page-bookmaker-review__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

.page-bookmaker-review__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-bookmaker-review__faq-question:active {
  background: #eeeeee;
}

.page-bookmaker-review__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-light-bg);
}

.page-bookmaker-review__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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-bookmaker-review__faq-item.active .page-bookmaker-review__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-bookmaker-review__main-title {
    font-size: 32px;
  }
  .page-bookmaker-review__section-title {
    font-size: 26px;
  }
  .page-bookmaker-review__criteria-title {
    font-size: 22px;
  }
  .page-bookmaker-review__card {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-bookmaker-review__introduction-section {
    padding-top: 160px !important; /* Mobile: Ensure content clears fixed header */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-bookmaker-review__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-bookmaker-review__card {
    padding: 25px;
    margin-bottom: 20px;
  }
  .page-bookmaker-review__main-title {
    font-size: 28px;
  }
  .page-bookmaker-review__intro-paragraph {
    font-size: 15px;
  }
  .page-bookmaker-review__section-title {
    font-size: 22px;
  }
  .page-bookmaker-review__criteria-title {
    font-size: 20px;
  }
  .page-bookmaker-review__criteria-item p {
    font-size: 15px;
  }
  .page-bookmaker-review__criteria-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-bookmaker-review__platform-list li {
    font-size: 14px;
    padding: 12px 15px;
  }
  .page-bookmaker-review__cta-button {
    font-size: 16px;
    padding: 12px 25px;
    width: 100%;
    box-sizing: border-box;
  }
  .page-bookmaker-review__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-bookmaker-review__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px);
  }
  .page-bookmaker-review__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-bookmaker-review__faq-answer {
    padding: 0 15px;
  }
  .page-bookmaker-review__faq-item.active .page-bookmaker-review__faq-answer {
    padding: 15px !important;
  }
}

/* Global image responsiveness for all images */
.page-bookmaker-review img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific image styles */
@media (max-width: 768px) {
  .page-bookmaker-review img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-bookmaker-review__section,
  .page-bookmaker-review__card,
  .page-bookmaker-review__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}