/* Biến màu */
:root {
  --page-news-primary-color: #2F6BFF;
  --page-news-secondary-color: #6FA3FF;
  --page-news-text-main: #1F2D3D;
  --page-news-text-dark: #000000;
  --page-news-bg-light: #F4F7FB;
  --page-news-card-bg: #FFFFFF;
  --page-news-border-color: #D6E2FF;
  --page-news-glow-color: #A5C4FF;
  --page-news-gradient-button: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

/* Cài đặt chung cho trang Tin Tức */
.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--page-news-text-main);
  background-color: var(--page-news-bg-light);
  line-height: 1.6;
}

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

.page-news__section {
  padding: 60px 0;
}

.page-news__section-title,
.page-news__main-title,
.page-news__cta-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--page-news-text-dark);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__section-description,
.page-news__subtitle,
.page-news__cta-description {
  font-size: 18px;
  color: var(--page-news-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Nút CTA chung */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--page-news-gradient-button);
  color: #ffffff;
  border: none;
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

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

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: var(--page-news-primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 810px; /* Adjust based on 1920x810 aspect ratio for desktop */
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-news__hero-content-wrapper {
  position: relative;
  padding: 40px 15px;
  color: #ffffff;
  z-index: 2;
  max-width: 900px;
}

.page-news__main-title {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 15px;
}

.page-news__subtitle {
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: var(--page-news-bg-light);
}

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

.page-news__article-card {
  background: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-news__article-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--page-news-text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: var(--page-news-text-main);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__article-meta {
  font-size: 13px;
  color: #777;
}

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

/* Industry Insights Section */
.page-news__industry-insights {
  background-color: var(--page-news-card-bg);
}

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

.page-news__insight-item {
  background: var(--page-news-card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid var(--page-news-border-color);
}

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

.page-news__insight-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-news-text-dark);
  padding: 20px 20px 10px;
}

.page-news__insight-text {
  font-size: 16px;
  color: var(--page-news-text-main);
  padding: 0 20px 15px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--page-news-primary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--page-news-secondary-color);
  text-decoration: underline;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--page-news-bg-light);
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-news-border-color);
  overflow: hidden;
  background: var(--page-news-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #f8f8f8;
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--page-news-text-dark);
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-news-primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: var(--page-news-text-main);
}

/* CTA Section */
.page-news__cta-section {
  background: var(--page-news-primary-color);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-news__cta-title {
  color: #ffffff;
  font-size: 40px;
  margin-bottom: 25px;
}

.page-news__cta-description {
  color: #f0f0f0;
  font-size: 20px;
  margin-bottom: 40px;
}

.page-news__btn-large {
  padding: 16px 40px;
  font-size: 20px;
  border-radius: 10px;
}

/* ==================================================================
   Responsive Styles for Mobile (max-width: 768px)
   ================================================================== */
@media (max-width: 768px) {
  .page-news__container {
    padding: 15px;
  }

  .page-news__section {
    padding: 40px 0;
  }

  .page-news__section-title,
  .page-news__main-title,
  .page-news__cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* Generic Image and Button Adaptaion */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-news__hero-image-wrapper {
    max-height: 400px; /* Adjusted for mobile */
  }

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

  /* Latest Articles Section */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  /* Industry Insights Section */
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-news__insight-text {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }

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

  .page-news__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 50px 0;
  }

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

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

  .page-news__btn-large {
    padding: 14px 30px;
    font-size: 18px;
  }
}

/* ==================================================================
   Responsive Styles for Tablets (max-width: 1024px)
   ================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-news__container {
    padding: 20px 30px;
  }

  .page-news__section-title,
  .page-news__main-title,
  .page-news__cta-title {
    font-size: 32px;
  }

  .page-news__section-description,
  .page-news__subtitle,
  .page-news__cta-description {
    font-size: 17px;
  }

  .page-news__articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news__insight-item {
    min-width: unset;
  }

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

  .page-news__hero-image {
    object-fit: contain; /* Specific instruction for banner at 849px and below */
  }
}

@media (max-width: 849px) {
  .page-news__hero-image {
    object-fit: contain;
  }
}