/* =========================================
   Corporate Cloud - Light Design System (Final Polish)
   ========================================= */

/* =========================================
   Local Fonts
   ========================================= */
@font-face {
    font-family: 'DM Sans';
    src: url('../vendor/fonts/dm-sans-regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Outfit';
    src: url('../vendor/fonts/outfit-regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Poppins';
    src: url('../vendor/fonts/poppins-regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../vendor/fonts/montserrat-regular.woff2') format('woff2');
    font-weight: 400;
}

/* AOS Safety Fallback: Ensures content is visible if JS fails */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Re-apply AOS hiding only when library is ready (default behavior usually handles this, 
   but we want to be explicit about our fallback strategy) */
html.aos-enabled [data-aos] {
    opacity: 0;
}

html.aos-enabled [data-aos].aos-animate {
    opacity: 1;
}

:root {
    /* Color Palette - Luxury Light Mode */
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;

    /* Brand Colors */
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --text-gradient: linear-gradient(to right, #1e293b, #475569);

    /* Solids */
    --color-primary: #2563eb;
    --color-accent: #0ea5e9;
    --color-border: #f1f5f9;

    /* Text */
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;

    /* Layout */
    --navbar-height: 80px;

    /* Effects */
    --shadow-luxury: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.1);
}

/* =========================================
   Global Reset & Typography
   ========================================= */

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

body {
    font-family: 'DM Sans', 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--navbar-height);
    /* Subtle mesh pattern */
    background-image:
        radial-gradient(at 100% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--color-primary);
}

a:hover {
    color: #1d4ed8;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.text-gradient {
    color: var(--color-primary);
    /* Fallback */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-premium {
    background: var(--color-primary);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    /* Slightly squarer for corporate look */
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-outline-premium {
    background: white;
    color: var(--color-text-main);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-premium:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #f8fafc;
    box-shadow: var(--shadow-md);
}

/* =========================================
   Navigation
   ========================================= */

.navbar {
    background: #ffffff;
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
}

/* Responsive navbar sizing */
@media (max-width: 991.98px) {
    .navbar {
        padding: 12px 0;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand {
        gap: 8px;
    }
}


.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 2000;
    transition: width 0.1s ease-out;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-logo-img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    display: block;
}

.brand-logo-img:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 10px 15px rgba(37, 99, 235, 0.15));
}

/* Responsive logo sizing */
@media (max-width: 991.98px) {
    .brand-logo-img {
        height: 38px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        height: 32px;
    }
}


.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-main {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    margin-top: -4px;
}

.nav-link {
    color: var(--color-text-main) !important;
    font-weight: 600;
    margin-left: 14px;
    font-size: 0.875rem;
    opacity: 0.9;
    padding: 6px 10px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
    opacity: 1;
    background: rgba(37, 99, 235, 0.1);
}

/* Get Quote Button in Navbar */
.nav-item .btn-premium {
    margin-left: 8px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.nav-item .btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Mobile Menu Appearance */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
        border: 1px solid var(--color-border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
        /* Animation when opening */
        animation: slideInDown 0.3s ease-out forwards;
    }

    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        color: var(--color-text-main) !important;
        margin-left: 0 !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid var(--color-border);
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
        font-size: 0.95rem;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(37, 99, 235, 0.05);
        padding-left: 24px !important;
        color: var(--color-primary) !important;
    }

    .nav-link i {
        width: 20px;
        margin-right: 8px;
    }

    /* Dropdown on Mobile */
    .dropdown-menu {
        border: none;
        padding-left: 20px;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 0;
        box-shadow: none;
        position: static !important;
        transform: none !important;
        width: 100%;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 6px;
        white-space: normal;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.1);
        color: white !important;
    }

    /* Make dropdown toggle work properly on mobile */
    .nav-item.dropdown .dropdown-toggle::after {
        margin-left: auto;
    }

    /* Navbar Toggler Consolidation */
    .navbar-toggler {
        border: 2px solid #2563eb !important;
        padding: 8px !important;
        width: 44px;
        height: 44px;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
        border-radius: 8px !important;
        z-index: 1060;
        transition: all 0.3s ease;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25) !important;
        outline: none;
    }

    .toggler-icon {
        width: 24px;
        height: 3px;
        background-color: #2563eb !important;
        /* Explicit brand blue */
        display: block;
        border-radius: 2px;
        transition: all 0.3s ease;
        position: relative;
    }

    /* Animation when menu is open */
    .navbar-toggler:not(.collapsed) .top-bar {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar-toggler:not(.collapsed) .middle-bar {
        opacity: 0;
    }

    .navbar-toggler:not(.collapsed) .bottom-bar {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* =========================================
   Page Header (Internal Pages)
   ========================================= */

.page-header {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(239, 246, 255, 0.85) 100%), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0 40px;
    min-height: 250px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.ngo-hero-premium {
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(239, 246, 255, 0.85) 100%);
    border-bottom: 1px solid var(--color-border);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

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

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

.breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #cbd5e1;
}

/* =========================================
   Hero Section
   ========================================= */

/* =========================================
   Hero Slider (Responsive)
   ========================================= */

.hero-slider {
    position: relative;
    overflow: hidden;
    /* No padding needed for slider, it handles its own height */
}

/* Base Desktop Height */
.carousel-item {
    height: 75vh;
    min-height: 550px;
    max-height: 800px;
    background-color: #0f172a;
    /* Fallback */
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Darken Overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 50px;
    /* Check this if indicators overlap */
}

.hero-slider-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-slider h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-slider p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
        /* Smaller on mobile */
        min-height: 450px;
    }

    .hero-slider h1 {
        font-size: 2.2rem;
    }

    .hero-slider p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn-lg {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.15;
    color: var(--color-text-main);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.stat h3 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

/* =========================================
   Cards (Unified)
   ========================================= */

.section {
    padding: 60px 0;
    /* Reduced from 100px to tighten layout */
    position: relative;
}

/* Mobile Spacing Optimization */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
        /* Compact on mobile */
    }
}

