/* style/about.css */

/* Custom Colors */
:root {
    --nhatvip-primary: #11A84E;
    --nhatvip-secondary: #22C768;
    --nhatvip-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --nhatvip-card-bg: #11271B;
    --nhatvip-background: #08160F;
    --nhatvip-text-main: #F2FFF6;
    --nhatvip-text-secondary: #A7D9B8;
    --nhatvip-border: #2E7A4E;
    --nhatvip-glow: #57E38D;
    --nhatvip-gold: #F2C14E;
    --nhatvip-divider: #1E3A2A;
    --nhatvip-deep-green: #0A4B2C;
}

/* Base styles for page-about */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--nhatvip-text-main); /* Default text color for dark background */
    background-color: var(--nhatvip-background); /* Default background from palette */
    line-height: 1.6;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Adjust as needed */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--nhatvip-deep-green); /* Fallback background */
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image appears first */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above image if any overlap occurs (though not intended) */
    text-align: center;
    padding: 40px 20px;
    order: 2; /* Content appears second */
    max-width: 900px;
    margin: 0 auto;
    color: var(--nhatvip-text-main);
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--nhatvip-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description-text {
    font-size: 1.15rem;
    color: var(--nhatvip-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px;
    white-space: nowrap;
}

.page-about__btn-primary {
    background: var(--nhatvip-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--nhatvip-secondary);
    border: 2px solid var(--nhatvip-secondary);
}

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

/* Section General */
.page-about__intro-section,
.page-about__why-choose-us,
.page-about__commitment-section,
.page-about__team-section,
.page-about__future-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-about__dark-section {
    background-color: var(--nhatvip-deep-green);
    color: var(--nhatvip-text-main);
}

.page-about__light-bg {
    background-color: var(--nhatvip-background); /* Using the main background as a 'lighter' option in this dark theme */
    color: var(--nhatvip-text-main);
}

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

.page-about__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--nhatvip-text-main);
}

.page-about__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--nhatvip-text-secondary);
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin: 20px auto 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-about__list-item {
    font-size: 1.05rem;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--nhatvip-text-secondary);
}

.page-about__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--nhatvip-secondary);
}

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

/* Why Choose Us Grid */
.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__feature-card {
    background-color: var(--nhatvip-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-about__feature-icon {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too wide in card */
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: block;
}

.page-about__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--nhatvip-text-main);
    margin-bottom: 15px;
}

.page-about__card-text {
    font-size: 1rem;
    color: var(--nhatvip-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
    text-align: left;
}

.page-about__faq-item {
    background-color: var(--nhatvip-card-bg);
    border: 1px solid var(--nhatvip-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--nhatvip-text-main);
    cursor: pointer;
    background-color: var(--nhatvip-card-bg);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--nhatvip-deep-green);
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--nhatvip-secondary);
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--nhatvip-text-secondary);
    line-height: 1.7;
}

.page-about__faq-answer p {
    margin-bottom: 15px;
    text-align: left;
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--nhatvip-deep-green);
}

.page-about__faq-item details > summary {
    list-style: none;
}

.page-about__faq-item details > summary::-webkit-details-marker {
    display: none;
}

/* CTA Section */
.page-about__cta-section {
    background: var(--nhatvip-deep-green);
    padding: 100px 0;
}

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

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2rem;
    }
    .page-about__sub-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: auto;
        padding-bottom: 40px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .page-about__description-text {
        font-size: 1rem;
    }
    .page-about__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.4rem;
    }
    .page-about__text-block, .page-about__list-item, .page-about__card-text {
        font-size: 0.95rem;
    }
    .page-about__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-about__intro-section, .page-about__why-choose-us, .page-about__commitment-section, .page-about__team-section, .page-about__future-section, .page-about__faq-section, .page-about__cta-section {
        padding: 60px 0;
    }
    .page-about__hero-content, .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-image-wrapper,
    .page-about__image-content,
    .page-about__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Mobile button responsiveness */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        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;
    }
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* Ensure sections/containers don't cause overflow */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    .page-about__section-title {
        font-size: 1.8rem;
    }
    .page-about__sub-title {
        font-size: 1.2rem;
    }
    .page-about__btn-primary, .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}