/* =========================================
   1. RESET & FOUNDATION
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    scroll-behavior: smooth;
    overflow-x: hidden;
    padding-top: 75px;
}

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

/* =========================================
   2. PREMIUM STICKY NAVBAR
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background-color: #1A237E; /* Deep Premium Blue */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled {
    height: 60px;
    background-color: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#navbar h2 {
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 1001;
}

#navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
}

#navbar ul li {
    margin-left: 30px;
}

#navbar ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #D4A017; /* Premium Gold */
    transition: width 0.3s ease;
}

#navbar ul li a:hover, 
#navbar ul li a.active {
    color: #D4A017;
    transform: translateY(-2px);
}

#navbar ul li a:hover::after, 
#navbar ul li a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =========================================
   3. GLOBAL SECTION REVEAL ANIMATIONS
   ========================================= */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section.visible .card,
section.visible .program,
section.visible .event-card,
section.visible .fundraising-card,
section.visible .gallery-item {
    animation: layoutCardReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.15) both;
}

section.visible .card:nth-child(1), section.visible .program:nth-child(1) { animation-delay: 0.1s; }
section.visible .card:nth-child(2), section.visible .program:nth-child(2) { animation-delay: 0.25s; }
section.visible .card:nth-child(3), section.visible .program:nth-child(3) { animation-delay: 0.4s; }
section.visible .card:nth-child(4), section.visible .program:nth-child(4) { animation-delay: 0.55s; }

@keyframes layoutCardReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive fix for Nav */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    #navbar {
        padding: 0 5%;
        height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    #navbar ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #1A237E;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }
    
    #navbar ul.active {
        transform: translateX(0);
    }
    
    #navbar ul li {
        margin-left: 0;
    }
    
    #navbar ul li a {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
}

/* =========================================
   4. PREMIUM HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 75px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), 
                url("/static/images/bac.23d9e781b37e.jpg") center/cover no-repeat;
    z-index: 1;
    overflow: hidden;
    animation: heroPop 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding: 40px 20px;
}

.hero h1, .hero p, .hero-actions {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation-delay: 0.3s;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 400;
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.4;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation-delay: 0.5s;
    padding: 0 20px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    animation-delay: 0.7s;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #D4A017 100%);
    color: #1A237E;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 200px;
    min-height: 44px;
}

.btn-hero:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 160, 23, 0.5);
    color: #000;
    background: #FFD700;
}

@keyframes heroPop {
    0% { transform: scale(1.06); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 1024px) {
    .hero {
        min-height: calc(100vh - 70px);
    }
}

@media (max-width: 768px) {
    .hero { 
        background-attachment: scroll;
        min-height: calc(100vh - 70px);
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .btn-hero { 
        padding: 16px 35px; 
        font-size: 1rem;
        width: min(90%, 300px);
    }
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about {
    padding: 100px 8%;
    text-align: center;
    background: #ffffff;
}

.about h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #1A237E;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #D4A017;
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.15rem;
    color: #546e7a;
    line-height: 1.8;
    padding: 0 15px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
    max-width: 1200px; /* Constrained for perfect desktop display */
    margin: 0 auto;
    justify-items: center;
}

.card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    border-top: 4px solid #D4A017;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.1);
    border-color: #D4A017;
}

.card h3 {
    color: #1A237E;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about {
        padding: 70px 5%;
    }
}

/* =========================================
   6. PROGRAMS SECTION (PERFECTLY CENTERED)
   ========================================= */
.programs {
    padding: 100px 8%;
    background: #f1f4f9;
    text-align: center;
}

.programs h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #1A237E;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.programs h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #D4A017;
    margin: 15px auto 0;
    border-radius: 2px;
}

.programs-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
    padding: 0 15px;
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 35px;
    max-width: 1200px; /* Constrained for perfect desktop display */
    margin: 0 auto;
    justify-content: center;
}

