/* ==========================================================================
   Help Madhes - Modern Global Design System
   Brand Colors: Royal Navy, Madhesi Saffron Gold, Crimson Accent, Forest Emerald
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Mukta:wght@400;600;700&display=swap');

:root {
    --primary: #0a1931;
    --primary-light: #152c52;
    --primary-dark: #050e1d;
    --secondary: #f59e0b;
    --secondary-hover: #d97706;
    --secondary-light: #fef3c7;
    --accent: #dc2626;
    --accent-light: #fee2e2;
    --success: #059669;
    --success-light: #d1fae5;
    --info: #0284c7;
    --info-light: #e0f2fe;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0b1528;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-dark: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --font-heading: 'Outfit', 'Mukta', sans-serif;
    --font-body: 'Inter', 'Mukta', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */

.top-bar {
    background: var(--primary-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.top-bar a:hover {
    color: var(--secondary);
}

.site-header {
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-symbol-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-img {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-symbol {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--secondary), #d97706);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.brand-text .brand-title, .brand-text h1 {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.15;
}

.brand-text .brand-sub, .brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 0.4rem 0.2rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-hover);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #d97706);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: var(--text-white);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--secondary-light); color: var(--secondary-hover); }
.badge-danger { background: var(--accent-light); color: var(--accent); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-primary { background: #e0e7ff; color: #4338ca; }
.badge-dark { background: #e2e8f0; color: #334155; }

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #071326 0%, #0d2346 50%, #16386d 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef08a;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.hero-title span {
    color: var(--secondary);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.8rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-card-preview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-card-preview h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Section Common
   ========================================================================== */

.section {
    padding: 4.5rem 0;
}

.section-bg-alt {
    background-color: #f1f5f9;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-block;
    color: var(--secondary-hover);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   Campaigns & Cards
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.campaign-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-img-wrap {
    height: 210px;
    position: relative;
    background: #e2e8f0;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campaign-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 25, 49, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card-title a:hover {
    color: var(--secondary-hover);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress bar */
.progress-wrap {
    margin-top: auto;
    margin-bottom: 1.25rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.progress-bar-bg {
    width: 100%;
    height: 9px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #f59e0b, #10b981);
    border-radius: var(--radius-full);
    transition: width 0.8s ease-in-out;
}

.card-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Teams Showcase
   ========================================================================== */

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.team-flag {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.team-title {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.team-leader {
    color: var(--secondary-hover);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.team-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}

.team-meta {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Donation Page & Form
   ========================================================================== */

.donate-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.bank-info-box {
    background: linear-gradient(145deg, #0a1931, #132b50);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    box-shadow: var(--shadow-xl);
}

.bank-info-box h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.75rem;
}

.bank-detail-item {
    margin-bottom: 1rem;
}

.bank-detail-item label {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.bank-detail-item .value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fef08a;
    font-family: monospace;
}

.qr-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qr-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.qr-card img, .qr-placeholder {
    width: 130px;
    height: 130px;
    margin: 0 auto 0.5rem;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.form-label span.req {
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error, .alert-danger {
    background-color: var(--accent-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: var(--secondary-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background-color: var(--info-light);
    color: #075985;
    border: 1px solid #bae6fd;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #071326;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .donate-wrapper {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        gap: 0.9rem;
    }
    .nav-link {
        font-size: 0.88rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .brand-logo {
        gap: 0.5rem;
    }
    .logo-symbol-wrap {
        width: 38px;
        height: 38px;
    }
    .brand-logo-img {
        max-width: 38px;
        max-height: 38px;
    }
    .logo-symbol {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
    .brand-text .brand-title, .brand-text h1 {
        font-size: 1.15rem;
    }
    .brand-text .brand-sub, .brand-text span {
        display: none; /* Keep mobile header clean and uncluttered */
    }
    .header-actions .btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        display: none;
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }
    .nav-menu.active {
        display: flex;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-actions .btn:not(.btn-secondary) {
        display: none; /* Only show Donate Now and Hamburger menu on very small screens */
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-cta .btn {
        width: 100%;
    }
}
