/* style/nh.css */
/* body đã padding-top: var(--header-offset); trang này không được viết lại biến đó */
.page-nh {
  background-color: #08160F; /* Nền chính theo Custom Color: Background */
  color: #F2FFF6; /* Màu chữ chính theo Custom Color: Text Main, đảm bảo tương phản với nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Hình ảnh trên, nội dung dưới */
  align-items: center;
  padding: 60px 20px 40px; /* Padding cho desktop */
  padding-top: 10px; /* Chỉ một khoảng cách nhỏ từ header */
  background-color: #08160F; /* Đảm bảo nền khớp */
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
  border-radius: 15px;
  overflow: hidden;
}

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

.page-nh__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-nh__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Sử dụng clamp cho responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Custom Color: Gold */
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5); /* Hiệu ứng tỏa sáng */
}

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

/* Buttons */
.page-nh__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Đảm bảo xuống dòng trên mobile */
  width: 100%;
  max-width: 500px; /* Giới hạn chiều rộng nhóm nút */
  margin: 0 auto;
}

.page-nh__btn-primary,
.page-nh__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  min-width: 180px; /* Đảm bảo kích thước tối thiểu */
}

.page-nh__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Color: Button */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-nh__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-nh__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Sử dụng màu xanh sáng từ gradient */
  border: 2px solid #2AD16F;
  box-shadow: 0 2px 10px rgba(42, 209, 111, 0.2);
}

.page-nh__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Nền tối */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

/* General Sections */
.page-nh__introduction-section,
.page-nh__getting-started-section,
.page-nh__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Custom Color: Background */
}

.page-nh__dark-section {
  background-color: #0A4B2C; /* Custom Color: Deep Green */
  color: #F2FFF6; /* Text Main */
  padding: 80px 0;
}

.page-nh__card-bg {
  background-color: #11271B; /* Custom Color: Card BG */
  color: #F2FFF6; /* Text Main */
  padding: 80px 0;
}

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

.page-nh__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #2AD16F;
  margin: 20px auto 0;
  border-radius: 2px;
}

.page-nh__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
  object-fit: cover;
}

/* Features Grid */
.page-nh__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-nh__feature-card {
  background-color: #11271B; /* Custom Color: Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom Color: Border */
}

.page-nh__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-nh__card-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Custom Color: Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-nh__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

/* Steps List */
.page-nh__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-nh__step-item {
  background-color: #11271B; /* Custom Color: Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #2E7A4E; /* Custom Color: Border */
}

.page-nh__step-title {
  font-size: 1.4rem;
  color: #2AD16F; /* Màu xanh sáng */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-nh__step-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

/* Promotions Grid */
.page-nh__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-nh__promo-card {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom Color: Border */
}

.page-nh__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Security Features */
.page-nh__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-nh__security-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-nh__item-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-nh__tips-list .page-nh__list-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

/* FAQ Section */
.page-nh__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-nh__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-nh__faq-question::-webkit-details-marker {
  display: none;
}

.page-nh__faq-question:hover {
  background-color: #13994A;
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-nh__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #F2C14E; /* Gold */
  transition: transform 0.3s ease;
}

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

.page-nh__faq-answer p {
  margin-bottom: 10px;
  color: #A7D9B8;
}

.page-nh__faq-answer a {
  color: #2AD16F;
  text-decoration: underline;
}

/* Bottom CTA */
.page-nh__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-nh__hero-section {
    padding: 40px 15px 30px;
  }
  .page-nh__hero-content {
    max-width: 700px;
  }
  .page-nh__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-nh__hero-description {
    font-size: 1.1rem;
  }
  .page-nh__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-nh {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Images and Videos Responsive */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-nh video,
  .page-nh__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-nh__video-section,
  .page-nh__video-container,
  .page-nh__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-nh__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }

  /* Buttons Responsive */
  .page-nh__cta-buttons {
    flex-direction: column; /* Nút xếp chồng trên mobile */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    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;
  }
  
  /* Container padding for mobile */
  .page-nh__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-nh__hero-section,
  .page-nh__introduction-section,
  .page-nh__features-section,
  .page-nh__getting-started-section,
  .page-nh__promotions-section,
  .page-nh__security-section,
  .page-nh__tips-section,
  .page-nh__faq-section,
  .page-nh__cta-bottom-section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-nh__feature-card,
  .page-nh__step-item,
  .page-nh__promo-card,
  .page-nh__security-item,
  .page-nh__tips-list .page-nh__list-item,
  .page-nh__faq-item {
    margin-left: 15px;
    margin-right: 15px;
    width: auto; /* Để thẻ tự điều chỉnh theo padding của container */
  }
}

@media (max-width: 480px) {
  .page-nh__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-nh__hero-description {
    font-size: 1rem;
  }
  .page-nh__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .page-nh__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-nh__faq-answer {
    padding: 0 20px 15px;
  }
}