:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-bg-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base styles for the FAQ page */
.page-cau-hoi-thuong-gap {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Light text on dark body background */
  background-color: var(--bg-color); /* Dark body background */
}

.page-cau-hoi-thuong-gap__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-cau-hoi-thuong-gap__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
}

.page-cau-hoi-thuong-gap__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-cau-hoi-thuong-gap__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, will be changed to contain on mobile */
  aspect-ratio: 16 / 9; /* Default aspect ratio for hero */
}

.page-cau-hoi-thuong-gap__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-cau-hoi-thuong-gap__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cau-hoi-thuong-gap__intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.page-cau-hoi-thuong-gap__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-cau-hoi-thuong-gap__btn-primary,
.page-cau-hoi-thuong-gap__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-cau-hoi-thuong-gap__btn-primary {
  background: var(--button-bg-gradient);
  color: #ffffff;
  border: none;
}

.page-cau-hoi-thuong-gap__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cau-hoi-thuong-gap__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cau-hoi-thuong-gap__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
  transform: translateY(-2px);
}

/* Content Section */
.page-cau-hoi-thuong-gap__content-section {
  padding: 40px 0;
  margin-bottom: 30px;
}

.page-cau-hoi-thuong-gap__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-cau-hoi-thuong-gap__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow-color);
  border-radius: 2px;
}

.page-cau-hoi-thuong-gap__section-title--gold {
  color: var(--gold-color);
}

/* FAQ List */
.page-cau-hoi-thuong-gap__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-cau-hoi-thuong-gap__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg-color); /* Dark card background */
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-cau-hoi-thuong-gap__faq-item summary.page-cau-hoi-thuong-gap__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color); /* Light text for question */
  font-weight: 600;
  font-size: 1.1rem;
}

details.page-cau-hoi-thuong-gap__faq-item summary.page-cau-hoi-thuong-gap__faq-question::-webkit-details-marker {
  display: none;
}

details.page-cau-hoi-thuong-gap__faq-item summary.page-cau-hoi-thuong-gap__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter on hover */
}

.page-cau-hoi-thuong-gap__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-cau-hoi-thuong-gap__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color); /* Green glow for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-cau-hoi-thuong-gap__faq-item .page-cau-hoi-thuong-gap__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9; /* Light background for answer */
  border-radius: 0 0 10px 10px;
  color: #333333; /* Dark text for answer on light background */
}

.page-cau-hoi-thuong-gap__faq-answer p {
  margin-bottom: 10px;
}

.page-cau-hoi-thuong-gap__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-cau-hoi-thuong-gap__faq-answer a {
  color: var(--deep-green-color); /* Link color within answer */
  text-decoration: underline;
}

.page-cau-hoi-thuong-gap__faq-answer a:hover {
  color: var(--primary-color);
}

.page-cau-hoi-thuong-gap__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-cau-hoi-thuong-gap__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-cau-hoi-thuong-gap__cta-text {
  font-size: 1.2rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Link Styling */
.page-cau-hoi-thuong-gap a {
  color: var(--glow-color); /* Default link color */
  text-decoration: none;
}

.page-cau-hoi-thuong-gap a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cau-hoi-thuong-gap__container {
    padding: 15px;
  }
  .page-cau-hoi-thuong-gap__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-cau-hoi-thuong-gap__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  details.page-cau-hoi-thuong-gap__faq-item summary.page-cau-hoi-thuong-gap__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cau-hoi-thuong-gap__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-cau-hoi-thuong-gap__faq-item .page-cau-hoi-thuong-gap__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 849px) {
  .page-cau-hoi-thuong-gap__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-cau-hoi-thuong-gap {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Chủ đề ảnh */
  .page-cau-hoi-thuong-gap__hero-section {
    padding-top: 10px;
    margin-bottom: 20px;
  }
  .page-cau-hoi-thuong-gap__hero-image {
    max-height: 400px;
    margin-bottom: 15px;
  }
}