/* style/news.css */
:root {
  --primary-color: #FF4500; /* Cam đỏ sôi động */
  --secondary-color: #1E90FF; /* Xanh lam chuyên nghiệp */
  --text-color-dark-bg: #ffffff; /* Văn bản trên nền tối */
  --text-color-light-bg: #333333; /* Văn bản trên nền sáng */
  --card-bg-dark-mode: rgba(255, 255, 255, 0.08); /* Nền thẻ trong chế độ tối */
  --border-color-dark-mode: rgba(255, 255, 255, 0.15);
  --button-hover-darken: #cc3700;
  --button-secondary-hover-lighten: #e6e6e6;
}

.page-news {
  color: var(--text-color-dark-bg); /* Body background is dark (#121212) */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 100px; /* Adjust for fixed header on desktop */
}

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

.page-news__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body bg for contrast */
  color: var(--text-color-dark-bg);
}

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* Hero Section */
.page-news__hero-section {
  padding: 80px 0;
  text-align: center;
  background-image: url('[GALLERY:bg:u888,news,hero_background,abstract]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__hero-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-news__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-news__hero-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  border: 2px solid var(--primary-color);
}

.page-news__btn-primary:hover {
  background-color: var(--button-hover-darken);
  border-color: var(--button-hover-darken);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Featured Articles */
.page-news__featured-articles {
  padding: 60px 0;
}

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

.page-news__article-card {
  background-color: var(--card-bg-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark-mode);
}

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

.page-news__article-link {
  text-decoration: none;
  color: var(--text-color-dark-bg);
  display: block;
}

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.4;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #c0c0c0;
  margin-bottom: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__article-date {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Latest Articles */
.page-news__latest-articles {
  padding: 60px 0;
}

.page-news__article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-news__list-item-card {
  background-color: var(--card-bg-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark-mode);
}

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

.page-news__list-item-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color-dark-bg);
}

.page-news__list-item-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
}

.page-news__list-item-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.page-news__list-item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--primary-color);
  line-height: 1.4;
}

.page-news__list-item-excerpt {
  font-size: 15px;
  color: #c0c0c0;
  margin-bottom: 10px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__list-item-date {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 500;
}

.page-news__load-more-cta {
  text-align: center;
  margin-top: 50px;
}

.page-news__load-more-cta .page-news__btn-primary {
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 8px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0 80px 0;
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark-mode);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark-mode);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate for minus sign */
}

.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;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color-dark-mode);
}

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

/* Join CTA Section */
.page-news__join-cta-section {
  padding: 80px 0;
  text-align: center;
  background-image: url('[GALLERY:bg:u888,news,cta_banner,abstract]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-news__join-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.page-news__cta-large-button {
  padding: 18px 45px;
  font-size: 20px;
  border-radius: 10px;
  font-weight: bold;
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-news__cta-large-button:hover {
  background-color: var(--button-hover-darken);
  border-color: var(--button-hover-darken);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 42px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__list-item-title {
    font-size: 18px;
  }
  .page-news__list-item-image {
    width: 200px;
    height: 160px;
  }
  .page-news__faq-question h3 {
    font-size: 17px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 80px !important; /* Adjust for fixed header on mobile */
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__hero-title {
    font-size: 36px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__hero-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-news__article-card {
    margin-bottom: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 14px;
  }
  .page-news__list-item-link {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-news__list-item-image {
    width: 100% !important;
    height: 180px;
    border-radius: 12px 12px 0 0;
  }
  .page-news__list-item-content {
    padding: 20px;
  }
  .page-news__list-item-title {
    font-size: 18px;
  }
  .page-news__list-item-excerpt {
    font-size: 14px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-question h3 {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }
  .page-news__faq-answer p {
    font-size: 15px;
  }
  .page-news__cta-large-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 30px;
    font-size: 18px;
  }
  
  /* General image, video, and button responsive styles */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__featured-articles,
  .page-news__latest-articles,
  .page-news__faq-section,
  .page-news__join-cta-section,
  .page-news__hero-cta-buttons,
  .page-news__load-more-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__hero-cta-buttons,
  .page-news__load-more-cta {
    flex-wrap: wrap !important;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}