/* ============================================
   NGO SYSTEM - 5 THEMES
   ============================================ */

/* ---- THEME 1: Forest Green (Default NGO) ---- */
[data-theme="theme1"] {
    --primary: #1a7f4b;
    --primary-dark: #155f38;
    --primary-light: #e8f5ee;
    --secondary: #f59e0b;
    --accent: #0ea5e9;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --header-bg: #ffffff;
    --header-text: #1f2937;
    --footer-bg: #0f2027;
    --footer-text: #d1d5db;
    --btn-text: #ffffff;
    --shadow: 0 4px 24px rgba(26,127,75,0.12);
    --radius: 12px;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
}

/* ---- THEME 2: Ocean Blue ---- */
[data-theme="theme2"] {
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-light: #eff6ff;
    --secondary: #06b6d4;
    --accent: #f97316;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-alt: #f0f9ff;
    --border: #e2e8f0;
    --header-bg: #1e3a8a;
    --header-text: #ffffff;
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --btn-text: #ffffff;
    --shadow: 0 4px 24px rgba(29,78,216,0.15);
    --radius: 8px;
    --font-head: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ---- THEME 3: Warm Sunset ---- */
[data-theme="theme3"] {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #fef2f2;
    --secondary: #f59e0b;
    --accent: #7c3aed;
    --text: #1c1917;
    --text-muted: #78716c;
    --bg: #fffbf5;
    --bg-alt: #fef3e2;
    --border: #fed7aa;
    --header-bg: #7c2d12;
    --header-text: #ffffff;
    --footer-bg: #1c1917;
    --footer-text: #d6d3d1;
    --btn-text: #ffffff;
    --shadow: 0 4px 24px rgba(220,38,38,0.12);
    --radius: 16px;
    --font-head: 'Merriweather', Georgia, serif;
    --font-body: 'Lato', sans-serif;
}

/* ---- THEME 4: Purple Modern ---- */
[data-theme="theme4"] {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #f5f3ff;
    --secondary: #ec4899;
    --accent: #10b981;
    --text: #111827;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #faf5ff;
    --border: #e9d5ff;
    --header-bg: #5b21b6;
    --header-text: #ffffff;
    --footer-bg: #1e1b4b;
    --footer-text: #c4b5fd;
    --btn-text: #ffffff;
    --shadow: 0 4px 24px rgba(124,58,237,0.15);
    --radius: 20px;
    --font-head: 'Poppins', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ---- THEME 5: Dark Professional ---- */
[data-theme="theme5"] {
    --primary: #22d3ee;
    --primary-dark: #0891b2;
    --primary-light: #164e63;
    --secondary: #fbbf24;
    --accent: #34d399;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --border: #334155;
    --header-bg: #0f172a;
    --header-text: #f1f5f9;
    --footer-bg: #020617;
    --footer-text: #64748b;
    --btn-text: #0f172a;
    --shadow: 0 4px 24px rgba(34,211,238,0.15);
    --radius: 10px;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
}

/* ============================================
   GLOBAL STYLES (all themes)
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body, 'Inter', sans-serif);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head, 'Playfair Display', Georgia, serif);
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
}

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-fluid { width: 100%; padding: 0 1.5rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.5rem; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s;
    text-decoration: none; line-height: 1;
}
.btn-primary   { background: var(--primary); color: var(--btn-text); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: var(--text); border-color: var(--secondary); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--btn-text); }
.btn-white     { background: #fff; color: var(--primary); border-color: #fff; }
.btn-danger    { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-success   { background: #16a34a; color: #fff; border-color: #16a34a; }
.btn-sm        { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg        { padding: 0.8rem 2rem; font-size: 1.05rem; }
.btn-block     { width: 100%; justify-content: center; }

/* ---- Cards ---- */
.card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.card-body   { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-alt); }

/* ---- Forms ---- */
.form-group    { margin-bottom: 1.25rem; }
.form-label    { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.form-control  {
    width: 100%; padding: 0.65rem 1rem;
    border: 2px solid var(--border); border-radius: calc(var(--radius) - 4px);
    background: var(--bg); color: var(--text);
    font-size: 0.95rem; font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-text     { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-row      { display: grid; gap: 1rem; }
.form-row-2    { grid-template-columns: 1fr 1fr; }
.form-row-3    { grid-template-columns: 1fr 1fr 1fr; }

/* ---- Alerts ---- */
.alert { padding: 0.9rem 1.2rem; border-radius: var(--radius); border-left: 4px solid; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.alert-error, .alert-danger { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
.alert-warning { background: #fef9c3; border-color: #ca8a04; color: #713f12; }
.alert-info    { background: #dbeafe; border-color: #2563eb; color: #1e3a8a; }

/* ---- Badges ---- */
.badge {
    display: inline-block; padding: 0.2rem 0.65rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger  { background: #fee2e2; color: #dc2626; }
.badge-warning { background: #fef9c3; color: #92400e; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-muted   { background: var(--bg-alt); color: var(--text-muted); }

/* ---- Tables ---- */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; background: var(--bg-alt); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.table tbody tr:hover { background: var(--bg-alt); }

/* ---- HEADER ---- */
.site-header {
    background: var(--header-bg); color: var(--header-text);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; height: 70px; max-width: 1400px; margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-logo img { height: 45px; }
.site-logo-text { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--header-text); }

.nav-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-menu a { padding: 0.5rem 0.85rem; border-radius: 6px; color: var(--header-text); font-weight: 500; font-size: 0.92rem; }
.nav-menu a:hover, .nav-menu .active > a { background: rgba(255,255,255,0.15); }

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

/* ---- HERO ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
    color: #fff; min-height: 85vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); padding: 0.4rem 1.2rem; border-radius: 30px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem; border: 1px solid rgba(255,255,255,0.3); }
.hero-title { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.25rem; color: #fff; }
.hero-text   { font-size: 1.15rem; opacity: 0.9; max-width: 560px; margin-bottom: 2rem; }
.hero-btns   { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- IMPACT COUNTER ---- */
.impact-section { background: var(--primary); color: #fff; padding: 5rem 0; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.impact-item .number { font-size: 3rem; font-weight: 900; font-family: var(--font-head); line-height: 1; display: block; }
.impact-item .label  { font-size: 0.9rem; opacity: 0.85; margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.impact-item .icon   { font-size: 2rem; margin-bottom: 0.5rem; }

/* ---- SECTION ---- */
.section         { padding: 5rem 0; }
.section-alt     { background: var(--bg-alt); }
.section-header  { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-label   { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; margin-bottom: 0.5rem; }
.section-title   { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
.section-text    { color: var(--text-muted); font-size: 1.05rem; }

/* ---- PROJECT CARDS ---- */
.projects-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.project-card    { border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--border); transition: all 0.3s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-img     { height: 210px; object-fit: cover; width: 100%; }
.project-body    { padding: 1.5rem; }
.project-cat     { font-size: 0.78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
.project-title   { font-size: 1.2rem; margin: 0.5rem 0; }
.project-text    { color: var(--text-muted); font-size: 0.9rem; }
.progress-bar    { background: var(--border); border-radius: 100px; height: 6px; overflow: hidden; margin: 1rem 0 0.4rem; }
.progress-fill   { height: 100%; background: var(--primary); border-radius: 100px; transition: width 1s; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card  { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; }
.testimonial-card::before { content: '"'; font-size: 5rem; line-height: 1; color: var(--primary); opacity: 0.2; position: absolute; top: 1rem; left: 1.5rem; font-family: Georgia; }
.testimonial-stars { color: #f59e0b; margin-bottom: 0.75rem; }
.testimonial-text  { color: var(--text-muted); font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar     { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.author-name       { font-weight: 700; font-size: 0.9rem; }
.author-title      { font-size: 0.8rem; color: var(--text-muted); }

/* ---- FOOTER ---- */
.site-footer   { background: var(--footer-bg); color: var(--footer-text); padding: 4rem 0 0; }
.footer-grid   { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-brand-text { opacity: 0.75; font-size: 0.9rem; line-height: 1.7; margin: 1rem 0 1.5rem; }
.footer-social a   { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--footer-text); align-items: center; justify-content: center; margin-right: 0.5rem; transition: all 0.2s; }
.footer-social a:hover { background: var(--primary); }
.footer-title  { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 1.25rem; }
.footer-links  { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a  { color: var(--footer-text); opacity: 0.75; font-size: 0.9rem; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 1.5rem; text-align: center; font-size: 0.85rem; opacity: 0.6; max-width: 1200px; margin: 2rem auto 0; }

/* ---- ADMIN SPECIFIC ---- */
.admin-layout   { display: flex; min-height: 100vh; background: var(--bg-alt); }
.admin-sidebar  { width: 260px; background: var(--primary-dark); color: #fff; flex-shrink: 0; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; transition: transform 0.3s; z-index: 100; }
.admin-content  { margin-left: 260px; flex: 1; }
.admin-topbar   { background: var(--bg); border-bottom: 1px solid var(--border); padding: 0 1.5rem; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 99; }
.admin-main     { padding: 2rem; }
.admin-page-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--text); }

.sidebar-brand  { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand-name { font-size: 1.1rem; font-weight: 800; font-family: var(--font-head); }
.sidebar-nav    { padding: 1rem 0; }
.nav-section    { padding: 0.5rem 1rem 0.25rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; }
.sidebar-item a { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.25rem; color: rgba(255,255,255,0.75); font-size: 0.9rem; border-radius: 6px; margin: 0 0.5rem; transition: all 0.2s; }
.sidebar-item a:hover, .sidebar-item.active a { background: rgba(255,255,255,0.15); color: #fff; }
.sidebar-item .icon { width: 18px; text-align: center; }

/* ---- Stats Cards ---- */
.stats-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card   { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.stat-icon   { width: 52px; height: 52px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-value  { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.stat-label  { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.stat-change { font-size: 0.8rem; font-weight: 600; }
.stat-change.up { color: #16a34a; }
.stat-change.down { color: #dc2626; }

/* ---- Certificate Preview ---- */
.certificate-wrapper { max-width: 800px; margin: 0 auto; }
.certificate-box {
    border: 12px solid var(--primary); border-radius: 8px;
    padding: 3rem; text-align: center;
    background: linear-gradient(135deg, #fffde7, #fff8e1);
    font-family: 'Playfair Display', Georgia, serif;
    position: relative;
}
.certificate-box::before, .certificate-box::after {
    content: ''; position: absolute;
    border: 4px solid var(--secondary);
    border-radius: 4px; inset: 12px;
}
.cert-title     { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.cert-headline  { font-size: 2.5rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 1.5rem; }
.cert-body      { font-size: 1.05rem; color: #555; line-height: 1.8; }
.cert-name      { font-size: 2rem; font-weight: 900; color: var(--primary); display: block; margin: 1rem 0; border-bottom: 2px solid var(--secondary); padding-bottom: 0.5rem; }
.cert-for       { font-style: italic; }
.cert-date      { font-size: 0.85rem; color: var(--text-muted); margin-top: 2rem; }
.cert-signatures { display: flex; justify-content: space-around; margin-top: 2.5rem; }
.cert-sig-line  { border-top: 1px solid #333; width: 180px; padding-top: 0.5rem; font-size: 0.8rem; }
.cert-number    { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}
@media (max-width: 768px) {
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; }
    .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--header-bg); padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted  { color: var(--text-muted); }
.text-success { color: #16a34a; }
.text-danger { color: #dc2626; }
.text-warning { color: #ca8a04; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; } .p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; } .p-4 { padding: 2rem; }
.d-flex { display: flex; } .d-grid { display: grid; } .d-none { display: none; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE FIX — Desktop · Laptop · Tablet · Phone
   ════════════════════════════════════════════════════════════ */

/* ── Mobile nav toggle button ── */
.btn-menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.4rem 0.65rem;
    color: var(--header-text);
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.15s;
}
.btn-menu-toggle:hover { background: rgba(255,255,255,0.12); }

/* ── Hero grid ── */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ── Mobile sidebar overlay ── */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ── Toast animation ── */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ════ LARGE DESKTOP (1400px+) ════ */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero-title { font-size: 4rem; }
}

/* ════ DESKTOP / LAPTOP (1025px – 1399px) ════ */
@media (min-width: 1025px) {
    .admin-sidebar { transform: translateX(0) !important; }
    #sidebarToggle { display: none; }
}

/* ════ MEDIUM (769px – 1024px) — Tablet landscape ════ */
@media (max-width: 1024px) {
    /* Admin */
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: none;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    }
    .admin-content { margin-left: 0 !important; }
    .admin-main    { padding: 1.25rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    /* Hero */
    .hero-section { min-height: 70vh; }
    .hero-grid { gap: 2rem; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════ TABLET PORTRAIT (601px – 768px) ════ */
@media (max-width: 768px) {
    /* Nav */
    .btn-menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 0.5rem 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-menu.open { display: flex !important; }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 0.85rem 1.5rem;
        border-radius: 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .header-actions .btn:not(.btn-primary):not(.btn-sm) { display: none; }

    /* Hero */
    .hero-section { min-height: auto; padding: 3.5rem 0; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-grid > *:last-child { display: none; }
    .hero-title { font-size: 2.2rem; }
    .hero-text  { font-size: 1rem; }
    .hero-btns  { flex-direction: column; max-width: 320px; }
    .hero-btns .btn { width: 100%; justify-content: center; text-align: center; }

    /* Sections */
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .section-title  { font-size: 1.75rem; }

    /* Grids */
    .projects-grid      { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .testimonials-grid  { grid-template-columns: 1fr; }
    .stats-grid         { grid-template-columns: 1fr 1fr; }
    .impact-grid        { grid-template-columns: repeat(3, 1fr); }

    /* Forms */
    .form-row-2, .form-row-3 { grid-template-columns: 1fr !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Admin topbar */
    .admin-topbar { padding: 0 1rem; height: 58px; }
    .topbar-hide-mobile { display: none !important; }
    .admin-topbar-name  { display: none; }
}

/* ════ PHONE (max 600px) ════ */
@media (max-width: 600px) {
    /* Layout */
    .container { padding: 0 1rem; }
    .header-inner { padding: 0 1rem; height: 62px; }
    .nav-menu { top: 62px; }

    /* Typography */
    .hero-title   { font-size: 1.85rem; }
    .section-title { font-size: 1.55rem; }

    /* Hero */
    .hero-section { padding: 2.5rem 0; }
    .hero-btns { max-width: 100%; }
    .hero-badge { font-size: 0.78rem; }

    /* Grids */
    .projects-grid   { grid-template-columns: 1fr; }
    .impact-grid     { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stats-grid      { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

    /* Cards */
    .card            { border-radius: 12px; }
    .card-body       { padding: 1.25rem; }
    .card-header     { padding: 1rem 1.25rem; }

    /* Stats */
    .stat-card  { padding: 1rem; gap: 0.75rem; }
    .stat-value { font-size: 1.5rem; }
    .stat-icon  { width: 44px; height: 44px; font-size: 1.2rem; }

    /* Table */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table th, .table td { padding: 0.65rem 0.75rem; font-size: 0.85rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .site-footer { padding-top: 2.5rem; }

    /* Buttons */
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }

    /* Admin */
    .admin-main { padding: 1rem; }
}

/* ════ SMALL PHONE (max 380px) ════ */
@media (max-width: 380px) {
    .hero-title  { font-size: 1.6rem; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid  { grid-template-columns: 1fr; }
    .container   { padding: 0 0.85rem; }
    .btn         { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
    .card-inner, .card-body { padding: 1rem; }
}

/* ════ PRINT ════ */
@media print {
    .site-header, .site-footer, .admin-sidebar,
    .admin-topbar, .btn, .nav-menu { display: none !important; }
    .admin-content { margin-left: 0 !important; }
    body { background: #fff; color: #000; }
}
