/* ========================================
   TRUST FOUNDATION - COMPLETE STYLESHEET
   ======================================== */

/* Root Variables */
:root {
    /* Theme Colors */
    --primary-red: #ee9c23;
    --primary-pink: #959e25;
    --primary-purple: #44924d;
    --primary-violet: #007c6a;
    --primary-blue: #00636f;
    --primary-dark: #977249;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-pink) 100%);
    --gradient-2: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    --gradient-3: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-violet) 100%);
    --gradient-4: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-blue) 100%);
    --gradient-5: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    --gradient-gold: linear-gradient(135deg, #f7971e, #ffd200);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-purple); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-pink); }

/* ========================================
   NAVBAR STYLES
   ======================================== */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.4s ease;
    background: rgba(75, 78, 136, 0.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    background: rgba(75, 78, 136, 0.68);
    padding: 0.5rem 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff, #f71e1e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.navbar-brand i {
    transition: transform 0.3s ease;
    display: inline-block;
    color: var(--primary-red);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.navbar-brand:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.nav-link {
    position: relative;
    font-weight: 500;
    margin: 0 0.2rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: white !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-pink));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--primary-red) !important;
}

/* Donate Button */
.nav-link-donate {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    border-radius: 50px;
    padding: 8px 25px !important;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(247,30,30,0.3);
}

.nav-link-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(247,30,30,0.5);
    color: white !important;
}

.nav-link-donate::before {
    display: none;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 45px;
    height: 35px;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-toggler-icon::before { top: 8px; }
.navbar-toggler-icon span { top: 16px; }
.navbar-toggler-icon::after { bottom: 8px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: translateX(-50%) rotate(45deg);
    top: 16px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: translateX(-50%) rotate(-45deg);
    bottom: 16px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #2f4858 0%, #35507e 100%);
        padding: 80px 30px 30px;
        transition: right 0.4s ease;
        z-index: 1050;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }

    .navbar-collapse.show { right: 0; }

    .navbar-nav { flex-direction: column; gap: 1rem; }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 20px !important;
        border-radius: 10px;
    }

    .nav-link:hover {
        background: rgba(255,255,255,0.1);
        transform: translateX(10px);
    }

    .nav-link::before { display: none; }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-close-btn:hover {
        background: var(--primary-red);
        transform: rotate(90deg);
    }

    .nav-link-donate {
        display: inline-block;
        width: fit-content;
        margin-top: 10px;
    }
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide-content-inner {
    max-width: 800px;
}

.slide-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slider-dots {
    display: inline-flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-red);
    width: 30px;
    border-radius: 10px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 1.5rem;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-red);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
}

.section-title p {
    font-size: 1.1rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Colors */
.section-1 { background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%); }
.section-2 { background: var(--gradient-1); color: white; }
.section-3 { background: var(--gradient-2); color: black; }
.section-4 { background: var(--gradient-3); color: white; }
.section-5 { background: var(--gradient-4); color: black; }
.section-6 { background: var(--gradient-5); color: white; }

.section-2 .section-title h2::after,
.section-3 .section-title h2::after,
.section-4 .section-title h2::after,
.section-5 .section-title h2::after,
.section-6 .section-title h2::after {
    background: white;
}

/* Cards */
.card-custom {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}



/* ========================================
   ABOUT PAGE STYLES - Add to your existing CSS
   ======================================== */

/* Hero Section */
.about-hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    padding-top: 150px;
    padding-bottom: 50px;
    border-radius: 20px;
    margin-bottom: 50px;
}

