:root {
    /* Primary Colors */
    --primary-color: #6B21A8;  /* Deep Purple */
    --primary-light: #9333EA;  /* Light Purple */
    --primary-dark: #581C87;   /* Dark Purple */
    --primary-foreground: #ffffff;

    /* Secondary Colors */
    --secondary-color: #F3E8FF;  /* Very Light Purple */
    --secondary-foreground: #1E1B4B;  /* Dark Blue */

    /* Neutral Colors */
    --background: #ffffff;
    --foreground: #1E1B4B;
    --muted: #F5F3FF;
    --muted-foreground: #6B7280;

    /* Accent Colors */
    --accent: #E9D5FF;
    --accent-foreground: #4C1D95;

    /* Semantic Colors */
    --destructive: #991B1B;
    --destructive-foreground: #ffffff;
    --border: #E5E7EB;
    --input: #F3F4F6;
    --ring: #9333EA;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--foreground);
    line-height: 1.6;
    font-weight: 400;
    background: linear-gradient(135deg, #F5F3FF 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Main Content Wrapper */
.main-content {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    min-height: 100vh;
    margin-top: 0;
}

/* Navigation */
.navbar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-name {
    font-weight: 700;
    color: var(--primary-foreground);
    margin-left: 0.5rem;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3, h4, h5, h6 {
    color: var(--primary-dark);
}
/* Hero Sections */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--primary-foreground);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(88, 28, 135, 0.8) 0%, rgba(107, 33, 168, 0.4) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card:hover::before {
    opacity: 1;
}

/* Buttons */
.btn-primary, .btn-donate {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before, .btn-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover, .btn-donate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::before, .btn-donate:hover::before {
    left: 0;
}

/* Footer */
/* Advanced Background Patterns */
.section-pattern {
    position: relative;
    overflow: hidden;
}

.section-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, var(--primary-light) 25%, transparent 25%),
        linear-gradient(-45deg, var(--primary-light) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--primary-light) 75%),
        linear-gradient(-45deg, transparent 75%, var(--primary-light) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.05;
    pointer-events: none;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}

/* Animated Background */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(45deg, 
        rgba(147, 51, 234, 0.03) 0%,
        rgba(88, 28, 135, 0.03) 33%,
        rgba(107, 33, 168, 0.03) 66%,
        rgba(147, 51, 234, 0.03) 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer with Advanced Gradient */
.footer {
    background: linear-gradient(135deg, 
        var(--primary-dark) 0%,
        var(--primary-color) 50%,
        var(--primary-light) 100%);
    color: var(--primary-foreground);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

.footer h5 {
    color: var(--accent);
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent);
}

/* Section Headers */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(147, 51, 234, 0.25);
}

/* Icons */
.icon-purple {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.icon-white {
    color: var(--primary-foreground);
    transition: all 0.3s ease;
}

/* Override Bootstrap Icon Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light)) !important;
}

/* Footer Icons */
.footer .icon {
    color: var(--primary-foreground);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer .icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Card Icons */
.card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.card:hover .icon {
    transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--primary-light));
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-dark), var(--primary-color));
}

.display-4 {
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.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);
}
.btn-donate {
    padding: .3rem .75rem;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav {
    margin-left: auto;
    margin-right: auto;
}

.nav-link, .brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    transition: color 0.3s ease;
}
.brand-name {
    font-weight: bolder;
    font-size: larger;
}
.nav-link:hover {
    color: var(--primary-color);
}

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Add padding to main content to prevent content jump when navbar becomes fixed */
.main-content {
    padding-top: 52px; /* Match navbar height */
    position: relative;
    z-index: 1;
}

/* Mobile Menu Animations */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 30%;
        background: var(--primary-color);
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Mobile Nav Items Animation */
    .nav-item {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animation delays */
    .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-item:nth-child(6) { transition-delay: 0.35s; }
    .nav-item:nth-child(7) { transition-delay: 0.4s; }
    .nav-item:nth-child(8) { transition-delay: 0.45s; }
    .nav-item:nth-child(9) { transition-delay: 0.5s; }
    .nav-item:nth-child(10) { transition-delay: 0.55s; }
}

/* Desktop Navigation */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-foreground);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .nav-item {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger the animation for each nav item */
    .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-item:nth-child(6) { transition-delay: 0.35s; }
    .nav-item:nth-child(7) { transition-delay: 0.4s; }
    .nav-item:nth-child(8) { transition-delay: 0.45s; }
    .nav-item:nth-child(9) { transition-delay: 0.5s; }
    .nav-item:nth-child(10) { transition-delay: 0.55s; }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 4px;
        color: var(--primary-foreground);
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: var(--primary-foreground);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-foreground);
        transform: translateX(5px);
    }

    .nav-link:hover::before {
        width: 100%;
    }

    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .nav-link.active::before {
        width: 100%;
    }
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--primary-foreground) !important;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 4px;
    }

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

/* News Mobile Styles */
@media (max-width: 991.98px) {
    /* News Sidebar Filters */
    .sidebar-filters {
        display: none;
        transition: all 0.3s ease;
    }

    .sidebar-filters.show {
        display: block;
    }

    .filter-toggle.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}

/* Mobile Navigation Hover Effects */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link:hover {
        /* color: rgba(255, 255, 255, 0.9) !important; */
        transform: translateX(5px);
        background-color: rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 4px;
        color: var(--primary-foreground);
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: var(--primary-foreground);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-foreground);
        transform: translateX(5px);
    }

    .nav-link:hover::before {
        width: 100%;
    }

    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .nav-link.active::before {
        width: 100%;
    }
}

/* Social Media Links */
.social-links a {
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-links a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Interactive Elements */
.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable:hover {
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.card-title {
    /* color: var(--text-dark); */
    font-weight: 600;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Sections */
.section-mission {
    background-color: var(--secondary-color);
}
.section-community {
    background-color: var(--primary-color);
    padding: 7rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}


/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 4rem 0 2rem;
    /* border-top: 1px solid rgb(226, 232, 240); */
    font-size: .8rem;
}
.copyrite-box {
    border-top: 1px solid rgb(226, 232, 240);
}

footer h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

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

/* Forms */
.form-control {
    font-family: 'Inter', sans-serif;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.25);
}

/* Alerts */
.alert {
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 32px;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 5px;  
    display: none;
    width: 35px;  
    height: 35px;  
    border-radius: 50%;
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
    text-align: center;
    line-height: 1;
    z-index: 1000;
    opacity: 0;
    transition: all 0.2s ease-in-out;  
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateX(0);  
}

.back-to-top:hover {
    background-color: #532b94;
    border-color: #532b94;
    color: white;
    transform: translateY(-3px);  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 1rem;  
}

@media (min-width: 1200px) {
    .back-to-top {
        right: calc((100vw - 1140px) / 2 - 45px);  
    }
}

@media (max-width: 576px) {
    .back-to-top {
        right: 10px;
        bottom: 20px;
    }
}