/* About Page Styles */
/* Font consistency: all elements inherit 'Inter' from body */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    padding: 80px 0 60px;
    color: #fff;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* About Image Wrapper */
.about-image-wrapper {
    position: relative;
    display: inline-block;
}

.about-image-wrapper img {
    width: 100%;
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.4);
}

.about-image-badge .badge-year {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about-image-badge .badge-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

/* =====================================================
   Introduction SVG Animation
   ===================================================== */
.intro-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.intro-svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.intro-svg text {
    font-family: 'Inter', sans-serif;
}

/* =====================================================
   Vision & Mission - Hierarchy Tree
   ===================================================== */
.vm-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #eef2e7 100%);
    overflow: hidden;
}

.vm-hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

/* Pill-shaped node labels */
.vm-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.02em;
}

.vm-pill i { font-size: 1.2rem; }
.vm-pill:hover { transform: translateY(-4px); }

.vm-pill--root {
    background: linear-gradient(135deg, #558B2F, #8BC34A);
    color: #fff;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 8px 30px rgba(139, 195, 74, 0.45);
}

.vm-pill--vision {
    background: linear-gradient(135deg, #33691E, #7CB342);
    color: #fff;
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
}

.vm-pill--mission {
    background: linear-gradient(135deg, #283593, #5C6BC0);
    color: #fff;
    box-shadow: 0 6px 20px rgba(92, 107, 192, 0.4);
}

/* Vertical trunk from root to branches */
.vm-trunk {
    width: 3px;
    height: 50px;
    background: linear-gradient(180deg, #8BC34A, #bbb);
    border-radius: 2px;
}

/* Branches container (side by side) */
.vm-branches {
    display: flex;
    width: 100%;
    position: relative;
    padding-top: 55px;
    gap: 2.5rem;
}

/* Horizontal connector across top of branches */
.vm-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: #bbb;
    border-radius: 2px;
}

/* Each branch column */
.vm-branch {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Vertical connector from horizontal line down to pill */
.vm-branch::before {
    content: '';
    position: absolute;
    top: -55px;
    left: 50%;
    width: 3px;
    height: 55px;
    transform: translateX(-50%);
    border-radius: 2px;
}

.vm-branch--vision::before { background: linear-gradient(180deg, #bbb, #8BC34A); }
.vm-branch--mission::before { background: linear-gradient(180deg, #bbb, #7986CB); }

/* Short line from pill down to cards */
.vm-branch-line {
    width: 3px;
    height: 35px;
    flex-shrink: 0;
    border-radius: 2px;
}

.vm-branch--vision .vm-branch-line { background: linear-gradient(180deg, #8BC34A, #C5E1A5); }
.vm-branch--mission .vm-branch-line { background: linear-gradient(180deg, #7986CB, #C5CAE9); }

/* Cards container with dashed spine on left */
.vm-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding-left: 28px;
    border-left: 3px solid;
    position: relative;
}

.vm-branch--vision .vm-cards { border-left-color: #C5E1A5; }
.vm-branch--mission .vm-cards { border-left-color: #C5CAE9; }

/* Leaf card */
.vm-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.vm-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.vm-branch--vision .vm-card:hover {
    border-color: rgba(139, 195, 74, 0.3);
}

.vm-branch--mission .vm-card:hover {
    border-color: rgba(92, 107, 192, 0.3);
}

/* Horizontal connector from spine to card */
.vm-card::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 50%;
    width: 26px;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 2px;
}

.vm-branch--vision .vm-card::before { background: #8BC34A; }
.vm-branch--mission .vm-card::before { background: #7986CB; }

/* Dot on spine */
.vm-card::after {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateY(-50%);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vm-branch--vision .vm-card::after { background: #8BC34A; }
.vm-branch--mission .vm-card::after { background: #7986CB; }

/* Card icon */
.vm-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Card body text */
.vm-card-body h6 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.3rem 0;
}

.vm-card-body p {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    color: #fff;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Focus Area Cards */
.focus-area-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.focus-area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.focus-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.focus-area-card:hover .focus-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    transform: scale(1.1);
}

.focus-area-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.focus-area-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Facility Cards */
.facility-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.facility-image {
    position: relative;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.1);
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.9) 0%, rgba(104, 159, 56, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.facility-card:hover .facility-overlay {
    opacity: 1;
}

.facility-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

.facility-content {
    padding: 1.5rem;
}

.facility-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.facility-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Affiliation Logo */
.collaborator-logo {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.collaborator-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.collaborator-logo img {
    max-height: 60px;
    width: auto;
}

.collaborator-logo.no-bg {
    background: none;
    box-shadow: none;
    padding: 1rem;
}

.collaborator-logo.no-bg:hover {
    box-shadow: none;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 992px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .about-image-badge {
        right: 10px;
        bottom: 10px;
        padding: 10px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .about-image-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
        display: inline-block;
    }

    .intro-svg-wrap {
        margin-top: 2rem;
    }

    /* Tree stacks vertically on mobile */
    .vm-hierarchy {
        max-width: 100%;
    }

    .vm-trunk {
        height: 30px;
    }

    .vm-branches {
        flex-direction: column;
        align-items: center;
        padding-top: 0;
        gap: 0;
    }

    .vm-branches::before {
        display: none;
    }

    .vm-branch {
        width: 100%;
        max-width: 420px;
    }

    .vm-branch::before {
        display: none;
    }

    .vm-branch-line {
        height: 20px;
    }

    .vm-pill {
        font-size: 0.9rem;
        padding: 0.6rem 1.4rem;
    }

    .vm-pill--root {
        font-size: 1rem;
        padding: 0.75rem 1.8rem;
    }

    /* Vertical connector between vision and mission branches */
    .vm-branch--vision::after {
        content: '';
        width: 2px;
        height: 30px;
        background: #bbb;
        flex-shrink: 0;
        margin-top: 0.75rem;
    }

    .vm-card-body p {
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .focus-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}
