/* style/about.css */

/* Biến màu sắc */
:root {
  --page-about-primary-color: #0A192F;
  --page-about-secondary-color: #FFD700;
  --page-about-text-light: #ffffff;
  --page-about-text-dark: #333333;
  --page-about-bg-light: #f8f9fa;
  --page-about-bg-dark: #0A192F;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-about-text-light); /* Default to light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Dark background sections */
.page-about__dark-bg {
  background-color: var(--page-about-primary-color);
  color: var(--page-about-text-light);
}

/* Light background sections */
.page-about__light-bg {
  background-color: var(--page-about-bg-light);
  color: var(--page-about-text-dark);
}

.page-about__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 500px;
  padding-top: var(--header-offset, 120px);
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-about-secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-about-text-light);
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--page-about-secondary-color);
  color: var(--page-about-primary-color);
  border: 2px solid var(--page-about-secondary-color);
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--page-about-secondary-color);
  border: 2px solid var(--page-about-secondary-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--page-about-secondary-color);
  color: var(--page-about-primary-color);
}

.page-about__introduction-section,
.page-about__vision-mission-section,
.page-about__core-values-section,
.page-about__team-section,
.page-about__security-section,
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: inherit;
}

.page-about__section-paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
  color: inherit;
}

.page-about__content-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-about__vision-mission-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__vision-mission-item .page-about__sub-title {
  color: var(--page-about-secondary-color);
}

.page-about__vision-mission-item .page-about__section-paragraph {
  color: var(--page-about-text-light);
}

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

.page-about__value-card {
  background-color: #ffffff;
  color: var(--page-about-text-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 250px; /* Ensure card has minimum height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-about__value-card:hover {
  transform: translateY(-10px);
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--page-about-primary-color);
  margin-bottom: 15px;
}

.page-about__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555;
}

.page-about__text-link {
  color: var(--page-about-secondary-color);
  text-decoration: underline;
}

.page-about__text-link:hover {
  color: #e6c200;
}

.page-about__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-about__video-cta {
  margin-top: 30px;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--page-about-primary-color);
  color: var(--page-about-text-light);
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: #1a2c4a;
}

.page-about__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-about-secondary-color);
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background-color: #ffffff;
  color: var(--page-about-text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .page-about__values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-about__hero-section {
    padding: 60px 0;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__introduction-section,
  .page-about__vision-mission-section,
  .page-about__core-values-section,
  .page-about__team-section,
  .page-about__security-section,
  .page-about__faq-section,
  .page-about__video-section {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__sub-title {
    font-size: 1.4em;
  }

  .page-about__section-paragraph {
    font-size: 0.95em;
  }

  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-about__faq-answer {
    padding: 15px 20px;
  }

  .page-about__faq-answer p {
    font-size: 0.9em;
  }
}