.program {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-top: 5px solid #D4A017; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.program:hover {
    transform: translateY(-10px); 
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(26, 35, 126, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.program h3 {
    color: #1A237E;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.program p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .programs {
        padding: 70px 5%;
    }
    .program {
        padding: 35px 25px;
    }
}

/* =========================================
   7. RESTRUCTURED EVENTS SECTION (CENTRALIZED & FIXED WIDE VIEW)
   ========================================= */
.events {
    width: 100%;
    max-width: 1240px; /* Limits container extension on system viewports */
    margin: 0 auto;
    padding: 100px 24px;
    box-sizing: border-box;
    text-align: center; 
}

.events h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #1A237E;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.events h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #D4A017;
    margin: 15px auto 0;
    border-radius: 2px;
}

.events-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #546e7a;
    padding: 0 15px;
    line-height: 1.6;
}

.events-container {
    display: grid;
    /* FIXED: Ensures individual cards hold an optimized structural grid size on big displays */
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px)); 
    gap: 30px;
    width: 100%;
    justify-content: center; /* Dynamic centering alignment */
}

.event-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.1);
    border-color: #D4A017;
}

.event-image-wrapper {
    width: 100%;
    height: 240px; /* Normalized explicit depth target */
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid #D4A017;
}

.event-flyer-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures cleaner fills without stretching across monitor scales */
    background-color: #0d1241; 
    display: block;
    transition: transform 0.5s ease;
}

.event-card:hover .event-flyer-img {
    transform: scale(1.03);
}

.event-details-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.event-date {
    display: inline-block;
    background: #1A237E;
    color: #D4A017;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.15);
}

.event-card h3 {
    color: #1A237E;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.event-location {
    font-size: 0.95rem;
    color: #D4A017;
    background: rgba(26, 35, 126, 0.05);
    padding: 4px 14px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    width: 100%;
}

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #64748b;
    font-size: 1.1rem;
    background: #ffffff;
    border-radius: 15px;
    border: 1px dashed #cbd5e1;
}

@media (max-width: 768px) {
    .events {
        padding: 70px 5%;
    }
    .events-container {
        grid-template-columns: 1fr;
    }
    .event-card {
        border-radius: 16px;
    }
}

/* =========================================
   8. PREMIUM GALLERY SECTION
   ========================================= */
.gallery {
    padding: 100px 8%;
    background: #fdfdfd;
    text-align: center;
}

.gallery h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #1A237E;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.gallery h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #D4A017;
    margin: 15px auto 0;
    border-radius: 2px;
}

.gallery-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #546e7a;
    line-height: 1.7;
    padding: 0 15px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 280px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #1A237E;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.gallery-item::after {
    content: '\271B';
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #D4A017;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 35, 126, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
    filter: brightness(0.7) blur(1px);
}

.gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery {
        padding: 70px 5%;
    }
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
        gap: 15px;
    }
    .gallery-item {
        height: 220px;
    }
}

/* =========================================
   9. CONTACT & INQUIRY SECTION
   ========================================= */
.contact {
    padding: 100px 8%;
    background: #f8fafc;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #1A237E;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #D4A017;
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #546e7a;
    padding: 0 15px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    flex: 1 1 450px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1A237E;
    background-color: #f0f4ff;
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}

.contact-form button {
    background: #1A237E;
    color: #D4A017;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    min-height: 44px;
}

.contact-form button:hover {
    background: #0d1241;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-info {
    flex: 1 1 300px;
    padding-top: 20px;
    min-width: 0;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #1A237E;
    margin-bottom: 25px;
    font-weight: 800;
}

.contact-info p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    word-break: break-word;
}

.contact-info a {
    color: #1A237E;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.contact-info a:hover {
    color: #D4A017;
}

@media (max-width: 768px) {
    .contact { padding: 70px 5%; }
    .contact-form { padding: 30px 20px; }
}

/* =========================================
   10. PREMIUM FOOTER
   ========================================= */
footer {
    background: #0d1241;
    color: #e2e8f0;
    padding: 80px 8% 30px;
    font-family: 'Inter', sans-serif;
    position: relative;
    border-top: 4px solid #D4A017;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-left h3 {
    font-size: 1.8rem;
    color: #D4A017;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-left p {
    font-size: 1rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 400px;
    margin-bottom: 15px;
}

