/* ============================================
   GiveBack - Donation Platform
   Responsive CSS Framework
   ============================================ */

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --accent: #f59e0b;
    --danger: #dc2626;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --purple: #7c3aed;
    --teal: #14b8a6;
    --orange: #ea580c;
    --blue: #2563eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============ NAVBAR ============ */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}
.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand span { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.dropdown { position: relative; }
.dropdown > a { cursor: pointer; }
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    display: none;
    z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--bg); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text);
}
.user-chip {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}

/* ============ NAV — professional layout ============ */
.nav-drop-link { display: flex; align-items: center; gap: 4px; }
.caret { font-size: 0.6rem; opacity: 0.7; margin-top: 1px; }
.nav-cta { margin-left: 2px; }
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.15rem;
    transition: background 0.2s;
}
.nav-icon-btn:hover { background: var(--bg); }
.nav-icon-btn .bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    margin-left: 0;
}
.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    transition: all 0.2s;
}
.user-trigger:hover { border-color: var(--primary); background: var(--bg); }
.user-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0d9488);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.user-name { font-weight: 600; font-size: 0.9rem; color: var(--text); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}
.user-head small { display: block; text-transform: capitalize; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 0; }
.logout-link { color: var(--danger) !important; }
.logout-link:hover { background: #fee2e2 !important; }
.admin-menu { min-width: 360px; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown:hover .admin-menu { display: grid; }
.admin-menu a { display: flex; align-items: center; gap: 8px; }
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-block { display: block; width: 100%; }
.btn-purple { background: var(--purple); color: white; }
.btn-purple:hover { background: #6d28d9; color: white; }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: #0d9488; color: white; }

/* ============ LAYOUT ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow { max-width: 640px; margin: 40px auto; padding: 0 20px; }
.page { padding: 40px 0; }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f9d58 50%, #0d7f4e 100%);
    color: white;
    padding: 90px 20px;
    text-align: center;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; font-weight: 800; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 30px; opacity: 0.95; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-size: 2rem; font-weight: 800; }
.hero-stats .lbl { opacity: 0.85; font-size: 0.95rem; }

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.card-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-item .thumb {
    height: 160px;
    background: linear-gradient(135deg, #e0e7ff, #dcfce7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}
.card-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-item .body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-item .title { font-weight: 700; font-size: 1.05rem; }
.card-item .desc {
    color: var(--text-light);
    font-size: 0.88rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-item .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.card-item .footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }

/* ============ BADGES ============ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-green { background: var(--primary-light); color: var(--primary-dark); }
.badge-blue { background: #dbeafe; color: var(--blue); }
.badge-purple { background: #ede9fe; color: var(--purple); }
.badge-orange { background: #ffedd5; color: var(--orange); }
.badge-teal { background: #ccfbf1; color: #0f766e; }
.badge-red { background: #fee2e2; color: var(--danger); }
.badge-gray { background: #f3f4f6; color: var(--text-light); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
textarea.form-input { resize: vertical; min-height: 110px; }
select.form-input { cursor: pointer; }

/* ============ TABLES ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.92rem; vertical-align: middle; }
tbody tr:hover { background: var(--bg); }
tbody tr:last-child td { border-bottom: none; }

/* ============ ALERTS ============ */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: var(--blue); border: 1px solid #bfdbfe; }

/* ============ AUTH PAGES ============ */
.auth-card {
    max-width: 480px;
    margin: 40px auto;
}
.auth-card h2 { text-align: center; margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-light); }

/* ============ DASHBOARD ============ */
.dash-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.dash-header h1 { font-size: 1.6rem; }
.dash-header .btn { flex-shrink: 0; }

/* ============ STATS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.stat-card .s-num { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.stat-card .s-lbl { color: var(--text-light); font-size: 0.85rem; margin-top: 4px; }
.stat-card .s-ico { float: right; font-size: 1.6rem; opacity: 0.35; }

/* ============ SECTION TITLES ============ */
.section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ============ FOOTER ============ */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 30px 20px;
    margin-top: 60px;
    text-align: center;
    font-size: 0.9rem;
}
.footer a { color: #d1d5db; }

/* ============ EMPTY STATE ============ */
.empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}
.empty .ico { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }

/* ============ NOTIFICATIONS ============ */
.bell-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    text-align: center;
    padding: 0 5px;
    margin-left: 4px;
}
.notif-menu { min-width: 280px; padding: 4px; }
.notif-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--border);
}
.notif-item small { color: var(--text-light); font-size: 0.75rem; }
.notif-unread { background: var(--primary-light); }
.notif-empty { padding: 12px; color: var(--text-light); font-size: 0.88rem; text-align: center; }
.notif-more {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px;
}
.notif-list { display: flex; flex-direction: column; max-height: 70vh; overflow-y: auto; }
.notif-item-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.notif-item-row.unread { background: var(--primary-light); }
.notif-item-row .n-body { display: flex; flex-direction: column; gap: 3px; }

