:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Deep Red */
  --text-dark: #333333; /* Dark Grey for text */
  --text-light: #ffffff; /* White for text on dark backgrounds */
  --bg-light: #f8f8f8; /* Light grey background */
  --bg-dark: #1a1a1a; /* Dark background */
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* General Page Styling */
.page-responsible-gambling {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff;
}

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

.page-responsible-gambling .section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-responsible-gambling .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

.page-responsible-gambling .cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-medium);
  text-align: center;
  cursor: pointer;
}

.page-responsible-gambling .cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* Hero Section */
.page-responsible-gambling .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a81030 100%); /* Deep red gradient */
  color: var(--text-light);
}

.page-responsible-gambling .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-responsible-gambling .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-responsible-gambling .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-responsible-gambling .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
}

.page-responsible-gambling .main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.2;
}

.page-responsible-gambling .hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-light);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Section Styling */
.page-responsible-gambling section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.page-responsible-gambling .section-understanding, 
.page-responsible-gambling .section-tips, 
.page-responsible-gambling .section-underage, 
.page-responsible-gambling .section-commitment {
  background-color: var(--bg-light);
}

.page-responsible-gambling .section-tools, 
.page-responsible-gambling .section-support {
  background-color: #ffffff;
}

.page-responsible-gambling .image-block {
    margin: 40px auto;
    text-align: center;
}

.page-responsible-gambling .content-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-medium);
}

/* Feature List (Tools Section) */
.page-responsible-gambling .feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-responsible-gambling .feature-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-responsible-gambling .feature-heading {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-responsible-gambling .feature-item p {
  font-size: 1em;
  color: #555555;
}

/* Tip List */
.page-responsible-gambling .tip-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 30px;
}

.page-responsible-gambling .tip-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-responsible-gambling .tip-item strong {
  color: var(--secondary-color);
}

/* Symptom List */
.page-responsible-gambling .symptom-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
  font-size: 1.05em;
  color: #555555;
}

.page-responsible-gambling .symptom-list li {
    margin-bottom: 10px;
}

.page-responsible-gambling .external-resources {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-responsible-gambling .external-resources li {
    margin-bottom: 10px;
}

.page-responsible-gambling .external-resources a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-responsible-gambling .external-resources a:hover {
    text-decoration: underline;
}

.page-responsible-gambling .parental-control-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    font-size: 1.05em;
}

/* FAQ Section */
.page-responsible-gambling .section-faq {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.page-responsible-gambling .faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-light);
}

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

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

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

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
  color: #555555;
}

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

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

/* Final CTA */
.page-responsible-gambling .final-cta {
    margin-top: 50px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: var(--secondary-color);
    color: var(--text-light);
    font-size: 1.2em;
    padding: 18px 45px;
}

.page-responsible-gambling .final-cta:hover {
    background: #b81132;
    transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling .main-title {
    font-size: 2.8em;
  }
  .page-responsible-gambling .hero-description {
    font-size: 1.15em;
  }
  .page-responsible-gambling .section-title {
    font-size: 2em;
  }
  .page-responsible-gambling .feature-heading {
    font-size: 1.4em;
  }
  .page-responsible-gambling .feature-item {
    padding: 25px;
  }
  .faq-question h3 {
    font-size: 1.15em;
  }
  .faq-question, .faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling .hero-section {
    padding: 40px 15px;
  }
  .page-responsible-gambling .hero-image img {
    border-radius: 8px;
  }
  .page-responsible-gambling .hero-content {
    padding: 10px;
  }
  .page-responsible-gambling .main-title {
    font-size: 2.2em;
  }
  .page-responsible-gambling .hero-description {
    font-size: 1em;
  }
  .page-responsible-gambling .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-responsible-gambling section {
    padding: 40px 0;
  }
  .page-responsible-gambling .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-responsible-gambling .text-block, .page-responsible-gambling .tip-item, .page-responsible-gambling .symptom-list li, .page-responsible-gambling .external-resources li, .page-responsible-gambling .parental-control-list li {
    font-size: 0.95em;
  }
  .page-responsible-gambling .feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-responsible-gambling .feature-item {
    padding: 20px;
  }
  .page-responsible-gambling .feature-heading {
    font-size: 1.3em;
  }
  .faq-question {
    padding: 15px 18px;
  }
  .faq-question h3 {
    font-size: 1.05em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-item.active .faq-answer {
    padding: 12px 18px 18px;
  }
  .page-responsible-gambling .final-cta {
      padding: 15px 30px;
      font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling .main-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling .hero-description {
    font-size: 0.95em;
  }
  .page-responsible-gambling .section-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.3em;
  }
  .faq-question {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-question h3 {
    margin-bottom: 8px;
  }
  .faq-toggle {
    align-self: flex-end;
    margin-top: -30px;
  }
}