/* style/news.css */
/* body đã padding-top: var(--header-offset) bởi shared.css; trang này không được thêm padding-top tương tự */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --bg-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Mặc định chữ sáng trên nền tối */
  background-color: var(--bg-color);
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn để body xử lý khoảng cách header */
  background-color: var(--bg-color);
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(8, 22, 15, 0.7); /* Nền tối để chữ nổi bật */
  border-radius: 10px;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-news__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.page-news__latest-articles {
  background-color: #f8f8f8; /* Nền sáng cho phần bài viết */
  color: #333333; /* Chữ tối trên nền sáng */
  padding: 80px 0;
}

.page-news__latest-articles .page-news__section-title,
.page-news__latest-articles .page-news__section-description {
  color: #333333;
}

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

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

.page-news__article-card:hover {
  transform: translateY(-5px);
}

.page-news__article-image-wrapper {
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-news__article-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-news__article-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #333333;
  text-decoration: none;
}

.page-news__article-title a:hover {
  color: var(--primary-color);
}

.page-news__article-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  margin-top: auto; /* Đẩy xuống cuối */
}

.page-news__read-more:hover {
  border-color: var(--primary-color);
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__featured-news {
  background-color: var(--bg-color);
  padding: 80px 0;
}

.page-news__featured-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-news__featured-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-news__featured-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-news__featured-content {
  flex: 1;
  padding: 30px;
}

.page-news__featured-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__featured-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-news__featured-title a:hover {
  color: var(--primary-color);
}

.page-news__featured-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-news__featured-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-news__featured-image-wrapper {
  flex: 1;
  min-width: 400px;
  height: 300px;
}

.page-news__featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news__video-section {
  background-color: var(--bg-color);
  padding: 80px 0;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-news__cta-section {
  background-color: #f0f0f0; /* Nền sáng cho CTA */
  color: #333333; /* Chữ tối trên nền sáng */
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
  color: #333333;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-news__faq-section {
  background-color: var(--bg-color);
  padding: 80px 0;
}

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

.page-news__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--divider-color);
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__featured-item {
    flex-direction: column;
  }
  .page-news__featured-item:nth-child(even) {
    flex-direction: column;
  }
  .page-news__featured-image-wrapper {
    min-width: unset;
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-content {
    padding: 15px;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-left: 0;
    margin-bottom: 15px;
  }
  
  .page-news__btn-secondary {
    margin-left: 0;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-news__section-description {
    font-size: 0.95em;
  }

  .page-news__latest-articles,
  .page-news__featured-news,
  .page-news__video-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
  }

  .page-news__featured-item {
    padding: 0;
  }

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

  .page-news__featured-title {
    font-size: 1.5em;
  }

  .page-news__featured-image-wrapper {
    height: 200px;
  }

  /* Mobile image and video responsiveness */
  .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__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset, đây chỉ là khoảng cách nhỏ */
  }

  .page-news__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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