/* style/huong-dan-choi.css */
.page-huong-dan-choi {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--deep-navy);
}

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

.page-huong-dan-choi__hero-section {
  padding-top: 10px; /* Adjusted to ~10px as per instructions */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--deep-navy);
  color: var(--text-main);
}

.page-huong-dan-choi__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-huong-choi__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-huong-dan-choi__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.page-huong-dan-choi__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-huong-dan-choi__cta-buttons--inline {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-huong-dan-choi__cta-buttons--center {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-huong-dan-choi__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-huong-dan-choi__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-huong-dan-choi__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-huong-dan-choi__btn-secondary {
  background: var(--deep-navy);
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.page-huong-dan-choi__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(29, 95, 209, 0.1);
  border-color: var(--glow-color);
}

.page-huong-dan-choi__content-section {
  padding: 60px 0;
  background-color: #ffffff; /* Default light background for content */
  color: #333333; /* Dark text for light background */
}

.page-huong-dan-choi__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-huong-dan-choi__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-huong-dan-choi__sub-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--main-color);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-huong-dan-choi__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333; /* Ensure dark text on light background */
}

.page-huong-dan-choi__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-huong-dan-choi__ordered-list {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-huong-dan-choi__list-item {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #333333;
}

.page-huong-dan-choi__figure {
  margin: 30px 0;
  text-align: center;
}

.page-huong-dan-choi__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-huong-dan-choi__figcaption {
  font-size: 0.9rem;
  color: #666666;
  margin-top: 10px;
  font-style: italic;
}

/* FAQ Section Styling */
.page-huong-dan-choi__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-huong-dan-choi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--main-color);
  list-style: none;
}

.page-huong-dan-choi__faq-question::-webkit-details-marker {
  display: none;
}

.page-huong-dan-choi__faq-qtext {
  flex-grow: 1;
  color: var(--main-color);
}

.page-huong-dan-choi__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--main-color);
  transition: transform 0.3s ease;
}

.page-huong-dan-choi__faq-item[open] .page-huong-dan-choi__faq-toggle {
  transform: rotate(45deg);
}

.page-huong-dan-choi__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

.page-huong-dan-choi__faq-answer p {
  margin-bottom: 0;
}

/* Variables for colors */
:root {
  --main-color: #113B7A;
  --accent-color: #1D5FD1;
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
}

/* --- Responsive Styles --- */

/* Mobile specific styles */
@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-huong-dan-choi__hero-section {
    padding-top: 10px !important; /* Fixed top padding for mobile */
    padding-bottom: 40px;
  }

  .page-huong-choi__main-title {
    font-size: 2.2rem; /* Adjusted for mobile readability */
    margin-bottom: 15px;
  }

  .page-huong-dan-choi__hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 10px; /* Add some horizontal padding */
  }

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

  /* 2. Single-column long text container */
  .page-huong-dan-choi__article-wrap {
    padding: 0 15px; /* Adjust padding for mobile */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__content-section {
    padding: 40px 0;
  }

  .page-huong-dan-choi__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-huong-dan-choi__sub-title {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-huong-dan-choi__text-block,
  .page-huong-dan-choi__list-item {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* 3. General images and figure */
  .page-huong-dan-choi__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__figure {
    margin: 20px 0;
  }

  /* 4. Buttons and button containers */
  .page-huong-dan-choi__btn {
    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: 1rem;
  }

  .page-huong-dan-choi__cta-buttons--inline,
  .page-huong-dan-choi__cta-buttons--center {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 15px;
    flex-direction: column;
  }

  /* 5. FAQ section (if present) */
  .page-huong-dan-choi__faq-item {
    margin-left: 0;
    margin-right: 0;
  }

  .page-huong-dan-choi__faq-question {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-huong-dan-choi__faq-toggle {
    font-size: 1.2rem;
  }

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

@media (max-width: 1024px) {
  .page-huong-dan-choi__container {
    padding: 0 25px;
  }

  .page-huong-choi__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .page-huong-dan-choi__hero-description {
    font-size: 1rem;
  }

  .page-huong-dan-choi__btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-huong-dan-choi__section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }

  .page-huong-dan-choi__sub-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }

  .page-huong-dan-choi__text-block,
  .page-huong-dan-choi__list-item {
    font-size: 1rem;
  }

  .page-huong-dan-choi__image {
    max-width: 90%;
  }
}