:root {
    /* Marshall Green */
    --primary-color: #00592D;
    --primary-light: #008141;
    --primary-lighter: #00A956;
    --primary-subtle: rgba(0, 89, 45, 0.1);
    --primary-dark: #003D1F;

    /* Malawi Flag Green - Softer Emerald */
    --secondary-color: #1E824C;
    --secondary-light: #2ECC71;
    --secondary-subtle: rgba(30, 130, 76, 0.1);

    /* Malawi Flag Red */
    --accent-color: #CE1126;
    --accent-light: #EA1F34;
    --accent-subtle: rgba(206, 17, 38, 0.1);

    /* Neutrals */
    --bg-color: #FCFDFD;
    --bg-white: #ffffff;
    --text-dark: #2D3436;
    --text-muted: #636E72;
    --text-light: #ffffff;
    --border-color: rgba(0, 0, 0, 0.05);

    /* Layout Constants */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease-in-out;
    --radius-lg: 24px;
    --radius-md: 16px;
}

/* Bootstrap Overrides & Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--bg-color) !important;
}

.bg-primary-subtle {
    background-color: var(--primary-subtle) !important;
}

.bg-secondary-subtle {
    background-color: var(--secondary-subtle) !important;
}

.bg-accent-subtle {
    background-color: var(--accent-subtle) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

/* Glassmorphism Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition-slow);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-color);
    transform: skewY(-2deg);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

@media (min-width: 992px) {
    .hero-section {
        text-align: left;
    }
}


/* Buttons */
.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 89, 45, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-custom-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 89, 45, 0.2);
    color: white;
}

.btn-custom-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-custom-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Cards */
.custom-card {
    background: white;
    border-radius: 20px;
    border: none;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Photo Placeholders */
.photo-placeholder {
    background-color: var(--primary-subtle);
    border: 2px dashed var(--primary-lighter);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.photo-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.photo-placeholder::after {
    content: 'Photo Template';
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.aspect-ratio-3-2 {
    aspect-ratio: 3 / 2;
    width: 100%;
}

/* Feature Grid for Hero */
.hero-feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.hero-feature-card:hover .icon-box {
    background: var(--secondary-subtle);
    color: var(--secondary-color);
    transform: scale(1.1) rotate(-5deg);
}


.icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.mx-auto .icon-box,
.text-center .icon-box {
    margin-left: auto;
    margin-right: auto;
}



/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Donate Section */
.donate-section {
    background-color: #1A3026;
    /* Soft Deep Emerald instead of Black */
    color: white;
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 100px;
}

/* Footer */
footer {
    padding: 60px 0 20px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.social-links a {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-right: 15px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

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

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

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@media (max-width: 768px) {
    .border-md-last-0 {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Condense vertical space for mobile */
    .hero-section {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .hero-lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .custom-card {
        padding: 24px;
    }

    .donate-section {
        padding: 40px;
        margin-bottom: 60px;
    }

    .hero-feature-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 1rem;
        gap: 1.25rem;
        height: auto;
    }

    .hero-feature-card .icon-box {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        flex-shrink: 0;
    }

    .hero-feature-card h6 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .hero-feature-card p {
        font-size: 0.85rem;
    }

    footer {
        padding: 40px 0 20px;
    }

    .faq-item {
        padding: 1.25rem;
    }

    /* Adjust section title spacing for mobile */
    .section-title {
        margin-bottom: 0.75rem;
    }
}

/* FAQ Styling */
.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Subtitle Backgrounds - Already covered in utilities but keeping for specificity if needed */
.bg-primary-subtle {
    background-color: var(--primary-subtle) !important;
}

.bg-secondary-subtle {
    background-color: var(--secondary-subtle) !important;
}

.bg-accent-subtle {
    background-color: var(--accent-subtle) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.divider-top {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}