/* ============================================================
   PUBLIC WEBSITE — RESPONSIVE FIX
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; min-width: 320px; }
img  { max-width: 100%; height: auto; }

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

/* ── Header ── */
.site-header { width: 100%; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.25rem; height: 66px;
    max-width: 1400px; margin: 0 auto; gap: 1rem;
}
.site-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; }
.site-logo-text { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--header-text); white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-menu a { padding: 0.5rem 0.75rem; border-radius: 6px; color: var(--header-text); font-weight: 500; font-size: 0.875rem; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.nav-menu a:hover { background: rgba(255,255,255,0.15); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.btn-menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; cursor: pointer; padding: 0.4rem 0.65rem; color: var(--header-text); font-size: 1.1rem; line-height: 1; }

/* ── Sections ── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.6rem,3.5vw,2.5rem); margin-bottom: 0.75rem; }
.section-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.section-text  { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* ── Grids ── */
.projects-grid    { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 1.5rem; }
.impact-grid      { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 1.5rem; text-align: center; }
.testimonials-grid{ display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 1.5rem; }
.stats-grid       { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }

/* ── Hero ── */
.hero-section { min-height: 82vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-btns    { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer  { background: var(--footer-bg); color: var(--footer-text); padding: 3.5rem 0 0; }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem; text-align: center; font-size: 0.82rem; opacity: 0.6; max-width: 1200px; margin: 2rem auto 0; }

/* ── Progress ── */
.progress-bar { background: var(--border); border-radius: 100px; height: 6px; overflow: hidden; margin: 0.75rem 0 0.4rem; }
.progress-fill{ height: 100%; background: var(--primary); border-radius: 100px; transition: width 1s ease-out; }

/* ── Pagination ── */
.pagination-nav { margin-top: 1.5rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; padding: 0; margin: 0; justify-content: center; }
.page-item .page-link { padding: 0.45rem 0.85rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem; color: var(--text); text-decoration: none; background: var(--bg); display: block; transition: all 0.15s; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.page-item .page-link:hover { background: var(--bg-alt); }

/* ── Dashboard tabs ── */
.dashboard-tabs { display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--border); background: var(--bg); scrollbar-width: none; }
.dashboard-tabs::-webkit-scrollbar { display: none; }

/* ══════════════ BREAKPOINTS ══════════════ */

@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .nav-menu a  { padding: 0.45rem 0.6rem; font-size: 0.82rem; }
}

@media (max-width: 991px) {
    .hero-section { min-height: 60vh; padding: 3rem 0; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .impact-grid  { grid-template-columns: repeat(3,1fr); }
    .section      { padding: 3.5rem 0; }
}

@media (max-width: 767px) {
    /* Mobile nav */
    .btn-menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: fixed; top: 66px; 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: 999; gap: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.open { display: flex !important; }
    .nav-menu li   { width: 100%; }
    .nav-menu a    { display: block; padding: 0.8rem 1.5rem; border-radius: 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .header-actions .btn:not(.btn-primary) { display: none; }
    .site-logo-text { font-size: 1rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

    /* Content */
    .hero-section  { min-height: auto; padding: 2.5rem 0; }
    .hero-btns     { flex-direction: column; }
    .hero-btns .btn{ width: 100%; justify-content: center; }
    .section       { padding: 2.5rem 0; }
    .section-header{ margin-bottom: 2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .impact-grid   { grid-template-columns: repeat(2,1fr); gap: 1rem; }
    .stats-grid    { grid-template-columns: 1fr 1fr; }
    .footer-grid   { grid-template-columns: 1fr; gap: 1.75rem; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr !important; }
}

@media (max-width: 479px) {
    .container    { padding: 0 0.85rem; }
    .header-inner { padding: 0 0.85rem; height: 58px; }
    .nav-menu     { top: 58px; }
    .section      { padding: 2rem 0; }
    .impact-grid  { grid-template-columns: repeat(2,1fr); }
    .stats-grid   { grid-template-columns: 1fr; }
    .section-title{ font-size: 1.45rem; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table        { min-width: 460px; }
}
