/* style/responsible-gambling.css */

/* Global styles for the page content, ensuring contrast with body background */
/* Assuming body background is dark based on #0D0E12, so text should be light */
.page-responsible-gambling {
  font-family: Arial, sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden; /* Ensure nothing overflows */
}

.page-responsible-gambling__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum height for hero image */
}

.page-responsible-gambling__hero-content {
  position: relative; /* Not absolute, to ensure it's below the image */
  z-index: 1;
  padding: 40px 20px 0;
  max-width: 900px;
}

.page-responsible-gambling__main-title {
  color: #FF8C1A; /* Main color */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  /* No fixed font-size, rely on clamp for responsive behavior if needed, but not too large */
  font-size: clamp(2.2em, 4vw, 3.2em); /* Example clamp, ensuring it's not huge on desktop */
}

.page-responsible-gambling__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6; /* Text Main */
}

/* Section titles */
.page-responsible-gambling__section-title {
  color: #FF8C1A; /* Main color */
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Text blocks */
.page-responsible-gambling__text-block {
  margin-bottom: 20px;
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
}

/* Card backgrounds for sections */
.page-responsible-gambling__card-bg {
  background-color: #17191F; /* Card BG */
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 8px;
}

/* Buttons */
.page-responsible-gambling__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-responsible-gambling__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-responsible-gambling__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-responsible-gambling__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-responsible-gambling__btn-secondary {
  background-color: transparent;
  color: #FF8C1A; /* Main color */
  border: 2px solid #FF8C1A; /* Border color */
}

.page-responsible-gambling__btn-secondary:hover {
  background-color: #FF8C1A; /* Main color */
  color: #ffffff;
}

.page-responsible-gambling__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Tools Section */
.page-responsible-gambling__tools-grid,
.page-responsible-gambling__help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-responsible-gambling__tool-card,
.page-responsible-gambling__help-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #A84F0C; /* Border color */
}

.page-responsible-gambling__tool-icon,
.page-responsible-gambling__help-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 300px; /* Max width for icons */
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size for content images */
}

.page-responsible-gambling__tool-title,
.page-responsible-gambling__help-title {
  color: #FFA53A; /* Auxiliary color */
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__tool-description,
.page-responsible-gambling__help-description {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* Problem Gambling Section (Darker background for emphasis) */
.page-responsible-gambling__dark-section {
  background-color: #FF8C1A; /* Main color for dark section */
  color: #ffffff; /* Ensure white text on brand color */
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 8px;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title {
  color: #ffffff; /* White text on dark background */
}

.page-responsible-gambling__dark-section .page-responsible-gambling__text-block {
  color: #ffffff; /* White text on dark background */
}

.page-responsible-gambling__list {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
}

.page-responsible-gambling__dark-section .page-responsible-gambling__list {
  color: #ffffff; /* White text on dark background */
}

.page-responsible-gambling__list-item {
  margin-bottom: 10px;
  font-size: 1em;
}

/* Final CTA Section */
.page-responsible-gambling__final-cta-section {
  text-align: center;
  padding: 40px 0 80px 0;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .page-responsible-gambling__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-responsible-gambling__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 for mobile */
  }

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

  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-responsible-gambling__container {
    padding: 0 15px !important; /* Add padding for mobile content */
  }

  /* Images responsive */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-responsible-gambling__hero-image-wrapper,
  .page-responsible-gambling__tool-card,
  .page-responsible-gambling__help-card,
  .page-responsible-gambling__introduction-section,
  .page-responsible-gambling__tools-section,
  .page-responsible-gambling__problem-gambling-section,
  .page-responsible-gambling__help-section,
  .page-responsible-gambling__underage-section,
  .page-responsible-gambling__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Ensure content is not edge-to-edge */
    padding-right: 15px; /* Ensure content is not edge-to-edge */
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons responsive */
  .page-responsible-gambling__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-responsible-gambling__tools-grid,
  .page-responsible-gambling__help-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-responsible-gambling__tool-card,
  .page-responsible-gambling__help-card {
    padding: 20px;
  }

  .page-responsible-gambling__list {
    padding-left: 20px;
  }
}