/* style/responsible-gaming.css */

:root {
  --primary-color: #FF4500;
  --secondary-color: #1E90FF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark-card: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-responsible-gaming {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
}

/* Fixed navigation bar spacing for desktop */
.page-responsible-gaming__intro-section {
  padding-top: 180px; /* Adjust based on actual fixed header height */
}

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

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

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

.page-responsible-gaming__main-title,
.page-responsible-gaming__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-responsible-gaming__main-title {
  color: var(--text-light);
}

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

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

.page-responsible-gaming__description,
.page-responsible-gaming__text-block {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-responsible-gaming__intro-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming__principles-section,
.page-responsible-gaming__warning-signs-section,
.page-responsible-gaming__tools-resources-section,
.page-responsible-gaming__commitment-section,
.page-responsible-gaming__faq-section,
.page-responsible-gaming__call-to-action-section {
  padding: 80px 0;
}

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

.page-responsible-gaming__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

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

.page-responsible-gaming__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 0 auto;
  border-radius: 5px;
}

.page-responsible-gaming__card-image--bottom {
  margin-top: auto;
}

.page-responsible-gaming__card-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-responsible-gaming__card--dark {
  background: var(--bg-dark-card);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-responsible-gaming__card--dark .page-responsible-gaming__card-title {
  color: var(--secondary-color);
}

.page-responsible-gaming__list {
  list-style-type: disc;
  text-align: left;
  padding-left: 25px;
  margin-top: 15px;
}

.page-responsible-gaming__list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-responsible-gaming__feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-responsible-gaming__feature-item {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.page-responsible-gaming__feature-icon {
  width: 120px; /* Increased size */
  height: auto;
  min-width: 120px;
  margin-right: 25px;
  border-radius: 8px;
  object-fit: cover;
}

.page-responsible-gaming__feature-content {
  text-align: left;
}

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

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

.page-responsible-gaming__commitment-item {
  background: var(--bg-dark-card);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  height: 100%;
}

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

/* FAQ Styles */
.page-responsible-gaming__faq-list {
  max-width: 900px;
  margin: 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;
  color: var(--text-dark);
}

.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;
}

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  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: #333;
}

.page-responsible-gaming__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__cta-button:hover {
  background: #e63900;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming__cta-button--primary {
  background: var(--primary-color);
}

.page-responsible-gaming__cta-button--secondary {
  background: var(--secondary-color);
}

.page-responsible-gaming__cta-button--secondary:hover {
  background: #1a7ae6;
}

.page-responsible-gaming__link {
  color: inherit;
  text-decoration: underline;
  font-weight: bold;
}

.page-responsible-gaming__link:hover {
  color: var(--secondary-color);
}

.page-responsible-gaming__dark-bg .page-responsible-gaming__link {
  color: var(--text-light);
}

.page-responsible-gaming__dark-bg .page-responsible-gaming__link:hover {
  color: var(--secondary-color);
}

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

  .page-responsible-gaming__description,
  .page-responsible-gaming__text-block {
    font-size: 16px;
  }

  .page-responsible-gaming__feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .page-responsible-gaming__feature-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .page-responsible-gaming__feature-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-responsible-gaming__intro-section {
    padding-top: 160px !important; /* Mobile fixed header adjustment */
    padding-bottom: 40px;
  }

  .page-responsible-gaming__main-title {
    font-size: 28px;
  }
  
  .page-responsible-gaming__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-responsible-gaming__description,
  .page-responsible-gaming__text-block {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-responsible-gaming__principles-section,
  .page-responsible-gaming__warning-signs-section,
  .page-responsible-gaming__tools-resources-section,
  .page-responsible-gaming__commitment-section,
  .page-responsible-gaming__faq-section,
  .page-responsible-gaming__call-to-action-section {
    padding: 50px 0;
  }

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

  .page-responsible-gaming__card,
  .page-responsible-gaming__commitment-item,
  .page-responsible-gaming__feature-item {
    padding: 20px;
  }

  .page-responsible-gaming__card-title,
  .page-responsible-gaming__commitment-title,
  .page-responsible-gaming__feature-title {
    font-size: 18px;
  }

  .page-responsible-gaming__list {
    padding-left: 20px;
  }
  
  .page-responsible-gaming__list li {
    font-size: 14px;
  }

  .page-responsible-gaming__feature-icon {
    width: 100px;
    min-width: 100px;
    margin-bottom: 15px;
  }

  .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;
  }

  .page-responsible-gaming__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin-top: 20px;
  }

  /* Mobile image responsiveness */
  .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,
  .page-responsible-gaming__intro-section,
  .page-responsible-gaming__principles-section,
  .page-responsible-gaming__warning-signs-section,
  .page-responsible-gaming__tools-resources-section,
  .page-responsible-gaming__commitment-section,
  .page-responsible-gaming__faq-section,
  .page-responsible-gaming__call-to-action-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}