/* style/resources.css */
/* 
 * Màu sắc chính: #26A9E0
 * Màu sắc phụ: #FFFFFF
 * Màu nền body: #0a0a0a (tối) -> chữ mặc định phải là màu sáng #ffffff
 */

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Mặc định chữ màu trắng vì body background #0a0a0a là nền tối */
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Sử dụng màu thương hiệu cho tiêu đề */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Chữ sáng trên nền tối */
}

.page-resources__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0; /* Chữ sáng trên nền tối */
}

.page-resources__list li {
  margin-bottom: 10px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Quan trọng cho responsive */
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-resources__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

.page-resources__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
}

.page-resources__button-group--center {
  justify-content: center;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Đảm bảo chiều cao tối thiểu */
  padding-top: var(--header-offset, 120px); /* Khoảng cách với header cố định */
  background-color: #0a0a0a; /* Nền tối cho hero */
  overflow: hidden; /* Ngăn ảnh tràn */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Làm mờ ảnh nền */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Nền mờ cho nội dung hero */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Introduction Section (Dark Background) */
.page-resources__introduction-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Nền tối */
  color: #ffffff; /* Chữ sáng */
}

/* Guide Section (Light Background) */
.page-resources__guide-section {
  padding: 80px 0;
  background-color: #ffffff; /* Nền sáng */
  color: #333333; /* Chữ tối */
}

.page-resources__guide-section .page-resources__section-title {
  color: #26A9E0; /* Tiêu đề vẫn màu thương hiệu */
}

.page-resources__guide-section .page-resources__paragraph {
  color: #333333; /* Chữ tối trên nền sáng */
}

.page-resources__guide-item {
  margin-bottom: 60px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__guide-subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__image-full-width {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Strategy Section (Dark Background) */
.page-resources__strategy-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Nền tối */
  color: #ffffff; /* Chữ sáng */
}

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

.page-resources__strategy-card {
  background-color: rgba(255, 255, 255, 0.1); /* Nền thẻ mờ */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

/* News Section (Light Background) */
.page-resources__news-section {
  padding: 80px 0;
  background-color: #ffffff; /* Nền sáng */
  color: #333333; /* Chữ tối */
}

.page-resources__news-section .page-resources__section-title {
  color: #26A9E0;
}

.page-resources__news-section .page-resources__paragraph {
  color: #333333;
}

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

.page-resources__news-card {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%; /* Đảm bảo các thẻ có chiều cao bằng nhau */
}

.page-resources__news-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-resources__news-card .page-resources__card-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  flex-grow: 1; /* Đẩy text xuống cuối nếu cần */
}

.page-resources__news-card .page-resources__card-title a {
  text-decoration: none;
  color: #26A9E0;
}

.page-resources__news-card .page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__news-card .page-resources__card-text {
  font-size: 0.95em;
  color: #555555;
}

/* Video Section (Dark Background) */
.page-resources__video-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Nền tối */
  color: #ffffff; /* Chữ sáng */
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer; /* Cho biết có thể click */
}

/* FAQ Section (Light Background) */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Nền sáng */
  color: #333333; /* Chữ tối */
}

.page-resources__faq-section .page-resources__section-title {
  color: #26A9E0;
}

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #eeeeee;
}

.page-resources__faq-question h3 {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Xoay dấu + thành X hoặc - */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Đủ lớn để chứa nội dung */
  padding: 20px 25px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

/* Responsible Gambling Section (Dark Background) */
.page-resources__responsible-gambling-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Nền tối */
  color: #ffffff; /* Chữ sáng */
  text-align: center;
}

.page-resources__image-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section (Light Background) */
.page-resources__cta-section {
  padding: 80px 0;
  background-color: #ffffff; /* Nền sáng */
  color: #333333; /* Chữ tối */
  text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
  color: #26A9E0;
}

.page-resources__cta-section .page-resources__paragraph {
  color: #333333;
}

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

  .page-resources__hero-description {
    font-size: 1.2em;
  }

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Đảm bảo khoảng cách trên mobile */
  }

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

  .page-resources__hero-description {
    font-size: 1em;
  }

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

  .page-resources__paragraph {
    font-size: 1em;
  }

  .page-resources__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__button-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Thêm padding cho nhóm nút */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__button-group .page-resources__cta-button {
    width: 100%; /* Đảm bảo nút chiếm toàn bộ chiều rộng */
  }

  .page-resources__guide-subtitle {
    font-size: 1.5em;
  }

  .page-resources__news-card .page-resources__card-title {
    font-size: 1.1em;
  }

  .page-resources__faq-question h3 {
    font-size: 1em;
  }

  /* Responsive Images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Responsive Video */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}