/* --- Donation Page Specific Styles --- */
.donation-hero {
    /* Layer 1: The Image (You can replace this URL with your own cow/student image) */
    background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    
    /* Layer 2: Dark Gradient Overlay to make text readable */
    background-image: linear-gradient(rgba(165, 0, 4, 0.7), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    min-height: 75vh; /* Takes up 75% of screen height */
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Quote Styling */
.seva-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    max-width: 800px;
    margin: 0 auto;
}

 .cause-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border-top: 4px solid transparent;
    }
    .cause-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top-color: var(--color-primary);
    }
    .amount-chip {
        margin: 5px;
        transition: all 0.2s;
    }
    .amount-chip:active {
        transform: scale(0.95);
    }
    /* Active state for selected amount */
    .amount-chip.active {
        background-color: var(--color-primary) !important;
        color: white !important;
        border-color: var(--color-primary) !important;
    }


    /* --- TYPOGRAPHY: Spiritual yet Corporate --- */
    /* Using the vars from Step 13, but enforcing them here */
    h1, h2, h3, h4, h5, h6, .display-3, .display-4 {
        font-family: "Futura PT", "Gill Sans", Georgia, serif; /* Elegant/Corporate mix */
    }

    /* Specific "Seva" styling for spiritual feel */
    .seva-text {
        font-family: "Ameyallinda Signatur", "Brush Script MT", cursive; /* Your custom font or Script fallback */
        color: var(--color-primary);
        font-size: 3rem;
    }

    /* --- HERO SECTION --- */
    .donation-hero {
        /* Ensure Background is high quality */
        background-image: linear-gradient(rgba(165, 0, 4, 0.8), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        min-height: 75vh;
        display: flex;
        align-items: center;
        color: white;
    }

    /* --- CARDS: Engagement & Hover --- */
    .cause-card {
        border: 1px solid #eee;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        overflow: hidden;
    }

    /* THE HOVER EFFECT: Lift & Glow */
    .cause-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(173, 51, 4, 0.25); /* Shadow tinted with Primary Color */
        border-color: var(--color-primary);
    }

    /* Icon Styling */
    .cause-card i {
        margin-bottom: 15px;
        transition: transform 0.3s;
    }
    .cause-card:hover i {
        transform: scale(1.1) rotate(5deg);
    }

    /* --- BUTTONS: Color Psychology --- */
    
    /* The Big Donate Button */
    .btn-donate {
        background-color: #AD3304; /* YOUR PRIMARY COLOR */
        border-color: #AD3304;
        transition: all 0.3s;
        box-shadow: 0 4px 6px rgba(173, 51, 4, 0.3);
    }

    .btn-donate:hover {
        background-color: #8a2603; /* Darker shade */
        border-color: #8a2603;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(173, 51, 4, 0.4);
    }

    /* Amount Chips */
    .amount-chip {
        margin: 5px;
        transition: all 0.2s;
        border-color: #AD3304;
        color: #AD3304;
    }
    
    /* When selected via JS */
    .amount-chip.active {
        background-color: #AD3304 !important;
        color: white !important;
        border-color: #AD3304 !important;
        box-shadow: 0 2px 8px rgba(173, 51, 4, 0.4);
    }

    /* --- FORM POLISH --- */
    .form-control:focus {
        border-color: #AD3304;
        box-shadow: 0 0 0 0.25rem rgba(173, 51, 4, 0.15);
    }


 /* =========================
       SECTION 3 – CARD SLIDER
       ========================= */

    .section3 {
        padding: 60px 0;
        background: #fcf8f2;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        color: #333;
        overflow: hidden;
        width: 100%;
    }

    .section3-header {
        max-width: 350px;
        margin-bottom: 40px;
        text-align: left;
        padding: 0 20px;
        width: 100%;
    }

    @media(min-width: 992px) {
        .section2-header {
            width: 30%;
            margin-right: 5%;
            margin-bottom: 0;
        }
    }

    .section3-header h2 {
        font-size: 40px;
        font-weight: 800;
        color: #AD3304;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .section3-header p {
        color: #5f6f82;
        font-size: 16px;
        line-height: 1.6;
    }

    /* SLIDER WRAPPER */
    .card-slider-wrapper {
        overflow: hidden;
        border-radius: 30px;
        width: 100%;
        position: relative;
        padding: 10px 0;
    }

    @media(min-width: 992px) {
        .card-slider-wrapper {
            width: 60%;
        }
    }

    .card-slider {
        display: flex;
        gap: 25px;
        transition: transform 0.6s ease;
        will-change: transform;
    }

    /* EVENT CARD */
    .event-card {
        min-width: 300px;
        height: 380px; /* Increased slightly for image space */
        border-radius: 25px;
        /* Removed background color from here, moved to .card-content */
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .event-card:hover {
        transform: translateY(-10px) !important;
        box-shadow: 0 15px 40px rgba(173, 51, 4, 0.2);
    }

    /* IMAGE STYLING */
    .card-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 25px 25px 0 0; /* Round top corners only */
    }

    /* CONTENT WRAPPER (Bottom part with color) */
    .card-content {
        flex-grow: 1; /* Fills remaining space */
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
        transition: background-color 0.3s;
    }

    /* CARD COLORS (Applied to .card-content) */
    .event-card.light .card-content { background: #FFF3E0; color: #4E342E; }
    .event-card.orange .card-content { background: #AD3304; color: #fff; }
    .event-card.blue .card-content { background: #FF9800; color: #fff; }
    .event-card.cyan .card-content { background: #E8F5E9; color: #1B5E20; }
    .event-card.dark .card-content { background: #263238; color: #fff; }

    /* TAG */
    .card-tag {
        background: rgba(255, 255, 255, 0.95);
        color: #AD3304;
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 11px;
        font-weight: 700;
        width: fit-content;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
    }

    /* TEXT */
    .event-card h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .event-card p {
        font-size: 13px;
        opacity: 0.9;
        line-height: 1.5;
    }

    /* FOOTER */
    .card-footer {
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
    }

    @media (max-width: 768px) {
        .section3 { padding: 50px 20px; }
        .section3-header h2 { font-size: 28px; }
        .event-card { min-width: 260px; height: 340px; }
        .card-image { height: 170px; }
    }