/* style/responsible-gambling.css */

/* General Page Styling */
.page-responsible-gambling {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--bg-dark-1); /* Inherit from shared.css */
}

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

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

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for main titles */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-responsible-gambling__subsection-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-responsible-gambling__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-responsible-gambling__list {
  list-style: disc inside;
  text-align: left;
  max-width: 900px;
  margin: 20px auto;
  padding-left: 20px;
  color: #f0f0f0;
}

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

/* Hero Section */
.page-responsible-gambling__hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered */
}

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

.page-responsible-gambling__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

.page-responsible-gambling__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  font-weight: bold;
}

.page-responsible-gambling__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-responsible-gambling__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-responsible-gambling__btn-primary {
  background-color: #FFD700;
  color: #8B0000; /* Dark red text on gold button for contrast */
  border: 2px solid #FFD700;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #e6c200;
  color: #6a0000;
  border-color: #e6c200;
}

.page-responsible-gambling__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-responsible-gambling__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}

.page-responsible-gambling__cta-buttons--center {
  margin-top: 30px;
}

/* Tool Grid Section */
.page-responsible-gambling__tools .page-responsible-gambling__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-responsible-gambling__tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

.page-responsible-gambling__tool-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-responsible-gambling__tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__tool-icon {
  width: 100%; /* Make icon fill card width */
  height: auto;
  max-width: 250px; /* Max width for the icon */
  margin: 0 auto 20px auto;
  object-fit: contain;
  border-radius: 5px;
}

.page-responsible-gambling__tool-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__tool-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
  flex-grow: 1;
}

/* Protection Grid Section */
.page-responsible-gambling__protection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

.page-responsible-gambling__protection-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-responsible-gambling__protection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__protection-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px auto;
  object-fit: contain;
  border-radius: 5px;
}

.page-responsible-gambling__protection-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__protection-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
  flex-grow: 1;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFD700;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-responsible-gambling__faq-question h3 {
  margin: 0;
  color: #FFD700;
  font-size: 1.2em;
}

.page-responsible-gambling__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-responsible-gambling__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-responsible-gambling__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-responsible-gambling {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-responsible-gambling__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-responsible-gambling__hero-title {
    font-size: 2.2em;
  }

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

  .page-responsible-gambling__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gambling__section {
    padding: 40px 0;
  }

  .page-responsible-gambling__section-title {
    font-size: 1.8em;
  }

  .page-responsible-gambling__subsection-title {
    font-size: 1.4em;
  }

  .page-responsible-gambling__text-block,
  .page-responsible-gambling__list li,
  .page-responsible-gambling__tool-description,
  .page-responsible-gambling__protection-description {
    font-size: 0.95em;
  }

  .page-responsible-gambling__tool-grid,
  .page-responsible-gambling__protection-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-responsible-gambling__tool-icon,
  .page-responsible-gambling__protection-icon {
    max-width: 180px;
  }

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

  .page-responsible-gambling__faq-question h3 {
    font-size: 1em;
  }

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

  .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    padding: 10px 20px;
  }

  /* Ensure all images are responsive */
  .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__tool-card,
  .page-responsible-gambling__protection-card,
  .page-responsible-gambling__tool-grid,
  .page-responsible-gambling__protection-grid,
  .page-responsible-gambling__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-responsible-gambling__cta-buttons {
    overflow-x: hidden;
  }
}