/* Premium Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    /* Ensure positioning context */
}

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

/* Gradient Underline */
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.service-card,
.project-card,
.team-card,
.mission-card,
.vision-card,
.contact-card,
.benefit-card,
.role-card,
.process-card,
.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

/* Unified Project Card Styling */
.project-card .card-img-top {
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
}

.project-card .btn-link {
    margin-top: auto;
    /* Pushes button to bottom */
}

/* Hover Effect: Lift & Shadow */
.service-card:hover,
.project-card:hover,
.process-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.service-icon,
.process-icon,
.contact-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    /* Blue 50 */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: white;
}

.service-card h3,
.process-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.service-link {
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
}

/* Mission & Vision */
.mission-vision-section {
    background: #f8fafc;
}

.mission-card,
.vision-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
}

.mission-card:hover,
.vision-card:hover,
.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
}

.mission-icon,
.vision-icon,
.goal-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}

/* Specialized for NGO - Luxury Overhaul */
.specialized-ngo-section {
    padding: 140px 0;
    background: #0b1120;
    /* Ultra Deep Navy */
    position: relative;
    overflow: hidden;
    color: white;
}

.specialized-ngo-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.specialized-content-luxury {
    position: relative;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title-luxury h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-luxury p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

/* Asymmetric Tile Cards */
.spec-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.spec-tile {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    color: white;
}

.spec-tile:nth-child(even) {
    margin-top: 40px;
}

.spec-tile:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-luxury);
    border-color: rgba(16, 185, 129, 0.2);
}

.tile-icon {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #10b981;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.spec-tile:hover .tile-icon {
    background: #10b981;
    color: white;
    transform: rotateY(180deg);
}

