/* =======================================
    MODERN RESPONSIVE CSS VARIABLES
   ======================================= */
:root {
    --primary: #0056b3;     /* School Blue */
    --secondary: #ffc107;   /* School Yellow */
    --bg: #f4f8fb;          /* Clean Icy-White Background */
    --text: #333333;        /* Dark Text */
    --success: #28a745;     /* Green Progress */
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
html { scroll-behavior: smooth; }

/* =======================================
    SMART NAVBAR (Glass-morphism)
   ======================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-buttons { display: flex; gap: 12px; align-items: center; }

.btn-nav {
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }

.btn-filled { background: var(--primary); color: white; }
.btn-filled:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,86,179,0.3); }

/* =======================================
    IMPACT STATS BAR
   ======================================= */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 8vw, 100px);
    padding: 30px 5%;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #444;
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--primary);
    background: #e2eff8;
    padding: 12px;
    border-radius: 12px;
}

/* =======================================
    DYNAMIC HERO SECTION
   ======================================= */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(244, 248, 251, 0.9), rgba(244, 248, 251, 0.9)), 
                url('https://www.transparenttextures.com/patterns/cream-paper.png');
}

.trust-tag {
    display: inline-block;
    padding: 8px 20px;
    background: #e2eff8;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.1;
}

.highlight { color: var(--secondary); font-style: italic; }

.hero-action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.hero-btn-primary {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.hero-btn-primary:hover {
    background: #004085;
}

.hero-btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.hero-btn-secondary:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* =======================================
    HOW IT WORKS SECTION
   ======================================= */
.how-it-works {
    padding: 100px 8%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 5px;
    background: var(--secondary);
    margin: 0 auto 60px;
    border-radius: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step-card {
    background: #fff;
    padding: 50px 35px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}

.step-card:hover { transform: translateY(-15px); }

.step-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
}

.step-card h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.4rem; }
.step-card p { color: #666; font-size: 1rem; }

/* =======================================
    CAMPAIGN GRID & CARDS
   ======================================= */
.campaign-section { padding: 80px 8%; max-width: 1400px; margin: 0 auto; }

/* FIX: Centered Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    justify-content: center;
}

/* FIX: Card Spacing and Centering */
.card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,86,179,0.1); }

.card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.student-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.student-info h3 { font-size: 1.1rem; color: #333; margin-bottom: 2px; }
.student-info p { font-size: 0.85rem; color: #777; }

.card-body {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    align-self: flex-start;
    background: #e2eff8;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.campaign-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.4;
}

.progress-container {
    margin-top: auto;
}

/* FIXED: Spreads Raised Amount and Goal to Left/Right */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.raised-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--success);
}

.target-amount {
    font-size: 0.95rem;
    color: #888;
    font-weight: 500;
}

.progress-track {
    height: 10px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #4ade80);
    border-radius: 20px;
    transition: width 1s ease-in-out;
}

/* FIXED: Donate Button full width */
.btn-donate {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 15px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
}

.btn-donate:hover { background: #004085; transform: scale(1.02); }

.success-btn { background: var(--success) !important; }
.expired-btn { background: #6c757d !important; }

/* =======================================
    PROFESSIONAL FOOTER
   ======================================= */
.site-footer {
    background: #004085;
    color: #fff;
    padding: 100px 8% 40px;
    border-top: 5px solid var(--secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
}

.footer-brand h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 20px; color: var(--secondary); }
.footer-links a { color: #ccc; text-decoration: none; display: block; margin-bottom: 15px; transition: 0.3s; }
.footer-links a:hover { color: var(--secondary); transform: translateX(8px); }

.footer-bottom { text-align: center; padding-top: 40px; color: #aaa; font-size: 0.9rem; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .stats-bar { gap: 30px; }
    .hero h1 { font-size: 2.5rem; }
    .how-it-works { padding: 60px 5%; }
    .grid { grid-template-columns: 1fr; }
}