/* style/responsible-gaming.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #F8F8F8;
  --background-dark: #222222;
  --card-background: #FFFFFF;
  --border-color: #E0E0E0;
  --hover-color: #FFC107;
}

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

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

.page-responsible-gaming__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-responsible-gaming__section:nth-of-type(even) {
  background-color: #f0f0f0;
}

.page-responsible-gaming h1,
.page-responsible-gaming h2 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-responsible-gaming h1 {
  font-size: 3.2em;
  color: var(--text-light);
}

.page-responsible-gaming h2 {
  font-size: 2.5em;
}

.page-responsible-gaming h3 {
  color: var(--secondary-color);
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-responsible-gaming ul,
.page-responsible-gaming ol {
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-responsible-gaming li {
  margin-bottom: 8px;
}

/* Hero Section */
.page-responsible-gaming__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a80000 100%);
  color: var(--text-light);
  overflow: hidden;
}

.page-responsible-gaming__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-responsible-gaming__hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-responsible-gaming__hero-image {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
}

.page-responsible-gaming__hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

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

/* Grid Layout for Principles and Support */
.page-responsible-gaming__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-responsible-gaming__card {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-responsible-gaming__card img {
  max-width: 100%;
  height: 250px; /* Fixed height for cards */
  object-fit: cover;
  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__card p {
  font-size: 1em;
  flex-grow: 1;
}

.page-responsible-gaming__card-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-responsible-gaming__card-button:hover {
  background-color: #a80000;
  transform: translateY(-2px);
}

/* Content Blocks for Tools Section */
.page-responsible-gaming__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-responsible-gaming__content-block.reverse-order {
  flex-direction: row-reverse;
}

.page-responsible-gaming__content-block img {
  flex: 1;
  max-width: 50%;
  height: 350px; /* Fixed height for content block images */
  object-fit: cover;
  border-radius: 8px;
}

.page-responsible-gaming__content-block .page-responsible-gaming__text-content {
  flex: 1;
  max-width: 50%;
}

.page-responsible-gaming__content-block h3 {
  font-size: 2em;
  margin-top: 0;
}

/* FAQ Section */
.page-responsible-gaming__faq-list {
  margin-top: 40px;
}

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

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

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--text-dark);
}

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

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

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

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed to fit content */
  padding: 20px 25px;
  background-color: #f9f9f9;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-responsible-gaming h1 {
    font-size: 2.5em;
  }
  .page-responsible-gaming h2 {
    font-size: 2em;
  }
  .page-responsible-gaming h3 {
    font-size: 1.6em;
  }
  .page-responsible-gaming__content-block {
    flex-direction: column;
    text-align: center;
  }
  .page-responsible-gaming__content-block.reverse-order {
    flex-direction: column;
  }
  .page-responsible-gaming__content-block img,
  .page-responsible-gaming__content-block .page-responsible-gaming__text-content {
    max-width: 100%;
  }
  .page-responsible-gaming__hero-content p {
    font-size: 1.1em;
  }
  .page-responsible-gaming__hero-image {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-responsible-gaming__section {
    padding: 40px 0;
  }
  .page-responsible-gaming__hero {
    padding: 60px 15px;
  }
  .page-responsible-gaming h1 {
    font-size: 2em;
  }
  .page-responsible-gaming h2 {
    font-size: 1.8em;
  }
  .page-responsible-gaming h3 {
    font-size: 1.4em;
  }
  .page-responsible-gaming__cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-responsible-gaming__grid {
    grid-template-columns: 1fr;
  }
  .page-responsible-gaming__card img {
    height: 200px;
  }
  .page-responsible-gaming__content-block img {
    height: 250px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gaming__container {
    padding: 15px;
  }
  .page-responsible-gaming h1 {
    font-size: 1.8em;
  }
  .page-responsible-gaming h2 {
    font-size: 1.6em;
  }
  .page-responsible-gaming h3 {
    font-size: 1.2em;
  }
  .page-responsible-gaming__hero-content p {
    font-size: 1em;
  }
  .page-responsible-gaming__cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-responsible-gaming__card {
    padding: 20px;
  }
  .page-responsible-gaming__card img {
    height: 180px;
  }
  .page-responsible-gaming__content-block img {
    height: 200px;
  }
}