/* style/news.css */
/* body đã có padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

.page-news {
  background-color: #08160F; /* Nền tối */
  color: #F2FFF6; /* Chữ sáng */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Chỉ một khoảng cách nhỏ từ header */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (1080/1920) */
  overflow: hidden;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  margin-top: -150px; /* Kéo nội dung lên trên ảnh để tạo hiệu ứng */
  background: rgba(17, 39, 27, 0.85); /* Card BG với độ trong suốt */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E;
}

.page-news__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-news__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-news__section {
  padding: 80px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

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

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__section-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-news__news-card,
.page-news__featured-card,
.page-news__update-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover,
.page-news__featured-card:hover,
.page-news__update-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px #57E38D; /* Glow */
}

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

.page-news__featured-card .page-news__card-image {
  height: 300px;
}

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

.page-news__card-date {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-news__card-title,
.page-news__update-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-news__card-title a,
.page-news__update-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover,
.page-news__update-title a:hover {
  color: #22C768; /* Auxiliary Color */
}

.page-news__card-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button BG */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px #57E38D;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Lighter green from gradient */
  border: 2px solid #2AD16F;
}

.page-news__btn-secondary:hover {
  background-color: #2AD16F;
  color: #ffffff;
  border-color: #2AD16F;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-text {
  background: none;
  border: none;
  color: #22C768; /* Auxiliary Color */
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
}

.page-news__btn-text:hover {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

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

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

.page-news__event-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__event-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-news__event-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

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

.page-news__cta-section {
  text-align: center;
  padding: 100px 0;
  background: url('[GALLERY:cta_banner:1600x900:gam88,cta,register,promo_background]') no-repeat center center/cover;
  position: relative;
  z-index: 1;
}

.page-news__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 22, 15, 0.85); /* Background #08160F with transparency */
  z-index: -1;
}

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

.page-news__faq-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-news__faq-item[open] {
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-news__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  color: #2AD16F; /* Lighter green */
  margin-left: 15px;
  line-height: 1;
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

/* ===================================================================== */
/* Responsive Design */
/* ===================================================================== */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }
}

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

  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-image-wrapper {
    padding-bottom: 75%; /* 4:3 Aspect Ratio for mobile hero */
  }

  .page-news__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
    max-width: 95%;
  }

  .page-news__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

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

  .page-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-news__section-description {
    margin-bottom: 30px;
  }

  .page-news__news-grid,
  .page-news__featured-grid,
  .page-news__updates-grid,
  .page-news__events-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-news__featured-card .page-news__card-image {
    height: 250px;
  }

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

  .page-news__card-title,
  .page-news__update-title {
    font-size: 1.2rem;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

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

  .page-news__faq-question {
    font-size: 1.05rem;
    padding: 18px 20px;
  }

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

  /* Force responsive images for all images in .page-news */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video section top padding for mobile, body padding-top already handles header offset */
  .page-news__video-section {
    padding-top: 10px !important;
  }

  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}