/* style/responsible-gaming.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark-card: rgba(0, 0, 0, 0.2);
  --border-color: #e0e0e0;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-responsible-gaming {
  color: var(--text-light); /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-responsible-gaming__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-responsible-gaming__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Padding for fixed header */
.page-responsible-gaming__hero-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
}

.page-responsible-gaming__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from parent section's color */
}

.page-responsible-gaming__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-responsible-gaming__text-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-responsible-gaming__text-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Section background and text color adjustments */
.page-responsible-gaming__dark-bg {
  background: linear-gradient(135deg, #007bff, #0056b3); /* Darker gradient for dark sections */
  color: var(--text-light);
}

.page-responsible-gaming__light-bg {
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-responsible-gaming__light-bg .page-responsible-gaming__section-title {
  color: var(--text-dark);
}

/* Hero Section */
.page-responsible-gaming__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-responsible-gaming__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-responsible-gaming__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-responsible-gaming__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-responsible-gaming__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-responsible-gaming__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-responsible-gaming__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-responsible-gaming__hero-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-responsible-gaming__hero-link:hover {
  text-decoration: underline;
}

/* CTA Buttons */
.page-responsible-gaming__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.page-responsible-gaming__btn-primary:hover {
  background: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-responsible-gaming__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Importance Section */
.page-responsible-gaming__importance-section {
  padding: 60px 20px;
}

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

.page-responsible-gaming__grid-item.page-responsible-gaming__card {
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__grid-item.page-responsible-gaming__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming__card-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: inline-block;
}

.page-responsible-gaming__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-responsible-gaming__card-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Signs Section */
.page-responsible-gaming__signs-section {
  padding: 60px 20px;
}

.page-responsible-gaming__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gaming__list-item {
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.page-responsible-gaming__list-item::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

/* Tools Section (reusing grid-item card styles) */
.page-responsible-gaming__tools-section {
  padding: 60px 20px;
}

/* Resources Section */
.page-responsible-gaming__resources-section {
  padding: 60px 20px;
}

.page-responsible-gaming__resource-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-responsible-gaming__resource-item {
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__resource-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming__resource-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: inline-block;
}

.page-responsible-gaming__resource-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-responsible-gaming__resource-description {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-responsible-gaming__resource-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-responsible-gaming__resource-link:hover {
  background: #0056b3;
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
  padding: 60px 20px;
}

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

.page-responsible-gaming__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-responsible-gaming__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-responsible-gaming__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-responsible-gaming__faq-question:active {
  background: #eeeeee;
}

.page-responsible-gaming__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-responsible-gaming__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change + to X visually */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gaming__hero-title {
    font-size: 40px;
  }
  .page-responsible-gaming__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-responsible-gaming__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-responsible-gaming__hero-title {
    font-size: 32px;
  }

  .page-responsible-gaming__hero-description {
    font-size: 18px;
  }

  .page-responsible-gaming__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

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

  .page-responsible-gaming__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .page-responsible-gaming__text-block {
    font-size: 15px;
  }

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

  .page-responsible-gaming__grid-item.page-responsible-gaming__card {
    padding: 25px;
  }

  .page-responsible-gaming__card-icon {
    width: 80px;
  }

  .page-responsible-gaming__card-title {
    font-size: 20px;
  }

  .page-responsible-gaming__list-item {
    font-size: 15px;
    padding: 12px 15px;
  }
  
  .page-responsible-gaming__list-item::before {
    font-size: 16px;
  }

  .page-responsible-gaming__resource-list {
    grid-template-columns: 1fr;
  }

  .page-responsible-gaming__resource-item {
    padding: 25px;
  }

  .page-responsible-gaming__resource-icon {
    width: 80px;
  }

  .page-responsible-gaming__resource-title {
    font-size: 20px;
  }

  .page-responsible-gaming__resource-description {
    font-size: 15px;
  }

  .page-responsible-gaming__resource-link {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-responsible-gaming__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-responsible-gaming__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-responsible-gaming__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-responsible-gaming__faq-answer {
    padding: 0 15px;
  }
  
  .page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-responsible-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-responsible-gaming__section,
  .page-responsible-gaming__card,
  .page-responsible-gaming__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gaming__hero-title {
    font-size: 28px;
  }
  .page-responsible-gaming__hero-description {
    font-size: 16px;
  }
  .page-responsible-gaming__section-title {
    font-size: 22px;
  }
}