.about-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Section Headings */
.section-heading {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.story-text-light {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-top: 1rem;
}

/* Stat Cards */
.stat-card {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-primary {
    background: var(--gradient-1);
}

.stat-card-secondary {
    background: var(--gradient-2);
}

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Quote Card */
.quote-card {
    background: var(--gradient-3);
    border-radius: 20px;
    padding: 40px;
    color: white;
    height: 100%;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
}

.quote-author {
    margin-top: 1rem;
    font-weight: 600;
}

/* Mission & Vision Cards */
.mission-card {
    background: var(--gradient-1);
    border-radius: 20px;
    padding: 40px;
    color: white;
    height: 100%;
    transition: transform 0.3s ease;
}

.vision-card {
    background: var(--gradient-5);
    border-radius: 20px;
    padding: 40px;
    color: white;
    height: 100%;
    transition: transform 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
}

.mission-icon,
.vision-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-text {
    line-height: 1.8;
}

/* Values Section */
.values-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-icon-1 { color: var(--primary-red); }
.value-icon-2 { color: var(--primary-pink); }
.value-icon-3 { color: var(--primary-purple); }
.value-icon-4 { color: var(--primary-violet); }

/* Impact Section */
.impact-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 60px 0;
}

.impact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.impact-number-1 { color: var(--primary-red); }
.impact-number-2 { color: var(--primary-pink); }
.impact-number-3 { color: var(--primary-purple); }
.impact-number-4 { color: var(--primary-violet); }

.impact-label {
    color: #666;
    font-size: 1rem;
}

/* Team Section */
.team-section {
    margin: 60px 0;
}

.team-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image i {
    font-size: 5rem;
    color: white;
}

.team-role {
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-role-1 { color: var(--primary-red); }
.team-role-2 { color: var(--primary-pink); }
.team-role-3 { color: var(--primary-purple); }

/* CTA Section */
.cta-section {
    background: var(--gradient-5);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    margin-top: 60px;
    margin-bottom: 50px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-donate {
    background: var(--primary-red);
    color: white;
}

.btn-donate:hover {
    background: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-contact {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-contact:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Legal Page */
.legal-container {
    padding: 80px 0;
}

.legal-title {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-card {
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    background: white;
}

.legal-card h2 {
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

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

    .mission-card,
    .vision-card {
        padding: 25px;
    }

    .card-title {
        font-size: 1.5rem;
    }
}



 /* Gallery Page Styles */
    .page-header {
        position: relative;
        margin-bottom: 2rem;
    }

    /* Breadcrumb Styles */
    .breadcrumb {
        background: transparent;
        padding: 0;
        margin: 0;
    }

    .breadcrumb-item a {
        transition: color 0.3s ease;
    }

    .breadcrumb-item a:hover {
        color: var(--primary-red) !important;
    }

    /* Gallery Tabs */
    .gallery-tabs .nav-pills {
        gap: 15px;
        flex-wrap: wrap;
    }

    .gallery-tabs .nav-pills .nav-link {
        background: #f8f9fa;
        color: #2f4858;
        padding: 12px 25px;
        border-radius: 50px;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .gallery-tabs .nav-pills .nav-link:hover {
        background: var(--primary-red);
        color: white;
        transform: translateY(-2px);
    }

    .gallery-tabs .nav-pills .nav-link.active {
        background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
        color: white;
        box-shadow: 0 5px 15px rgba(247,30,30,0.3);
    }

    .gallery-tabs .nav-pills .nav-link .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* Gallery Grid */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    /* Gallery Card */
    .gallery-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .gallery-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .gallery-image-wrapper {
        position: relative;
        overflow: hidden;
        height: 250px;
    }

    .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

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

    /* Gallery Overlay */
    .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(247,30,30,0.9), rgba(226,0,101,0.9));
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
    }

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

    .overlay-content {
        text-align: center;
        color: white;
        padding: 20px;
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .gallery-card:hover .overlay-content {
        transform: translateY(0);
    }

    .overlay-content .view-image {
        background: white;
        color: var(--primary-red);
        border: none;
        transition: all 0.3s ease;
    }

    .overlay-content .view-image:hover {
        background: var(--primary-dark);
        color: white;
        transform: scale(1.05);
    }

    /* Gallery Card Body */
    .gallery-card-body {
        padding: 15px;
        text-align: center;
    }

    /* Empty State */
    .empty-state {
        padding: 60px 20px;
        background: #f8f9fa;
        border-radius: 20px;
    }

    /* Modal Styles */
    .modal-content {
        background: transparent;
    }

    .image-modal-caption {
        background: rgba(0,0,0,0.8) !important;
        backdrop-filter: blur(10px);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }

        .gallery-tabs .nav-pills .nav-link {
            padding: 8px 16px;
            font-size: 0.9rem;
        }

        .gallery-image-wrapper {
            height: 200px;
        }

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

    /* Animation */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .gallery-item {
        animation: fadeInUp 0.6s ease forwards;
    }
