/* style/responsible-gambling.css */

/* Variables for consistency */
:root {
  --primary-color: #007bff; /* Deep Blue */
  --secondary-color: #ffc107; /* Amber/Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-main: #121212; /* Body background from shared.css */
  --bg-dark-section: #1a1a1a; /* Slightly lighter dark for sections */
  --bg-dark-card: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  --border-color-dark: rgba(255, 255, 255, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* Base styles for the page content area */
.page-responsible-gambling {
  background-color: var(--bg-dark-main); /* Ensure consistency with body background */
  color: var(--text-light); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* General padding for footer */
}

/* Fixed header spacing */
.page-responsible-gambling__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  position: relative;
  width: 100%;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Gradient with primary color */
  color: var(--text-light);
  text-align: center;
}

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

.page-responsible-gambling__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
  text-shadow: 0 2px 4px var(--shadow-dark);
}

.page-responsible-gambling__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.page-responsible-gambling__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-responsible-gambling__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-dark); /* Dark text on amber button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-responsible-gambling__cta-button:hover {
  background: #e0ac00; /* Darker amber */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__cta-button--secondary {
  background: none;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.page-responsible-gambling__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__section {
  padding: 80px 0;
  background-color: var(--bg-dark-main); /* Default section background */
  color: var(--text-light);
}

.page-responsible-gambling__section--dark {
  background-color: var(--bg-dark-section); /* Darker background for contrast */
}

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 0 1px 2px var(--shadow-dark);
}

.page-responsible-gambling__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.8);
}

.page-responsible-gambling__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-responsible-gambling__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-responsible-gambling__text-block {
  flex: 1;
}

.page-responsible-gambling__text-block p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.page-responsible-gambling__text-block h3 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color); /* Highlight headings with accent color */
}

.page-responsible-gambling__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px; /* Ensure image block has a minimum size */
}

.page-responsible-gambling__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px var(--shadow-dark);
  transition: transform 0.3s ease;
}

.page-responsible-gambling__image:hover {
  transform: scale(1.02);
}

.page-responsible-gambling__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-responsible-gambling__list-item {
  margin-bottom: 20px;
  background-color: var(--bg-dark-card);
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__list-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-responsible-gambling__card {
  background: var(--bg-dark-card); /* Semi-transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px var(--shadow-dark);
  text-align: center;
  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;
  align-items: center;
}

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

.page-responsible-gambling__card-image {
  width: 120px; /* Larger images for cards */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-responsible-gambling__card-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-responsible-gambling__card p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-responsible-gambling__section-cta {
    margin-top: 50px;
    text-align: center;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark-main);
  color: var(--text-light);
}

.page-responsible-gambling__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-responsible-gambling__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--bg-dark-section);
  border-radius: 8px; /* Apply border-radius here for top corners */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid transparent; /* No bottom border by default */
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: var(--border-color-dark); /* Add border when active */
}


.page-responsible-gambling__faq-question:hover {
  background: #2a2a2a; /* Slightly lighter on hover */
}

.page-responsible-gambling__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-responsible-gambling__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

.page-responsible-gambling__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #222222; /* Slightly different background for answer */
  border-radius: 0 0 8px 8px;
  color: rgba(255, 255, 255, 0.75);
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
}

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

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

  .page-responsible-gambling__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-responsible-gambling__content-wrapper--reverse {
    flex-direction: column; /* Keep column for reverse on mobile */
  }

  .page-responsible-gambling__image-block {
    order: -1; /* Image appears first in column flow for content-wrapper */
    margin-bottom: 30px;
  }
  
  .page-responsible-gambling__content-wrapper--reverse .page-responsible-gambling__image-block {
    order: -1; /* Image appears first in column flow for reverse content-wrapper too */
  }

  .page-responsible-gambling__text-block h3 {
    text-align: center;
  }

  .page-responsible-gambling__list-item {
    text-align: left; /* Keep list items left-aligned */
  }

  .page-responsible-gambling__grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile shared header height */
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-responsible-gambling__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
  }

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

  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-responsible-gambling__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-responsible-gambling__container {
    padding: 0 15px;
  }

  .page-responsible-gambling__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-responsible-gambling__card-image {
    width: 100px;
    height: 100px;
  }
  
  .page-responsible-gambling__card-title {
    font-size: 1.4em;
  }

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

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

  .page-responsible-gambling__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

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

  /* Ensure all content wrappers are full width on mobile */
  .page-responsible-gambling__content-wrapper,
  .page-responsible-gambling__grid-layout,
  .page-responsible-gambling__faq-list,
  .page-responsible-gambling__card,
  .page-responsible-gambling__text-block,
  .page-responsible-gambling__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Specific padding for sections to prevent content from touching edges */
  .page-responsible-gambling__section,
  .page-responsible-gambling__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}