/* style/resources-safe-betting-practices.css */
:root {
    --primary-color: #1E3A8A;
    --secondary-color: #F59E0B;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-safe-betting-practices {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark);
}

/* Fixed Nav Bar Spacing */
.page-resources-safe-betting-practices__hero-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources-safe-betting-practices__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-safe-betting-practices__hero-image {
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-betting-practices__hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-resources-safe-betting-practices__hero-content {
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
}

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

.page-resources-safe-betting-practices__main-title-link,
.page-resources-safe-betting-practices__hero-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-safe-betting-practices__main-title-link:hover,
.page-resources-safe-betting-practices__hero-link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.page-resources-safe-betting-practices__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-resources-safe-betting-practices__cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-resources-safe-betting-practices__cta-button:hover {
    background: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-betting-practices__content-section {
    padding: 60px 0;
    background-color: var(--bg-light); /* Light background for content */
    color: var(--text-dark); /* Dark text on light background */
}

.page-resources-safe-betting-practices__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources-safe-betting-practices__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.page-resources-safe-betting-practices__section-title-link {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources-safe-betting-practices__section-title-link:hover {
    text-decoration: underline;
}

.page-resources-safe-betting-practices__text-block {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.8;
}

.page-resources-safe-betting-practices__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources-safe-betting-practices__text-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

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

.page-resources-safe-betting-practices__card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-resources-safe-betting-practices__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-safe-betting-practices__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-safe-betting-practices__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-resources-safe-betting-practices__card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources-safe-betting-practices__card-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.page-resources-safe-betting-practices__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources-safe-betting-practices__list-item {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
}

.page-resources-safe-betting-practices__list-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources-safe-betting-practices__list-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-resources-safe-betting-practices__list-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources-safe-betting-practices__list-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.page-resources-safe-betting-practices__button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-resources-safe-betting-practices__btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-resources-safe-betting-practices__btn-primary:hover {
    background: #142a6b;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-betting-practices__btn-link {
    color: var(--text-light);
    text-decoration: none;
}

.page-resources-safe-betting-practices__btn-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-resources-safe-betting-practices__faq-section {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-resources-safe-betting-practices__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-safe-betting-practices__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-resources-safe-betting-practices__faq-item.active .page-resources-safe-betting-practices__faq-answer {
  max-height: 2000px !important; /* Ensure content can fully expand */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources-safe-betting-practices__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-safe-betting-practices__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-safe-betting-practices__faq-question:active {
  background: #eeeeee;
}

.page-resources-safe-betting-practices__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-dark);
}

.page-resources-safe-betting-practices__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-resources-safe-betting-practices__faq-item.active .page-resources-safe-betting-practices__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-resources-safe-betting-practices__faq-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources-safe-betting-practices__faq-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-safe-betting-practices__main-title {
        font-size: 2.8em;
    }
    .page-resources-safe-betting-practices__hero-description {
        font-size: 1.1em;
    }
    .page-resources-safe-betting-practices__section-title {
        font-size: 2em;
    }
    .page-resources-safe-betting-practices__card-title {
        font-size: 1.3em;
    }
    .page-resources-safe-betting-practices__list-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-resources-safe-betting-practices__hero-section {
        padding-top: 140px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
    }
    .page-resources-safe-betting-practices__hero-container,
    .page-resources-safe-betting-practices__container,
    .page-resources-safe-betting-practices__grid,
    .page-resources-safe-betting-practices__list,
    .page-resources-safe-betting-practices__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-safe-betting-practices__hero-image {
        margin-bottom: 20px;
    }
    .page-resources-safe-betting-practices__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources-safe-betting-practices__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-resources-safe-betting-practices__cta-button {
        padding: 14px 30px;
        font-size: 1em;
    }
    .page-resources-safe-betting-practices__content-section {
        padding: 40px 0;
    }
    .page-resources-safe-betting-practices__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources-safe-betting-practices__text-block,
    .page-resources-safe-betting-practices__card-text,
    .page-resources-safe-betting-practices__list-text {
        font-size: 0.95em;
    }
    .page-resources-safe-betting-practices__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-safe-betting-practices__card {
        padding: 25px;
    }
    .page-resources-safe-betting-practices__card-title {
        font-size: 1.2em;
    }
    .page-resources-safe-betting-practices__list-item {
        padding: 20px;
    }
    .page-resources-safe-betting-practices__list-title {
        font-size: 1.1em;
    }
    .page-resources-safe-betting-practices__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources-safe-betting-practices__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    .page-resources-safe-betting-practices__faq-question h3 {
      font-size: 15px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    .page-resources-safe-betting-practices__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    .page-resources-safe-betting-practices__faq-answer {
      padding: 0 15px;
    }
    .page-resources-safe-betting-practices__faq-item.active .page-resources-safe-betting-practices__faq-answer {
      padding: 15px !important;
    }

    /* Ensure all images adapt to mobile */
    .page-resources-safe-betting-practices img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}