.footer-email {
    color: #D4A017;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    word-break: break-all;
}

.footer-email:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-right h4, .footer-right h3 {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.social-links img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
    display: block;
    object-fit: contain;
    transition: 0.3s;
}

.social-links a:hover {
    background: #D4A017;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.4);
}

.footer-right iframe {
    border-radius: 12px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    footer { padding: 60px 5% 30px; }
    .footer-container { text-align: center; justify-items: center; }
    .footer-left p { margin: 0 auto; }
    .social-links { justify-content: center; }
    .footer-right iframe { max-width: 100%; }
}

/* =========================================================
   11. RESTRUCTURED PUBLIC FUNDRAISING SECTION (FIXED LARGE DISPLAY WIDTHS)
   ========================================================= */
.public-section {
    max-width: 1240px; /* FIXED: Keeps your campaigns locked inside a clean reading column on systems */
    margin: 60px auto;
    padding: 40px 24px;
    text-align: center; 
}

.public-section .section-heading {
    color: #1A237E;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    border-left: none; 
    padding-left: 0;
    text-transform: none;
}

.public-section .section-heading::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #D4A017;
    margin: 15px auto 0;
    border-radius: 2px;
}

.fundraising-grid {
    display: grid;
    /* FIXED: Restricts wide expansion. Cards remain sized properly even if there is only 1 campaign card loaded */
    grid-template-columns: repeat(auto-fit, minmax(340px, 450px)); 
    gap: 35px;
    margin-top: 40px;
    justify-content: center; /* Keeps cards centered horizontally */
}

.fundraising-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: center; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.fundraising-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.1);
    border-color: #D4A017;
}

.fundraising-card .card-header {
    background: linear-gradient(135deg, #1A237E 0%, #0d1241 100%);
    padding: 25px 20px;
    border-bottom: 3px solid #D4A017;
}

.fundraising-card .card-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fundraising-card .card-body {
    padding: 35px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.campaign-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    width: 100%;
}

.goal-info {
    background-color: rgba(26, 35, 126, 0.03);
    border: 1px dashed rgba(26, 35, 126, 0.2);
    padding: 14px 25px;
    border-radius: 12px;
    color: #1A237E;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    letter-spacing: 0.5px;
}

.fundraising-card .card-footer {
    padding: 20px 25px 30px;
    background-color: #ffffff;
    border-top: none;
    width: 100%;
}

.btn-donate {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #D4A017 100%);
    color: #1A237E;
    text-align: center;
    text-decoration: none;
    padding: 15px 0;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.2);
    transition: all 0.3s ease;
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
    background: #FFD700;
    color: #000;
}

.no-campaigns {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px dashed #cbd5e1;
    max-width: 600px;
    margin: 20px auto;
}

/* =========================================
   12. STRICT MOBILE "BOLD" VIEW & OVERRIDES
   ========================================= */
@media (max-width: 850px) {
    #navbar h2 {
        font-size: 1.4rem;
        text-align: left;
    }

    .hero {
        padding: 0 15px;
    }

    .btn-hero {
        border-radius: 15px;
    }

    .about h2, .programs h2, .events h2, .gallery h2, .contact h2, .public-section .section-heading {
        width: 100%;
    }

    .about-cards, .programs-container, .events-container, .gallery-container, .fundraising-grid {
        grid-template-columns: 1fr !important; 
        gap: 25px;
    }

    .card, .program, .event-card, .fundraising-card {
        padding: 10px 5px; 
        border-radius: 20px;
        width: 100%;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .event-card, .fundraising-card {
        padding: 0; 
    }

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

    .gallery-item {
        height: 350px;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-form {
        width: 100%;
        padding: 30px 20px;
    }

    .contact-form button {
        padding: 20px;
        font-size: 1.2rem;
    }

    footer {
        padding: 60px 20px 30px;
        text-align: center;
    }

    .footer-left p {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
        margin-top: 25px;
    }

    .btn-donate {
        padding: 16px 0; 
    }
}