/* style/news.css */
.page-news {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Sáng màu cho nền tối */
  background-color: #121212; /* Nền tối của body */
}

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

.page-news__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E44D26; /* Màu chủ đạo */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

/* Hero Banner Section */
.page-news__hero-banner {
  background: linear-gradient(135deg, #E44D26, #336699);
  padding: 80px 0 40px 0;
  text-align: center;
  position: relative;
  /* Điều chỉnh padding-top để tránh bị che bởi header cố định */
  padding-top: 90px; /* Thêm 10px để đảm bảo không bị che */
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding-bottom: 20px;
}

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

.page-news__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  padding: 0 15px;
}

/* Articles Section */
.page-news__articles-section {
  padding: 60px 0;
  background-color: #121212;
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 24px;
  font-weight: 700;
  color: #E44D26;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: #336699;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #5599ff;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-link {
  display: block;
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-weight: 600;
}

.page-news__pagination-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.page-news__pagination-link--active {
  background-color: #E44D26;
  color: #ffffff;
}

.page-news__pagination-link--active:hover {
  background-color: #cf3d1e;
  transform: none;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #E44D26;
  pointer-events: none;
}

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

.page-news__faq-item.active .page-news__faq-toggle {
  color: #E44D26;
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu cộng thành dấu X */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Đảm bảo đủ cao cho mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #121212;
  text-align: center;
}

.page-news__cta-container {
  background: linear-gradient(90deg, #E44D26, #336699);
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__cta-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-news__cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: #E44D26; /* Màu chữ tương phản với nền */
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button:hover {
  background-color: #f0f0f0;
  color: #cf3d1e;
  transform: translateY(-5px);
}

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

  .page-news__hero-description {
    font-size: 18px;
  }

  .page-news__section-title {
    font-size: 30px;
  }

  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__cta-title {
    font-size: 36px;
  }

  .page-news__cta-description {
    font-size: 18px;
  }

  .page-news__cta-button {
    font-size: 20px;
    padding: 15px 35px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding-top: 80px; /* Điều chỉnh lại cho mobile */
    padding-bottom: 30px;
  }
  .page-news__hero-title {
    font-size: 32px;
  }

  .page-news__hero-description {
    font-size: 16px;
    padding: 0 15px;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-top: 40px;
  }

  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__category-card {
    padding-bottom: 15px;
  }

  .page-news__category-image {
    height: 180px;
  }

  .page-news__category-title {
    font-size: 20px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image {
    height: 200px;
  }

  .page-news__article-content {
    padding: 20px;
  }

  .page-news__article-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-news__article-excerpt {
    font-size: 15px;
  }

  .page-news__read-more {
    font-size: 15px;
  }

  .page-news__pagination {
    margin-top: 30px;
    gap: 8px;
  }

  .page-news__pagination-link {
    padding: 10px 15px;
    font-size: 15px;
  }

  .page-news__faq-question {
    padding: 18px 20px;
  }

  .page-news__faq-question h3 {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

  .page-news__faq-answer {
    padding: 0 20px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 18px 20px !important;
  }

  .page-news__faq-answer p {
    font-size: 15px;
  }

  .page-news__cta-section {
    padding: 60px 0;
  }

  .page-news__cta-container {
    padding: 40px 20px;
  }

  .page-news__cta-title {
    font-size: 30px;
  }

  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-news__cta-button {
    font-size: 18px;
    padding: 14px 30px;
  }

  /* Responsive image adjustments */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__categories-section,
  .page-news__articles-section,
  .page-news__faq-section,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}