/* style/resources-safe-gambling-tips.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
  --bg-light: #f9f9f9;
}

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

.page-resources-safe-gambling-tips__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a4d80 100%); /* Dark gradient background for hero */
  color: var(--text-light);
  overflow: hidden;
}

.page-resources-safe-gambling-tips__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources-safe-gambling-tips__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.page-resources-safe-gambling-tips__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

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

.page-resources-safe-gambling-tips__main-title .highlight {
  color: var(--secondary-color);
}

.page-resources-safe-gambling-tips__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-resources-safe-gambling-tips__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

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

.page-resources-safe-gambling-tips__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
  margin-right: 20px;
}

.page-resources-safe-gambling-tips__cta-button--secondary:hover {
  background: #004488;
  border-color: #e6c200;
}

.page-resources-safe-gambling-tips__section {
  padding: 60px 20px;
  background-color: var(--text-light);
}

.page-resources-safe-gambling-tips__section--intro {
  background-color: var(--bg-light);
}

.page-resources-safe-gambling-tips__container {
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-resources-safe-gambling-tips__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-resources-safe-gambling-tips__section-title .highlight {
  color: var(--secondary-color);
}

.page-resources-safe-gambling-tips__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources-safe-gambling-tips__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-resources-safe-gambling-tips__text-block h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-safe-gambling-tips__text-block p .highlight {
  font-weight: bold;
  color: var(--primary-color);
}

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

.page-resources-safe-gambling-tips__criteria-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-resources-safe-gambling-tips__criteria-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-safe-gambling-tips__criteria-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-safe-gambling-tips__criteria-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-safe-gambling-tips__criteria-card p {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

.page-resources-safe-gambling-tips__content-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 30px;
}

.page-resources-safe-gambling-tips__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-resources-safe-gambling-tips__content-flex .page-resources-safe-gambling-tips__text-block {
  flex: 1;
}

.page-resources-safe-gambling-tips__content-image {
  flex-shrink: 0;
  width: 45%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-resources-safe-gambling-tips__section--risks, .page-resources-safe-gambling-tips__section--top-picks {
  background-color: var(--bg-light);
}

.page-resources-safe-gambling-tips__button-group {
  text-align: center;
  margin-top: 40px;
}

.page-resources-safe-gambling-tips__faq-list {
  margin-top: 40px;
}

.page-resources-safe-gambling-tips__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #ffffff;
}

.page-resources-safe-gambling-tips__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;
  color: #555555;
}

.page-resources-safe-gambling-tips__faq-item.active .page-resources-safe-gambling-tips__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px !important;
  opacity: 1;
  background: var(--bg-light);
  border-radius: 0 0 8px 8px;
}

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

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

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

.page-resources-safe-gambling-tips__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;
  border-radius: 50%;
  background: #f0f0f0;
}

.page-resources-safe-gambling-tips__faq-item.active .page-resources-safe-gambling-tips__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
  background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-safe-gambling-tips__main-title {
    font-size: 38px;
  }
  .page-resources-safe-gambling-tips__hero-description {
    font-size: 18px;
  }
  .page-resources-safe-gambling-tips__section-title {
    font-size: 32px;
  }
  .page-resources-safe-gambling-tips__text-block {
    font-size: 16px;
  }
  .page-resources-safe-gambling-tips__text-block h3 {
    font-size: 22px;
  }
  .page-resources-safe-gambling-tips__criteria-card h3 {
    font-size: 20px;
  }
  .page-resources-safe-gambling-tips__criteria-icon {
    width: 80px;
  }
  .page-resources-safe-gambling-tips__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources-safe-gambling-tips__content-flex--reverse {
    flex-direction: column-reverse;
  }
  .page-resources-safe-gambling-tips__content-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources-safe-gambling-tips__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-safe-gambling-tips__main-title {
    font-size: 30px;
  }
  .page-resources-safe-gambling-tips__hero-description {
    font-size: 16px;
  }
  .page-resources-safe-gambling-tips__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-resources-safe-gambling-tips__cta-button--secondary {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-resources-safe-gambling-tips__button-group .page-resources-safe-gambling-tips__cta-button {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-resources-safe-gambling-tips__section {
    padding: 40px 15px;
  }
  .page-resources-safe-gambling-tips__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources-safe-gambling-tips__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-resources-safe-gambling-tips__text-block {
    font-size: 15px;
  }
  .page-resources-safe-gambling-tips__text-block h3 {
    font-size: 20px;
  }
  .page-resources-safe-gambling-tips__criteria-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-safe-gambling-tips__criteria-card {
    padding: 25px;
  }
  .page-resources-safe-gambling-tips__criteria-icon {
    width: 70px;
  }
  .page-resources-safe-gambling-tips__content-flex {
    gap: 20px;
  }
  .page-resources-safe-gambling-tips__faq-question {
    padding: 15px;
  }
  .page-resources-safe-gambling-tips__faq-question h3 {
    font-size: 16px;
  }
  .page-resources-safe-gambling-tips__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources-safe-gambling-tips__faq-item.active .page-resources-safe-gambling-tips__faq-answer {
    padding: 15px !important;
  }
  .page-resources-safe-gambling-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-safe-gambling-tips__section,
  .page-resources-safe-gambling-tips__card,
  .page-resources-safe-gambling-tips__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-safe-gambling-tips__main-title {
    font-size: 26px;
  }
  .page-resources-safe-gambling-tips__section-title {
    font-size: 22px;
  }
  .page-resources-safe-gambling-tips__text-block h3 {
    font-size: 18px;
  }
  .page-resources-safe-gambling-tips__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-resources-safe-gambling-tips__faq-question h3 {
    font-size: 15px;
  }
}