/* style/resources-online-gambling-safety.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --bg-dark: #0A2463;
  --border-color: #e0e0e0;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gambling-safety {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default for light backgrounds */
}

.page-resources-online-gambling-safety__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Top section with main title and description */
.page-resources-online-gambling-safety__intro-section {
  padding: 60px 20px;
  padding-top: 120px; /* Desktop padding for fixed header */
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-light);
}

.page-resources-online-gambling-safety__main-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources-online-gambling-safety__highlight-text {
  color: var(--secondary-color);
}

.page-resources-online-gambling-safety__description-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-resources-online-gambling-safety__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  border: none;
}

.page-resources-online-gambling-safety__cta-button:hover {
  background: #f0c52e; /* Slightly darker secondary color */
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}

.page-resources-online-gambling-safety__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-resources-online-gambling-safety__cta-button--secondary:hover {
  background: #071b4a;
  border-color: #f0c52e;
}

.page-resources-online-gambling-safety__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-resources-online-gambling-safety__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-online-gambling-safety__text-content p,
.page-resources-online-gambling-safety__list li {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-resources-online-gambling-safety__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources-online-gambling-safety__list li {
  margin-bottom: 8px;
}

.page-resources-online-gambling-safety__list strong {
  color: var(--primary-color);
}

.page-resources-online-gambling-safety__light-bg {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 20px;
}

.page-resources-online-gambling-safety__dark-bg {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 20px;
}

.page-resources-online-gambling-safety__dark-bg .page-resources-online-gambling-safety__section-title,
.page-resources-online-gambling-safety__dark-bg .page-resources-online-gambling-safety__sub-title {
  color: var(--secondary-color);
}

.page-resources-online-gambling-safety__dark-bg .page-resources-online-gambling-safety__text-content p,
.page-resources-online-gambling-safety__dark-bg .page-resources-online-gambling-safety__list li {
  color: var(--text-light);
}

.page-resources-online-gambling-safety__dark-bg .page-resources-online-gambling-safety__list strong {
  color: var(--secondary-color);
}

.page-resources-online-gambling-safety__content-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-resources-online-gambling-safety__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-resources-online-gambling-safety__text-content {
  flex: 1;
}

.page-resources-online-gambling-safety__image-wrapper {
  flex: 0 0 45%; /* Fixed width for image column */
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources-online-gambling-safety__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  object-fit: cover;
}

/* Links in content */
.page-resources-online-gambling-safety a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-resources-online-gambling-safety a:hover {
  color: var(--secondary-color);
}

.page-resources-online-gambling-safety__dark-bg a {
  color: var(--secondary-color);
}

.page-resources-online-gambling-safety__dark-bg a:hover {
  color: #f0c52e;
}

/* FAQ Section */
.page-resources-online-gambling-safety__section-faq {
  padding-bottom: 80px;
}

.page-resources-online-gambling-safety__faq-list {
  margin-top: 40px;
}

.page-resources-online-gambling-safety__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-resources-online-gambling-safety__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 20px;
  opacity: 0;
}

.page-resources-online-gambling-safety__faq-item.active .page-resources-online-gambling-safety__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.page-resources-online-gambling-safety__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-online-gambling-safety__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-online-gambling-safety__faq-question:active {
  background: #eeeeee;
}

.page-resources-online-gambling-safety__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-resources-online-gambling-safety__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 32px;
  height: 32px;
}

.page-resources-online-gambling-safety__faq-item.active .page-resources-online-gambling-safety__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-resources-online-gambling-safety__faq-answer p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-online-gambling-safety__main-title {
    font-size: 32px;
  }
  .page-resources-online-gambling-safety__description-text {
    font-size: 16px;
  }
  .page-resources-online-gambling-safety__section-title {
    font-size: 28px;
  }
  .page-resources-online-gambling-safety__sub-title {
    font-size: 22px;
  }
  .page-resources-online-gambling-safety__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources-online-gambling-safety__image-wrapper {
    max-width: 100%;
    order: -1; /* Image first on mobile */
  }
  .page-resources-online-gambling-safety__content-grid--reverse .page-resources-online-gambling-safety__image-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-resources-online-gambling-safety__intro-section {
    padding-top: 100px !important; /* Mobile padding for fixed header */
    padding: 40px 15px;
  }
  .page-resources-online-gambling-safety__main-title {
    font-size: 28px;
  }
  .page-resources-online-gambling-safety__description-text {
    font-size: 15px;
  }
  .page-resources-online-gambling-safety__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-resources-online-gambling-safety__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-resources-online-gambling-safety__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-resources-online-gambling-safety__text-content p,
  .page-resources-online-gambling-safety__list li {
    font-size: 15px;
  }
  .page-resources-online-gambling-safety__light-bg, .page-resources-online-gambling-safety__dark-bg {
    padding: 40px 15px;
  }
  .page-resources-online-gambling-safety__faq-question {
    padding: 15px;
  }
  .page-resources-online-gambling-safety__faq-question h3 {
    font-size: 16px;
  }
  .page-resources-online-gambling-safety__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources-online-gambling-safety__faq-answer {
    padding: 0 15px;
  }
  .page-resources-online-gambling-safety__faq-item.active .page-resources-online-gambling-safety__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive and do not overflow */
  .page-resources-online-gambling-safety img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-online-gambling-safety__section,
  .page-resources-online-gambling-safety__container,
  .page-resources-online-gambling-safety__content-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}