/* --- GLOBAL RESET & VARIABLES --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root { 
    --teal: #008080; 
    --navy: #0f172a; 
    --light: #f8fafc; 
    --red: #e11d48; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    overflow-x: hidden; 
}

/* --- NAVIGATION --- */
.navbar { 
    background: #fff; 
    height: 90px; 
    display: flex; 
    align-items: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-wrapper { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}

.logo-img { 
    height: 70px; 
    width: auto; 
    object-fit: contain; 
    margin-right: 10px; 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}

.nav-links a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--teal); 
}

/* --- DROPDOWN NAVIGATION --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
    border-top: 3px solid var(--teal);
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: var(--light);
    color: var(--teal) !important;
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease;
}
/* --- SECTION DEFAULTS --- */
.section-padding { padding: 80px 0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.flex-row { display: flex; gap: 50px; align-items: flex-start; }
.bg-light { background: var(--light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { color: var(--navy); font-size: 2.5rem; }
.section-header p { color: var(--teal); font-weight: 600; text-transform: uppercase; }

/* --- JOURNEY & VM --- */
.intro-text { flex: 1.6; }
.intro-text h2 { 
    color: var(--navy); 
    font-size: 2.2rem; 
    margin-bottom: 20px; 
    position: relative; 
    padding-bottom: 10px; 
}

.intro-text h2::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 60px; 
    height: 3px; 
    background: var(--teal); 
}

.intro-text p { 
    margin-top: 20px; 
    text-align: justify; 
    color: #444; 
    white-space: pre-line; 
}

.vm-side { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
    margin-top: 60px; 
}

.card { 
    padding: 35px; 
    border-radius: 15px; 
    color: white; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transition: 0.3s; 
}

.card:hover { transform: translateY(-5px); }
.card i { font-size: 2.2rem; margin-bottom: 15px; display: block; }
.vision-card { background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%); }
.mission-card { background: linear-gradient(135deg, var(--teal) 0%, #006666 100%); }

/* --- CAUSES GRID --- */
.causes-grid-2x2 { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.cause-box { 
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: 0.3s; 
}

.cause-box:hover { transform: translateY(-10px); }

.cause-img { 
    position: relative; 
    height: 380px; 
    overflow: hidden; 
}

.cause-img img { width: 100%; height: 100%; object-fit: cover; }

.cause-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 128, 128, 0.9); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: 0.3s; 
}

.cause-box:hover .cause-overlay { opacity: 1; }

.learn-more { 
    color: white; 
    text-decoration: none; 
    border: 2px solid white; 
    padding: 10px 20px; 
    border-radius: 5px; 
    font-weight: 600; 
}

.cause-content { padding: 30px; text-align: center; }
.cause-content h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.3rem; }
.cause-content p { color: #666; font-size: 0.95rem; }

/* --- ACHIEVEMENTS --- */
.achievements-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 25px; 
}

.achieve-card { 
    background: var(--light); 
    padding: 30px; 
    border-radius: 20px; 
    text-align: center; 
    transition: 0.4s; 
}

.achieve-card:hover { 
    transform: translateY(-10px); 
    background: white; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    border-bottom: 4px solid var(--teal); 
}

.icon-box { 
    width: 65px; 
    height: 65px; 
    background: white; 
    color: var(--teal); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px; 
    font-size: 1.7rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}
/* --- COLLAGE SLIDER --- */
.collage-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: white;
    white-space: nowrap;
    position: relative;
}

.collage-track {
    display: flex;
    width: calc(300px * 18);
    animation: scrollCollage 40s linear infinite;
}

.collage-track:hover { animation-play-state: paused; }

.collage-item {
    width: 1920px;
    height: 670px;
    margin: 0 10px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@keyframes scrollCollage {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 9)); }
}
/* ================================
   GALLERY PAGE – FINAL STYLES
================================ */

/* Container spacing fix */
.container > .search-wrapper {
    margin-top: 40px;
}

/* Search section */
.search-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.search-wrapper h2 {
    font-size: 2.3rem;
    font-weight: 700;
}

/* Search input */
.category-search {
    width: 100%;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: 30px;
    border: 2px solid #e5e7eb;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.category-search:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,128,128,0.15);
}

/* Album grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(400px, 1fr));
    gap: 20px;
    padding-bottom: 80px;
}

/* Album card */
.album-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.4s ease;
}

.album-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* Album cover */
.album-cover {
    position: relative;
    height: 290px;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.08);
}

/* Photo count badge */
.photo-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(15,23,42,0.85);
    color: white;
    padding: 7px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Album info */
.album-info {
    padding: 22px;
    text-align: center;
}

