        :root {
            /* Colors extracted from your Rizq Cares Logo */
            --primary-dark: #1e5c87; /* Corporate Navy Blue */
            --primary: #2b7fb9;      /* Brand Blue (The Hand) */
            --accent: #7bb241;       /* Brand Green (The Leaves) */
            --accent-hover: #679636;
            --text-dark: #334155;
            --text-light: #64748b;
            --bg-light: #f8fafc;
            --white: #ffffff;
            --border: #e2e8f0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        body {
            color: var(--text-dark);
            line-height: 1.6;
            background-color: var(--bg-light);
        }

        html { scroll-behavior: smooth; }

        h1, h2, h3, h4 { font-weight: bold; color: var(--primary-dark); }
        
        /* Top Bar */
        .top-bar {
            background: var(--primary-dark);
            color: var(--white);
            padding: 0.5rem 5%;
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
        }
        .top-bar a { color: var(--white); text-decoration: none; margin-left: 15px; }
        .top-bar i { color: var(--accent); margin-right: 5px; }

        /* Navigation */
        nav {
            background: var(--white);
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            font-size: 1.6rem;
            font-weight: bold;
            color: var(--primary-dark);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .logo span { color: var(--accent); }
        .logo img { height: 45px; border-radius: 50%; }

        .nav-links a {
            text-decoration: none;
            color: var(--primary-dark);
            margin: 0 1rem;
            font-weight: bold;
            transition: color 0.3s;
            text-transform: uppercase;
            font-size: 0.9rem;
        }
        .nav-links a:hover { color: var(--accent); }

        .btn {
            padding: 0.8rem 1.8rem;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            text-decoration: none;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: var(--white); box-shadow: 0 4px 15px rgba(123, 178, 65, 0.3); }
        .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(123, 178, 65, 0.4); }

        /* Hero Section */
        .hero {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 4rem 5%;
            background: linear-gradient(rgba(30, 92, 135, 0.9), rgba(30, 92, 135, 0.55)), url('banner.jpg?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
            min-height: 75vh;
            color: var(--white);
        }

        .hero-content { flex: 1; padding-right: 3rem; }
        .hero-content h1 { font-size: 3.5rem; margin-bottom: 0.5rem; line-height: 1.1; color: var(--white); }
        .hero-content .tagline { font-size: 1.4rem; color: var(--accent); margin-bottom: 1.5rem; font-style: italic; font-weight: bold; }
        .hero-content p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 2rem; font-weight: normal; }
        
        .trust-list { list-style: none; margin-bottom: 2rem; }
        .trust-list li { margin-bottom: 10px; font-size: 1.1rem; display: flex; align-items: center; font-weight: bold; }
        .trust-list i { color: var(--accent); font-size: 1.3rem; margin-right: 10px; }

        /* Booking Widget */
        .booking-widget {
            flex: 0 0 450px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 2.5rem;
            border-radius: 12px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
            color: var(--text-dark);
            border-top: 5px solid var(--accent);
            border-left: 1px solid rgba(255,255,255,0.5);
        }

        .booking-widget h2 { margin-bottom: 0.5rem; text-align: center; color: var(--primary); }
        .free-badge { display: block; text-align: center; color: var(--accent); font-weight: bold; margin-bottom: 1.5rem; font-size: 1.1rem; }

        .item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 1.2rem; }
        .item-card {
            border: 1px solid var(--border);
            padding: 0.6rem 0.3rem;
            border-radius: 6px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
            font-size: 0.85rem;
            background: rgba(255, 255, 255, 0.9);
        }
        .item-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
        .item-card i { font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--primary-dark); display: block;}
        .item-card.selected { border-color: var(--accent); background: #f0fdf4; color: var(--accent-hover); }
        .item-card.selected i { color: var(--accent); }

        .form-group { margin-bottom: 0.8rem; }
        .form-group label { display: block; margin-bottom: 0.3rem; font-weight: bold; font-size: 0.9rem; color: var(--primary-dark); }
        .form-group input, .form-group select {
            width: 100%; padding: 0.6rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.95rem;
            background: var(--bg-light); font-family: inherit;
        }
        .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); }

        /* Sections */
        section { padding: 3rem 5%; }
        .section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
        .bg-gray { background-color: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

        /* Services Cards */
        .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
        .service-card {
            background: var(--white); padding: 2rem; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); border-bottom: 4px solid transparent;
            text-align: center;
        }
        .service-card:hover { transform: translateY(-8px); border-bottom: 4px solid var(--accent); box-shadow: 0 20px 30px rgba(0,0,0,0.1); }
        .service-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
        .service-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
        .service-card p { font-size: 0.95rem; color: var(--text-light); }

        /* Why Donate Grid */
        .prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem 2rem; }
        .prop-item { display: flex; align-items: flex-start; gap: 15px; }
        .prop-item:hover .prop-icon-box { transform: scale(1.1) rotate(5deg); box-shadow: 0 15px 25px -5px rgba(123, 178, 65, 0.3); }
        .prop-icon-box {
            background: linear-gradient(135deg, #ffffff, #f1f5f9); width: 65px; height: 65px; border-radius: 12px; 
            display: flex; align-items: center; justify-content: center; 
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); flex-shrink: 0;
            transition: all 0.3s ease;
        }
        .prop-item h4 { font-size: 1.2rem; margin-bottom: 5px; }
        .prop-item p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

        /* How It Works - 4 Steps */
        .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
        .step-card { text-align: center; padding: 1.5rem; }
        .step-num { 
            width: 60px; height: 60px; background: var(--primary-dark); color: var(--white); 
            border-radius: 50%; display: flex; align-items: center; justify-content: center; 
            font-size: 1.5rem; font-weight: bold; margin: 0 auto 1rem; border: 3px solid var(--accent);
        }
        .step-card h3 { margin-bottom: 0.5rem; }
        .step-card p { color: var(--text-light); font-size: 0.95rem; }


        /* Modal */
        .modal-overlay {
            visibility: hidden; opacity: 0; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; display: flex;
            transition: all 0.3s ease;
        }
        .modal-overlay.active { visibility: visible; opacity: 1; }
        .modal-overlay .modal-content {
            background: rgba(255, 255, 255, 0.9); padding: 3rem 2rem; border-radius: 12px; text-align: center;
            max-width: 400px; width: 90%; position: relative; border-top: 6px solid var(--accent);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 25px 50px rgba(0,0,0,0.4);
            transform: scale(0.9); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .modal-overlay.active .modal-content { transform: scale(1); opacity: 1; }
        .modal-overlay .modal-content > i { font-size: 4rem; color: var(--accent); margin-bottom: 1rem; }

        /* Animations */
        .fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
        .fade-in-up.visible { opacity: 1; transform: translateY(0); }

        /* Footer */
        footer { background: var(--primary-dark); color: #94a3b8; padding: 4rem 5% 1rem; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
        .footer-grid h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; text-transform: uppercase; font-weight: bold;}
        .footer-grid a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 0.8rem; transition: color 0.2s;}
        .footer-grid a:hover { color: var(--accent); }
        .contact-info p { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; color: var(--white);}
        .contact-info i { color: var(--accent); font-size: 1.2rem; }

        @media (max-width: 1200px) {
            .services-grid { grid-template-columns: repeat(3, 1fr); }
        }
        @media (max-width: 968px) {
            .hero { flex-direction: column; padding-top: 2rem; }
            .hero-content { padding-right: 0; margin-bottom: 3rem; text-align: center; }
            .trust-list li { justify-content: center; }
            .booking-widget { width: 100%; flex: auto; }
            .nav-links { display: none; }
            .services-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 600px) {
            .services-grid { grid-template-columns: 1fr; }
        }