/* ============ MAP ============ */
#map {
    height: 62vh;
    min-height: 420px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 1;
}
.map-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.map-pop h4 { margin-bottom: 4px; }
.map-pop p { margin: 2px 0; font-size: 0.85rem; color: var(--text-light); }

/* ============ STAR RATINGS ============ */
.star-input { display: flex; gap: 4px; font-size: 1.6rem; }
.star-input label { cursor: pointer; color: #d1d5db; }
.star-input input { display: none; }
.star-input label:hover, .star-input input:checked ~ label { color: var(--accent); }
.text-stars { color: var(--accent); letter-spacing: 2px; }

/* ============ DETAIL / REQUEST MODAL ============ */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
.modal h3 { margin-bottom: 14px; }
.modal .close-x {
    float: right;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

/* ============ PROGRESS / TIMELINE ============ */
.timeline { display: flex; align-items: center; gap: 0; margin: 18px 0; flex-wrap: nowrap; }
.timeline .step {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 0.78rem;
    color: var(--text-light);
}
.timeline .step .dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.timeline .step.done .dot { background: var(--primary); color: white; }
.timeline .step.active .dot { background: var(--accent); color: white; box-shadow: 0 0 0 4px #fef3c7; }
.timeline .step.active { color: var(--text); font-weight: 700; }

/* ============ FILTER BAR ============ */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.filter-bar form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 150px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        align-items: flex-start;
    }
    .nav-links.open { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; padding: 8px 0 0 12px; }
    .hero { padding: 60px 16px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 24px; }
    .container, .container-narrow { padding: 0 14px; }
    .page { padding: 24px 0; }
    .dash-header h1 { font-size: 1.3rem; }
    .stat-card .s-num { font-size: 1.5rem; }
    .filter-bar form { flex-direction: column; }
    .timeline { font-size: 0.68rem; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-success { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-light); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Two equal columns for paired form fields (e.g. date + time) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.form-row .form-group { margin-bottom: 0; }
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; gap: 14px; }
}
.icon-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0.6; }
.icon-btn:hover { opacity: 1; }
.item-emoji { font-size: 3rem; }
.hidden { display: none !important; }

/* ============================================
   BLOG / STORIES — emotional reading experience
   ============================================ */

/* Reading progress bar */
.bar-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: transparent; z-index: 300; }
.bar-progress #readingBar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.1s linear; }

/* Stories landing hero */
.blog-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    color: white;
    padding: 72px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 200px at 15% 0%, rgba(16,185,129,0.18), transparent 60%),
        radial-gradient(500px 220px at 85% 100%, rgba(236,72,153,0.16), transparent 60%);
    pointer-events: none;
}
.blog-hero .container { position: relative; }
.blog-kicker {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 18px;
}
.blog-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 14px; line-height: 1.2; }
.blog-hero p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; opacity: 0.92; color: #e2e8f0; }

