/* style/about.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --bg-dark: var(--dark-bg-1); /* Assuming shared.css defines --dark-bg-1 */
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark);
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    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(--secondary-color);
    border-radius: 2px;
}

.page-about__section-title--white {
    color: var(--text-light);
}

.page-about__section-title--white::after {
    background-color: var(--text-light);
}

.page-about__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__section-description--white {
    color: rgba(255, 255, 255, 0.8);
}

.page-about__btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* HERO Section */
.page-about__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a4e 100%);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Adjust if shared.css doesn't set body padding */
}

.page-about__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.page-about__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    text-align: left;
    z-index: 1;
}

.page-about__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 500px;
}

.page-about__hero-image {
    flex: 1;
    min-width: 400px;
    max-width: 50%;
    text-align: right;
    position: relative;
    z-index: 0;
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-about__mission-vision-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-about__mission-vision-card:hover {
    transform: translateY(-5px);
}

.page-about__mission-vision-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 5px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__card-description {
    font-size: 16px;
    color: var(--text-dark);
}

/* Core Values Section */
.page-about__core-values-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__value-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-about__value-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* Platform Section */
.page-about__platform-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-about__platform-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-about__platform-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-about__platform-text p {
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--text-dark);
}

.page-about__platform-image {
    flex: 1;
    min-width: 400px;
    text-align: center;
}

.page-about__platform-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    min-height: 200px;
}

/* Security Section */
.page-about__security-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-about__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap-reverse; /* Image on right for desktop, on top for mobile */
}

.page-about__security-image {
    flex: 1;
    min-width: 400px;
    text-align: center;
}

.page-about__security-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-about__security-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-about__security-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-about__security-text p {
    margin-bottom: 20px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

/* FAQ容器样式 */
.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 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;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-dark);
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đả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 !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.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;
    color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--secondary-color);
}

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

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

/* Vấn đề tiêu đề phong cách */
.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 thẻ h3 chặn sự kiện nhấp */
    color: var(--primary-color);
}

/* Chuyển đổi biểu tượng */
.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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 nhấp */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu cộng khi mở */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 42px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__hero-content, .page-about__hero-image {
        max-width: 100%;
    }
    .page-about__hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    .page-about__hero-image {
        text-align: center;
    }
    .page-about__platform-content, .page-about__security-content {
        flex-direction: column;
    }
    .page-about__platform-text, .page-about__platform-image,
    .page-about__security-text, .page-about__security-image {
        min-width: unset;
        max-width: 100%;
    }
    .page-about__security-content {
        flex-wrap: wrap; /* Reset wrap-reverse for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    .page-about__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset-mobile, 80px); /* Mobile specific header offset */
    }
    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__btn-primary, .page-about__btn-secondary {
        padding: 10px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__mission-vision-section,
    .page-about__core-values-section,
    .page-about__platform-section,
    .page-about__security-section,
    .page-about__faq-section {
        padding: 40px 0;
    }
    .page-about__mission-vision-card,
    .page-about__value-item {
        padding: 20px;
    }
    .page-about__card-title, .page-about__value-title {
        font-size: 20px;
    }
    .page-about__platform-text p, .page-about__security-text p {
        font-size: 15px;
    }
    .page-about__platform-content, .page-about__security-content {
        gap: 30px;
    }
    .page-about__platform-image img, .page-about__security-image img,
    .page-about__mission-vision-card img,
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
    }

    /* Mobile FAQ specific styles */
    .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;
    }
}