/* Base styles for the page */
.page-huong-dan-nap-rut {
  background-color: #0A0A0A; /* Dark background */
  color: #FFF6D6; /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

/* Hero Section */
.page-huong-dan-nap-rut__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Fixed header spacing */
  margin-bottom: 40px;
}

.page-huong-dan-nap-rut__hero-image {
  width: 100%;
  height: 450px; /* Desktop height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-huong-dan-nap-rut__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default cover, will be 'contain' on mobile */
  display: block;
}

.page-huong-dan-nap-rut__hero-content {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  padding: 0 20px;
}

.page-huong-dan-nap-rut__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
  color: #FFD36B; /* Auxiliary color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-huong-dan-nap-rut__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* General Section Styling */
.page-huong-dan-nap-rut__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-huong-dan-nap-rut__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  color: #FFD36B;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-huong-dan-nap-rut__content-block {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid #3A2A12; /* Border color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

.page-huong-dan-nap-rut__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  color: #F2C14E; /* Main color */
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-huong-dan-nap-rut p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-huong-dan-nap-rut ul,
.page-huong-dan-nap-rut ol {
  margin-bottom: 15px;
  padding-left: 25px;
  color: #FFF6D6;
}

.page-huong-dan-nap-rut ul li,
.page-huong-dan-nap-rut ol li {
  margin-bottom: 8px;
  list-style-type: disc; /* Default list style */
}

.page-huong-dan-nap-rut ol li {
  list-style-type: decimal;
}

/* Images within content */
.page-huong-dan-nap-rut__content-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  border: 1px solid #3A2A12;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* Buttons */
.page-huong-dan-nap-rut__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast on gold button */
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-huong-dan-nap-rut__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-huong-dan-nap-rut__cta-block {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* FAQ Section */
details.page-huong-dan-nap-rut__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111; /* Card BG */
  color: #FFF6D6;
}
details.page-huong-dan-nap-rut__faq-item summary.page-huong-dan-nap-rut__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Main color for question */
  font-weight: bold;
}
details.page-huong-dan-nap-rut__faq-item summary.page-huong-dan-nap-rut__faq-question::-webkit-details-marker {
  display: none;
}
details.page-huong-dan-nap-rut__faq-item summary.page-huong-dan-nap-rut__faq-question:hover {
  background: rgba(242, 193, 78, 0.1); /* Subtle hover effect with main color */
}
.page-huong-dan-nap-rut__faq-qtext {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Main color for question text */
}
.page-huong-dan-nap-rut__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-huong-dan-nap-rut__faq-item .page-huong-dan-nap-rut__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly darker variant of card bg */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6; /* Light text for answer */
}
.page-huong-dan-nap-rut__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-huong-dan-nap-rut__hero-image {
    height: 380px;
  }
  .page-huong-dan-nap-rut__main-title {
    font-size: clamp(26px, 3.8vw, 42px);
  }
  .page-huong-dan-nap-rut__description {
    font-size: 17px;
  }
  .page-huong-dan-nap-rut__section-title {
    font-size: clamp(22px, 3vw, 32px);
  }
  .page-huong-dan-nap-rut__sub-title {
    font-size: clamp(18px, 2.2vw, 24px);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-huong-dan-nap-rut__hero-section {
    padding-top: 10px; /* Mobile top spacing */
    margin-bottom: 30px;
  }
  .page-huong-dan-nap-rut__hero-image {
    height: 250px; /* Smaller height for mobile */
  }
  .page-huong-dan-nap-rut__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Unset aspect ratio */
  }
  .page-huong-dan-nap-rut__hero-content {
    margin: 20px auto;
    padding: 0 15px;
  }
  .page-huong-dan-nap-rut__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust clamp for mobile H1 */
    text-align: center;
  }
  .page-huong-dan-nap-rut__description {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
  }

  /* 通用图片与容器 */
  .page-huong-dan-nap-rut img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-huong-dan-nap-rut__section,
  .page-huong-dan-nap-rut__container,
  .page-huong-dan-nap-rut__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-huong-dan-nap-rut__content-block {
    padding: 20px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-huong-dan-nap-rut__section-title {
    font-size: clamp(20px, 6vw, 28px);
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 0 15px;
    text-align: center;
    word-break: break-word;
  }
  .page-huong-dan-nap-rut__sub-title {
    font-size: clamp(18px, 5vw, 22px);
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 15px;
    text-align: left;
    word-break: break-word;
  }
  .page-huong-dan-nap-rut p,
  .page-huong-dan-nap-rut li {
    font-size: 15px;
    padding: 0 5px; /* Adjust padding for text inside content block */
  }
  
  /* 按钮与按钮容器 */
  .page-huong-dan-nap-rut__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 20px;
    font-size: 16px;
  }
  .page-huong-dan-nap-rut__cta-block {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  /* FAQ Section for mobile */
  details.page-huong-dan-nap-rut__faq-item summary.page-huong-dan-nap-rut__faq-question { padding: 15px; }
  .page-huong-dan-nap-rut__faq-qtext { font-size: 15px; }
  .page-huong-dan-nap-rut__faq-toggle { margin-left: 10px; width: 24px; height: 24px; font-size: 20px; }
  details.page-huong-dan-nap-rut__faq-item .page-huong-dan-nap-rut__faq-answer { padding: 0 15px 15px; }
}