/* Featured story card */
.blog-featured {
    display: grid;
    grid-template-columns: 5fr 6fr;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    color: inherit;
    margin-bottom: 8px;
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 26px 50px rgba(0,0,0,0.12); }
.bf-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.bf-emoji { font-size: 6rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25)); transition: transform 0.3s; }
.blog-featured:hover .bf-emoji { transform: scale(1.1) rotate(-3deg); }
.bf-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.45);
    color: #fde68a;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    backdrop-filter: blur(4px);
}
.bf-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.bf-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); flex-wrap: wrap; }
.bf-author-av, .bc-av, .aa-av {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0d9488);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.bf-author { font-weight: 600; color: var(--text); }
.dot { opacity: 0.5; }
.bf-body h2 { font-size: 1.8rem; font-weight: 800; line-height: 1.25; color: var(--text); }
.bf-body p { color: var(--text-light); font-size: 0.98rem; line-height: 1.7; }
.bf-cta { font-weight: 700; color: var(--primary); margin-top: 4px; }
.bf-cta span { transition: transform 0.2s; display: inline-block; }
.blog-featured:hover .bf-cta span { transform: translateX(5px); }

/* Blog card grid + cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s, box-shadow 0.22s;
    color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.bc-cover {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bc-emoji { font-size: 3.6rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25)); transition: transform 0.25s; }
.blog-card:hover .bc-emoji { transform: scale(1.12) rotate(-4deg); }
.bc-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bc-meta { display: flex; gap: 6px; font-size: 0.78rem; color: var(--text-light); }
.bc-body h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.bc-body p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bc-foot { display: flex; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.bc-av { width: 26px; height: 26px; font-size: 0.68rem; }
.bc-author { font-size: 0.82rem; font-weight: 600; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-read { font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.blog-card:hover .bc-read { text-decoration: underline; }

/* Stories page share CTA strip */
.blog-cta {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
    border-color: #c7ecd6;
}
.blog-cta h3 { color: var(--text); font-size: 1.2rem; }

/* ------- Homepage stories slider ------- */
.stories { padding: 10px 0 6px; position: relative; }
.stories .section-title { margin-bottom: 22px; }
.stories-slider { display: flex; align-items: center; gap: 10px; }
.ss-viewport { overflow: hidden; flex: 1; padding: 6px 2px 12px; }
.ss-track { display: flex; gap: 20px; transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1); will-change: transform; }
.ss-slide { flex-shrink: 0; }
.ss-slide .blog-card { height: 100%; }
.ss-slide .blog-card p { -webkit-line-clamp: 3; }
.ss-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    user-select: none;
}
.ss-arrow:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.08); }
.ss-arrow:disabled { cursor: default; }
.ss-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; min-height: 10px; }
.ss-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.ss-dot.active { width: 26px; background: var(--primary); }
.bc-feat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.45);
    color: #fde68a;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    backdrop-filter: blur(4px);
}

/* ------- Article page ------- */
.blog-cover {
    padding: 54px 20px 44px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.blog-cover-inner { max-width: 760px; margin: 0 auto; position: relative; }
.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 26px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
}
.back-link:hover { background: rgba(255,255,255,0.14); color: white; }
.bc-hero-emoji { font-size: 4.2rem; margin-bottom: 14px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25)); }
.blog-cover h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.22; max-width: 680px; margin: 0 auto 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.bc-hero-meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.88rem; flex-wrap: wrap; color: rgba(255,255,255,0.92); }
.bc-hero-meta .bf-author-av { width: 28px; height: 28px; font-size: 0.7rem; border: 2px solid rgba(255,255,255,0.6); }

