/* style/about.css */

/* --- General Page Styling --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
}

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

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

.page-about__section-title {
    font-size: 36px;
    color: #333333;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__text-block {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Color Contrast & Backgrounds --- */
.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-about__light-bg .page-about__section-title {
    color: #333333;
}
.page-about__light-bg .page-about__card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}
.page-about__light-bg .page-about__card-title {
    color: #FF4500;
}

.page-about__dark-bg {
    background-color: #1E90FF; /* Auxiliary brand color */
    color: #ffffff;
}
.page-about__dark-bg .page-about__section-title {
    color: #ffffff;
}
.page-about__dark-bg .page-about__text-block {
    color: #e0e0e0;
}
.page-about__dark-bg .page-about__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark blue */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.page-about__dark-bg .page-about__card-title {
    color: #FF4500; /* Primary brand color for emphasis */
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #FF4500, #1E90FF); /* Brand colors gradient */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff;
}

.page-about__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 22px;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CTA Buttons --- */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-about__cta-button {
    background: #FF4500; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #FF4500;
}

.page-about__cta-button:hover {
    background: #e03c00; /* Darker shade of primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary {
    background: #FF4500;
    color: #ffffff;
    border: 2px solid #FF4500;
    margin: 10px;
}

.page-about__btn-primary:hover {
    background: #e03c00;
    border-color: #e03c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #FF4500;
    border: 2px solid #FF4500;
    margin: 10px;
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #e03c00;
    border-color: #e03c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-about__cta-group {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}

/* --- Intro Section --- */
.page-about__intro-section .page-about__container {
    max-width: 900px;
}

/* --- Why Us Section --- */
.page-about__why-us-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

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

.page-about__card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

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

.page-about__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FF4500; /* Primary brand color */
}

.page-about__card-text {
    font-size: 16px;
    line-height: 1.7;
    color: inherit; /* Inherit color from parent (.page-about__card) */
    flex-grow: 1; /* Allow text to grow and fill space */
}

/* --- Commitment Section --- */
.page-about__commitment-section {
    background-color: #f0f0f0;
    padding-top: 100px;
    padding-bottom: 100px;
}

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

.page-about__commitment-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-about__commitment-title {
    font-size: 22px;
    font-weight: bold;
    color: #1E90FF; /* Auxiliary brand color */
    margin-bottom: 15px;
}

.page-about__commitment-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    flex-grow: 1;
}

/* --- Team Section --- */
.page-about__team-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

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

.page-about__team-member {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-about__team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #FF4500; /* Primary brand color border */
    min-width: 200px;
    min-height: 200px;
}

.page-about__member-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #FF4500;
}

.page-about__member-role {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-about__member-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* --- FAQ Section --- */
.page-about__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

/* 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Câu hỏi FAQ */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

/* Tiêu đề câu hỏi */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện click */
  color: #333333;
}

/* Icon chuyển đổi */
.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 chặn icon 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: #FF4500; /* Màu thương hiệu chính khi hoạt động */
  transform: rotate(180deg); /* Xoay để tạo hiệu ứng dấu trừ */
}

/* --- Contact CTA Section --- */
.page-about__contact-cta {
    background-color: #FF4500; /* Primary brand color */
    color: #ffffff;
    padding: 80px 0;
}

.page-about__contact-cta .page-about__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__contact-cta .page-about__text-block {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-about__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px !important; /* Đảm bảo padding cho tất cả các container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ngăn chặn cuộn ngang */
    }

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 16px;
    }

    /* Hero Section Mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Offset header cố định trên di động */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__main-title {
        font-size: 32px;
    }

    .page-about__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 25px !important; /* Padding nhỏ hơn cho nút trên di động */
        font-size: 16px !important;
        width: 100% !important; /* Chiều rộng đầy đủ cho nút trên di động */
        max-width: 100% !important;
        margin: 10px 0 !important; /* Điều chỉnh lề cho các nút xếp chồng */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__cta-group {
        flex-direction: column !important; /* Xếp chồng các nút theo chiều dọc trên di động */
        gap: 10px !important; /* Khoảng cách nhỏ hơn */
        padding: 0 15px !important; /* Đảm bảo nhóm nút có padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Bố cục lưới trên di động */
    .page-about__grid,
    .page-about__commitment-grid,
    .page-about__team-grid {
        grid-template-columns: 1fr !important; /* Một cột cho tất cả các lưới */
        gap: 20px !important;
    }

    .page-about__card,
    .page-about__commitment-item,
    .page-about__team-member {
        padding: 20px !important;
    }

    .page-about__card img {
        height: auto !important; /* Chiều cao tự động cho hình ảnh responsive */
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-about__team-member img {
        width: 200px !important;
        height: 200px !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    
    /* Tất cả hình ảnh responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* FAQ Section Mobile */
    .page-about__faq-question {
        padding: 15px !important;
        flex-wrap: wrap !important;
    }
    
    .page-about__faq-question h3 {
        font-size: 16px !important;
        margin-bottom: 0 !important;
        width: calc(100% - 40px) !important;
    }
    
    .page-about__faq-toggle {
        margin-left: 10px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 20px !important;
    }
    
    .page-about__faq-answer {
        padding: 0 15px !important;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
}