/* style/nh.css */

/* Base styles for the page, inheriting from body's dark background */
.page-nh {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-nh__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0a0a0a; /* Ensure dark background for the hero section */
  overflow: hidden; /* Prevent content overflow */
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width of the image wrapper */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-nh__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure text is above any subtle background elements */
}

.page-nh__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* Ensure high contrast */
}

.page-nh__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly lighter for readability */
}

/* CTA Buttons */
.page-nh__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-nh__btn-primary,
.page-nh__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-nh__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-nh__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-nh__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand primary color for text */
  border: 2px solid #26A9E0;
}

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

/* Specific custom color for login button (if any in the future, currently handled by primary/secondary) */
.page-nh a[href*="redirect"][class*="btn"] {
  background-color: #EA7C07; /* Login custom color */
  border-color: #EA7C07;
  color: #ffffff;
}
.page-nh a[href*="redirect"][class*="btn"]:hover {
  background-color: #c96806;
  border-color: #c96806;
}


/* General Section Styles */
.page-nh__section {
  padding: 60px 20px;
  width: 100%;
  box-sizing: border-box;
}

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

.page-nh__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-nh__text-center {
  text-align: center;
  margin-top: 40px;
}

/* Background Color Handling */
.page-nh__dark-bg {
  background-color: #0a0a0a; /* Body background */
  color: #ffffff;
}

.page-nh__light-bg {
  background-color: #ffffff; /* Custom white background */
  color: #333333; /* Dark text for light background */
}

.page-nh__light-bg .page-nh__section-title,
.page-nh__light-bg .page-nh__card-title {
  color: #000000; /* Ensure black for titles on white background */
}

.page-nh__light-bg .page-nh__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}
.page-nh__light-bg .page-nh__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}


/* Grid Layouts */
.page-nh__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-nh__grid-item {
  text-align: center;
}

.page-nh__grid-item .page-nh__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size for content images */
}

.page-nh__item-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit; /* Inherit from section for contrast */
}

/* Card Styles */
.page-nh__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* Ensure cards in a row have equal height */
  box-sizing: border-box;
  color: #ffffff; /* Default for dark sections */
}

.page-nh__light-bg .page-nh__card {
  background-color: #f8f8f8; /* Light background for cards in light sections */
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.page-nh__card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size for content images */
}

.page-nh__card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit; /* Inherit from card for contrast */
}

/* List Styles */
.page-nh__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
}

.page-nh__list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: inherit; /* Inherit for contrast */
}

.page-nh__list li strong {
  color: #26A9E0; /* Highlight important points with brand color */
}

.page-nh__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

/* FAQ Section */
.page-nh__faq-list {
  margin-top: 40px;
}

.page-nh__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-nh__light-bg .page-nh__faq-item {
  background-color: #f0f0f0;
  color: #333333;
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
  user-select: none;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-nh__faq-item summary {
  list-style: none;
}
.page-nh__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-nh__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-nh__light-bg .page-nh__faq-question:hover {
  background-color: #e0e0e0;
}

.page-nh__faq-qtext {
  flex-grow: 1;
  color: inherit;
}

.page-nh__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0; /* Brand color for toggle */
}

.page-nh__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  max-height: 0; /* For JS-controlled collapse */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0; /* Lighter text for answers */
}

.page-nh__light-bg .page-nh__faq-answer {
  color: #555555;
}

.page-nh__faq-item[open] .page-nh__faq-answer { /* For details/summary native open state */
  max-height: fit-content;
  padding-top: 10px;
}

.page-nh__faq-item.active .page-nh__faq-answer { /* For JS-controlled expand */
  max-height: 2000px; /* Arbitrarily large value for smooth transition */
  padding-top: 10px;
}

/* Images - Global styles for content images */
.page-nh img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Ensure content area images are never too small */
.page-nh__grid-item .page-nh__image,
.page-nh__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-nh__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-nh__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  .page-nh__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-nh__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-nh__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-nh__hero-content {
    padding: 0 10px;
  }

  .page-nh__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-nh__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-nh__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain stacked buttons */
    margin: 0 auto;
  }
  .page-nh__btn-primary,
  .page-nh__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-nh__section {
    padding: 40px 15px;
  }
  .page-nh__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-nh__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-nh__grid {
    grid-template-columns: 1fr; /* Single column layout for most grids */
    gap: 20px;
  }
  .page-nh__grid--two-columns {
    grid-template-columns: 1fr;
  }

  .page-nh__card {
    padding: 20px;
  }
  .page-nh__card-image {
    min-height: 200px; /* Maintain minimum image size */
  }
  .page-nh__card-title {
    font-size: 1.2rem;
  }

  .page-nh__list li {
    font-size: 1rem;
    padding-left: 25px;
  }
  .page-nh__list li::before {
    font-size: 1.2rem;
  }

  .page-nh__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-nh__faq-answer {
    font-size: 0.95rem;
    padding: 0 15px 15px;
  }

  /* Image and container responsiveness for mobile */
  .page-nh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-nh__section,
  .page-nh__card,
  .page-nh__container,
  .page-nh__grid-item,
  .page-nh__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-nh__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-nh__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}