.page-responsible-gaming {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8;
}

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

/* Fixed navigation bar spacing */
.page-responsible-gaming__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

.page-responsible-gaming__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #CC0000; /* Brand primary color */
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 10px;
  position: relative;
}

.page-responsible-gaming__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Brand secondary color */
  border-radius: 2px;
}

.page-responsible-gaming__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

.page-responsible-gaming__description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-responsible-gaming__cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 15px 40px;
  background: #FFD700; /* Secondary brand color for CTA */
  color: #333333; /* Dark text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

.page-responsible-gaming__cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming__inline-link {
  color: #CC0000;
  text-decoration: underline;
  font-weight: bold;
}

.page-responsible-gaming__inline-link:hover {
  color: #990000;
}

/* Hero Section */
.page-responsible-gaming__hero-section {
  position: relative;
  background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.page-responsible-gaming__hero-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Principles Section */
.page-responsible-gaming__principles-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

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

.page-responsible-gaming__principle-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__principle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__card-icon {
  width: 150px; /* Increased size */
  height: 150px; /* Increased size */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-responsible-gaming__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #CC0000;
  margin-bottom: 15px;
}

.page-responsible-gaming__principle-card p {
  font-size: 16px;
  color: #555555;
}

/* Tools Section */
.page-responsible-gaming__tools-section {
  padding: 80px 20px;
  background-color: #333333;
  color: #ffffff;
}

.page-responsible-gaming__tools-section .page-responsible-gaming__section-title {
  color: #FFD700;
}

.page-responsible-gaming__tools-section .page-responsible-gaming__section-title::after {
  background-color: #CC0000;
}

.page-responsible-gaming__tools-section p {
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
}

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

.page-responsible-gaming__tool-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__tool-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-responsible-gaming__tool-item p {
  font-size: 16px;
  color: #e0e0e0;
}

.page-responsible-gaming__tool-cta-text {
  margin-top: 40px;
  font-size: 18px;
  color: #f0f0f0;
}

.page-responsible-gaming__tool-cta-text .page-responsible-gaming__inline-link {
  color: #FFD700;
}

/* Advice Section */
.page-responsible-gaming__advice-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
}

.page-responsible-gaming__advice-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 900px;
  text-align: left;
}

.page-responsible-gaming__advice-list li {
  background: #f9f9f9;
  border-left: 5px solid #CC0000;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 17px;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-responsible-gaming__advice-list li strong {
  color: #CC0000;
}

.page-responsible-gaming__content-image {
  max-width: 700px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
  padding: 80px 20px;
  background-color: #f2f2f2;
}

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

/* FAQ container style */
.page-responsible-gaming__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer 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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Question style */
.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, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.page-responsible-gaming__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

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

/* Question title style */
.page-responsible-gaming__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
}

/* Toggle icon */
.page-responsible-gaming__faq-toggle {
  font-size: 28px; /* Slightly larger for better visibility */
  font-weight: bold;
  line-height: 1;
  color: #CC0000; /* Brand primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Increased size */
  height: 32px; /* Increased size */
  border-radius: 50%;
  background-color: #FFD700;
  color: #333333;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  background-color: #CC0000;
  color: #ffffff;
}

/* Contact Section */
.page-responsible-gaming__contact-section {
  padding: 80px 20px;
  background-color: #FFD700; /* Secondary brand color for medium background */
  color: #333333; /* Dark text for contrast */
  text-align: center;
}

.page-responsible-gaming__contact-section .page-responsible-gaming__section-title {
  color: #333333;
}

.page-responsible-gaming__contact-section .page-responsible-gaming__section-title::after {
  background-color: #CC0000;
}

.page-responsible-gaming__contact-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-responsible-gaming__contact-info {
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  color: #333333;
}

.page-responsible-gaming__contact-image {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gaming__main-title {
    font-size: 42px;
  }
  .page-responsible-gaming__section-title {
    font-size: 32px;
  }
  .page-responsible-gaming__hero-image {
    max-width: 700px;
  }
  .page-responsible-gaming__content-image {
    max-width: 600px;
  }
  .page-responsible-gaming__contact-image {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .page-responsible-gaming__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-responsible-gaming__container {
    padding: 30px 15px;
  }
  .page-responsible-gaming__main-title {
    font-size: 32px;
  }
  .page-responsible-gaming__description {
    font-size: 16px;
  }
  .page-responsible-gaming__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-responsible-gaming__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-responsible-gaming__hero-image,
  .page-responsible-gaming__content-image,
  .page-responsible-gaming__contact-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    border-radius: 8px;
  }

  .page-responsible-gaming__principle-card {
    padding: 20px;
  }
  .page-responsible-gaming__card-icon {
    width: 100px; /* Adjusted size for mobile */
    height: 100px; /* Adjusted size for mobile */
  }
  .page-responsible-gaming__card-title {
    font-size: 20px;
  }
  .page-responsible-gaming__principle-card p {
    font-size: 15px;
  }

  .page-responsible-gaming__tool-item {
    padding: 20px;
  }
  .page-responsible-gaming__tool-title {
    font-size: 20px;
  }
  .page-responsible-gaming__tool-item p {
    font-size: 15px;
  }

  .page-responsible-gaming__advice-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

  /* FAQ mobile adaptation */
  .page-responsible-gaming__faq-question {
    padding: 15px;
  }
  .page-responsible-gaming__faq-question h3 {
    font-size: 16px;
  }
  .page-responsible-gaming__faq-toggle {
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
    padding: 15px !important;
  }
  .page-responsible-gaming__contact-section p,
  .page-responsible-gaming__contact-info {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gaming__main-title {
    font-size: 28px;
  }
  .page-responsible-gaming__section-title {
    font-size: 24px;
  }
  .page-responsible-gaming__cta-button {
    font-size: 16px;
    padding: 10px 25px;
  }
  .page-responsible-gaming__card-icon {
    width: 80px;
    height: 80px;
  }
  .page-responsible-gaming__card-title {
    font-size: 18px;
  }
  .page-responsible-gaming__tool-title {
    font-size: 18px;
  }
  .page-responsible-gaming__faq-question h3 {
    font-size: 15px;
  }
  .page-responsible-gaming__faq-toggle {
    font-size: 22px;
  }
}