/* style/responsible-gambling-guide.css */

/* Base styles for the page content */
.page-responsible-gambling-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Sections */
.page-responsible-gambling-guide__section {
  padding: 60px 20px;
  text-align: center;
}

.page-responsible-gambling-guide__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-responsible-gambling-guide__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Container for content width */
.page-responsible-gambling-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-responsible-gambling-guide__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* To contain the hero image */
}

.page-responsible-gambling-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-responsible-gambling-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-responsible-gambling-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.page-responsible-gambling-guide__hero-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* General Buttons */
.page-responsible-gambling-guide__btn-primary,
.page-responsible-gambling-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-responsible-gambling-guide__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-responsible-gambling-guide__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-responsible-gambling-guide__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-responsible-gambling-guide__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Specific button styles for Register/Login */
.page-responsible-gambling-guide__hero-cta-group .page-responsible-gambling-guide__btn-primary,
.page-responsible-gambling-guide__cta-buttons a[href*="redirect?plink_id"],
.page-responsible-gambling-guide__cta-buttons a[href="login.html"] {
  background-color: #C30808; /* Register/Login background */
  color: #FFFF00; /* Register/Login text color */
  border-color: #C30808;
}

.page-responsible-gambling-guide__hero-cta-group .page-responsible-gambling-guide__btn-primary:hover,
.page-responsible-gambling-guide__cta-buttons a[href*="redirect?plink_id"]:hover,
.page-responsible-gambling-guide__cta-buttons a[href="login.html"]:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Section Titles and Paragraphs */
.page-responsible-gambling-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  color: inherit; /* Inherit from section for contrast */
}

.page-responsible-gambling-guide__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit from section for contrast */
  text-align: left;
}

.page-responsible-gambling-guide__paragraph a {
  color: #007bff; /* Standard link color */
  text-decoration: underline;
}

.page-responsible-gambling-guide__paragraph a:hover {
  color: #0056b3;
}

/* Lists */
.page-responsible-gambling-guide__list {
  list-style: disc inside;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding-left: 20px;
  color: inherit;
}

.page-responsible-gambling-guide__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Card Grid */
.page-responsible-gambling-guide__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-responsible-gambling-guide__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
  color: #ffffff; /* Light text for dark cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gambling-guide__light-bg .page-responsible-gambling-guide__card {
  background-color: #f8f8f8; /* Light background for light sections */
  color: #333333; /* Dark text for light cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling-guide__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit;
}

.page-responsible-gambling-guide__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
  color: inherit;
}

.page-responsible-gambling-guide__card .page-responsible-gambling-guide__btn-primary {
  margin-top: auto; /* Push button to bottom */
}


/* Image styling */
.page-responsible-gambling-guide__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Video Section */
.page-responsible-gambling-guide__video-section {
  padding-top: 60px; /* Video section has its own padding, header offset handled by hero */
  padding-bottom: 60px;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-responsible-gambling-guide__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer; /* Indicate video is clickable */
}

.page-responsible-gambling-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Ensure it takes full width */
}

/* CTA Buttons Group */
.page-responsible-gambling-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* FAQ Section */
.page-responsible-gambling-guide__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-responsible-gambling-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-responsible-gambling-guide__light-bg .page-responsible-gambling-guide__faq-item {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-responsible-gambling-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-responsible-gambling-guide__light-bg .page-responsible-gambling-guide__faq-question {
  background-color: #ececec;
}

.page-responsible-gambling-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling-guide__light-bg .page-responsible-gambling-guide__faq-question:hover {
  background-color: #e0e0e0;
}

.page-responsible-gambling-guide__faq-title {
  font-size: 1.2em;
  margin: 0;
  font-weight: bold;
  color: inherit;
}

.page-responsible-gambling-guide__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: inherit;
}

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

.page-responsible-gambling-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-responsible-gambling-guide__faq-item.active .page-responsible-gambling-guide__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

.page-responsible-gambling-guide__faq-answer .page-responsible-gambling-guide__paragraph {
  margin-bottom: 0;
  font-size: 1em;
  text-align: left;
  color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling-guide__hero-title {
    font-size: 2.8em;
  }

  .page-responsible-gambling-guide__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    padding-bottom: 60px;
  }

  .page-responsible-gambling-guide__hero-title {
    font-size: 2em;
  }

  .page-responsible-gambling-guide__hero-description {
    font-size: 1em;
  }

  .page-responsible-gambling-guide__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-responsible-gambling-guide__btn-primary,
  .page-responsible-gambling-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-responsible-gambling-guide__section {
    padding: 40px 15px;
  }

  .page-responsible-gambling-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-responsible-gambling-guide__paragraph,
  .page-responsible-gambling-guide__list-item {
    font-size: 0.95em;
  }

  .page-responsible-gambling-guide__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-responsible-gambling-guide__card {
    padding: 20px;
  }

  .page-responsible-gambling-guide__card-title {
    font-size: 1.3em;
  }

  /* Image responsive */
  .page-responsible-gambling-guide img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size */
    min-height: 200px !important; /* Enforce min size */
  }

  /* Video responsive */
  .page-responsible-gambling-guide__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gambling-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-responsible-gambling-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* CTA buttons responsive */
  .page-responsible-gambling-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-responsible-gambling-guide__cta-buttons .page-responsible-gambling-guide__btn-primary,
  .page-responsible-gambling-guide__cta-buttons .page-responsible-gambling-guide__btn-secondary {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-responsible-gambling-guide__faq-question {
    padding: 15px;
  }

  .page-responsible-gambling-guide__faq-title {
    font-size: 1.1em;
  }

  .page-responsible-gambling-guide__faq-answer {
    padding: 0 15px;
  }

  .page-responsible-gambling-guide__faq-item.active .page-responsible-gambling-guide__faq-answer {
    padding: 15px;
  }
}