/* ==========================================================================
   pages.css — page-specific layouts, admin, article, wireframes
   ========================================================================== */

/* ---------- About ---------- */
.about-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-strip__item { padding: 1.4rem 1.2rem; border-right: 1px solid var(--line); }
.about-strip__item:last-child { border-right: 0; }
.about-strip__item strong { display: block; font-family: var(--font-display); font-size: 1.65rem; line-height: 1; color: var(--forest); letter-spacing: -0.02em; }
.about-strip__item span { display: block; margin-top: 0.35rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.brand-banner { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.award-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.award-card__year { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); }
.award-card h3 { font-size: 1.05rem; margin: 0.35rem 0 0.3rem; }
.award-card p { font-size: 0.78rem; color: var(--muted); margin: 0; }
.award-card svg { width: 22px; height: 22px; color: var(--terracotta); margin-bottom: 0.6rem; }

/* ---------- Programs page ---------- */
.program-nav { position: sticky; top: calc(var(--header-h) + 0.6rem); z-index: 500; padding: 0.6rem; margin-bottom: 2rem; background: rgba(250, 247, 240, 0.95); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius-pill); overflow-x: auto; scrollbar-width: none; }
.program-nav::-webkit-scrollbar { display: none; }
.program-nav ul { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin: 0; white-space: nowrap; }
.program-nav a { display: block; padding: 0.5rem 0.8rem; border-radius: 99px; color: var(--body); font-size: 0.74rem; font-weight: 700; text-decoration: none; }
.program-nav a:hover, .program-nav a.is-active { background: var(--forest-deep); color: #fff; }
.program-detail { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.6rem, 5vw, 4.6rem); border-bottom: 1px solid var(--line); }
.program-detail:last-of-type { border-bottom: 0; }
.program-detail:nth-child(even) .program-detail__media { order: 2; }
.program-detail__media { position: relative; }
.program-detail__media img { width: 100%; aspect-ratio: 1.18; object-fit: cover; border-radius: var(--radius-lg); }
.program-detail__number { position: absolute; left: -0.5rem; top: -0.5rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--terracotta); color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; box-shadow: var(--shadow-md); }
.program-detail__icon { position: absolute; right: 1rem; bottom: 1rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: rgba(250, 247, 240, 0.95); color: var(--forest); backdrop-filter: blur(4px); }
.program-detail__icon svg { width: 27px; height: 27px; }
.program-detail h2 { margin-bottom: 0.8rem; }
.program-detail__stats { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1.3rem 0 1.4rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.program-detail__stats div strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--forest); line-height: 1.1; }
.program-detail__stats div span { display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }
.program-detail ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.5rem; }
.program-detail ul li { display: flex; gap: 0.55rem; font-size: 0.86rem; align-items: flex-start; }
.program-detail ul svg { width: 16px; height: 16px; color: var(--leaf); margin-top: 3px; flex: 0 0 auto; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.process-grid--2 { grid-template-columns: repeat(2, 1fr); }
.process-card { position: relative; padding: 1.6rem 1.3rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; counter-increment: step; }
.process-card::before { content: "0" counter(step); font-family: var(--font-display); font-size: 0.9rem; color: var(--terracotta); font-weight: 500; }
.process-card h3 { font-size: 1.1rem; margin: 0.4rem 0; }
.process-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---------- Impact page ---------- */
.impact-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.impact-score { padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.impact-score__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.8rem; }
.impact-score__top strong { font-family: var(--font-display); font-size: 2.4rem; color: var(--forest); line-height: 1; }
.impact-score__top span { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
progress.impact-progress { width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--sage); overflow: hidden; }
progress.impact-progress::-webkit-progress-bar { background: var(--sage); border-radius: 99px; }
progress.impact-progress::-webkit-progress-value { background: var(--terracotta); border-radius: 99px; }
progress.impact-progress::-moz-progress-bar { background: var(--terracotta); border-radius: 99px; }
.chart-panel { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.chart-panel h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.chart-panel > p { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.4rem; }
.bar-chart { display: flex; align-items: flex-end; gap: 0.7rem; height: 220px; padding-top: 1.2rem; }
.bar-chart__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0.4rem; }
.bar-chart__bar { width: 100%; max-width: 54px; height: var(--h); background: var(--sage); border-radius: 5px 5px 2px 2px; position: relative; transition: height 1s var(--ease); }
.bar-chart__bar:hover, .bar-chart__bar.is-highlight { background: var(--forest); }
.bar-chart__bar span { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); font-size: 0.6rem; font-weight: 800; color: var(--forest); white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.bar-chart__bar:hover span, .bar-chart__bar.is-highlight span { opacity: 1; }
.bar-chart__item small { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; }
.allocation { display: grid; gap: 1rem; }
.allocation__row { display: grid; grid-template-columns: 140px 1fr 52px; align-items: center; gap: 0.8rem; font-size: 0.78rem; }
.allocation__bar { height: 9px; background: var(--sage-soft); border-radius: 99px; overflow: hidden; }
.allocation__bar span { display: block; height: 100%; width: var(--w); background: var(--forest); border-radius: inherit; }
.allocation__row:nth-child(2) .allocation__bar span { background: var(--leaf); }
.allocation__row:nth-child(3) .allocation__bar span { background: var(--terracotta); }
.allocation__row strong { text-align: right; font-size: 0.8rem; color: var(--forest); }
.district-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.district-card { padding: 0.95rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.district-card strong { display: block; font-size: 0.8rem; color: var(--ink); }
.district-card span { display: block; font-size: 0.64rem; color: var(--muted); margin-top: 2px; }
.district-card .mini-meter { height: 4px; background: var(--sage-soft); border-radius: 99px; margin-top: 0.5rem; overflow: hidden; }
.district-card .mini-meter i { display: block; height: 100%; width: var(--w); background: var(--leaf); border-radius: 99px; }

/* ---------- Volunteer ---------- */
.volunteer-hero { position: relative; }
.volunteer-hero__facts { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.role-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; display: flex; gap: 0.8rem; align-items: flex-start; }
.role-card__icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--sage-soft); color: var(--forest); }
.role-card__icon svg { width: 18px; height: 18px; }
.role-card h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.role-card p { font-size: 0.74rem; color: var(--muted); margin: 0; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: s; }
.step { position: relative; padding-top: 0.8rem; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--forest-deep); color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.8rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.8rem; color: var(--muted); margin: 0; }
.skill-fieldset { border: 1px solid var(--line); border-radius: 13px; padding: 1rem; }
.skill-fieldset legend { float: none; width: auto; padding: 0 0.4rem; font-size: 0.76rem; font-weight: 800; color: var(--ink); margin-bottom: 0.3rem; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem 0.9rem; }
.skill-grid .form-check-label { font-size: 0.8rem; }
.stipend-note { display: flex; gap: 0.7rem; padding: 0.9rem; border-radius: 10px; background: var(--sage-soft); font-size: 0.76rem; color: var(--forest); }
.stipend-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }

