/* Base styles for the page */
.page-huong-tien-rut-tien {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

.page-huong-tien-rut-tien__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-huong-tien-rut-tien__section {
  padding: 40px 0;
}

.page-huong-tien-rut-tien__section-title {
  font-size: 32px;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-huong-tien-rut-tien__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF1E8;
}

/* Hero Section */
.page-huong-tien-rut-tien__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-huong-tien-rut-tien__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-huong-tien-rut-tien__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-huong-tien-rut-tien__hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  max-width: 900px;
}

.page-huong-tien-rut-tien__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-huong-tien-rut-tien__description {
  font-size: clamp(16px, 2vw, 20px);
  color: #FFF1E8;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-huong-tien-rut-tien__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-huong-tien-rut-tien__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

/* Lists */
.page-huong-tien-rut-tien__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-huong-tien-rut-tien__list-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #FFF1E8;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.page-huong-tien-rut-tien__list-item::before {
  content: '✔️';
  color: #FFB04A;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* Steps Grid */
.page-huong-tien-rut-tien__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-huong-tien-rut-tien__step-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-huong-tien-rut-tien__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-huong-tien-rut-tien__step-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-height: 200px;
  min-width: 200px;
  object-fit: cover;
}

.page-huong-tien-rut-tien__step-title {
  font-size: 22px;
  color: #FFB04A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-huong-tien-rut-tien__step-description {
  font-size: 16px;
  color: #FFF1E8;
}

.page-huong-tien-rut-tien__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-huong-tien-rut-tien__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #FFB04A;
  border: 2px solid #FFB04A;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-huong-tien-rut-tien__btn-secondary:hover {
  background-color: #FFB04A;
  color: #140C0C;
}

.page-huong-tien-rut-tien__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-height: 200px;
  min-width: 200px;
  object-fit: cover;
}

/* FAQ Section */
details.page-huong-tien-rut-tien__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  color: #FFF1E8;
}
details.page-huong-tien-rut-tien__faq-item summary.page-huong-tien-rut-tien__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;
}
details.page-huong-tien-rut-tien__faq-item summary.page-huong-tien-rut-tien__faq-question::-webkit-details-marker {
  display: none;
}
details.page-huong-tien-rut-tien__faq-item summary.page-huong-tien-rut-tien__faq-question:hover {
  background: #7E0D0D; /* Deep Red */
}
.page-huong-tien-rut-tien__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8;
}
.page-huong-tien-rut-tien__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-huong-tien-rut-tien__faq-item .page-huong-tien-rut-tien__faq-answer {
  padding: 0 20px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}

/* Final CTA Section */
.page-huong-tien-rut-tien__cta-section {
  background-color: #2A1212; /* Card BG */
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #6A1E1E;
}

.page-huong-tien-rut-tien__cta-title {
  font-size: 36px;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-huong-tien-rut-tien__cta-description {
  font-size: 18px;
  color: #FFF1E8;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-huong-tien-rut-tien__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-huong-tien-rut-tien__container {
    padding: 20px 30px;
  }

  .page-huong-tien-rut-tien__section-title {
    font-size: 28px;
  }

  .page-huong-tien-rut-tien__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }

  .page-huong-tien-rut-tien__description {
    font-size: clamp(15px, 2.5vw, 18px);
  }

  .page-huong-tien-rut-tien__step-title {
    font-size: 20px;
  }

  .page-huong-tien-rut-tien__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* General container and image adaptation */
  .page-huong-tien-rut-tien__container,
  .page-huong-tien-rut-tien__section,
  .page-huong-tien-rut-tien__hero-section,
  .page-huong-tien-rut-tien__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-huong-tien-rut-tien img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-huong-tien-rut-tien__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding-top */
    min-height: unset;
  }

  .page-huong-tien-rut-tien__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    filter: brightness(0.8); /* Slightly less dark for mobile */
  }

  .page-huong-tien-rut-tien__hero-content {
    padding: 20px 0;
  }

  .page-huong-tien-rut-tien__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-huong-tien-rut-tien__description {
    font-size: 15px;
  }

  /* Buttons and Button Groups */
  .page-huong-tien-rut-tien__cta-button,
  .page-huong-tien-rut-tien__btn-secondary,
  .page-huong-tien-rut-tien a[class*="button"],
  .page-huong-tien-rut-tien 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 !important;
    padding-right: 15px !important;
    text-align: center;
  }

  .page-huong-tien-rut-tien__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Section Titles and Intros */
  .page-huong-tien-rut-tien__section-title {
    font-size: 26px;
  }

  .page-huong-tien-rut-tien__section-intro {
    font-size: 16px;
  }

  /* Lists */
  .page-huong-tien-rut-tien__list-item {
    font-size: 15px;
    padding: 15px;
  }

  .page-huong-tien-rut-tien__list-item::before {
    font-size: 18px;
  }

  /* Steps Grid */
  .page-huong-tien-rut-tien__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-huong-tien-rut-tien__step-card {
    padding: 20px;
  }

  .page-huong-tien-rut-tien__step-title {
    font-size: 18px;
  }

  .page-huong-tien-rut-tien__step-description {
    font-size: 14px;
  }

  /* Inline Images */
  .page-huong-tien-rut-tien__image-inline {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* FAQ Section */
  details.page-huong-tien-rut-tien__faq-item summary.page-huong-tien-rut-tien__faq-question { padding: 15px; }
  .page-huong-tien-rut-tien__faq-qtext { font-size: 15px; }
  .page-huong-tien-rut-tien__faq-toggle { font-size: 20px; width: 24px; margin-left: 10px; }
  details.page-huong-tien-rut-tien__faq-item .page-huong-tien-rut-tien__faq-answer { padding: 0 15px 15px; }

  /* Final CTA Section */
  .page-huong-tien-rut-tien__cta-title {
    font-size: 28px;
  }

  .page-huong-tien-rut-tien__cta-description {
    font-size: 16px;
  }

  .page-huong-tien-rut-tien__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
  }
}