/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* --- Campaigns Migration Styles --- */
.campaigns { background: #f8fafc; }
.card { background: var(--white); border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); border: 1px solid var(--border); overflow: hidden; position: relative; }
.img-wrapper { position: relative; }
.badge-overlay { position: absolute; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: #fff; z-index: 10; text-decoration: none; }
.badge-urgent { top: 10px; left: 10px; background: #ef4444; }
.badge-tax { top: 10px; right: 10px; background: #10b981; }
.card-img { height: 220px; width: 100%; object-fit: cover; }
.card-body { padding: 25px; }
.category { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 15px; }
.category.medical { background: #fee2e2; color: #ef4444; }
.category.education { background: #e0e7ff; color: #4f46e5; }
.category.relief { background: #fef3c7; color: #d97706; }
.author { font-size: 0.9rem; color: #64748b; margin: 10px 0 20px; }
.progress-wrapper { margin-bottom: 20px; }
.progress-bar { height: 8px; background: #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; background: var(--primary); width: 0; transition: width 1.5s ease-out; }
.progress-stats { display: flex; justify-content: space-between; font-size: 0.85rem; color: #64748b; }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; text-align: center; padding: 10px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; }
.card-actions .btn-primary { background: var(--primary); color: #fff; }
.card-actions .btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }

/* Carousel */
.carousel-wrapper { display: flex; align-items: center; position: relative; gap: 15px; }
.carousel-container { overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; width: 100%; padding: 10px 0; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 30px; }
.carousel-slide { min-width: calc(33.333% - 20px); flex-shrink: 0; transition: transform 0.3s; }
@media (max-width: 900px) { .carousel-slide { min-width: calc(50% - 15px); } }
@media (max-width: 600px) { .carousel-slide { min-width: 100%; } }
.carousel-slide:hover { transform: translateY(-5px); }
.carousel-btn { background: #fff; border: 1px solid #e2e8f0; border-radius: 50%; width: 45px; height: 45px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.05); color: var(--primary); font-size: 1.2rem; flex-shrink: 0; }
.carousel-btn:hover { background: var(--primary); color: #fff; }

/* Share Modal */
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 1.5rem; cursor: pointer; color: #64748b; }

/* Base Modal Styles */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal.active { display: flex !important; }
.modal .modal-content { background-color: var(--white); border-radius: 12px; width: 90%; max-width: 400px; padding: 0; position: relative; opacity: 1; transform: none; animation: slideUp 0.3s ease; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #9ca3af; z-index: 10; }
.modal-header, .modal-body, .modal-footer { padding: 20px; text-align: center; }
.modal-header { border-bottom: 1px solid #e2e8f0; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0;} to { transform: translateY(0); opacity: 1; } }

/* Fix Card Underlines */
.card h3, .card a { text-decoration: none !important; color: inherit; }
.card h3:hover { color: var(--primary); }

/* Pull subtitles closer to section titles */
.section-title + p { margin-top: -2.2rem; }
/* Top Fundraisers Carousel */
.top-fundraisers-carousel {
    position: relative;
    margin: 0 auto;
    padding: 0 58px;
}

.top-fundraisers-carousel .carousel-container {
    scroll-snap-type: x mandatory;
    padding: 10px 2px 18px;
}

.top-fundraisers-carousel .carousel-track {
    gap: 30px;
}

.top-fundraisers-carousel .carousel-slide {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.top-fundraisers-carousel .card-img {
    display: block;
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.top-fundraisers-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
}

.top-fundraisers-carousel #prev-btn {
    left: 0;
}

.top-fundraisers-carousel #next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .top-fundraisers-carousel {
        padding: 0 44px;
    }

    .top-fundraisers-carousel .carousel-track {
        gap: 0;
    }

    .top-fundraisers-carousel .carousel-slide {
        flex-basis: 100%;
        max-width: 100%;
    }

    .top-fundraisers-carousel .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .top-fundraisers-carousel .card-body {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .top-fundraisers-carousel {
        padding: 0 36px;
    }

    .top-fundraisers-carousel .carousel-btn {
        width: 32px;
        height: 32px;
    }
}
.category.food { background: #dcfce7; color: #15803d; }
.category.animal { background: #f3e8ff; color: #7e22ce; }
.campaign-loading,
.campaign-empty {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-light);
    padding: 24px;
}
/* Campaign Detail Page */
#header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 18px rgba(15, 47, 69, 0.06);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-text {
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0;
}

.nav-container .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-container .nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-container .nav-links a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: none;
}

.mobile-menu {
    display: none;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.campaign-section {
    background: #f8fafc;
}

.campaign-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.campaign-main,
.donation-card,
.full-width-gallery .container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 47, 69, 0.06);
}

.campaign-main {
    padding: 24px;
}

.campaign-title {
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    color: var(--primary-dark);
    line-height: 1.18;
    margin: 0 0 18px;
}

.campaign-organizer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.organizer-info p {
    margin: 0 0 4px;
}

.verified-badge {
    color: var(--accent-hover);
    font-size: 0.88rem;
    font-weight: 700;
}

.campaign-image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.main-image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    margin: 24px 0 18px;
}

.tab-btn {
    border: 0;
    background: transparent;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 800;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.story-text,
.update-card {
    color: var(--text-dark);
    line-height: 1.75;
}

.update-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
}

.campaign-sidebar {
    position: sticky;
    top: 105px;
}

.donation-card {
    padding: 22px;
}

.amount-raised {
    color: var(--primary-dark);
    margin: 14px 0 18px;
    font-size: 1.7rem;
}

.amount-goal {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 4px;
}

.action-buttons {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.trust-indicators {
    display: grid;
    gap: 12px;
}

.trust-item {
    display: flex;
    gap: 10px;
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.45;
}

.trust-item i {
    color: var(--accent);
    margin-top: 3px;
}

.full-width-gallery {
    background: #f8fafc;
}

.full-width-gallery .container {
    padding: 24px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.photo-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}

.photo-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .nav-container .nav-links {
        display: none;
    }

    .nav-container .nav-links.active {
        display: grid;
        position: absolute;
        left: 5%;
        right: 5%;
        top: 86px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 14px;
        box-shadow: 0 14px 30px rgba(15, 47, 69, 0.14);
    }

    .mobile-menu {
        display: block;
    }

    .campaign-layout {
        grid-template-columns: 1fr;
    }

    .campaign-sidebar {
        position: static;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-buttons {
        display: none;
    }

    .campaign-main,
    .donation-card,
    .full-width-gallery .container {
        padding: 18px;
    }

    .brand-text {
        font-size: 0.95rem;
    }
}
.full-width-gallery .section-title {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.full-width-gallery .section-title h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    margin-bottom: 0.35rem;
    color: var(--primary-dark);
}

.full-width-gallery .section-title p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.document-grid {
    align-items: start;
}

.document-item {
    display: block;
    text-decoration: none;
    color: var(--primary-dark);
}

.document-item img {
    height: auto;
    max-height: 440px;
    object-fit: contain;
    background: #f8fafc;
}

.document-item span {
    display: block;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: #fff;
}
