:root {
    /* Custom colors from prompt */
    --primary-color: #017439;
    --auxiliary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --text-color-on-light: #333333; /* Default text color for light backgrounds */
    --text-color-on-dark: #ffffff; /* Default text color for dark backgrounds */
    --register-login-text-color: #FFFF00;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-on-light); /* Assuming body background is light from shared.css */
    background-color: var(--background-color, var(--auxiliary-color)); /* Fallback to auxiliary if shared doesn't define */
}

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

.page-about__section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-about__sub-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.page-about__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-about__text-block--white {
    color: var(--text-color-on-dark);
}

.page-about a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about a:hover {
    color: #005f2e; /* A slightly darker green */
    text-decoration: underline;
}

/* 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, var(--primary-color) 0%, #3a9b6c 100%); /* Adjusted gradient for better contrast */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.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%; /* Ensure container takes full width up to max */
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* Inner border radius */
}

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

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

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

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-register {
    background: var(--register-button-bg);
    color: var(--register-login-text-color);
    border: 2px solid var(--register-button-bg);
}

.page-about__btn-register:hover {
    background: #a30707;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.page-about__btn-login {
    background: var(--login-button-bg);
    color: var(--register-login-text-color);
    border: 2px solid var(--login-button-bg);
}

.page-about__btn-login:hover {
    background: #a30707;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Intro Section */
.page-about__intro-section {
    padding: 80px 0;
    background-color: var(--auxiliary-color); /* White background */
}

.page-about__image-wrapper {
    margin: 40px auto;
    max-width: 100%;
    text-align: center;
}

.page-about__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-on-dark);
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.page-about__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color-on-dark);
}

.page-about__feature-description {
    font-size: 15px;
    color: var(--text-color-on-dark);
}

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

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
    background-color: var(--auxiliary-color);
}

.page-about__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-color-on-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary:hover {
    background: #005f2e; /* Slightly darker primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__faq-list {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px 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, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #ffffff;
    color: var(--text-color-on-light);
    font-size: 15px;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và max-height đủ lớn để đảm bảo có thể 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 20px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

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

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

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

/* Vấn đề tiêu đề kiểu dáng */
.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: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Thay đổi + thành X hoặc tương tự */
}

/* Latest News Section */
.page-about__latest-news {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-on-dark);
}

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

.page-about__news-item {
    background-color: var(--auxiliary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-about__news-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-about__news-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 20px 10px;
    line-height: 1.3;
}

.page-about__news-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-about__news-title a:hover {
    text-decoration: underline;
    color: #005f2e;
}

.page-about__news-excerpt {
    font-size: 15px;
    color: var(--text-color-on-light);
    margin: 0 20px 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-about__read-more {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-color-on-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align to start within flex column */
    max-width: calc(100% - 40px); /* Adjust for padding */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__read-more:hover {
    background: #005f2e;
    text-decoration: none;
}

.page-about__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__button-group--center {
    text-align: center;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 28px;
    }
    .page-about__sub-title {
        font-size: 22px;
    }
    .page-about__news-item img {
        
    }
}

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

    /* Fixed header offset for mobile */
    .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: 30px;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        margin: 0 auto;
    }
    .page-about__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__team-section,
    .page-about__faq-section,
    .page-about__latest-news {
        padding: 50px 0;
    }

    .page-about__container {
        padding: 0 15px; /* Add horizontal padding to container */
    }

    .page-about__features-grid,
    .page-about__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__image-wrapper img,
    .page-about__news-item img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min size */
        min- /* Adjust min height for mobile news images */
    }

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

    .page-about__read-more {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 0 20px 0; /* Adjust margin for full width */
        text-align: center;
    }

    .page-about__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
}

/* Ensure no filter is used on images */
.page-about img {
    filter: none !important;
}

/* Contrast fix if needed, though smart selection should prevent it */
.page-about__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}