/* style/responsible-gambling.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --dark-bg-1: #0d0d0d;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --gray-border: #e0e0e0;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling {
  color: var(--light-text-color);
  background-color: var(--dark-bg-1); /* Kế thừa từ body */
  padding-top: 120px; /* Điều chỉnh cho thanh điều hướng cố định */
}

.page-responsible-gambling__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 60px 20px;
  text-align: center;
  color: var(--light-text-color);
}

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

.page-responsible-gambling__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text-color);
}

.page-responsible-gambling__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

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

.page-responsible-gambling__cta-button:hover {
  background: #218838; /* Màu xanh đậm hơn */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__cta-button--secondary {
  background: var(--primary-color);
  margin-right: 15px;
}

.page-responsible-gambling__cta-button--secondary:hover {
  background: #0056b3; /* Màu xanh đậm hơn */
}

.page-responsible-gambling__section {
  padding: 60px 0;
}

.page-responsible-gambling__dark-bg {
  background-color: var(--dark-bg-1);
  color: var(--light-text-color);
}

.page-responsible-gambling__light-bg {
  background-color: #f8f9fa;
  color: var(--dark-text-color);
}

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__section-title {
  color: var(--light-text-color);
}

.page-responsible-gambling__light-bg .page-responsible-gambling__section-title {
  color: var(--dark-text-color);
}

.page-responsible-gambling__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-responsible-gambling__text-block p {
  margin-bottom: 1em;
}

.page-responsible-gambling__text-block--inverted {
  color: var(--light-text-color);
}

.page-responsible-gambling__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__sub-title {
  color: var(--light-text-color);
}

.page-responsible-gambling__light-bg .page-responsible-gambling__sub-title {
  color: var(--dark-text-color);
}

.page-responsible-gambling__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-responsible-gambling__list li {
  margin-bottom: 0.8em;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__list li {
  color: var(--light-text-color);
}

.page-responsible-gambling__light-bg .page-responsible-gambling__list li {
  color: var(--dark-text-color);
}

.page-responsible-gambling__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.page-responsible-gambling__button-group {
  text-align: center;
  margin-top: 40px;
}

.page-responsible-gambling__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* FAQ Styles */
.page-responsible-gambling__faq-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: var(--dark-text-color);
}

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

.page-responsible-gambling__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.page-responsible-gambling__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--dark-text-color);
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--dark-text-color);
}

.page-responsible-gambling__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-responsible-gambling__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--dark-text-color);
}

.page-responsible-gambling__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
  color: #333;
  transform: rotate(45deg);
}

/* Related Articles */
.page-responsible-gambling__related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-responsible-gambling__article-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--dark-text-color);
}

.page-responsible-gambling__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-responsible-gambling__article-title {
  font-size: 1.4em;
  font-weight: bold;
  padding: 15px;
  margin-bottom: 0;
  line-height: 1.4;
}

.page-responsible-gambling__article-title a {
  color: var(--dark-text-color);
  text-decoration: none;
}

.page-responsible-gambling__article-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-responsible-gambling__article-summary {
  font-size: 0.95em;
  padding: 0 15px 15px;
  flex-grow: 1;
  color: #555555;
}

.page-responsible-gambling__read-more {
  display: inline-block;
  padding: 10px 15px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Đẩy xuống cuối thẻ */
}

.page-responsible-gambling__read-more:hover {
  background: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling__main-title {
    font-size: 2.8em;
  }

  .page-responsible-gambling__section-title {
    font-size: 2em;
  }

  .page-responsible-gambling__sub-title {
    font-size: 1.5em;
  }

  .page-responsible-gambling__text-block {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling {
    padding-top: 100px !important; /* Điều chỉnh cho thanh điều hướng cố định trên mobile */
  }

  .page-responsible-gambling__hero-banner {
    padding: 40px 15px;
  }

  .page-responsible-gambling__container {
    padding: 0 15px;
  }

  .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__sub-title {
    font-size: 1.3em;
  }

  .page-responsible-gambling__text-block {
    font-size: 0.95em;
  }

  .page-responsible-gambling__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-responsible-gambling__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-responsible-gambling__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-responsible-gambling__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-responsible-gambling__faq-answer {
    padding: 0 15px;
  }
  
  .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    padding: 15px !important;
  }

  .page-responsible-gambling__related-articles {
    grid-template-columns: 1fr;
  }

  .page-responsible-gambling__article-title {
    font-size: 1.2em;
  }

  .page-responsible-gambling__article-summary {
    font-size: 0.9em;
  }

  .page-responsible-gambling__read-more {
    border-radius: 0 0 8px 8px;
  }

  .page-responsible-gambling__button-group .page-responsible-gambling__cta-button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    margin-right: 0;
  }
}

/* Ensure all images are responsive */
.page-responsible-gambling img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-responsible-gambling__section,
  .page-responsible-gambling__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}