/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-resources__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.page-resources__btn--primary {
  background-color: #007bff;
  color: #ffffff;
  border: 1px solid #007bff;
}

.page-resources__btn--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-resources__btn--secondary {
  background-color: #ffc107;
  color: #333;
  border: 1px solid #ffc107;
}

.page-resources__btn--secondary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-2px);
}

/* Hero Section */
.page-resources__hero-section {
  background: linear-gradient(135deg, #007bff, #4da3ff);
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff; /* Đảm bảo độ tương phản cao */
}

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

/* Section Titles */
.page-resources__section-title {
  font-size: 2.5em;
  color: #0056b3;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-resources__section-subtitle {
  font-size: 1.1em;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
}

/* Featured Articles */
.page-resources__featured-articles {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-resources__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__article-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-resources__article-title a {
  color: #007bff;
  text-decoration: none;
}

.page-resources__article-title a:hover {
  text-decoration: underline;
}

.page-resources__article-summary {
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why tg88 Section */
.page-resources__why-tg88 {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-resources__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #f0f8ff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}

.page-resources__feature-title {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-resources__feature-description {
  color: #555;
}

.page-resources__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.page-resources__cta-bottom p {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: #333;
}

/* CTA Section */
.page-resources__cta-section {
  background: #007bff;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-resources__cta-section--alt {
  background: linear-gradient(90deg, #007bff, #0056b3);
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-resources__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

.page-resources__cta-buttons .page-resources__btn {
  margin: 0 10px;
}

.page-resources__cta-buttons .page-resources__btn--secondary {
  background-color: #ffc107;
  color: #333;
  border-color: #ffc107;
}

.page-resources__cta-buttons .page-resources__btn--secondary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.page-resources__faq-accordion {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  width: 100%;
  background-color: #f0f8ff;
  color: #007bff;
  padding: 20px 25px;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-resources__faq-question:hover {
  background-color: #e6f2ff;
}

.page-resources__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

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

.page-resources__faq-answer p {
  padding-bottom: 20px;
  color: #555;
}

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

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

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

  .page-resources__cta-title {
    font-size: 2.2em;
  }

  .page-resources__article-grid,
  .page-resources__features-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
  }

  .page-resources__cta-buttons .page-resources__btn {
    margin: 10px 0;
    width: 100%;
  }
}

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

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

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

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

  .page-resources__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-resources__faq-answer p {
    font-size: 0.9em;
  }
}