/* style/about.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-bg: #C30808;
    --register-login-text: #FFFFFF; /* Đã điều chỉnh để đảm bảo độ tương phản WCAG AA */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --border-light: #e0e0e0;
    --bg-light-gray: #f9f9f9;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Mặc định chữ tối trên nền sáng */
    background: var(--secondary-color);
}

/* Common Container Styles */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Text Blocks */
.page-about__text-block {
    margin-bottom: 20px;
    font-size: 17px;
    text-align: justify;
}

/* Card Styles */
.page-about__card {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card--light {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.page-about__card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

/* Inline Links */
.page-about__inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-about__inline-link:hover {
    color: darken(var(--primary-color), 10%);
}

/* --- 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); /* Đảm bảo không bị che bởi header */
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d27 100%); /* Nền gradient sẫm hơn */
}

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

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

.page-about__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--register-login-bg); /* Màu đăng ký/đăng nhập */
    color: var(--register-login-text); /* Màu chữ đăng ký/đăng nhập */
    text-decoration: none;
    border-radius: 30px;
    font-size: 19px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    background: #e02020; /* Đậm hơn khi hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- INTRO SECTION --- */
.page-about__intro-section .page-about__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__intro-section .page-about__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
}

.page-about__intro-section img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- MISSION & VALUES SECTION --- */
.page-about__dark-bg {
    background: var(--primary-color);
    color: var(--text-light);
}

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

.page-about__dark-bg .page-about__text-block {
    color: var(--text-light);
}

.page-about__mission-values-section .page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-about__mission-values-section .page-about__card--light {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.page-about__mission-values-section .page-about__card-title {
    color: var(--primary-color);
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__value-list li {
    margin-bottom: 12px;
    font-size: 16px;
    position: relative;
    padding-left: 25px;
}

.page-about__value-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
}

.page-about__mission-values-section .page-about__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
}

.page-about__mission-values-section img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- WHY CHOOSE US SECTION --- */
.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__feature-card .page-about__card-title {
    font-size: 20px;
}

.page-about__why-choose-us-section .page-about__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
}

.page-about__why-choose-us-section img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__cta-group {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-about__btn-primary {
    background: var(--register-login-bg);
    color: var(--register-login-text);
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

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

/* --- COMMITMENT SECTION --- */
.page-about__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-about__commitment-list li {
    margin-bottom: 15px;
    font-size: 17px;
    position: relative;
    padding-left: 35px;
    color: var(--text-light);
}

.page-about__commitment-list li strong {
    color: var(--text-light);
}

.page-about__commitment-list li::before {
    content: '✔️';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
}

.page-about__commitment-section .page-about__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
}

.page-about__commitment-section img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- TEAM SECTION --- */
.page-about__team-section .page-about__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__team-section .page-about__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
}

.page-about__team-section img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- FAQ SECTION --- */
.page-about__faq-section .page-about__section-title {
    color: var(--text-light);
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
    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: var(--bg-light-gray);
    border-color: #d0d0d0;
}

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

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
    font-size: 24px;
    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; /* Prevent icon from blocking click event */
    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); /* Change to X or rotate */
}

.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;
    background: var(--bg-light-gray);
    color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 20px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* --- CONTACT SECTION --- */
.page-about__contact-info {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    font-size: 18px;
}

.page-about__contact-info p {
    margin-bottom: 10px;
}

.page-about__contact-section .page-about__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
}

.page-about__contact-section img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__mission-values-section .page-about__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-about__cta-button {
        padding: 14px 30px;
        font-size: 17px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__container {
        padding: 30px 15px;
    }
    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 16px;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }
    .page-about__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .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;
        font-size: 16px;
    }

    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
        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;
    }

    .page-about__commitment-list li, .page-about__value-list li {
        font-size: 15px;
        padding-left: 30px;
    }
    .page-about__commitment-list li::before, .page-about__value-list li::before {
        font-size: 16px;
    }
    .page-about__contact-info {
        font-size: 16px;
    }
}