/* style/about.css */

/* body đã padding-top: var(--header-offset); nên các section đầu tiên trong main chỉ cần padding-top nhỏ */
.page-about {
  background-color: var(--background-color, #08160F); /* Fallback to a dark background */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-about__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__section {
  padding: 60px 0;
  box-sizing: border-box;
}

.page-about__section:nth-of-type(odd) {
  background-color: var(--card-bg, #11271B); /* Card background color */
}

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

.page-about__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--gold, #F2C14E); /* Gold for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--glow, #57E38D);
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-about__text-block {
  font-size: 17px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-about__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
  font-weight: bold;
}

.page-about__image-card {
  width: 100%;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  user-select: none;
  list-style: none; /* For details/summary element */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--glow, #57E38D);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 25px; /* Default padding for details, content is hidden by browser */
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__faq-item[open] .page-about__faq-answer {
  padding: 15px 25px 20px; /* Adjust padding when open */
}

/* --- Responsive styles --- */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 0 30px;
  }
  .page-about__container {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 10px 15px 40px; /* Adjust padding for mobile */
  }

  .page-about__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 25px;
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding to button container */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 15px; /* Adjust padding for mobile buttons */
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__section-title {
    font-size: clamp(20px, 5vw, 32px);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(18px, 4.5vw, 24px);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-about__text-block,
  .page-about__list-item,
  .page-about__faq-answer {
    font-size: 16px;
  }

  /* Force responsive for all images */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all video elements (even if not present) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all containers */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__image-card,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Specific override for video section top padding on mobile */
  .page-about__video-section {
    padding-top: 10px !important;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 20px;
  }

  /* FAQ answer padding handled by details element natively, but can adjust here */
  .page-about__faq-item[open] .page-about__faq-answer {
    padding: 10px 20px 15px;
  }
}