/* style/about.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định cho nền sáng */
  background-color: var(--bg-color, #f5f5f5);
}

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

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

.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__main-title {
  color: #ffffff;
}

.page-about__sub-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Adjust as needed */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow, but text is below image */
  background-color: rgba(38, 169, 224, 0.9); /* Brand color with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  color: #ffffff;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  cursor: pointer;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Content Wrapper with Image and Text */
.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  padding: 40px 0;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__text-block h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-about__text-block ul li {
  margin-bottom: 8px;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
}

/* Features Grid */
.page-about__features-grid,
.page-about__tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card,
.page-about__tech-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-about__dark-section .page-about__tech-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-about__feature-card:hover,
.page-about__tech-item:hover {
  transform: translateY(-5px);
}

.page-about__feature-title,
.page-about__tech-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0;
}

.page-about__dark-section .page-about__tech-title {
  color: #ffffff;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  position: relative;
  list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

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

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: #555555;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

.page-about__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA */
.page-about__cta-final {
  padding: 80px 0;
}

.page-about__cta-final .page-about__section-title,
.page-about__cta-final .page-about__sub-description {
  color: #ffffff;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__hero-content {
    margin-top: -80px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-about__text-block,
  .page-about__image-block {
    flex: none;
    width: 100%;
  }

  .page-about__image-block {
    order: -1; /* Image above text on mobile for default order */
  }

  .page-about__content-wrapper--reverse .page-about__image-block {
    order: 0; /* Maintain reverse order for image */
  }

  .page-about__features-grid,
  .page-about__tech-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

  .page-about__description {
    font-size: 1em;
  }

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

  .page-about__sub-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin: 5px 0 !important;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }

  .page-about__container,
  .page-about__section,
  .page-about__content-wrapper,
  .page-about__features-grid,
  .page-about__tech-grid,
  .page-about__faq-list,
  .page-about__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image,
  .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

@media (max-width: 480px) {
  .page-about__hero-content {
    margin-top: -40px;
  }
  .page-about__main-title {
    font-size: clamp(1.2em, 7vw, 1.8em);
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
}