.spec-card-luxury {
    background: var(--secondary-gradient);
    padding: 60px 45px;
    border-radius: 40px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 40px 80px -15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.spec-card-luxury h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.spec-card-luxury p {
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Header Styling - Luxury White Theme */
.top-bar {
    background: #f8fafc !important;
    color: #64748b !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-info span {
    color: #64748b !important;
}

.top-bar-social a {
    color: #94a3b8 !important;
    transition: color 0.3s;
}

/* Navbar Global - Clean White */
.navbar {
    background: #ffffff !important;
    padding: 15px 0 !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Navbar Scrolled State */
.navbar.scrolled {
    background: #ffffff !important;
    padding: 10px 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.navbar .nav-link {
    color: #334155 !important;
    font-weight: 500 !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 10px 15px !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #2563eb !important;
}

/* Footer - Luxury Light */
.footer {
    background: #0f172a !important;
    /* Premium Light Black (Slate 900) */
    color: #ffffff !important;
    /* White text */
    padding: 80px 0 40px !important;
    border-top: 5px solid #2563eb !important;
    position: relative;
    z-index: 10;
}

.footer-map-wrap {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-map-wrap:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.footer .widget-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    font-family: 'Outfit', sans-serif !important;
    position: relative;
    padding-bottom: 12px;
}

.footer .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #2563eb;
}

.footer p {
    color: #ffffff !important;
    /* White text */
    line-height: 1.8;
}

.footer-links,
.contact-info {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links a {
    color: #ffffff !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.75rem;
    margin-right: 10px;
    opacity: 0.5;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: #f1f5f9 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569 !important;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    border-color: #2563eb !important;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info li i {
    color: #2563eb !important;
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.contact-info span {
    color: #ffffff !important;
    flex: 1;
    line-height: 1.6;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 40px 0;
    opacity: 1;
}

.copyright-separator {
    border-top: 2px solid rgba(255, 255, 255, 0.05) !important;
    margin: 30px 0;
    width: 100%;
}

.copyright {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.footer-bottom-links a:hover {
    color: #ffffff !important;
}

.newsletter h5 {
    color: #0f172a !important;
}

.newsletter p {
    color: #64748b !important;
}

.newsletter-form .form-control {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.newsletter-form .form-control::placeholder {
    color: #94a3b8 !important;
}

/* Mission/Vision/Goal Card Polish */
.mission-card,
.vision-card,
.goal-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: white;
    padding: 40px 35px;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mission-card::after,
.vision-card::after,
.goal-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mission-card:hover::after,
.vision-card:hover::after,
.goal-card:hover::after {
    transform: scaleX(1);
}

.mission-icon,
.vision-icon,
.goal-icon,
.mission-card .service-icon,
.vision-card .service-icon,
.goal-card .service-icon {
    width: 70px;
    height: 70px;
    background: #f0f7ff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.mission-card:hover .service-icon,
.vision-card:hover .service-icon,
.goal-card:hover .service-icon {
    background: var(--color-primary);
    color: white;
    transform: rotateY(180deg);
}

/* =========================================
   Project Section (Simple Box Grid)
   ========================================= */

.project-slider-section {
    background: #f8fafc;
    padding: 60px 0;
}

.project-card {
    padding: 0;
    /* Override base padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensure image zoom stays inside */
    background: white;
}

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Floating Badge */
.project-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.project-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.project-specs {
    margin-top: auto;
    /* Push to bottom if content varies */
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-specs span {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
    background: var(--bg-body);
    padding: 6px 14px;
    border-radius: 6px;
}

.project-link {
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.project-link i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Partners Section */
.partners-section {
    background: #f8fafc;
    border-top: 1px solid var(--color-border);
}

.partner-logo {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    max-height: 40px;
    width: auto;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

/* Tech Stack */
.tech-stack {
    padding: 60px 0;
    margin-bottom: 0;
    /* Removed negative margin issues if any */
    background: white;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 10;
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tech-item i {
    font-size: 2.5rem;
    color: #94a3b8;
    /* Slate 400 */
    transition: all 0.3s ease;
}

.tech-item:hover i {
    color: var(--color-text-main);
    transform: scale(1.1);
}

/* Process Section */
.process-number {
    font-size: 4rem;
    font-weight: 800;
    color: #f1f5f9;
    /* Slate 100 */
    position: absolute;
    top: 10px;
    right: 20px;
}

/* Testimonials */
.testimonial-card {
    background: #ffffff;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-main);
    font-weight: 500;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
}

.client-name h5 {
    color: var(--color-text-main);
    font-size: 1rem;
    margin-bottom: 0;
}

.client-name span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* =========================================
   CTA Section
   ========================================= */

.cta-section {
    background: #0f172a;
    /* Dark Slate 900 */
    padding: 60px 0 !important;
    /* Force reduction */
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: #cbd5e1;
    /* Slate 300 */
    font-size: 1.15rem;
}

/* =========================================
   Footer Base
   ========================================= */


/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #1d4ed8;
    color: white;
}

/* =========================================
   Home Page New Sections
   ========================================= */

/* About Section Home */
.about-section-home {
    background-color: var(--bg-surface);
}

.about-section-home img {
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

/* Our Messages */
.messages-section {
    background-color: #f8fafc;
    padding: 80px 0;
}

.message-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.message-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-content {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.message-author h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--color-text-main);
}

.message-author span {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Specialized NGO Section */
.specialized-ngo-section {
    background: #0f172a;
    /* Dark background */
    color: white;
    padding: 80px 0;
}

.specialized-ngo-section h2 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.specialized-ngo-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.specialized-ngo-section p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Clients Section */
.clients-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid var(--color-border);
}

.client-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.client-logo {
    max-height: 50px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Goal Card */
.goal-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
}

/* =========================================
   Logo Slider (Marquee)
   ========================================= */
.logo-slider-container {
    overflow: hidden;
    padding: 40px 0;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

/* Better Gradient Fade Edges */
.logo-slider-container::before,
.logo-slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.logo-slider-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.logo-slider-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Gray Section Fade */
.clients-section-sep .logo-slider-container::before {
    background: linear-gradient(to right, #f8fafc, transparent);
}

.clients-section-sep .logo-slider-container::after {
    background: linear-gradient(to left, #f8fafc, transparent);
}

.logo-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content;
    gap: 80px;
    align-items: center;
    will-change: transform;
}

/* Left to Right Scrolling - Smoother logic */
@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.scroll-right {
    animation: scroll-right 40s linear infinite !important;
}

.logo-slider-item {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 200px;
    /* Fixed width for consistent spacing */
}

.logo-slider-item img {
    max-height: 45px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease-in-out;
}

.logo-slider-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Section styling */
.partner-section,
.clients-section-sep {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    background: white;
}

.clients-section-sep {
    background: #ffffff;
}

/* Storytelling Sections for Specialized Page */
.story-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.story-section:nth-child(even) {
    background: #f8fafc;
}

.story-number {
    font-size: 15rem;
    font-weight: 900;
    position: absolute;
    top: -50px;
    left: -20px;
    opacity: 0.03;
    color: var(--color-text-main);
    z-index: 0;
    line-height: 1;
}

.story-section:nth-child(even) .story-number {
    left: auto;
    right: -20px;
}

.story-content {
    position: relative;
    z-index: 1;
}

.story-image-wrap {
    position: relative;
    z-index: 1;
}

.story-image-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(16, 185, 129, 0.1);
    border-radius: 30px;
    z-index: -1;
}

.story-section:nth-child(even) .story-image-wrap::before {
    left: auto;
    right: -20px;
}

.eco-list {
    margin-top: 30px;
}

.eco-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.eco-item:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(10px);
}

.eco-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Light Theme Premium Hero for NGO Page */
.ngo-hero-premium {
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(239, 246, 255, 0.9) 100%);
    border-bottom: 1px solid var(--color-border);
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 1;
}

.ngo-hero-premium .container {
    z-index: 2;
}