/* style/responsible-gaming.css */
:root {
  --primary-color: #2D3E50;
  --secondary-color: #E7B10A;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-dark: #202a35;
  --border-color: #e0e0e0;
}

.page-responsible-gaming {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

.page-responsible-gaming__hero {
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-responsible-gaming__hero-content h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-responsible-gaming__hero-content p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

.page-responsible-gaming__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming__cta-button:hover {
  background: #ffc107;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__cta-button--small {
  font-size: 0.9em;
  padding: 12px 25px;
}

.page-responsible-gaming__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-responsible-gaming__section:last-of-type {
  border-bottom: none;
}

.page-responsible-gaming__section h2 {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-responsible-gaming__section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-responsible-gaming__section h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-responsible-gaming__section p {
  margin-bottom: 15px;
  font-size: 1em;
}

.page-responsible-gaming__section ul,
.page-responsible-gaming__section ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

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

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

.page-responsible-gaming__grid--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-responsible-gaming__card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-responsible-gaming__card h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-responsible-gaming__external-resources {
  background: #e9ecef;
  padding: 30px;
  border-radius: 10px;
  margin-top: 50px;
}

.page-responsible-gaming__external-resources h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.page-responsible-gaming__external-resources ul {
  list-style: disc;
  padding-left: 20px;
}

.page-responsible-gaming__tips ol {
  list-style: decimal;
  padding-left: 25px;
}

.page-responsible-gaming__tips li {
  margin-bottom: 12px;
  font-size: 1.05em;
}

/* FAQ Styles */
.faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer p {
  margin: 0;
}

.page-responsible-gaming__commitment {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-color));
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
}

.page-responsible-gaming__commitment-content h2 {
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.page-responsible-gaming__commitment-content h2::after {
  background: var(--text-light);
}

.page-responsible-gaming__commitment-content p {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 25px auto;
  opacity: 0.9;
}

.page-responsible-gaming__commitment-content a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-responsible-gaming__commitment-content a:hover {
  color: #ffc107;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-responsible-gaming__hero-content h1 {
    font-size: 2.2em;
  }

  .page-responsible-gaming__section h2 {
    font-size: 1.8em;
  }

  .page-responsible-gaming__section h3 {
    font-size: 1.4em;
  }

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

@media (max-width: 768px) {
  .page-responsible-gaming__hero {
    padding: 60px 0;
  }
  .page-responsible-gaming__hero-content h1 {
    font-size: 1.8em;
  }
  .page-responsible-gaming__hero-content p {
    font-size: 1em;
  }
  .page-responsible-gaming__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-responsible-gaming__section {
    padding: 40px 0;
  }
  .page-responsible-gaming__section h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-responsible-gaming__section h3 {
    font-size: 1.2em;
  }
  .page-responsible-gaming__grid {
    grid-template-columns: 1fr;
  }
  .page-responsible-gaming__grid--two-cols {
    grid-template-columns: 1fr;
  }
  .page-responsible-gaming__card {
    padding: 25px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-responsible-gaming__commitment {
    padding: 60px 0;
  }
  .page-responsible-gaming__commitment-content p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-responsible-gaming__hero-content h1 {
    font-size: 1.5em;
  }
  .page-responsible-gaming__section h2 {
    font-size: 1.4em;
  }
  .page-responsible-gaming__card h3 {
    font-size: 1.3em;
  }
  .page-responsible-gaming__hero-image img {
    margin-top: 20px;
  }
}