/* ---------- CSR ---------- */
.csr-hero { background: var(--forest-deep); color: rgba(255, 255, 255, 0.78); position: relative; overflow: hidden; }
.csr-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.csr-hero h1 { color: #fff; }
.csr-hero .lead { color: rgba(255, 255, 255, 0.72); }
.csr-hero .breadcrumb { color: rgba(255, 255, 255, 0.5); }
.csr-hero .breadcrumb a { color: rgba(255, 255, 255, 0.78); }
.csr-hero .breadcrumb .active { color: rgba(255, 255, 255, 0.5); }
.csr-hero__media { position: relative; }
.csr-hero__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 1.08; object-fit: cover; }
.csr-stat { position: absolute; left: -1rem; bottom: 1.2rem; background: #fff; color: var(--ink); border-radius: 13px; padding: 0.9rem 1rem; box-shadow: var(--shadow-lg); max-width: 200px; }
.csr-stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--terracotta); line-height: 1; }
.csr-stat span { display: block; margin-top: 0.25rem; font-size: 0.66rem; color: var(--muted); line-height: 1.4; }
.partner-model { padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; height: 100%; }
.partner-model__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--terracotta-soft); color: var(--terracotta); margin-bottom: 0.9rem; }
.partner-model__icon svg { width: 20px; height: 20px; }
.partner-model h3 { font-size: 1.06rem; margin-bottom: 0.4rem; }
.partner-model p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; margin: 0 0 0.8rem; }
.partner-model ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.partner-model li { display: flex; gap: 0.4rem; font-size: 0.72rem; color: var(--body); }
.partner-model li svg { width: 13px; height: 13px; color: var(--leaf); flex: 0 0 auto; margin-top: 2px; }
.sponsor-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sponsor-table th { background: var(--forest-deep); color: rgba(255, 255, 255, 0.75); padding: 0.8rem 1rem; text-align: left; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sponsor-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sponsor-table tr:last-child td { border-bottom: 0; }
.sponsor-table td strong { display: block; color: var(--ink); font-size: 0.86rem; }
.sponsor-table td span { display: block; font-size: 0.72rem; color: var(--muted); }
.sponsor-table .sponsor-price { font-family: var(--font-display); font-size: 1.15rem; color: var(--terracotta); white-space: nowrap; }
.quote-simple { padding: 1.4rem; border-left: 3px solid var(--terracotta); background: var(--cream); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.quote-simple footer { margin-top: 0.7rem; font-family: var(--font-body); font-size: 0.72rem; color: var(--muted); }

/* ---------- Article ---------- */
.article-head { padding: clamp(2.2rem, 5vw, 4rem) 0 2rem; }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 900px; margin-bottom: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; font-size: 0.74rem; color: var(--muted); margin-bottom: 1.2rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.article-meta svg { width: 13px; height: 13px; }
.article-cover { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.article-body { font-size: 1.02rem; line-height: 1.85; }
.article-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 2.2rem; }
.article-body h3 { margin-top: 1.7rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.2rem; padding: 0; }
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote { margin: 2rem 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--terracotta); background: var(--sand-soft); border-radius: 0 10px 10px 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.article-body img { border-radius: 12px; margin: 1.5rem 0; }
.article-aside { position: sticky; top: calc(var(--header-h) + 1.4rem); }
.article-share { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 2rem; font-size: 0.76rem; font-weight: 700; }
.article-share a, .article-share button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--forest); }
.article-share svg { width: 14px; height: 14px; }
.article-toc { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 1.1rem; }
.article-toc h2 { font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.article-toc a { display: block; padding: 0.35rem 0; font-size: 0.76rem; color: var(--body); text-decoration: none; border-bottom: 1px solid rgba(18, 49, 45, 0.06); }
.article-toc a:hover { color: var(--terracotta); }
.article-cta { margin-top: 1rem; padding: 1.1rem; border-radius: 13px; background: var(--forest-deep); color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; }
.article-cta h2 { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: 0.3rem; }
.article-cta .btn { margin-top: 0.7rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.office-hours { margin-top: 1.4rem; padding: 1rem; border-radius: 11px; background: var(--sage-soft); font-size: 0.78rem; }
.office-hours strong { display: block; color: var(--forest); margin-bottom: 0.2rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 370px; }
.map-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; font-size: 0.7rem; color: var(--muted); }
.map-note svg { width: 13px; height: 13px; color: var(--leaf); }

/* ---------- Admin ---------- */
.admin-body { background: #eef2ed; min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--forest-deep); color: rgba(255, 255, 255, 0.65); padding: 1.3rem 1rem; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.5rem 1.4rem; border-bottom: 1px solid var(--line-light); }
.admin-brand img { width: 36px; }
.admin-brand strong { display: block; font-family: var(--font-display); color: #fff; font-size: 1rem; line-height: 1.1; }
.admin-brand span { display: block; font-size: 0.52rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.admin-nav { list-style: none; padding: 1rem 0; margin: 0; display: grid; gap: 0.2rem; }
.admin-nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.62rem 0.7rem; border-radius: 8px; color: rgba(255, 255, 255, 0.68); font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.admin-nav svg { width: 16px; height: 16px; }
.admin-side__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-light); font-size: 0.66rem; color: rgba(255, 255, 255, 0.4); }
.admin-main { padding: 1.4rem clamp(1rem, 3vw, 2.4rem) 3rem; min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.admin-top h1 { font-size: 1.75rem; margin: 0; }
.admin-top p { font-size: 0.74rem; color: var(--muted); margin: 0.2rem 0 0; }
.admin-demo { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; background: #fff8e6; border: 1px solid #f0dca8; border-radius: 8px; font-size: 0.66rem; color: #7a5a10; }
.admin-demo svg { width: 14px; height: 14px; flex: 0 0 auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-bottom: 1.3rem; }
.kpi-card { background: #fff; border: 1px solid rgba(18, 49, 45, 0.08); border-radius: 12px; padding: 1rem; }
.kpi-card__label { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kpi-card__value { margin-top: 0.35rem; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--ink); }
.kpi-card__delta { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.45rem; font-size: 0.62rem; font-weight: 700; color: var(--success); }
.kpi-card__delta svg { width: 11px; height: 11px; }
.admin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; margin-bottom: 1.3rem; }
.admin-panel { background: #fff; border: 1px solid rgba(18, 49, 45, 0.08); border-radius: 12px; padding: 1.1rem; min-width: 0; }
.admin-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.9rem; }
.admin-panel__head h2 { font-size: 0.95rem; margin: 0; }
.admin-panel__head span { font-size: 0.64rem; color: var(--muted); }
.admin-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 150px; padding-top: 0.8rem; }
.admin-chart__bar { flex: 1; background: var(--sage); border-radius: 3px 3px 1px 1px; position: relative; height: var(--h); min-height: 6px; }
.admin-chart__bar.is-current { background: var(--terracotta); }
.admin-chart__bar span { position: absolute; top: -1.1rem; left: 50%; transform: translateX(-50%); font-size: 0.52rem; color: var(--muted); white-space: nowrap; }
.admin-chart__labels { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.admin-chart__labels span { flex: 1; text-align: center; font-size: 0.52rem; text-transform: uppercase; color: var(--muted); }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.admin-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.74rem; }
.admin-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); flex: 0 0 auto; }
.admin-list time { margin-left: auto; font-size: 0.6rem; color: var(--muted); }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.admin-toolbar .form-control, .admin-toolbar .form-select { min-height: 38px; padding: 0.4rem 0.65rem; font-size: 0.72rem; border-radius: 7px; }
.admin-toolbar .btn { padding: 0.45rem 0.75rem; font-size: 0.7rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.admin-table th { text-align: left; font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.5rem 0.55rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 0.55rem; border-bottom: 1px solid rgba(18, 49, 45, 0.06); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .name { font-weight: 700; color: var(--ink); }
.admin-table .email { color: var(--muted); font-size: 0.65rem; }
.admin-empty { padding: 1.4rem; text-align: center; color: var(--muted); font-size: 0.76rem; }
.admin-tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.admin-tabs button { padding: 0.6rem 0.8rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.admin-tabs button.is-active { color: var(--ink); border-bottom-color: var(--terracotta); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; background: radial-gradient(circle at 20% 20%, rgba(93, 138, 102, 0.2), transparent 40%), var(--forest-deep); }
.admin-login__card { width: min(420px, 100%); background: var(--cream); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow-lg); }
.admin-login__card h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.admin-login__card > p { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.3rem; }
.admin-credentials { margin-top: 1rem; padding: 0.75rem; border: 1px dashed var(--line); border-radius: 8px; background: var(--sand-soft); font-size: 0.68rem; color: var(--muted); }
.admin-credentials code { color: var(--forest); font-weight: 700; }
.admin-hidden { display: none !important; }
.admin-login__card .brand { margin-bottom: 0.2rem; }
.admin-login__card .brand__name { color: var(--ink); }
.admin-login__card .brand__sub { color: var(--muted); }
.admin-login__card .form-control { background: #fff; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.admin-form-grid__wide { grid-column: 1 / -1; }
.admin-table .form-select-sm { min-height: 30px; padding: 0.2rem 1.7rem 0.2rem 0.45rem; font-size: 0.66rem; border-radius: 6px; width: auto; min-width: 108px; }
.admin-table .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.62rem; }
.admin-panel .split__points { margin: 0; }
.form-error { padding: 0.6rem 0.75rem; border-radius: 8px; background: #fbe9e4; border: 1px solid #f0c9bd; color: #8a3418; font-size: 0.76rem; font-weight: 600; }
@media (max-width: 767.98px) {
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Wireframes ---------- */
.wire-body { background: #ece9e1; }
.wf-section { margin-bottom: 2rem; }
.wf-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.wf-frame { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.wf-topbar { height: 14px; background: #dfe4dc; border-radius: 3px; margin-bottom: 6px; }
.wf-header { display: flex; align-items: center; justify-content: space-between; height: 48px; border: 1px solid #dfe4dc; border-radius: 4px; padding: 0 12px; margin-bottom: 10px; }
.wf-logo { width: 110px; height: 12px; background: #c9d2c7; border-radius: 2px; }
.wf-nav { display: flex; gap: 6px; }
.wf-nav i { display: block; width: 34px; height: 7px; background: #dfe4dc; border-radius: 2px; }
.wf-nav i:last-child { width: 50px; background: #e7b9a6; }
.wf-block { border: 1px dashed #cfd6ce; border-radius: 5px; background: #f7f8f5; display: grid; place-items: center; color: #8b968a; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; padding: 0.6rem; }
.wf-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10px; }
.wf-hero .wf-copy { display: grid; align-content: center; gap: 8px; min-height: 190px; padding: 14px; border: 1px dashed #cfd6ce; border-radius: 5px; }
.wf-line { height: 12px; background: #d8ded5; border-radius: 2px; }
.wf-line.lg { height: 30px; width: 86%; background: #c9d2c7; }
.wf-line.md { height: 8px; width: 70%; background: #e3e7e0; }
.wf-line.sm { height: 8px; width: 46%; background: #e3e7e0; }
.wf-btn-row { display: flex; gap: 6px; margin-top: 6px; }
.wf-btn { width: 90px; height: 26px; border-radius: 13px; background: #d99a7e; }
.wf-btn.ghost { background: transparent; border: 1px solid #cfd6ce; }
.wf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.wf-stats .wf-block { min-height: 66px; }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.wf-cards .wf-block { min-height: 120px; }
.wf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wf-split .wf-block { min-height: 150px; }
.wf-footer { margin-top: 10px; border: 1px solid #dfe4dc; border-radius: 4px; padding: 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.wf-footer .wf-line { height: 7px; }
.wf-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; }
.wf-phone { max-width: 340px; margin-inline: auto; border: 8px solid #2c3e36; border-radius: 26px; padding: 10px; background: #fff; }
.wf-phone .wf-header { height: 40px; }
.wf-phone .wf-hero { grid-template-columns: 1fr; }
.wf-phone .wf-cards, .wf-phone .wf-stats { grid-template-columns: 1fr 1fr; }
.wf-phone .wf-block { min-height: 60px; }

/* ---------- Policy / legal ---------- */
.legal-body { font-size: 0.94rem; line-height: 1.8; }
.legal-body h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal-body h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.legal-body ul { margin-left: 1.2rem; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 1rem); }
.legal-nav a { display: block; padding: 0.35rem 0; font-size: 0.76rem; color: var(--muted); text-decoration: none; }
.legal-nav a:hover { color: var(--terracotta); }

/* ---------- Downloads / docs ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.doc-card { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc-card__icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--terracotta-soft); color: var(--terracotta); }
.doc-card__icon svg { width: 19px; height: 19px; }
.doc-card h3 { font-size: 0.92rem; margin-bottom: 0.15rem; }
.doc-card p { font-size: 0.7rem; color: var(--muted); margin: 0 0 0.4rem; }
.doc-card a { font-size: 0.7rem; font-weight: 800; color: var(--forest); }

/* ---------- Responsive pages ---------- */
@media (max-width: 1199.98px) {
  .district-grid { grid-template-columns: repeat(3, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
  .about-strip { grid-template-columns: 1fr 1fr; }
  .about-strip__item:nth-child(2) { border-right: 0; }
  .about-strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .award-grid { grid-template-columns: 1fr; }
  .program-detail { grid-template-columns: 1fr; }
  .program-detail:nth-child(even) .program-detail__media { order: 0; }
  .program-detail__media { max-width: 600px; }
  .process-grid { grid-template-columns: 1fr; }
  .impact-hero-grid, .csr-hero__grid { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 1rem; padding: 0.8rem 1rem; }
  .admin-brand { border: 0; padding: 0; }
  .admin-nav { display: flex; padding: 0; gap: 0.2rem; overflow-x: auto; }
  .admin-nav a span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .admin-side__foot { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; margin-top: 2rem; }
}
@media (max-width: 767.98px) {
  .role-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { padding-top: 1rem; }
  .admin-top h1 { font-size: 1.4rem; }
  .csr-stat { left: 0.6rem; bottom: 0.6rem; }
  .sponsor-table { display: block; overflow-x: auto; }
  .allocation__row { grid-template-columns: 100px 1fr 44px; }
  .bar-chart { height: 180px; gap: 0.35rem; }
  .wf-hero { grid-template-columns: 1fr; }
  .wf-stats { grid-template-columns: 1fr 1fr; }
  .wf-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .about-strip { grid-template-columns: 1fr; }
  .about-strip__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .about-strip__item:last-child { border-bottom: 0; }
  .program-detail__number { width: 50px; height: 50px; font-size: 1.1rem; }
  .kpi-grid { grid-template-columns: 1fr; }
  .impact-stat strong { font-size: 1.45rem; }
}

/* Blog index */
.blog-search { position: relative; min-width: min(300px, 100%); }
.blog-search svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.blog-search .form-control { padding-left: 2.3rem; min-height: 44px; border-radius: var(--radius-pill); background: #fff; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.empty-state { padding: clamp(2rem, 5vw, 3.5rem); text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty-state > svg { width: 34px; height: 34px; color: var(--terracotta); margin-bottom: 0.8rem; }
.empty-state h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.84rem; color: var(--muted); margin: 0; }
@media (max-width: 767.98px) {
  .blog-search { width: 100%; }
  .section-label .blog-search { margin-top: 0.8rem; }
}

/* Impact page */
.impact__stats--four { grid-template-columns: repeat(4, 1fr); margin-bottom: 2rem; }
@media (max-width: 991.98px) {
  .impact__stats--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479.98px) {
  .impact__stats--four { grid-template-columns: 1fr; }
}

/* 404 */
.error-page { padding: clamp(3rem, 8vw, 7rem) 0; background: radial-gradient(circle at 80% 20%, rgba(93,102,102,.14), transparent 42%), var(--cream); }
.error-page__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.error-page__code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 10rem); line-height: .85; color: var(--terracotta); opacity: .18; margin: 0 0 .5rem; letter-spacing: -.05em; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.error-page .lead { max-width: 52ch; margin-inline: auto; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.2rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.error-page__links a { font-size: .78rem; font-weight: 800; color: var(--forest); text-decoration: none; }
.error-page__links a:hover { color: var(--terracotta); text-decoration: underline; }
