/* style/resources-safe-betting-guide.css */

/* Base styles and color contrast */
.page-resources-safe-betting-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

.page-resources-safe-betting-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section spacing */
.page-resources-safe-betting-guide__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: bold;
}

.page-resources-safe-betting-guide__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly lighter white for paragraphs */
}

/* Hero Section */
.page-resources-safe-betting-guide__hero-section {
  position: relative;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  min-height: 500px;
}

.page-resources-safe-betting-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-resources-safe-betting-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-resources-safe-betting-guide__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-safe-betting-guide__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-safe-betting-guide__hero-cta:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-resources-safe-betting-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

/* Content Area */
.page-resources-safe-betting-guide__content-area {
  padding: 60px 0;
}

.page-resources-safe-betting-guide__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

/* Feature Grid */
.page-resources-safe-betting-guide__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-safe-betting-guide__feature-item {
  background-color: #1a1a1a; /* Slightly lighter dark for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources-safe-betting-guide__feature-item:hover {
  transform: translateY(-5px);
}

.page-resources-safe-betting-guide__feature-icon {
  width: 250px; /* Minimum 200px */
  height: 187px; /* Maintain aspect ratio for 400x300 image, will be scaled */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources-safe-betting-guide__feature-title {
  font-size: 1.6em;
  color: #017439; /* Brand primary for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-safe-betting-guide__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Bullet List */
.page-resources-safe-betting-guide__bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 60px;
}

.page-resources-safe-betting-guide__list-item {
  background-color: #1a1a1a;
  border-left: 5px solid #017439; /* Brand primary accent */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-resources-safe-betting-guide__list-item strong {
  color: #ffffff;
}

/* Image Text Block */
.page-resources-safe-betting-guide__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-safe-betting-guide__image-left {
  flex: 0 0 45%;
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-resources-safe-betting-guide__text-content {
  flex: 1;
}

/* Ordered List */
.page-resources-safe-betting-guide__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 30px;
  margin-bottom: 60px;
  color: #f0f0f0;
}

.page-resources-safe-betting-guide__ordered-list .page-resources-safe-betting-guide__list-item {
  background-color: transparent;
  border-left: none;
  padding: 0;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-resources-safe-betting-guide__ordered-list .page-resources-safe-betting-guide__list-item strong {
  color: #ffffff;
}

/* CTA Banner */
.page-resources-safe-betting-guide__cta-banner {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 50px 30px;
  border-radius: 10px;
  text-align: center;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-betting-guide__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources-safe-betting-guide__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-safe-betting-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-safe-betting-guide__btn-register,
.page-resources-safe-betting-guide__btn-login {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-safe-betting-guide__btn-register {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
}

.page-resources-safe-betting-guide__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-resources-safe-betting-guide__btn-login {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
}

.page-resources-safe-betting-guide__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-resources-safe-betting-guide__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-safe-betting-guide__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-betting-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Brand primary for question background */
  color: #ffffff;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-safe-betting-guide__faq-question:hover {
  background-color: #005a2d;
}

.page-resources-safe-betting-guide__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-resources-safe-betting-guide__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Yellow for toggle icon */
}

.page-resources-safe-betting-guide__faq-item.active .page-resources-safe-betting-guide__faq-toggle {
  transform: rotate(0deg); /* Reset for minus sign */
}

.page-resources-safe-betting-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-resources-safe-betting-guide__faq-item.active .page-resources-safe-betting-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 20px 25px;
}

.page-resources-safe-betting-guide__faq-answer .page-resources-safe-betting-guide__paragraph {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-safe-betting-guide__hero-title {
    font-size: 3em;
  }

  .page-resources-safe-betting-guide__hero-description {
    font-size: 1.1em;
  }

  .page-resources-safe-betting-guide__section-title {
    font-size: 2em;
  }

  .page-resources-safe-betting-guide__feature-item {
    padding: 25px;
  }

  .page-resources-safe-betting-guide__feature-icon {
    width: 200px;
    height: 150px;
  }

  .page-resources-safe-betting-guide__feature-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-resources-safe-betting-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-safe-betting-guide__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-safe-betting-guide__hero-title {
    font-size: 2.5em;
  }

  .page-resources-safe-betting-guide__hero-description {
    font-size: 1em;
  }

  .page-resources-safe-betting-guide__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-resources-safe-betting-guide__paragraph,
  .page-resources-safe-betting-guide__list-item,
  .page-resources-safe-betting-guide__feature-description {
    font-size: 1em;
  }

  .page-resources-safe-betting-guide__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-safe-betting-guide__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources-safe-betting-guide__image-left {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-safe-betting-guide__cta-title {
    font-size: 1.8em;
  }

  .page-resources-safe-betting-guide__cta-description {
    font-size: 1em;
  }

  .page-resources-safe-betting-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-safe-betting-guide__btn-register,
  .page-resources-safe-betting-guide__btn-login {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-safe-betting-guide__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources-safe-betting-guide__faq-toggle {
    font-size: 1.5em;
  }

  .page-resources-safe-betting-guide__faq-answer {
    padding: 15px 20px;
  }

  .page-resources-safe-betting-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-safe-betting-guide__section,
  .page-resources-safe-betting-guide__card,
  .page-resources-safe-betting-guide__container,
  .page-resources-safe-betting-guide__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources-safe-betting-guide__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-safe-betting-guide__hero-title {
    font-size: 2em;
  }

  .page-resources-safe-betting-guide__section-title {
    font-size: 1.5em;
  }

  .page-resources-safe-betting-guide__cta-title {
    font-size: 1.5em;
  }
}