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

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-color: #FFFFFF; /* Overriding #FFFF00 for WCAG AA contrast */
  --background-light: #FFFFFF;
  --border-color: #e0e0e0;
}

.page-resources-safe-betting-tips {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-light);
}

.page-resources-safe-betting-tips__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

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

.page-resources-safe-betting-tips__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-resources-safe-betting-tips__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-resources-safe-betting-tips__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  overflow: hidden;
}

.page-resources-safe-betting-tips__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}

.page-resources-safe-betting-tips__section {
  padding: 60px 20px;
}

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

.page-resources-safe-betting-tips__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-resources-safe-betting-tips__subtitle {
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-safe-betting-tips__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-resources-safe-betting-tips__reverse-grid {
  grid-template-columns: 1fr 1fr;
}

.page-resources-safe-betting-tips__reverse-grid .page-resources-safe-betting-tips__text-block {
  order: 2;
}

.page-resources-safe-betting-tips__reverse-grid .page-resources-safe-betting-tips__image-container {
  order: 1;
}

.page-resources-safe-betting-tips__text-block {
  font-size: 1.1em;
  line-height: 1.8;
}

.page-resources-safe-betting-tips__text-block p {
  margin-bottom: 15px;
}

.page-resources-safe-betting-tips__text-light {
  color: var(--text-light);
}

.page-resources-safe-betting-tips__text-light .page-resources-safe-betting-tips__subtitle {
  color: var(--secondary-color);
}

.page-resources-safe-betting-tips__image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources-safe-betting-tips__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-betting-tips__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-safe-betting-tips__card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: var(--text-dark);
}

.page-resources-safe-betting-tips__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources-safe-betting-tips__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-resources-safe-betting-tips__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources-safe-betting-tips__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-resources-safe-betting-tips__spacing-top {
  margin-top: 60px;
}

/* Buttons */
.page-resources-safe-betting-tips__btn-primary,
.page-resources-safe-betting-tips__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-safe-betting-tips__btn-primary {
  background-color: var(--button-register-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFFFF for WCAG AA contrast */
  border: 2px solid var(--button-register-bg);
}

.page-resources-safe-betting-tips__btn-primary:hover {
  background-color: darken(var(--button-register-bg), 10%);
  border-color: darken(var(--button-register-bg), 10%);
}

.page-resources-safe-betting-tips__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-safe-betting-tips__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources-safe-betting-tips a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-resources-safe-betting-tips a:hover {
  color: darken(var(--primary-color), 10%);
}

.page-resources-safe-betting-tips__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-resources-safe-betting-tips__cta-title {
  font-size: 2.5em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-resources-safe-betting-tips__cta-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-safe-betting-tips__cta-link-text {
  color: var(--button-text-color); /* White text for contrast on dark background */
  text-decoration: underline;
}

.page-resources-safe-betting-tips__cta-link-text:hover {
  color: lightgray;
}

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

/* FAQ Section */
.page-resources-safe-betting-tips__faq-section {
  background-color: var(--background-light);
}

.page-resources-safe-betting-tips__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-safe-betting-tips__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-safe-betting-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
}

.page-resources-safe-betting-tips__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-safe-betting-tips__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  user-select: none;
}

.page-resources-safe-betting-tips__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-dark);
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
  background-color: var(--secondary-color);
}

/* Details element specific styling */
.page-resources-safe-betting-tips__faq-item summary {
  list-style: none;
}

.page-resources-safe-betting-tips__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources-safe-betting-tips__faq-item[open] .page-resources-safe-betting-tips__faq-question {
  border-bottom: none;
}

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

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

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

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

  .page-resources-safe-betting-tips__content-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-safe-betting-tips__reverse-grid .page-resources-safe-betting-tips__text-block {
    order: initial;
  }

  .page-resources-safe-betting-tips__reverse-grid .page-resources-safe-betting-tips__image-container {
    order: initial;
  }

  .page-resources-safe-betting-tips__card-grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-resources-safe-betting-tips__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

  .page-resources-safe-betting-tips__hero-description {
    font-size: 0.95em;
  }

  .page-resources-safe-betting-tips__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-resources-safe-betting-tips__btn-primary,
  .page-resources-safe-betting-tips__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-resources-safe-betting-tips__section {
    padding: 40px 15px;
  }

  .page-resources-safe-betting-tips__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-safe-betting-tips__content-grid {
    gap: 30px;
  }

  .page-resources-safe-betting-tips__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-resources-safe-betting-tips__subtitle {
    font-size: 1.2em;
  }

  .page-resources-safe-betting-tips__card {
    padding: 20px;
  }

  .page-resources-safe-betting-tips__card-title {
    font-size: 1.2em;
  }

  .page-resources-safe-betting-tips__cta-section {
    padding: 60px 15px;
  }

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

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

  .page-resources-safe-betting-tips__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-resources-safe-betting-tips img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-safe-betting-tips__section,
  .page-resources-safe-betting-tips__card,
  .page-resources-safe-betting-tips__container,
  .page-resources-safe-betting-tips__hero-image-wrapper,
  .page-resources-safe-betting-tips__image-container,
  .page-resources-safe-betting-tips__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-resources-safe-betting-tips__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources-safe-betting-tips__faq-question {
    padding: 15px;
  }
  .page-resources-safe-betting-tips__faq-answer {
    padding: 15px;
  }
}

/* Ensure contrast for text on various backgrounds */
.page-resources-safe-betting-tips__dark-bg {
  color: var(--text-light); /* Deep background with light text */
  background: var(--primary-color);
}

.page-resources-safe-betting-tips__light-bg {
  color: var(--text-dark); /* Light background with dark text */
  background: var(--background-light);
}

.page-resources-safe-betting-tips p,
.page-resources-safe-betting-tips li {
  color: var(--text-dark); /* Default for most content areas */
}

.page-resources-safe-betting-tips__dark-bg p,
.page-resources-safe-betting-tips__dark-bg li {
  color: var(--text-light);
}

/* Ensure links within dark sections have appropriate color */
.page-resources-safe-betting-tips__dark-bg a {
  color: var(--secondary-color);
}

.page-resources-safe-betting-tips__dark-bg a:hover {
  color: lightgray;
}