/********** RIAMIRIAM KAROMOJA – FINAL STYLE.CSS (2025) **********/
:root {
    --primary:      #002856;   /* Deep Navy Blue */
    --secondary:    #E30613;   /* Strong Red – logo */
    --light:        #F8F9FA;
    --dark:         #1E1E1E;
    --accent:       #A0D8EF;
    --white:        #FFFFFF;
}

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(227,6,19,.5);
    transition: all .4s ease;
}
.back-to-top:hover { transform: translateY(-10px) scale(1.1); }

/*** Spinner ***/
#spinner { opacity: 0; visibility: hidden; transition: opacity .5s ease-out .5s; z-index: 99999; }
#spinner.show { visibility: visible; opacity: 1; transition: opacity .5s ease-out 0s; }

/*** ======================================== ***/
/***          ANIMATED NAVBAR LINKS             ***/
/*** ======================================== ***/
.navbar .navbar-nav .nav-link {
    position: relative;
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 25px 15px !important;
    overflow: hidden;
    transition: color .4s ease;
}
.navbar .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: all .4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-50%);
}
.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link.active::before {
    width: 70%;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}
.navbar-brand img {
    transition: transform .3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

/*** NAVBAR – CLEAN, VISIBLE ON SCROLL + PERFECT LOGO SPACING ***/
.container-fluid.fixed-top {
    transition: all .4s ease;
    backdrop-filter: blur(10px);
}
.container-fluid.fixed-top { background: transparent; }
.container-fluid.fixed-top.scrolled {
    background: rgba(0, 40, 86, 0.97) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    padding-top: 8px;
    padding-bottom: 8px;
}
.navbar-brand img {
    height: 62px !important;
    width: auto;
    max-width: 280px;
    transition: all .4s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.container-fluid.fixed-top.scrolled .navbar-brand img {
    height: 52px !important;
}
.navbar-nav .nav-link {
    padding: 12px 18px !important;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 600;
    transition: all .3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(227, 6, 19, 0.15);
    color: var(--secondary) !important;
    border-radius: 8px;
}
.navbar .btn-outline-primary {
    border: 2.5px solid var(--secondary) !important;
    color: var(--secondary) !important;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    font-weight: 600;
}
.navbar .btn-outline-primary:hover {
    background: var(--secondary) !important;
    color: #FFF !important;
}
@media (max-width: 991.98px) {
    .container-fluid.fixed-top.scrolled { background: var(--primary) !important; }
    .navbar-brand img { height: 56px !important; }
    .navbar .navbar-nav .nav-link::before { display: none; }
    .navbar .navbar-nav .nav-link:hover { background: rgba(227,6,19,.15); }
}

/*** ======================================== ***/
/***        SUPER BUTTONS WITH LOADING + RIPPLE ***/
/*** ======================================== ***/
.btn {
    position: relative;
    font-weight: 600;
    border-radius: 50px;
    padding: 14px 36px;
    overflow: hidden;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary,
.navbar .btn-outline-primary,
.donate .btn-primary {
    background: var(--secondary) !important;
    border: 2px solid var(--secondary) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 25px rgba(227,6,19,.4);
}
.btn-primary:hover,
.navbar .btn-outline-primary:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,40,86,.5);
}
.btn-outline-primary {
    background: transparent !important;
    border: 2.5px solid var(--secondary) !important;
    color: var(--secondary) !important;
}
.btn-outline-primary:hover {
    background: var(--secondary) !important;
    color: var(--white) !important;
    transform: translateY(-5px);
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .6s, height .6s;
}
.btn:active::after {
    width: 400px; height: 400px;
    opacity: 0;
    transition: 0s;
}
.btn:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,.15) 0%, transparent 70%);
    opacity: 0;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 0; } 50% { opacity: 0.25; } 100% { opacity: 0; } }
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/*** ======================================== ***/
/***            OTHER SECTIONS                  ***/
/*** ======================================== ***/
.top-bar { background: var(--primary); border-bottom: 1px solid rgba(255,255,255,.15); }
.carousel-caption { background: rgba(0,40,86,0.90); }
.page-header,
.donate { background: linear-gradient(rgba(0,40,86,.95), rgba(0,40,86,.95)), url(../img/carousel-1.jpg) center center no-repeat fixed; background-size: cover; }

