/* style/resources-how-to-choose-a-reliable-bookmaker.css */

/* Base styles for the page content */
.page-resources-how-to-choose-a-reliable-bookmaker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Main content background will be transparent to show body background */
  padding-top: 0; /* Handled by hero section or specific content areas if needed */
}

.page-resources-how-to-choose-a-reliable-bookmaker__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-resources-how-to-choose-a-reliable-bookmaker__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-resources-how-to-choose-a-reliable-bookmaker__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-resources-how-to-choose-a-reliable-bookmaker__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-how-to-choose-a-reliable-bookmaker__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-how-to-choose-a-reliable-bookmaker__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login button color */
  color: #000000; /* Text color for register/login button for contrast (WCAG AA) */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-resources-how-to-choose-a-reliable-bookmaker__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-resources-how-to-choose-a-reliable-bookmaker__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

.page-resources-how-to-choose-a-reliable-bookmaker__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff; /* Text color for this section */
  background-color: #0a0a0a; /* Ensure dark background for this section */
}

.page-resources-how-to-choose-a-reliable-bookmaker__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-resources-how-to-choose-a-reliable-bookmaker__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #C30808;
  border-radius: 2px;
}

.page-resources-how-to-choose-a-reliable-bookmaker__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources-how-to-choose-a-reliable-bookmaker__highlight {
  color: #FFFF00; /* Highlight color for keywords, per custom color scheme */
  font-weight: bold;
}

.page-resources-how-to-choose-a-reliable-bookmaker__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.page-resources-how-to-choose-a-reliable-bookmaker__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-how-to-choose-a-reliable-bookmaker__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-resources-how-to-choose-a-reliable-bookmaker__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-how-to-choose-a-reliable-bookmaker__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure images are responsive */
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources-how-to-choose-a-reliable-bookmaker__card-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for card titles */
  margin-bottom: 15px;
}

.page-resources-how-to-choose-a-reliable-bookmaker__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* FAQ Section */
.page-resources-how-to-choose-a-reliable-bookmaker__faq-list {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-question:hover {
  color: #017439;
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-heading {
  font-size: 1.2em;
  margin: 0;
  color: inherit;
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-item.active .page-resources-how-to-choose-a-reliable-bookmaker__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-item.active .page-resources-how-to-choose-a-reliable-bookmaker__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px;
}

.page-resources-how-to-choose-a-reliable-bookmaker__faq-answer p {
  margin-bottom: 0;
  color: #e0e0e0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-how-to-choose-a-reliable-bookmaker__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__main-title {
    font-size: 1.8em;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__intro-text {
    font-size: 1em;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__section-title {
    font-size: 1.8em;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__content-area {
    padding: 30px 15px;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__paragraph,
  .page-resources-how-to-choose-a-reliable-bookmaker__card-text {
    font-size: 0.95em;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__card-image {
    height: 200px; /* Adjust height for mobile while keeping >=200px */
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__faq-question {
    padding: 15px 0;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__faq-heading {
    font-size: 1.1em;
  }

  /* Ensure images and content don't overflow */
  .page-resources-how-to-choose-a-reliable-bookmaker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-how-to-choose-a-reliable-bookmaker__section,
  .page-resources-how-to-choose-a-reliable-bookmaker__card,
  .page-resources-how-to-choose-a-reliable-bookmaker__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-how-to-choose-a-reliable-bookmaker__btn-primary {
    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;
  }
  .page-resources-how-to-choose-a-reliable-bookmaker__btn-center {
    max-width: 100% !important; /* Override fixed width for mobile */
  }
}

/* Global image rules for content area - min 200px and no filter */
.page-resources-how-to-choose-a-reliable-bookmaker img {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  filter: none; /* Absolutely no filter to change image color */
}

/* Ensure contrast for specific elements */
.page-resources-how-to-choose-a-reliable-bookmaker__dark-bg {
  background: #0a0a0a;
  color: #ffffff;
}

.page-resources-how-to-choose-a-reliable-bookmaker__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Dark background for card */
  color: #ffffff; /* White text for card */
}

.page-resources-how-to-choose-a-reliable-bookmaker__card-title {
  color: #017439; /* Brand color for titles on dark background */
}

.page-resources-how-to-choose-a-reliable-bookmaker__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #000000; /* Black text for contrast on red button (WCAG AA compliant) */
}