.album-info h3 {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Hide fancybox assets */
.hidden-assets {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
/* Responsive tweaks */
@media (max-width: 768px) {
    .search-wrapper h2 {
        font-size: 1.9rem;
    }

    .album-cover {
        height: 230px;
    }
}

@media (max-width: 576px) {
    .album-grid 
    {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .album-info h3 
    {
        min-height: 80px; /* Forces all titles to take up the same height */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
    }
}


/* ================================
   MISSIONARIES / TEAM PAGE STYLES
================================ */

/* Section Title */
.chapter-title {
    font-size: 2.2rem;
    color: var(--navy);
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.chapter-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--teal);
    display: block;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

/* Member Card */
.member-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* Image Holder */
.img-holder {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.member-card:hover .img-holder img {
    transform: scale(1.08);
}

/* Member Info */
.member-info {
    padding: 25px 20px;
}

.member-info h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 6px;
    font-weight: 600;
}

.member-info p {
    font-size: 0.9rem;
    color: var(--teal);
    font-weight: 600;
}

/* Cards without image (text-only members) */
.member-card .img-holder + .member-info {
    border-top: 1px solid #f1f1f1;
}

/* Chairman Highlight */
.team-grid:first-of-type .member-card {
    max-width: 320px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .chapter-title {
        font-size: 1.8rem;
    }

    .img-holder {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        gap: 25px;
    }

    .member-info h3 {
        font-size: 1.05rem;
    }
}
/* Fix layout for last row with only 2 members */
.team-grid:last-of-type {
    max-width: 700px;
    margin: 0 auto;
}

/* Improve portrait image fitting */
.img-holder img {
    object-position: top center;
}

/* Optional: slightly reduce height for wide cards */
.team-grid:last-of-type .img-holder {
    height: 260px;
}
/* --- FOOTER --- */
.footer {
    background: var(--navy);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

.ein-box {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    border-left: 3px solid var(--teal);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--teal);
}

.footer-links, .contact-info { list-style: none; }
.footer-links li, .contact-info li { margin-bottom: 15px; font-size: 0.9rem; opacity: 0.8; }
.footer-links a { color: white; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--teal); padding-left: 5px; }

.social-icons { display: flex; gap: 15px; margin-bottom: 25px; }
.social-icons a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    color: white; display: flex;
    align-items: center; justify-content: center;
    border-radius: 50%; transition: 0.3s;
}

.social-icons a:hover { background: var(--teal); transform: translateY(-3px); }

.donate-btn-footer {
    display: inline-block;
    background: var(--teal);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom { text-align: center; font-size: 0.85rem; opacity: 0.6; }

/* --- ANIMATIONS & RESPONSIVE --- */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(-30px); } 
    to { opacity: 1; transform: translateY(-50%); } 
}

@media (max-width: 992px) { 
    .flex-row { flex-direction: column; } 
    .causes-grid-2x2 { grid-template-columns: 1fr; } 
    .carousel-view { height: 450px; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
}
/* --- MOBILE MENU STYLES --- */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--navy);
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block; /* Show on mobile */
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%; /* Hidden off-screen */
        width: 100%;
        height: calc(100vh - 90px);
        background: white;
        flex-direction: column;
        gap: 0 !important;
        transition: 0.4s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: flex !important; /* Override the previous none */
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        padding: 20px;
        display: block;
        width: 100%;
    }

    /* Handle Dropdowns on Mobile */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: var(--light);
        display: block; /* Always visible in the mobile stack */
    }

}
/* ==========================================
   EDUCATION PROGRAM SPECIFIC STYLES
========================================== */

/* 1. Hero & Badge */
.cause-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), 
                url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6?q=80&w=1600');
    background-size: cover;
    background-position: center;
    padding: 120px 0 100px;
    color: white;
    text-align: center;
}

.badge {
    background: var(--teal);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 2. Impact Bar (The Stat Box) */
.impact-bar {
    background: var(--navy);
    color: white;
    padding: 40px 0;
    margin-top: -60px; /* Overlaps the hero */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.flex-row-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item h2 {
    color: var(--teal);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.8;
}

/* 3. Strategy Grid (Phase 01 & 02) */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.strategy-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    border-bottom: 4px solid var(--teal);
    transition: 0.3s ease;
}

.strategy-card:hover { transform: translateY(-5px); }

.phase-num {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 128, 128, 0.06); /* Subtle background number */
    z-index: 1;
}

.strategy-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

/* 4. Tags & Content */
.program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.program-tags span {
    background: #e2e8f0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
}

.program-tags i {
    color: var(--teal);
    margin-right: 8px;
}

.gov-note {
    border-left: 5px solid var(--teal);
    padding: 25px;
    background: #f0fdfa;
    font-style: italic;
    margin-top: 30px;
    border-radius: 0 10px 10px 0;
}

/* 5. Sticky Donation Card */
.donation-card {
    background: var(--navy);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: sticky;
    top: 120px; /* Sticks while user reads content */
}

.donation-card h3 { color: var(--teal); margin-bottom: 15px; }

.donate-btn-large {
    background: var(--teal);
    color: white;
    text-decoration: none;
    display: block;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 20px;
    transition: 0.3s;
}

.donate-btn-large:hover { background: #0d7a7a; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .impact-bar { width: 95%; margin-top: -40px; }
    .stat-item { flex: 1 1 50%; margin: 15px 0; }
    .flex-row { flex-direction: column; }
    .donation-card { position: static; margin-top: 40px; }
}
/* Specific Background for Blood Bank Hero */
.blood-hero-bg {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('https://images.unsplash.com/photo-1615461066841-6116ecaaba7f?q=80&w=1600');
    background-size: cover;
    background-position: center;
}