/* style/responsible-gambling.css */

/* Base styles for the responsible gambling page */
.page-responsible-gambling {
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Fixed nav bar spacing for the first content section */
.page-responsible-gambling__hero-section {
  padding-top: 10px; /* Ensures content is not hidden behind fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #000000, #333333);
  text-align: center;
}

.page-responsible-gambling__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-responsible-gambling__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-responsible-gambling__btn-primary {
  display: inline-block;
  background: #FFD700; /* Gold brand color */
  color: #000000; /* Dark text for gold background */
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold brand color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-responsible-gambling__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

/* Commitment Section */
.page-responsible-gambling__commitment-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-responsible-gambling__commitment-item {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-responsible-gambling__commitment-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-responsible-gambling__commitment-heading {
  font-size: 1.6em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__commitment-text {
  font-size: 1em;
  color: #cccccc;
}

/* Self-Assessment Section */
.page-responsible-gambling__self-assessment-section {
  padding: 60px 0;
}

.page-responsible-gambling__question-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-responsible-gambling__question-list li {
  background: #2a2a2a;
  color: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05em;
  border-left: 5px solid #FFD700; /* Gold accent */
}

.page-responsible-gambling__btn-secondary {
  display: inline-block;
  background: none;
  color: #FFD700; /* Gold brand color */
  border: 2px solid #FFD700;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.page-responsible-gambling__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000; /* Dark text for gold background */
}

/* Tools and Features Section */
.page-responsible-gambling__tools-features-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-responsible-gambling__feature-card {
  background: #2a2a2a;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-responsible-gambling__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-responsible-gambling__feature-heading {
  font-size: 1.5em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-responsible-gambling__feature-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-responsible-gambling__feature-link {
  display: inline-block;
  color: #FFD700; /* Gold brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-responsible-gambling__feature-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Minor Protection Section */
.page-responsible-gambling__minor-protection-section {
  padding: 60px 0;
}

.page-responsible-gambling__software-list {
  list-style: disc;
  padding-left: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-responsible-gambling__software-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-responsible-gambling__software-list li a {
  color: #FFD700; /* Gold brand color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-responsible-gambling__software-list li a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-responsible-gambling__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  object-fit: cover;
}

/* Help Resources Section */
.page-responsible-gambling__help-resources-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-responsible-gambling__resource-card {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-responsible-gambling__resource-heading {
  font-size: 1.6em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__resource-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-responsible-gambling__resource-link {
  display: inline-block;
  background: #FFD700;
  color: #000000;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__resource-link:hover {
  background-color: #e6c200;
}

/* Tips Section */
.page-responsible-gambling__tips-section {
  padding: 60px 0;
}

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

.page-responsible-gambling__tip-item {
  background: #2a2a2a;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__tip-heading {
  font-size: 1.5em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__tip-text {
  font-size: 1em;
  color: #cccccc;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

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

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

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

.page-responsible-gambling__faq-question:hover {
  background: #444444;
  border-color: #555555;
}

.page-responsible-gambling__faq-question:active {
  background: #555555;
}

.page-responsible-gambling__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Gold brand color */
}

.page-responsible-gambling__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold brand color */
  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-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-title {
    font-size: 2.8em;
  }
  .page-responsible-gambling__section-title {
    font-size: 2.2em;
  }
  .page-responsible-gambling__commitment-grid,
  .page-responsible-gambling__feature-card-grid,
  .page-responsible-gambling__resource-grid,
  .page-responsible-gambling__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-section {
    padding-top: 10px; /* Mobile fixed header spacing */
    padding-bottom: 40px;
  }
  .page-responsible-gambling__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-responsible-gambling__btn-primary {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-responsible-gambling__container {
    padding: 30px 15px;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-responsible-gambling__text-block,
  .page-responsible-gambling__question-list li,
  .page-responsible-gambling__commitment-text,
  .page-responsible-gambling__feature-text,
  .page-responsible-gambling__resource-text,
  .page-responsible-gambling__tip-text {
    font-size: 0.95em;
  }
  .page-responsible-gambling__commitment-item,
  .page-responsible-gambling__feature-card,
  .page-responsible-gambling__resource-card,
  .page-responsible-gambling__tip-item {
    padding: 20px;
  }
  .page-responsible-gambling__commitment-icon,
  .page-responsible-gambling__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-responsible-gambling__commitment-heading,
  .page-responsible-gambling__feature-heading,
  .page-responsible-gambling__resource-heading,
  .page-responsible-gambling__tip-heading {
    font-size: 1.3em;
  }
  .page-responsible-gambling__btn-secondary {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-responsible-gambling__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-responsible-gambling__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-responsible-gambling__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-responsible-gambling__faq-answer {
    padding: 0 15px;
  }
  .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive and do not cause horizontal scroll */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-responsible-gambling__commitment-section,
  .page-responsible-gambling__self-assessment-section,
  .page-responsible-gambling__tools-features-section,
  .page-responsible-gambling__minor-protection-section,
  .page-responsible-gambling__help-resources-section,
  .page-responsible-gambling__tips-section,
  .page-responsible-gambling__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-responsible-gambling__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}