/* NANEF Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
    --primary-color: #4b245d;
    /* Deep Purple from Logo */
    --secondary-color: #e95d8a;
    /* Magenta from Logo */
    --accent-color: #ffb100;
    /* Gold from Logo */
    --dark-color: #3d1f13;
    /* Dark Brown from Logo Silhouettes */
    --light-color: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Overriding Bootstrap Utils */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.bg-primary-subtle {
    background-color: rgba(75, 36, 93, 0.1) !important;
}

.bg-secondary-subtle {
    background-color: rgba(233, 93, 138, 0.1) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    padding: 1.2rem 0;
    transition: var(--transition);
    background: var(--white);
    /* White background for visibility & consistency */
    z-index: 1050;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .navbar {
        background: var(--white);
        padding: 0.8rem 0;
    }
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 80px;
    /* Base height - increased from 60px */
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    height: 60px;
    /* Shrunk height on scroll - increased from 45px */
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #3b1c4a;
    /* Darker brand purple */
    border-color: #3b1c4a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Hero Section */
.hero-section {
    padding: 140px 0 60px;
    /* Increased top padding to clear fixed navbar and avoid overlaps */
    background: linear-gradient(135deg, rgba(75, 36, 93, 0.05) 0%, rgba(233, 93, 138, 0.05) 100%);
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Section Styling */
.section-padding {
    padding: 50px 0;
    /* Reduced from 100px */
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    /* Reduced from 50px */
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 12px;
    /* Reduced from 20px */
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Cards */
.impact-card {
    border: none;
    border-radius: 12px;
    padding: 20px;
    /* Reduced from 30px */
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.impact-card i {
    font-size: 2rem;
    /* Slighly smaller */
    color: var(--secondary-color);
    margin-bottom: 12px;
}

/* Footer */
footer {
    background: #2e2e2e;
    /* Dark Grey */
    color: var(--white);
    padding: 40px 0 20px;
    /* Reduced padding */
}

footer p.text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
    /* Increased visibility */
}

footer a {
    color: rgba(255, 255, 255, 0.95);
    /* Increased visibility */
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Page Headers with Backgrounds */
.page-header {
    position: relative;
    padding: 80px 0 50px;
    background-color: var(--primary-color);
    /* Fallback to Brand Purple */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    margin-top: 85px;
    /* Offset for fixed navbar */
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 36, 93, 0.7);
    /* Brand Purple Overlay */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 991px) {
    .page-header {
        padding: 60px 0 40px;
        margin-top: 75px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Floating Donate Button */
.floating-donate-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: var(--secondary-color) !important;
    color: white !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(233, 93, 138, 0.4) !important;
    z-index: 99999 !important;
    transition: var(--transition) !important;
    animation: pulse-red 2s infinite !important;
}

.floating-donate-btn i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.floating-donate-btn span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-donate-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--primary-color);
    box-shadow: 0 8px 25px rgba(75, 36, 93, 0.4);
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(233, 93, 138, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(233, 93, 138, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(233, 93, 138, 0);
    }
}

@media (max-width: 768px) {
    .floating-donate-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        bottom: 25px !important;
        right: 25px !important;
        width: 60px !important;
        height: 60px !important;
        box-shadow: 0 4px 20px rgba(233, 93, 138, 0.5) !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }

    .floating-donate-btn i {
        font-size: 1.3rem !important;
        display: block !important;
    }

    .floating-donate-btn span {
        font-size: 0.6rem !important;
        display: block !important;
    }
}

/* Icon Boxes */
.icon-box-sm {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

.icon-box-lg {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: var(--transition);
}

.icon-box-lg i {
    font-size: 2.5rem;
}

/* Utilities */
.text-break-all {
    word-break: break-all !important;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}