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

/* Base styles for the page content */
.page-resources-online-gambling-safety-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the main content area */
}

/* Ensure body padding for fixed header */
.page-resources-online-gambling-safety-guide__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General container for content sections */
.page-resources-online-gambling-safety-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-resources-online-gambling-safety-guide__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

/* Paragraphs */
.page-resources-online-gambling-safety-guide__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Dark background sections */
.page-resources-online-gambling-safety-guide__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for contrast */
}

.page-resources-online-gambling-safety-guide__dark-bg .page-resources-online-gambling-safety-guide__section-title {
  color: #ffffff; /* White title for dark background */
}

/* Hero Section */
.page-resources-online-gambling-safety-guide__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #017439, #004d2c); /* Gradient background with brand colors */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources-online-gambling-safety-guide__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-resources-online-gambling-safety-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-resources-online-gambling-safety-guide__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-resources-online-gambling-safety-guide__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-online-gambling-safety-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15; /* Subtle background image */
}

.page-resources-online-gambling-safety-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Buttons */
.page-resources-online-gambling-safety-guide__btn-primary,
.page-resources-online-gambling-safety-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container width */
}

.page-resources-online-gambling-safety-guide__btn-primary {
  background-color: #C30808; /* Red for primary action (Register) */
  color: #FFFF00; /* Yellow for button text */
  border: 2px solid #C30808;
}

.page-resources-online-gambling-safety-guide__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-resources-online-gambling-safety-guide__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color for secondary button text */
  border: 2px solid #ffffff;
}

.page-resources-online-gambling-safety-guide__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Grid layout for cards */
.page-resources-online-gambling-safety-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Cards */
.page-resources-online-gambling-safety-guide__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-online-gambling-safety-guide__card:hover {
  transform: translateY(-5px);
}

.page-resources-online-gambling-safety-guide__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-online-gambling-safety-guide__card-image {
  width: 100%; /* Ensure image fills card width */
  max-width: 400px; /* Max width for card images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources-online-gambling-safety-guide__card-text {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

/* Feature List */
.page-resources-online-gambling-safety-guide__feature-list,
.page-resources-online-gambling-safety-guide__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-online-gambling-safety-guide__feature-item,
.page-resources-online-gambling-safety-guide__responsibility-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  transition: background-color 0.3s ease;
}

.page-resources-online-gambling-safety-guide__feature-item:hover,
.page-resources-online-gambling-safety-guide__responsibility-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-online-gambling-safety-guide__feature-title,
.page-resources-online-gambling-safety-guide__responsibility-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-online-gambling-safety-guide__feature-text,
.page-resources-online-gambling-safety-guide__responsibility-text {
  font-size: 1em;
  color: #f0f0f0;
  text-align: justify;
}

/* Video Section */
.page-resources-online-gambling-safety-guide__video-section {
  background-color: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
}

.page-resources-online-gambling-safety-guide__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 30px auto 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background-color: #000;
}

.page-resources-online-gambling-safety-guide__video-wrapper .page-resources-online-gambling-safety-guide__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-resources-online-gambling-safety-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* FAQ Section */
.page-resources-online-gambling-safety-guide__faq-section {
  background-color: #ffffff;
  padding: 60px 20px;
}

.page-resources-online-gambling-safety-guide__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-resources-online-gambling-safety-guide__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-resources-online-gambling-safety-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #017439;
  font-size: 1.1em;
}

.page-resources-online-gambling-safety-guide__faq-question:hover {
  background-color: #e0e0e0;
}

.page-resources-online-gambling-safety-guide__faq-question h3 {
  margin: 0;
  font-size: 1.1em; /* Adjust h3 size within question */
  color: #017439;
}

.page-resources-online-gambling-safety-guide__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-online-gambling-safety-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
  text-align: justify;
}

/* Crucial for FAQ expand functionality */
.page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px !important;
}

/* CTA Section */
.page-resources-online-gambling-safety-guide__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(90deg, #017439, #004d2c); /* Gradient for CTA */
  color: #ffffff;
}

.page-resources-online-gambling-safety-guide__cta-section .page-resources-online-gambling-safety-guide__section-title {
  color: #ffffff;
}

.page-resources-online-gambling-safety-guide__cta-section .page-resources-online-gambling-safety-guide__paragraph {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.2em;
}

.page-resources-online-gambling-safety-guide__cta-button {
  margin: 0 10px;
  min-width: 200px; /* Ensure buttons are not too small */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-gambling-safety-guide__hero-title {
    font-size: 2.8em;
  }
  .page-resources-online-gambling-safety-guide__hero-description {
    font-size: 1.1em;
  }
  .page-resources-online-gambling-safety-guide__section-title {
    font-size: 2em;
  }
}

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

  /* Fixed header offset for mobile */
  .page-resources-online-gambling-safety-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-online-gambling-safety-guide__hero-title {
    font-size: 2.2em;
  }
  .page-resources-online-gambling-safety-guide__hero-description {
    font-size: 1em;
  }
  .page-resources-online-gambling-safety-guide__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-online-gambling-safety-guide__btn-primary,
  .page-resources-online-gambling-safety-guide__btn-secondary,
  .page-resources-online-gambling-safety-guide a[class*="button"],
  .page-resources-online-gambling-safety-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources-online-gambling-safety-guide__cta-buttons,
  .page-resources-online-gambling-safety-guide__button-group,
  .page-resources-online-gambling-safety-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources-online-gambling-safety-guide__section-title {
    font-size: 1.8em;
  }

  .page-resources-online-gambling-safety-guide__container {
    padding: 20px 15px; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-resources-online-gambling-safety-guide__card {
    padding: 20px;
  }

  .page-resources-online-gambling-safety-guide__feature-list,
  .page-resources-online-gambling-safety-guide__responsibility-list {
    grid-template-columns: 1fr;
  }

  .page-resources-online-gambling-safety-guide__video-section {
    padding: 40px 15px;
  }

  .page-resources-online-gambling-safety-guide__video-wrapper {
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-online-gambling-safety-guide video,
  .page-resources-online-gambling-safety-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-online-gambling-safety-guide__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-resources-online-gambling-safety-guide__faq-question h3 {
    font-size: 1em;
  }

  .page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-answer {
    padding: 10px 20px !important;
  }

  .page-resources-online-gambling-safety-guide__cta-section {
    padding: 60px 15px;
  }
  .page-resources-online-gambling-safety-guide__cta-button {
    margin: 10px 0;
  }

  /* All images responsive */
  .page-resources-online-gambling-safety-guide img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images responsive */
  .page-resources-online-gambling-safety-guide__section,
  .page-resources-online-gambling-safety-guide__card,
  .page-resources-online-gambling-safety-guide__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-online-gambling-safety-guide__hero-title {
    font-size: 1.8em;
  }
  .page-resources-online-gambling-safety-guide__section-title {
    font-size: 1.5em;
  }
}