/* ============================================= */
/*  FINAL FOOTER – 2025 EDITION                  */
/* ============================================= */
.footer {
    background: linear-gradient(rgba(0, 32, 70, 0.88), rgba(0, 15, 45, 0.92)),
                url('../img/footer-bg.jpg') center center / cover no-repeat fixed;
    padding: 90px 0 50px;
    position: relative;
    color: #ddd;
}
.footer h5 {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 22px;
    padding-bottom: 12px;
    position: relative;
}
.footer h5::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 55px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}
.footer-main-logo {
    height: 72px !important;
    width: auto;
    max-width: 280px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
    transition: transform .5s ease;
}
.footer-logo:hover .footer-main-logo { transform: translateY(-6px); }
.footer .quick-links .link-item {
    color: #cccccc !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    display: flex;
    align-items: center;
    transition: all .35s ease;
    position: relative;
}
.footer .quick-links .link-item i {
    color: var(--secondary);
    font-size: 0.8rem;
    margin-right: 9px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all .35s ease;
}
.footer .quick-links .link-item:hover { color: #fff !important; padding-left: 16px; }
.footer .quick-links .link-item:hover i { opacity: 1; transform: translateX(0); }
.footer .social-links a.social-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all .45s ease;
}
.footer .social-icon.twitter   { background: #000000; }
.footer .social-icon.facebook  { background: #1877F2; }
.footer .social-icon.whatsapp   { background: #088239; }
.footer .social-icon.linkedin  { background: #0A66C2; }
.footer .social-links a:hover {
    transform: translateY(-10px) scale(1.12);
    box-shadow: 0 20px 40px rgba(227,6,19,0.5);
    border: 2px solid var(--secondary);
}
.back-to-top-footer {
    position: absolute;
    right: 30px;
    bottom: 90px;
    width: 50px; height: 50px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(227,6,19,0.5);
    transition: all .4s ease;
    z-index: 10;
}
.back-to-top-footer:hover {
    background: #fff;
    color: var(--secondary);
    transform: translateY(-8px);
}
.copyright {
    background: rgba(0,0,0,0.8);
    border-top: 1px solid rgba(227,6,19,0.3);
    padding: 22px 0;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}
.copyright .text-secondary { color: var(--secondary) !important; }

/* ============================================= */
/*  "REACH US ANYTIME" FORM – PERFECT SPACING   */
/* ============================================= */
.footer form input[type="email"] {
    height: 58px !important;
    padding: 0 24px 0 24px !important;
    padding-right: 140px !important;
    border-radius: 50px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1.5px solid rgba(227,6,19,0.4) !important;
    color: #fff !important;
    font-size: 1rem !important;
    backdrop-filter: blur(5px);
}
.footer form button.position-absolute {
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    height: 46px;
    padding: 0 28px;
    border-radius: 50px !important;
    font-weight: 600;
    font-size: 0.95rem;
}
.footer form input:focus {
    outline: none;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(227,6,19,0.2);
}
@media (max-width: 576px) {
    .footer form button.position-absolute { display: none !important; }
    .footer form input[type="email"] { padding-right: 24px !important; font-size: 16px; }
}
@media (min-width: 577px) {
    .footer form .d-block.d-lg-none { display: none !important; }
}

/* Mobile footer centering */
@media (max-width: 576px) {
    .footer { padding: 70px 0 40px; text-align: center; }
    .footer .col-lg-4, .footer .col-lg-2, .footer .col-lg-3 {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-main-logo { height: 58px !important; max-width: 240px; }
    .back-to-top-footer {
        right: 50%;
        transform: translateX(50%);
        bottom: 100px;
    }
}

/* ============================================= */
/*  DONORS CAROUSEL – SMOOTH & MODERN           */
/* ============================================= */
.donors-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 0;
    overflow: hidden;
}
.donors-marquee { width: 100%; overflow: hidden; position: relative; }
.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 38s linear infinite;
}
.marquee-item {
    flex: 0 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marquee-item img {
    height: 85px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}
.marquee-item img:hover {
    transform: translateY(-8px) scale(1.12);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 992px) { .marquee-item { padding: 0 30px; } .marquee-item img { height: 70px; } }
@media (max-width: 768px) { .donors-modern { padding: 80px 0; } .marquee-item img { height: 62px; } }
@media (max-width: 576px) { .marquee-item img { height: 55px; } .marquee-item { padding: 0 20px; } }

/* ============================================= */
/*  NEW: STUNNING ALTERNATING PROJECT LAYOUT     */
/*  Perfectly matched to your new HTML           */
/* ============================================= */
@media (min-width: 992px) {
    .mb-6 { margin-bottom: 6rem !important; }
}

/* Image hover lift on project sections */
.row.align-items-center .img-fluid {
    transition: all 0.5s ease;
}
.row.align-items-center:hover .img-fluid {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.18) !important;
}

/* Badge styling for projects */
.badge.bg-primary { background-color: var(--secondary) !important; }
.badge.bg-light.border {
    border: 1.5px solid var(--secondary) !important;
    color: var(--secondary) !important;
}

/* Extra spacing & smoothness */
.py-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

/* Completed project hero overlay */
.position-relative .position-absolute.bottom-0 {
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .row.align-items-center .img-fluid {
        height: 400px !important;
        object-fit: cover;
    }
    .py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
}
/* ============================================= */
/* WORLD-CLASS PROJECT BLOCKS – 2025 EDITION     */
/* Mobile-first, beautiful animated underline    */
/* ============================================= */

.project-block {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    transition: all 0.45s ease;
    margin-bottom: 4.5rem;
}
.project-block:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.16);
}

.project-img-wrapper { overflow: hidden; }
.project-img {
    height: 520px;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.project-block:hover .project-img { transform: scale(1.09); }

/* Beautiful animated red underline */
.project-title {
    position: relative;
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}
.project-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 0;
    height: 6px;
    background: var(--secondary);
    border-radius: 3px;
    transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-block:hover .project-title::after {
    width: 100px;
}

/* Badges */
.badge-project {
    background: var(--secondary);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
}
.badge-project-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
}
.badge-project-lg {
    background: var(--secondary);
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Button */
.btn-project {
    background: var(--secondary);
    border: none;
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
}
.btn-project:hover {
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,40,86,0.4);
}

/* Mobile Excellence */
@media (max-width: 992px) {
    .project-img { height: 420px !important; }
    .project-content { padding: 3.5rem 2.5rem !important; text-align: center; }
    .project-title { font-size: 2.9rem; }
    .project-title::after { left: 50%; transform: translateX(-50%); }
    .project-block:hover .project-title::after { width: 80px; }
}
@media (max-width: 576px) {
    .project-img { height: 340px !important; }
    .project-content { padding: 3rem 2rem !important; }
    .project-title { font-size: 2.5rem; }
    .btn-project { width: 100%; max-width: 300px; }
    .mb-7 { margin-bottom: 3.5rem !important; }
}

        .girl-h-hero {
            position: relative;
            min-height: 920px;
            background: linear-gradient(to bottom, rgba(0,40,86,0.95) 0%, rgba(0,20,60,0.97) 50%, rgba(0,10,40,0.99) 100%),
                        url('img/projects/girl-h.jpg') center center / cover no-repeat fixed;
            display: flex;
            align-items: center;
        }
        .girl-h-content {
            background: rgba(0, 35, 75, 0.92);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(227,6,19,0.3);
            border-radius: 28px;
            padding: 4.5rem 3.5rem;
            box-shadow: 0 35px 100px rgba(0,0,0,0.65);
            max-width: 1000px;
            margin: 0 auto;
        }
        .girl-h-content * { color: #ffffff !important; text-shadow: 3px 3px 14px rgba(0,0,0,0.95); }
        .girl-h-content .badge { background: #28a745 !important; font-weight: 700; }
        .girl-h-content .text-warning { color: #ffc107 !important; }
        .hover-lift { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
        .hover-lift:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important; }
        @media (max-width: 992px) {
            .girl-h-hero { min-height: 800px; background-attachment: scroll; }
            .girl-h-content { padding: 3.5rem 2.5rem; border-radius: 20px; }
        }
        @media (max-width: 576px) {
            .girl-h-hero { min-height: 720px; }
            .girl-h-content { padding: 3rem 2rem; }
        }

        /* ============================================= */
/*  EVENTS CALENDAR – WORLD-CLASS 2025 DESIGN    */
/*  Fully integrated with your existing style.css */
/* ============================================= */

.calendar-wrapper { max-width: 1300px; margin: 0 auto; padding: 20px 15px; }
.calendar-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 30px;
}

.calendar-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; flex-wrap: wrap; gap: 15px;
}
.calendar-header h2 { font-family: 'Saira', sans-serif; font-weight: 700; color: #1e40af; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.calendar-day-header {
    text-align: center; font-weight: 600; color: #64748b; padding: 12px 0;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
}

.calendar-day {
    background: #f1f5f9; min-height: 130px; border-radius: 14px; padding: 12px;
    position: relative; transition: all 0.3s ease; overflow: hidden;
}
.calendar-day:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.calendar-day.empty { background: transparent; }
.calendar-day.today { background: #fef3c7; border: 2px solid #f59e0b; }

.day-number { font-weight: 600; font-size: 1.1rem; color: #1e293b; margin-bottom: 8px; display: block; }

.event-pill {
    font-size: 0.82rem; padding: 6px 10px; border-radius: 50px; margin-bottom: 6px;
    color: white; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event-pill:hover { transform: scale(1.03); opacity: 0.9; }

.cat-dialogue { background: #3b82f6; }
.cat-training { background: #10b981; }
.cat-community { background: #f59e0b; }
.cat-advocacy { background: #8b5cf6; }

.delete-btn {
    position: absolute; top: 8px; right: 8px; background: rgba(239,68,68,0.9);
    color: white; border: none; width: 26px; height: 26px; border-radius: 50%;
    font-size: 0.8rem; display: none; align-items: center; justify-content: center;
}
.delete-btn:hover { background: #ef4444; }
body.admin-mode .delete-btn { display: flex; }

/* Floating Admin Shield Button (LEFT SIDE) */
.admin-login-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    font-size: 2.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-login-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* Responsive */
@media (max-width: 992px) { .calendar-grid { gap: 12px; } .calendar-day { min-height: 110px; } }
@media (max-width: 768px) {
    .calendar-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .calendar-day-header { display: none; }
    .calendar-day { min-height: 140px; }
    .calendar-header { justify-content: center; }
}
@media (max-width: 576px) {
    .calendar-grid { grid-template-columns: 1fr; }
    .calendar-container { padding: 20px; border-radius: 16px; }
    .admin-login-btn { width: 60px; height: 60px; font-size: 1.8rem; left: 20px; bottom: 20px; }
}

