/* Base styles for the page-huong-dan-choi */
.page-huong-dan-choi {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text on light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensure content background matches body */
}

.page-huong-dan-choi__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-huong-dan-choi__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-huong-dan-choi__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

/* Hero Section */
.page-huong-dan-choi__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: linear-gradient(to right, #e0ffe0, #ffffff);
}

.page-huong-dan-choi__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 60px 16px;
}

.page-huong-dan-choi__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333;
}

.page-huong-dan-choi__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #017439;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-huong-dan-choi__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #555555;
}

.page-huong-dan-choi__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-huong-dan-choi__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

/* CTA Buttons */
.page-huong-dan-choi__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-huong-dan-choi__btn-primary,
.page-huong-dan-choi__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-huong-dan-choi__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-huong-dan-choi__btn-primary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
  transform: translateY(-2px);
}

.page-huong-dan-choi__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-huong-dan-choi__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
  transform: translateY(-2px);
}

.page-huong-dan-choi__btn-small {
    font-size: 0.9em;
    padding: 10px 20px;
}

/* Intro Section (Feature Grid) */
.page-huong-dan-choi__intro-section {
  padding: 80px 0;
  background-color: #f8fcf8; /* Light background for contrast */
}

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

.page-huong-dan-choi__feature-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-huong-dan-choi__feature-item:hover {
  transform: translateY(-5px);
}

.page-huong-dan-choi__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

.page-huong-dan-choi__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image is also circular */
  display: block;
}

.page-huong-dan-choi__feature-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-huong-dan-choi__feature-text {
  font-size: 1em;
  color: #666666;
}

/* Guide Section */
.page-huong-dan-choi__guide-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-huong-dan-choi__guide-section .page-huong-dan-choi__section-title,
.page-huong-dan-choi__guide-section .page-huong-dan-choi__section-description {
  color: #ffffff;
}

