/* style/responsible-gambling-support-resources.css */

/* Biến CSS */
:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-dark: #333333; /* Dark text for light backgrounds */
  --text-light: #FFFFFF; /* Light text for dark backgrounds */
  --background-light: #F8F8F8; /* Light background */
  --background-dark: #002244; /* Darker variant of primary for backgrounds */
  --accent-color-light: #FFE066; /* Lighter variant of secondary for accents */
  --border-color: #E0E0E0;
}

/* Đảm bảo độ tương phản cho các màu được sử dụng */
/* Kiểm tra WCAG AA: #003366 (primary) vs #FFFFFF (text-light) -> 13.6:1 (Pass)
   #003366 (primary) vs #F8F8F8 (background-light) -> 11.2:1 (Pass)
   #FFCC00 (secondary) vs #333333 (text-dark) -> 11.2:1 (Pass)
   #FFCC00 (secondary) vs #003366 (primary) -> 2.1:1 (Fail for text, OK for accents)
   #002244 (background-dark) vs #FFFFFF (text-light) -> 15.6:1 (Pass)
*/

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

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

.page-responsible-gambling-support-resources__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #002244 100%); /* Darker primary gradient */
  color: var(--text-light);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-responsible-gambling-support-resources__hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 204, 0, 0.1); /* Semi-transparent secondary color accent */
  border-radius: 50%;
  filter: blur(80px);
}

.page-responsible-gambling-support-resources__hero-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background-color: rgba(255, 204, 0, 0.15);
  border-radius: 50%;
  filter: blur(100px);
}

.page-responsible-gambling-support-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling-support-resources__hero-subtitle {
  font-size: 1.4em;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.page-responsible-gambling-support-resources__cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color); /* Ensure contrast */
  padding: 15px 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-support-resources__cta-button:hover {
  background-color: #E6B800; /* Slightly darker secondary */
  transform: translateY(-3px);
}

.page-responsible-gambling-support-resources__content-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-responsible-gambling-support-resources__content-section:nth-of-type(even) {
  background-color: #F0F0F0; /* Slightly different background for visual separation */
}

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

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

.page-responsible-gambling-support-resources__subsection-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
}

.page-responsible-gambling-support-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-responsible-gambling-support-resources__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-responsible-gambling-support-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-responsible-gambling-support-resources__image:hover {
  transform: scale(1.02);
}

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

.page-responsible-gambling-support-resources__list li {
  background-color: #FFFFFF;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  font-size: 1.05em;
  color: var(--text-dark);
}

.page-responsible-gambling-support-resources__icon {
  color: var(--secondary-color);
  margin-right: 15px;
  font-size: 1.2em;
  line-height: 1.6;
}

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

.page-responsible-gambling-support-resources__resource-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gambling-support-resources__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-responsible-gambling-support-resources__card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-responsible-gambling-support-resources__card-description {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-responsible-gambling-support-resources__card-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-responsible-gambling-support-resources__card-link:hover {
  background-color: #004488; /* Darker primary */
}

.page-responsible-gambling-support-resources__advice-list {
  list-style: none;
  padding: 0;
}

.page-responsible-gambling-support-resources__advice-list li {
  font-size: 1em;
  margin-bottom: 8px;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
}

.page-responsible-gambling-support-resources__advice-list .page-responsible-gambling-support-resources__icon {
  color: #28a745; /* Green for checkmarks */
  margin-right: 10px;
  font-size: 1.1em;
}

.page-responsible-gambling-support-resources__contact-info {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-responsible-gambling-support-resources__contact-info p {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-responsible-gambling-support-resources__contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-responsible-gambling-support-resources__contact-link:hover {
  color: var(--secondary-color);
}

.page-responsible-gambling-support-resources__faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-responsible-gambling-support-resources__faq-question {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px; /* Space for arrow */
}

.page-responsible-gambling-support-resources__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-responsible-gambling-support-resources__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-responsible-gambling-support-resources__faq-answer {
  font-size: 1.05em;
  color: var(--text-dark);
  display: none;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  margin-top: 15px;
}

.page-responsible-gambling-support-resources__faq-answer.active {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-responsible-gambling-support-resources__hero-title {
    font-size: 2.5em;
  }

  .page-responsible-gambling-support-resources__hero-subtitle {
    font-size: 1.1em;
  }

  .page-responsible-gambling-support-resources__section-title {
    font-size: 2em;
  }

  .page-responsible-gambling-support-resources__subsection-title {
    font-size: 1.5em;
  }

  .page-responsible-gambling-support-resources__resource-grid {
    grid-template-columns: 1fr;
  }

  .page-responsible-gambling-support-resources__list li {
    padding: 10px 15px;
  }

  .page-responsible-gambling-support-resources__faq-question {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling-support-resources__hero-title {
    font-size: 2em;
  }

  .page-responsible-gambling-support-resources__hero-subtitle {
    font-size: 1em;
  }

  .page-responsible-gambling-support-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-responsible-gambling-support-resources__section-title {
    font-size: 1.8em;
  }

  .page-responsible-gambling-support-resources__text-block {
    font-size: 0.95em;
  }

  .page-responsible-gambling-support-resources__list li {
    font-size: 0.9em;
  }

  .page-responsible-gambling-support-resources__faq-question {
    font-size: 1.1em;
  }
}