/* style/resources.css */

/* Biến CSS */
:root {
  --page-resources-primary-color: #017439;
  --page-resources-secondary-color: #FFFFFF;
  --page-resources-register-color: #C30808;
  --page-resources-login-color: #C30808;
  --page-resources-background-color: #FFFFFF;
  --page-resources-register-login-font-color: #FFFF00;
  --page-resources-dark-bg-text-color: #ffffff; /* Cho nền tối */
  --page-resources-light-bg-text-color: #333333; /* Cho nền sáng */
  --page-resources-card-bg-dark: rgba(255, 255, 255, 0.1);
}

/* Thiết lập chung cho trang tài nguyên */
.page-resources {
  color: var(--page-resources-dark-bg-text-color); /* Nền body là tối (#0a0a0a), nên chữ là sáng */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Nền body được shared.css xử lý */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: var(--page-resources-primary-color);
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Đảm bảo không bị header che */
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-resources-dark-bg-text-color);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--page-resources-dark-bg-text-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Group */
.page-resources__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: var(--page-resources-register-color); /* Màu đăng ký */
  color: var(--page-resources-register-login-font-color); /* Màu chữ đăng ký */
  border: 2px solid var(--page-resources-register-color);
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--page-resources-dark-bg-text-color);
  border: 2px solid var(--page-resources-dark-bg-text-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--page-resources-dark-bg-text-color);
  color: var(--page-resources-primary-color);
}

/* General Section Styling */
.page-resources__introduction-section,
.page-resources__analysis-section,
.page-resources__tips-section,
.page-resources__beginner-guide-section,
.page-resources__casino-section,
.page-resources__faq-section,
.page-resources__cta-final-section {
  padding: 60px 0;
}

.page-resources__introduction-section,
.page-resources__tips-section,
.page-resources__casino-section,
.page-resources__cta-final-section {
  background-color: var(--page-resources-background-color); /* Nền sáng */
  color: var(--page-resources-light-bg-text-color);
}

.page-resources__analysis-section,
.page-resources__beginner-guide-section,
.page-resources__faq-section {
  background-color: var(--page-resources-primary-color); /* Nền tối */
  color: var(--page-resources-dark-bg-text-color);
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Kế thừa màu từ section cha */
  line-height: 1.3;
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-resources__highlight {
  font-weight: bold;
  color: var(--page-resources-register-login-font-color);
}

.page-resources__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 15px;
}

.page-resources__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources__list-item strong {
  color: var(--page-resources-register-login-font-color);
}

.page-resources__list-item a {
  color: var(--page-resources-register-login-font-color);
  text-decoration: underline;
}

.page-resources__list-item a:hover {
  color: var(--page-resources-secondary-color);
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background-color: var(--page-resources-card-bg-dark); /* Nền thẻ tối */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-resources-dark-bg-text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--page-resources-dark-bg-text-color);
  outline: none;
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-qtext {
  flex-grow: 1;
  color: var(--page-resources-register-login-font-color);
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-resources-dark-bg-text-color);
}

.page-resources__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: var(--page-resources-dark-bg-text-color);
}

/* Final CTA Section */
.page-resources__cta-final-section {
  text-align: center;
  background-color: var(--page-resources-background-color); /* Nền sáng */
  color: var(--page-resources-light-bg-text-color);
}

.page-resources__cta-final-section .page-resources__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 0;
    padding-top: calc(var(--header-offset, 120px) + 40px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__sub-title {
    font-size: 1.4em;
  }
  .page-resources__paragraph,
  .page-resources__list-item,
  .page-resources__faq-answer {
    font-size: 1em;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  /* Responsive Images */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Đảm bảo kích thước tối thiểu */
    min-height: 200px !important; /* Đảm bảo kích thước tối thiểu */
  }
  .page-resources__introduction-section,
  .page-resources__analysis-section,
  .page-resources__tips-section,
  .page-resources__beginner-guide-section,
  .page-resources__casino-section,
  .page-resources__faq-section,
  .page-resources__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.95em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__sub-title {
    font-size: 1.2em;
  }
  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 0 15px 15px;
  }
}