.page-huong-dan-choi__guide-step {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi__guide-step:last-child {
  margin-bottom: 0;
}

.page-huong-dan-choi__guide-step--reverse {
  flex-direction: row-reverse;
}

.page-huong-dan-choi__guide-media {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-huong-dan-choi__guide-media img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-huong-dan-choi__guide-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-huong-dan-choi__guide-title {
  font-size: 2.2em;
  color: #f0f0f0;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-huong-dan-choi__guide-subtitle {
  font-size: 1.4em;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-huong-dan-choi__guide-text {
  font-size: 1.05em;
  color: #e0e0e0;
  margin-bottom: 15px;
}

/* Tips Section */
.page-huong-dan-choi__tips-section {
  padding: 80px 0;
  background-color: #f0f8f0;
}

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

.page-huong-dan-choi__tip-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-huong-dan-choi__tip-card:hover {
  transform: translateY(-5px);
}

.page-huong-dan-choi__tip-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-huong-dan-choi__tip-card .page-huong-dan-choi__tip-title {
  font-size: 1.6em;
  color: #017439;
  padding: 20px 20px 10px;
  font-weight: 700;
}

.page-huong-dan-choi__tip-card .page-huong-dan-choi__tip-text {
  font-size: 1em;
  color: #666666;
  padding: 0 20px 25px;
}

/* FAQ Section */
.page-huong-dan-choi__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-huong-dan-choi__faq-section .page-huong-dan-choi__section-title,
.page-huong-dan-choi__faq-section .page-huong-dan-choi__section-description {
  color: #ffffff;
}

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

.page-huong-dan-choi__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-huong-dan-choi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

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

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

.page-huong-dan-choi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Yellow for toggle icon */
}

.page-huong-dan-choi__faq-item[open] .page-huong-dan-choi__faq-toggle {
  content: '−';
}

.page-huong-dan-choi__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #e0e0e0;
  line-height: 1.7;
}

/* CTA Section at bottom */
.page-huong-dan-choi__cta-section {
  padding: 60px 0;
  background-color: #f8fcf8;
  text-align: center;
}

.page-huong-dan-choi__cta-section .page-huong-dan-choi__cta-buttons {
  justify-content: center;
  margin-top: 30px;
}

/* General image responsiveness */
.page-huong-dan-choi img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-huong-dan-choi__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-huong-dan-choi__hero-content {
    order: 2;
  }

  .page-huong-dan-choi__hero-image {
    order: 1;
    margin-bottom: 30px;
  }

  .page-huong-dan-choi__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-huong-dan-choi__guide-step {
    flex-direction: column;
    text-align: center;
  }

  .page-huong-dan-choi__guide-step--reverse {
    flex-direction: column;
  }

  .page-huong-dan-choi__guide-media {
    margin-bottom: 20px;
  }

  .page-huong-dan-choi__tip-image {
    height: 200px; /* Adjust height for smaller screens */
  }

  .page-huong-dan-choi__feature-item {
    padding: 25px;
  }

  .page-huong-dan-choi__icon-box-media {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }
}

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

  /* HERO section mobile */
  .page-huong-dan-choi__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-huong-dan-choi__hero-container {
    padding: 30px 15px;
    gap: 20px;
  }

  .page-huong-dan-choi__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-huong-dan-choi__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* CTA buttons mobile */
  .page-huong-dan-choi__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-huong-dan-choi__btn-primary,
  .page-huong-dan-choi__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* General section titles and descriptions mobile */
  .page-huong-dan-choi__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-huong-dan-choi__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Intro section (feature grid) mobile */
  .page-huong-dan-choi__intro-section {
    padding: 60px 0;
  }

  .page-huong-dan-choi__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-huong-dan-choi__icon-box-media {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
  }

  .page-huong-dan-choi__feature-title {
    font-size: 1.5em;
  }

  /* Guide section mobile */
  .page-huong-dan-choi__guide-section {
    padding: 60px 0;
  }

  .page-huong-dan-choi__guide-step {
    padding: 20px;
    margin-bottom: 40px;
    gap: 20px;
  }

  .page-huong-dan-choi__guide-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-huong-dan-choi__guide-subtitle {
    font-size: 1.2em;
    margin-top: 20px;
  }

  .page-huong-dan-choi__guide-text {
    font-size: 0.95em;
  }

  /* Tips section mobile */
  .page-huong-dan-choi__tips-section {
    padding: 60px 0;
  }

  .page-huong-dan-choi__tip-image {
    height: 180px;
  }

  .page-huong-dan-choi__tip-card .page-huong-dan-choi__tip-title {
    font-size: 1.4em;
    padding: 15px 15px 8px;
  }

  .page-huong-dan-choi__tip-card .page-huong-dan-choi__tip-text {
    font-size: 0.95em;
    padding: 0 15px 20px;
  }

  /* FAQ section mobile */
  .page-huong-dan-choi__faq-section {
    padding: 60px 0;
  }

  .page-huong-dan-choi__faq-list {
    margin-top: 30px;
  }

  .page-huong-dan-choi__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-huong-dan-choi__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Generic image responsiveness for content area */
  .page-huong-dan-choi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__section,
  .page-huong-dan-choi__card,
  .page-huong-dan-choi__container,
  .page-huong-dan-choi__feature-item,
  .page-huong-dan-choi__guide-step,
  .page-huong-dan-choi__tip-card,
  .page-huong-dan-choi__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override specific padding for main container to prevent double padding */
  .page-huong-dan-choi__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-huong-dan-choi__light-bg,
  .page-huong-dan-choi__dark-bg {
    padding-left: 0;
    padding-right: 0;
  }

  .page-huong-dan-choi__feature-item,
  .page-huong-dan-choi__tip-card,
  .page-huong-dan-choi__faq-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-huong-dan-choi__guide-step {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Color Contrast Safeguards */
.page-huong-dan-choi__light-bg {
  color: #333333; /* Dark text on light background */
  background: #ffffff;
}

.page-huong-dan-choi__dark-bg {
  color: #ffffff; /* Light text on dark background */
  background: #017439;
}

.page-huong-dan-choi__content-area,
.page-huong-dan-choi__text-block {
  color: #333333;
  background: #ffffff;
}

.page-huong-dan-choi p,
.page-huong-dan-choi li {
  color: #333333;
}

.page-huong-dan-choi__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-huong-dan-choi__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-huong-dan-choi__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-huong-dan-choi__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

/* Mobile accessibility enhancements */
@media (max-width: 768px) {
  .page-huong-dan-choi {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-huong-dan-choi__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}