/* style/news.css */
/* body đã padding-top: var(--header-offset)；tránh trùng lặp */
.page-news {
  color: #ffffff; /* Body background #111111 (dark), nên dùng chữ sáng */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Đảm bảo ảnh trên, text dưới */
  align-items: center;
  padding-top: 10px; /* Nhỏ gọn, body đã xử lý offset */
  padding-bottom: 40px;
  background-color: #1a1a1a;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  max-width: 1920px; /* Kích thước ảnh gốc */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-news__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* H1 font-size clamp */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Đảm bảo chữ xuống dòng */
  box-sizing: border-box;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__btn-tertiary {
  background-color: #EA7C07; /* Màu login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-news__btn-tertiary:hover {
  background-color: #c06506;
  border-color: #c06506;
}

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

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

.page-news__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-news__section-title--light {
  color: #ffffff;
}

.page-news__paragraph {
  font-size: 1.05em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-news__paragraph--light {
  color: #ffffff;
}

.page-news__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-news__text-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__text-link:hover {
  text-decoration: underline;
}

.page-news__text-link--light {
  color: #ffffff;
}

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

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

.page-news__category-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__category-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-news__category-text {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__news-card-image {
  width: 100%;
  height: 220px; /* Đảm bảo hình ảnh đủ lớn */
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__news-card-date {
  font-size: 0.9em;
  color: #999999;
  margin-bottom: 10px;
  display: block;
}

.page-news__news-card-title {
  font-size: 1.25em;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-news__news-card-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-news__news-card-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

.page-news__benefit-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-news__benefit-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__benefit-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-news__benefit-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

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

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

.page-news__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-news__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
  text-align: justify;
}

.page-news__cta-content {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__cta-content .page-news__section-title {
  margin-bottom: 20px;
}

.page-news__cta-content .page-news__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    max-width: 768px;
  }

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

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

  .page-news__category-grid,
  .page-news__news-grid,
  .page-news__benefit-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 30px;
  }

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

  .page-news__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news__paragraph {
    font-size: 0.95em;
  }

  .page-news__category-grid,
  .page-news__news-grid,
  .page-news__benefit-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card-image {
    height: 180px;
  }

  .page-news__news-card-title {
    font-size: 1.1em;
  }

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

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

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__cta-buttons,
  .page-news__category-item,
  .page-news__news-card,
  .page-news__benefit-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* body đã xử lý offset */
  }

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

@media (max-width: 480px) {
  .page-news__hero-section {
    padding-bottom: 20px;
  }

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

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

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

  .page-news__news-card-image {
    height: 150px;
  }
}