/* static/css/about.css */

/* 1. HERO SECTION */
.about-hero {
    position: relative;
    min-height: 340px;
    padding: 56px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    margin-bottom: 0;
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}
.about-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.about-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

/* 2. STORY SECTION (ZIG-ZAG LAYOUT) */
.story-section {
    padding-bottom: 24px;
}
.story-block {
    margin-bottom: 40px;
}
.story-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.story-img {
    width: 100%;
    height: auto;
    display: block;
}
.story-content {
    padding: 20px;
}
.story-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
/* Gạch chân nghệ thuật */
.story-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}
.quote-box {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    font-style: italic;
    color: #666;
    margin: 20px 0;
    font-size: 1.05rem;
}

/* 3. CORE VALUES (3 CỘT) */
.values-section {
    background-color: #f8f9fa;
    padding: 36px 0;
    margin-bottom: 36px;
}
.value-card {
    background: white;
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}
.value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.value-icon {
    width: 48px;
    height: 48px;
    background: #eef4ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 16px;
}
.value-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
}
.value-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 4. FOUNDER SIGNATURE */
.founder-signature {
    text-align: center;
    margin-top: 40px;
}
.signature-img {
    height: 60px;
    opacity: 0.7;
}

/* 5. CTA SECTION */
.about-cta {
    text-align: center;
    padding: 32px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
    box-shadow: none;
}

.about-breadcrumb { display: flex; gap: 10px; padding-block: 16px; font-size: 0.85rem; color: #475569; }
.about-breadcrumb a { color: var(--primary-color); text-decoration: none; }
.about-principles { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 14px 0; margin-bottom: 32px; border-block: 1px solid #e2e8f0; }
.about-principles span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #334155; }
.about-principles i { color: var(--primary-color); }
.about-cta .btn { padding: 10px 20px; min-height: 44px; }
.about-values .value-card { height: 100%; border: 1px solid #e2e8f0; box-shadow: none; }
.about-values .value-desc { margin-bottom: 0; }

/* Responsive */
@media (max-width: 768px) {
    /* [OPTIMIZE] Giảm chiều cao Hero và tắt Parallax để cuộn mượt hơn */
    .about-hero { 
        min-height: 250px; padding: 32px 14px; margin-bottom: 0; background-attachment: scroll;
        /* [NEW] Tràn viền màn hình (Full Bleed) */
        width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
        border-radius: 0;
    }
    .about-title { font-size: 1.8rem; }
    .about-subtitle { font-size: 1rem; padding: 0 10px; }

    /* [OPTIMIZE] Co gọn khoảng cách các khối nội dung */
    .story-section { padding-bottom: 20px; }
    .story-block { margin-bottom: 40px; }
    .story-heading { font-size: 1.5rem; margin-bottom: 10px; }
    .story-img-wrapper { margin-bottom: 20px; transform: rotate(0) !important; }
    .story-content { padding: 0; } /* Bỏ padding thừa của cột */
    .story-text { font-size: 1rem; line-height: 1.75; margin-bottom: 15px; text-align: left; }
    main.main-content-wrapper > .container.about-container { padding-inline: 12px !important; }
    .about-principles { gap: 10px; margin-bottom: 24px; }
    .about-principles span { font-size: 0.82rem; }
    .story-img { aspect-ratio: 4 / 3; object-fit: cover; }
    
/* Keep all values visible rather than hiding them in a carousel. */
    .values-section { padding: 24px 0; margin-bottom: 24px; }
    .about-values > .container { padding-inline: 12px !important; }
    .about-values .row { row-gap: 0; }
    .about-values .col-md-4 { flex: 0 0 100%; max-width: 100%; margin-top: 0; }
    .about-values .value-card {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: center;
        gap: 8px 10px;
        padding: 16px 0;
        margin: 0;
        height: auto;
        text-align: left;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }
    .about-values .col-md-4 + .col-md-4 .value-card { border-top: 1px solid #e2e8f0; }
    .about-values .value-icon { width: 32px; height: 32px; margin: 0; font-size: 1rem; border-radius: 8px; }
    .about-values .value-title { margin: 0; font-size: 1rem; line-height: 1.4; }
    .about-values .value-desc { grid-column: 1 / -1; font-size: 0.9rem; line-height: 1.6; color: #475569; }

    .about-cta { padding: 18px 14px; margin-bottom: 24px; border-radius: 12px; text-align: left; }
    .about-cta h2 { font-size: 1.2rem; line-height: 1.35; margin-bottom: 8px !important; }
    .about-cta p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 14px !important; }
    .about-cta .btn { width: 100%; margin-bottom: 0; min-height: 44px; }
    .about-cta .about-cta-primary { background: #fff; border-color: #fff; }
    .about-cta .about-cta-secondary { border: 0; background: transparent; color: #fff; border-radius: 0 !important; padding: 8px 0; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
    .about-cta .d-flex { gap: 4px !important; }
}
