/* style/responsible-gambling.css */

/* Base styles for the page content */
.page-responsible-gambling {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main Text color on dark backgrounds */
  background-color: #08160F; /* Background color */
}

.page-responsible-gambling__section {
  padding: 60px 20px;
  text-align: center;
}

.page-responsible-gambling__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-responsible-gambling__heading {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: #F2FFF6; /* Main Text color */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-responsible-gambling__lead-text {
  font-size: 1.25rem;
  color: #A7D9B8; /* Secondary Text color */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__text-block {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-responsible-gambling__text-block p {
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-responsible-gambling__text-block ul {
  list-style: disc inside;
  text-align: left;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-responsible-gambling__text-block li {
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-responsible-gambling__highlight {
  color: #F2C14E; /* Gold color for highlights */
  font-weight: bold;
}

/* Hero Section */
.page-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom */
  overflow: hidden;
}

.page-responsible-gambling__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-50px); /* Slightly overlap the image */
}

.page-responsible-gambling__main-title {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* CTA Buttons */
.page-responsible-gambling__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-responsible-gambling__cta-buttons--centered {
  margin-top: 50px;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  text-align: center;
}

.page-responsible-gambling__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Main Text color */
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-responsible-gambling__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-responsible-gambling__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Green color */
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.2);
}

.page-responsible-gambling__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

/* Dark background section */
.page-responsible-gambling__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

/* Feature Grid */
.page-responsible-gambling__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-responsible-gambling__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Main Text color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-responsible-gambling__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F2C14E; /* Gold color */
  margin-bottom: 15px;
}

.page-responsible-gambling__card p {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary Text color */
}

/* Support Grid */
.page-responsible-gambling__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-responsible-gambling__support-grid .page-responsible-gambling__card-image {
  height: 200px; /* Slightly smaller images for support cards */
}

/* FAQ Section */
.page-responsible-gambling__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-responsible-gambling__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #F2C14E; /* Gold color */
  cursor: pointer;
  background-color: #11271B;
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-question {
  background-color: #1E3A2A;
}

.page-responsible-gambling__faq-qtext {
  flex-grow: 1;
}

.page-responsible-gambling__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Green color */
}

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-responsible-gambling__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary Text color */
  line-height: 1.7;
}

/* Hide default details marker */
.page-responsible-gambling__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-responsible-gambling__faq-item summary::marker {
  display: none;
}

/* CTA Section */
.page-responsible-gambling__cta-section {
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
}

.page-responsible-gambling__cta-content {
  max-width: 800px;
}

/* Links within text */
.page-responsible-gambling__text-block a,
.page-responsible-gambling__faq-answer a {
  color: #2AD16F; /* Green color for links */
  text-decoration: underline;
  font-weight: bold;
}

.page-responsible-gambling__text-block a:hover,
.page-responsible-gambling__faq-answer a:hover {
  color: #F2C14E; /* Gold on hover */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-content {
    transform: translateY(0);
  }
  .page-responsible-gambling__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__section {
    padding: 40px 15px;
  }

  .page-responsible-gambling__content-area,
  .page-responsible-gambling__text-block {
    padding: 0 15px;
  }

  .page-responsible-gambling__heading {
    font-size: 2rem;
  }

  .page-responsible-gambling__lead-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-responsible-gambling__hero-section {
    padding: 10px 15px 40px 15px;
    min-height: 400px;
  }

  .page-responsible-gambling__hero-image-wrapper {
    max-height: 400px;
  }

  .page-responsible-gambling__hero-content {
    padding: 15px;
  }

  .page-responsible-gambling__main-title {
    font-size: 2.2rem;
  }

  /* Mobile image responsiveness */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-responsible-gambling__section,
  .page-responsible-gambling__card,
  .page-responsible-gambling__container,
  .page-responsible-gambling__hero-image-wrapper,
  .page-responsible-gambling__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-responsible-gambling__text-block,
  .page-responsible-gambling__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-responsible-gambling__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Mobile button responsiveness */
  .page-responsible-gambling__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-responsible-gambling__cta-buttons,
  .page-responsible-gambling__button-group,
  .page-responsible-gambling__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-responsible-gambling__card-image {
    height: 200px;
  }

  .page-responsible-gambling__card {
    padding: 20px;
  }

  .page-responsible-gambling__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-responsible-gambling__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__heading {
    font-size: 1.8rem;
  }

  .page-responsible-gambling__main-title {
    font-size: 1.8rem;
  }

  .page-responsible-gambling__card-title {
    font-size: 1.3rem;
  }
}