/* Article typography */
.article { max-width: 760px; margin: 0 auto; padding: 44px 20px 0; }
.article-inner p {
    font-size: 1.08rem;
    line-height: 1.95;
    color: #374151;
    margin-bottom: 22px;
}
.article-inner p:first-of-type::first-letter {
    float: left;
    font-size: 3.4em;
    line-height: 0.9;
    font-weight: 800;
    color: var(--primary);
    padding-right: 10px;
    font-family: Georgia, 'Times New Roman', serif;
}
.article-inner em { color: var(--primary-dark); font-weight: 600; }
.article-inner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 40px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
    line-height: 1.3;
}
.article-inner blockquote {
    position: relative;
    margin: 34px 0;
    padding: 22px 26px 22px 54px;
    background: linear-gradient(135deg, #f0fdf4, #f5f3ff);
    border-radius: 14px;
    font-size: 1.04rem;
    font-style: italic;
    line-height: 1.7;
    color: #1f2937;
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow: inset 3px 0 0 var(--primary);
}
.article-inner blockquote .q-mark {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.28;
    font-family: Georgia, serif;
}
.article-inner blockquote em { color: inherit; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 28px; }

/* Author card */
.article-author {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-radius: 16px;
    margin: 8px 0 26px;
}
.aa-av { width: 52px; height: 52px; font-size: 1.15rem; background: linear-gradient(135deg, var(--primary), #0d9488); }

/* Share strip */
.article-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.back-to-stories { margin-bottom: 10px; }

/* Responsive for blog */
@media (max-width: 860px) {
    .blog-hero h1 { font-size: 2rem; }
    .blog-cover h1 { font-size: 1.9rem; }
    .bf-body { padding: 24px 22px; }
    .bf-body h2 { font-size: 1.45rem; }
    .blog-featured { grid-template-columns: 1fr; }
    .bf-cover { min-height: 200px; }
    .bf-emoji { font-size: 4.5rem; }
    .article { padding: 32px 18px 0; }
    .article-inner p { font-size: 1.02rem; }
}
@media (max-width: 560px) {
    .blog-hero { padding: 52px 16px 44px; }
    .blog-hero p { font-size: 0.96rem; }
    .blog-cover { padding: 40px 14px 34px; }
    .bc-hero-emoji { font-size: 3.2rem; }
    .article-inner blockquote { padding: 18px 18px 18px 46px; font-size: 0.98rem; }
    .ss-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
    .stories-slider { gap: 6px; }
}

/* ============================================
   AUTH SPLIT — emotional tagline panel
   ============================================ */
.auth-split {
    display: grid;
    grid-template-columns: 5fr 6fr;
    max-width: 1000px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-side {
    position: relative;
    background: linear-gradient(160deg, #064e3b 0%, #0f766e 55%, #155e75 100%);
    color: white;
    padding: 46px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(245,158,11,0.18), transparent 60%),
        radial-gradient(420px 220px at 100% 100%, rgba(236,72,153,0.16), transparent 60%);
    pointer-events: none;
}
.auth-side .as-emoji { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.3)); }
.auth-side .as-brand { font-size: 1.35rem; font-weight: 800; }
.auth-side .as-quote {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.42;
    min-height: 120px;
    transition: opacity 0.5s ease;
    position: relative;
}
.auth-side .as-quote.fade { opacity: 0; }
.auth-side .as-cite { font-size: 0.86rem; color: #a7f3d0; font-style: italic; }
.auth-side .as-caption { opacity: 0.92; font-size: 0.95rem; color: #d1fae5; line-height: 1.6; }
.auth-side .as-link {
    display: inline-block;
    margin-top: 12px;
    color: #fde68a;
    font-weight: 700;
    font-size: 0.9rem;
}
.auth-side .as-dots { display: flex; gap: 6px; }
.auth-side .as-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.3); transition: all 0.3s; }
.auth-side .as-dot.active { width: 22px; background: #fde68a; }
.auth-main { padding: 44px 40px; display: flex; align-items: center; justify-content: center; }
.auth-inner { width: 100%; max-width: 440px; }
.auth-inner h2 { margin-bottom: 8px; }
.auth-inner .auth-sub { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

@media (max-width: 860px) {
    .auth-split { grid-template-columns: 1fr; margin: 20px auto; }
    .auth-side { padding: 28px 24px; }
    .auth-side .as-quote { min-height: 0; }
    .auth-main { padding: 30px 22px; }
}

/* ============================================
   PAGE HERO (About / Contact)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #064e3b 0%, #0f766e 45%, #115e59 100%);
    color: white;
    padding: 68px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 220px at 12% 0%, rgba(245,158,11,0.16), transparent 60%),
        radial-gradient(520px 260px at 88% 100%, rgba(79,70,229,0.20), transparent 60%);
    pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.05rem; opacity: 0.92; color: #d1fae5; }
.about-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #14532d 100%); }

/* ------- About story ------- */
.about-story {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.about-story .as-emoji { font-size: 4rem; margin-bottom: 10px; }
.about-story h2 { font-size: 2rem; font-weight: 800; margin-bottom: 22px; color: var(--text); }
.about-story p {
    text-align: left;
    font-size: 1.08rem;
    line-height: 1.95;
    color: #374151;
    margin-bottom: 22px;
}
.about-story p:first-of-type::first-letter {
    float: left;
    font-size: 3.4em;
    line-height: 0.9;
    font-weight: 800;
    color: var(--primary);
    padding-right: 10px;
    font-family: Georgia, 'Times New Roman', serif;
}
.about-story em { color: var(--primary-dark); font-weight: 600; }
.about-story blockquote {
    position: relative;
    text-align: left;
    background: linear-gradient(135deg, #f0fdf4, #f5f3ff);
    border-radius: 14px;
    padding: 24px 28px 24px 58px;
    margin: 36px 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.12rem;
    font-style: italic;
    line-height: 1.7;
    color: #1f2937;
    box-shadow: inset 3px 0 0 var(--primary);
}
.about-story blockquote .q-mark {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.28;
}

/* ------- Impact band ------- */
.impact-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: linear-gradient(135deg, #064e3b, #065f46);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 44px;
    box-shadow: var(--shadow-lg);
}
.impact-item {
    background: linear-gradient(135deg, rgba(6,78,59,0.4), rgba(8,145,178,0.18));
    padding: 34px 20px;
    text-align: center;
    color: white;
}
.impact-item .im-num { font-size: 2.6rem; font-weight: 800; color: #fde68a; }
.impact-item .im-lbl { margin-top: 6px; font-size: 0.88rem; color: #d1fae5; }

/* ------- Steps ------- */
.steps-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.step-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 20px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.22s, box-shadow 0.22s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card .sc-num {
    position: absolute;
    top: -14px;
    left: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(22,163,74,0.35);
}
.step-card .sc-ico { font-size: 2.6rem; margin: 8px 0 10px; }
.step-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 0.87rem; line-height: 1.6; }

/* ------- Values ------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: var(--shadow);
}
.value-card .vc-ico { font-size: 2rem; margin-bottom: 10px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { color: var(--text-light); font-size: 0.87rem; line-height: 1.65; }

/* ------- Team ------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.tc-av {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 14px;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.team-card h3 { font-size: 1.05rem; }
.team-card span { display: block; color: var(--primary); font-size: 0.82rem; font-weight: 600; margin: 4px 0 10px; }
.team-card p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; }

/* ------- About CTA ------- */
.about-cta {
    margin-top: 48px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f 55%, #1e293b);
    background-size: cover;
    border-radius: 22px;
    padding: 54px 30px;
    text-align: center;
    color: white;
}
.about-cta h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }
.about-cta p { opacity: 0.9; margin-bottom: 24px; color: #e2e8f0; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-wrap {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 26px;
    align-items: start;
}
.contact-info h2 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-info > .text-muted { margin-bottom: 22px; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--text);
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.cc-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.contact-card strong { display: block; font-size: 0.92rem; }
.contact-card span { color: var(--text-light); font-size: 0.88rem; }
.contact-hours, .contact-note {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-top: 6px;
    box-shadow: var(--shadow);
}
.contact-hours p { color: var(--text-light); font-size: 0.9rem; margin-top: 6px; }
.contact-note { font-size: 0.88rem; color: var(--text-light); }
.contact-form h2 { font-size: 1.4rem; margin-bottom: 18px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { text-align: left; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 24px;
}
.footer-brand p { color: #9ca3af; }
.footer-tagline { font-style: italic; color: #a7f3d0 !important; margin-top: 6px; font-size: 0.9rem; }
.footer-head { display: block; color: #fff; margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; margin-bottom: 8px; color: #9ca3af; font-size: 0.9rem; }
.footer-col a:hover { color: #3b82f6; }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 18px; text-align: center; }

/* ------- Responsive for about/contact/footer ------- */
@media (max-width: 900px) {
    .steps-4, .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 2rem; }
}
@media (max-width: 560px) {
    .steps-4, .values-grid, .team-grid { grid-template-columns: 1fr; }
    .impact-band .im-num { font-size: 2.1rem; }
    .about-story h2 { font-size: 1.5rem; }
    .about-cta { padding: 40px 20px; }
    .about-cta h2 { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}