/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark background, so light text */
  background-color: #121212; /* Inherited from shared.css, ensure consistency */
}

/* Fixed Navbar Spacing - for the first content section */
.page-about__hero-banner {
    padding-top: 120px; /* Desktop spacing */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3); /* Darker gradient for hero */
    text-align: center;
}

.page-about__title {
    font-size: 3.2em;
    font-weight: bold;
    color: #ffd700; /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__subtitle {
    font-size: 1.3em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
}

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

.page-about__section-heading {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffd700; /* Gold color for section headings */
}

.page-about__text-center {
  text-align: center;
  margin-bottom: 20px;
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-about__image-block {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.page-about__btn-primary {
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

.page-about__btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.page-about__btn-secondary {
    background-color: #ffc107;
    color: #121212;
    border: 2px solid #ffc107;
}

.page-about__btn-secondary:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

/* Vision Mission Section */
.page-about__vision-mission-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background */
    color: #333333; /* Dark text for contrast */
}

.page-about__vision-mission-section .page-about__section-heading {
    color: #007bff; /* Blue heading on light background */
}

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

.page-about__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for card content */
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about__card-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.page-about__card p {
    font-size: 1.05em;
    color: #555555;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: #121212;
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-about__feature-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffd700; /* Gold color for feature titles */
    margin-bottom: 15px;
}

.page-about__feature-item p {
    font-size: 1em;
    color: #e0e0e0;
}

.page-about__button-center {
    text-align: center;
    margin-top: 50px;
}

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
    background-color: #f0f2f5; /* Light background */
    color: #333333;
}

.page-about__team-section .page-about__section-heading {
    color: #007bff;
}

.page-about__team-section .page-about__text-contrast-fix {
    color: #555555;
}

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

.page-about__team-member {
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-about__team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about__member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #007bff;
}

.page-about__member-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.page-about__member-position {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 15px;
}

.page-about__member-description {
    font-size: 0.95em;
    color: #777777;
}

/* Contact Section */
.page-about__contact-section {
    padding: 80px 0;
    background-color: #007bff; /* Primary blue background */
    color: #ffffff;
}

.page-about__contact-section .page-about__section-heading {
    color: #ffffff;
}

.page-about__contact-section .page-about__text-center {
    color: #f0f0f0;
}

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

.page-about__contact-item {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__contact-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffd700; /* Gold color */
    margin-bottom: 15px;
}

.page-about__contact-item p {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-about__contact-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__contact-link:hover {
    color: #ffd700;
    border-color: #ffffff;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #f0f2f5; /* Light background */
    color: #333333;
}

.page-about__faq-section .page-about__section-heading {
    color: #007bff;
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng !important và max-height đủ lớn để đảm bảo mở rộng */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #e9ecef;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

/* Kiểu dáng tiêu đề câu hỏi */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
  color: #333333; /* Dark text on light background */
}

/* Chuyển đổi biểu tượng */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Footer Placeholder Styling */
.shared-footer {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    color: #e0e0e0;
    font-size: 0.9em;
    margin-top: 0; /* Ensure no extra margin */
}

.page-about__footer-content {
    padding: 0 20px;
}

.page-about__copyright {
    margin: 0;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__title {
        font-size: 2.5em;
    }
    .page-about__subtitle {
        font-size: 1.1em;
    }
    .page-about__section-heading {
        font-size: 2em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__image-block {
        order: -1; /* Move image above text on smaller screens */
        margin-bottom: 30px;
    }
    .page-about__cards-grid, .page-about__features-grid, .page-about__team-members, .page-about__contact-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-about__hero-banner {
        padding-top: 100px; /* Adjust for tablet/mobile */
    }
}

@media (max-width: 768px) {
    .page-about {
      font-size: 16px;
      line-height: 1.6;
    }
    .page-about__hero-banner {
        padding-top: 100px !important; /* Mobile spacing */
        padding-bottom: 40px;
    }
    .page-about__title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-about__subtitle {
        font-size: 1em;
    }
    .page-about__introduction-section, .page-about__vision-mission-section, .page-about__why-choose-section, .page-about__team-section, .page-about__contact-section, .page-about__faq-section {
        padding: 50px 0;
    }
    .page-about__section-heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__content-grid {
        gap: 30px;
    }
    .page-about__text-block p {
        font-size: 1em;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__card {
        padding: 25px;
    }
    .page-about__card-title {
        font-size: 1.5em;
    }
    .page-about__feature-icon {
        width: 60px;
        height: 60px;
    }
    .page-about__feature-title {
        font-size: 1.4em;
    }
    .page-about__member-photo {
        width: 120px;
        height: 120px;
    }
    .page-about__member-name {
        font-size: 1.3em;
    }
    .page-about__contact-title {
        font-size: 1.4em;
    }
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images and containers adapt */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-about__section, .page-about__card, .page-about__container, .page-about__introduction-section, .page-about__vision-mission-section, .page-about__why-choose-section, .page-about__team-section, .page-about__contact-section, .page-about__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}