/* ==========================================================================
   SUVASTU SAHARA WELFARE FOUNDATION - Institutional Design System (V2)
   Inspired by Shaukat Khanum, Alkhidmat, Heart & Stroke, Arfa Karim Foundation
   Rules: Logo colors (#1a3da0, #0c1e54, #cc2222), NO gradients, NO rounded pills.
   ========================================================================== */

:root {
    --blue: #1a3da0;
    --blue-dark: #0c1e54;
    --blue-mid: #274db8;
    --red: #cc2222;
    --red-dark: #a31818;
    --ink: #161b26;
    --text: #374151;
    --muted: #6b7280;
    --border: #dde2ec;
    --bg-alt: #f5f7fb;
    --white: #ffffff;
    --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--red); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--text); }

/* --- Container & Section Utilities --- */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--blue-dark); color: var(--white); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.section-header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 44px;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--red);
}
.section-title { font-size: 2.1rem; margin-bottom: 10px; color: var(--ink); }
.section-desc { color: var(--muted); max-width: 640px; font-size: 1.02rem; margin-bottom: 0; }
.text-center .section-desc { margin: 0 auto 36px; }

/* --- Buttons (Sharp Architectural) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-sans);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--donate { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--donate:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--blue-dark); }
.btn--sm { padding: 9px 18px; font-size: 0.82rem; }
.btn--lg { padding: 15px 32px; font-size: 0.96rem; }

/* --- Top Utility Bar --- */
.top-bar {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--red);
}
.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.top-bar__left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-bar__reg {
    background: rgba(255,255,255,0.12);
    padding: 2px 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 0.72rem;
    color: #fff;
}
.top-bar__left a {
    color: rgba(255,255,255,0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.top-bar__left a:hover { color: #fff; }
.top-bar__right { display: flex; align-items: center; gap: 18px; }
.top-bar__link { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.top-bar__link:hover { color: #fff; }
.top-bar__social-link {
    color: #fff;
    background: rgba(255,255,255,0.12);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.top-bar__social-link:hover { background: var(--red); color: #fff; }

/* --- Main Navigation --- */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav.scrolled { box-shadow: 0 4px 18px rgba(12,30,84,0.08); }
.main-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.main-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}
.main-nav__brand img { height: 56px; width: auto; }
.main-nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.main-nav__brand-text strong {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--blue-dark);
    letter-spacing: 0.4px;
}
.main-nav__brand-text span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--red);
}
.main-nav__menu { display: flex; align-items: center; gap: 2px; }
.main-nav__menu li { position: relative; }
.main-nav__menu > li > a {
    display: block;
    padding: 28px 13px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}
.main-nav__menu > li > a:hover,
.main-nav__menu > li.active > a {
    color: var(--blue);
    border-bottom-color: var(--blue);
}
.main-nav__menu li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    z-index: 1001;
    box-shadow: 0 10px 24px rgba(12,30,84,0.1);
}
.main-nav__menu li:hover .dropdown { display: block; }
.main-nav__menu li .dropdown a {
    display: block;
    padding: 11px 18px;
    font-size: 0.86rem;
    color: var(--ink);
    font-weight: 600;
    border-bottom: 1px solid var(--bg-alt);
}
.main-nav__menu li .dropdown a:hover { background: var(--bg-alt); color: var(--blue); padding-left: 22px; }
.main-nav__donate { margin-left: 14px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 10px 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Cinematic Editorial Hero Slider --- */
.hero-slider { position: relative; overflow: hidden; background: var(--blue-dark); }
.hero-slider__track { display: flex; transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-slider__slide { min-width: 100%; position: relative; height: 600px; }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 50, 0.66);
    display: flex;
    align-items: center;
}
.hero-slider__content {
    max-width: 720px;
    color: var(--white);
    border-left: 5px solid var(--red);
    padding-left: 28px;
}
.hero-slider__kicker {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    margin-bottom: 16px;
}
.hero-slider__content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}
.hero-slider__content p {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    max-width: 600px;
}
.hero-slider__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12,30,84,0.75);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider__arrow:hover { background: var(--red); border-color: var(--red); }
.hero-slider__arrow--prev { left: 20px; }
.hero-slider__arrow--next { right: 20px; }

/* Slide Selector Bar */
.hero-slider__dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    background: rgba(12, 30, 84, 0.88);
    border-top: 1px solid rgba(255,255,255,0.15);
    z-index: 10;
}
.hero-slider__dot {
    background: transparent;
    border: none;
    border-top: 3px solid transparent;
    color: rgba(255,255,255,0.7);
    padding: 12px 22px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hero-slider__dot:hover { color: #fff; background: rgba(255,255,255,0.06); }
.hero-slider__dot.active { color: #fff; border-top-color: var(--red); background: rgba(255,255,255,0.1); }

/* --- Quick-Appeal / Donation Bar (Alkhidmat / Saylani style) --- */
.appeal-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    box-shadow: 0 4px 16px rgba(12,30,84,0.05);
}
.appeal-bar__inner {
    display: grid;
    grid-template-columns: 1fr 2.2fr auto;
    gap: 24px;
    align-items: center;
}
.appeal-bar__title h3 { font-size: 1.15rem; margin-bottom: 4px; color: var(--blue-dark); }
.appeal-bar__title p { font-size: 0.86rem; color: var(--muted); margin: 0; }
.appeal-bar__tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.appeal-tier {
    border: 1px solid var(--border);
    padding: 12px 14px;
    background: var(--bg-alt);
    text-align: left;
    transition: border-color 0.18s, background 0.18s;
}
.appeal-tier:hover { border-color: var(--blue); background: var(--white); }
.appeal-tier strong { display: block; font-size: 0.96rem; color: var(--blue-dark); }
.appeal-tier span { font-size: 0.76rem; color: var(--muted); }

/* --- Split About Section with Floating Stat Box --- */
.about-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-split__checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin: 24px 0 30px;
}
.about-split__check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}
.about-split__check svg { color: var(--red); flex-shrink: 0; }
.about-split__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.about-split__media { position: relative; }
.about-split__media img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.about-split__callout {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--blue-dark);
    color: #fff;
    padding: 22px 26px;
    border-left: 5px solid var(--red);
    max-width: 290px;
    box-shadow: 0 12px 28px rgba(12,30,84,0.18);
}
.about-split__callout strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}
.about-split__callout span { font-size: 0.84rem; color: rgba(255,255,255,0.85); }

/* --- Program Pillars (Focus Grid) --- */
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.focus-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--blue);
    padding: 32px 24px;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.focus-card:hover {
    border-top-color: var(--red);
    box-shadow: 0 10px 24px rgba(12,30,84,0.08);
    transform: translateY(-2px);
}
.focus-card__icon-box {
    width: 48px;
    height: 48px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.focus-card:hover .focus-card__icon-box { background: var(--blue); color: #fff; border-color: var(--blue); }
.focus-card h4 { margin-bottom: 10px; font-size: 1.12rem; }
.focus-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.focus-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--blue);
}

/* --- Impact & Transparency Band --- */
.impact-bar { background: var(--blue-dark); padding: 60px 0; color: #fff; border-top: 4px solid var(--red); }
.impact-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.impact-bar__item {
    padding: 10px 24px;
    border-right: 1px solid rgba(255,255,255,0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.impact-bar__item:last-child { border-right: none; }
.impact-bar__icon { color: var(--red); margin-bottom: 12px; }
.impact-bar__item h3 {
    font-family: var(--font-sans);
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1;
}
.impact-bar__item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* --- Project Cards & Carousel --- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.projects-carousel { position: relative; }
.projects-carousel__viewport { overflow: hidden; }
.projects-carousel__track {
    display: flex;
    gap: 28px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.projects-carousel__track .project-card {
    flex: 0 0 calc((100% - 56px) / 3);
    min-width: calc((100% - 56px) / 3);
}
.projects-carousel__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.carousel-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--blue-dark);
    border: 2px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.carousel-btn:hover:not(:disabled) { background: var(--blue); color: #fff; border-color: var(--blue); }
.carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.project-card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(12,30,84,0.08); }
.project-card__image { height: 220px; overflow: hidden; position: relative; background: #eee; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.project-card:hover .project-card__image img { transform: scale(1.04); }
.project-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--blue-dark);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
}
.project-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-card__cat {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--red);
    margin-bottom: 8px;
}
.project-card__body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.project-card__body h3 a { color: var(--ink); }
.project-card__body h3 a:hover { color: var(--blue); }
.project-card__body p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.project-card__footer {
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid var(--bg-alt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--blue);
}
.project-card__link:hover { color: var(--red); }

/* --- Donation CTA Split Banner --- */
.donate-banner {
    background: var(--blue-dark);
    color: #fff;
    padding: 68px 0;
    border-top: 4px solid var(--red);
    border-bottom: 4px solid var(--red);
}
.donate-banner__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.donate-banner h2 { color: #fff; margin-bottom: 14px; font-size: 2.2rem; }
.donate-banner p { color: rgba(255,255,255,0.85); font-size: 1.02rem; margin-bottom: 24px; }
.donate-banner__bank {
    background: #fff;
    color: var(--ink);
    padding: 28px;
    border-top: 4px solid var(--red);
}
.donate-banner__bank h4 {
    color: var(--blue-dark);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.donate-banner__bank table { width: 100%; border-collapse: collapse; }
.donate-banner__bank td {
    padding: 9px 0;
    font-size: 0.92rem;
    color: var(--text);
    border-bottom: 1px solid var(--bg-alt);
}
.donate-banner__bank td:first-child { font-weight: 700; color: var(--ink); width: 140px; }

/* --- News Cards --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(12,30,84,0.07); }
.news-card__image { height: 200px; overflow: hidden; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}
.news-card__body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.news-card__body h3 a { color: var(--ink); }
.news-card__body h3 a:hover { color: var(--blue); }
.news-card__body p { font-size: 0.9rem; color: var(--muted); flex: 1; }

/* --- Asymmetric Gallery Mosaic (Home) & Grid (Gallery Page) --- */
.gallery-mosaic {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 8px;
}
.gallery-mosaic .gallery-item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: auto;
}
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: #eee; }
.gallery-mosaic .gallery-item { aspect-ratio: auto; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 30, 84, 0.72);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span { color: #fff; font-size: 1.6rem; font-weight: 300; line-height: 1; }
.gallery-item__overlay small { color: rgba(255,255,255,0.9); font-size: 0.78rem; font-weight: 600; margin-top: 6px; }

/* --- Partners Grid --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.partner-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 20px 18px;
    text-align: center;
    transition: border-color 0.2s;
}
.partner-box:hover { border-color: var(--blue); }
.partner-box strong { display: block; font-size: 1.05rem; color: var(--blue-dark); letter-spacing: 0.6px; }
.partner-box span { font-size: 0.76rem; color: var(--muted); }

/* --- Page Banner & Breadcrumb (Inner Pages) --- */
.page-banner {
    background: var(--blue-dark);
    padding: 52px 0;
    color: #fff;
    border-bottom: 4px solid var(--red);
}
.page-banner h1 { font-size: 2.3rem; color: #fff; margin: 0; }
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 11px 0; }
.breadcrumb ol { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; }
.breadcrumb ol li { display: flex; align-items: center; gap: 8px; }
.breadcrumb ol li::after { content: '/'; color: var(--muted); }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb a { color: var(--blue); }
.breadcrumb li:last-child span { color: var(--muted); }

/* --- Inner Page Content Blocks --- */
.content-block { margin-bottom: 36px; }
.content-block h2 { margin-bottom: 14px; }
.value-card { border-left: 4px solid var(--blue); padding: 20px 24px; background: var(--bg-alt); margin-bottom: 16px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.value-card h4 { color: var(--blue-dark); margin-bottom: 6px; }
.value-card p { margin: 0; font-size: 0.94rem; }

/* --- Team Grid --- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { background: var(--white); border: 1px solid var(--border); padding: 24px 20px; text-align: center; }
.team-card__photo { width: 160px; height: 160px; margin: 0 auto 16px; overflow: hidden; border: 3px solid var(--blue-dark); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card h4 { font-size: 1.08rem; margin-bottom: 4px; }
.team-card__role { font-size: 0.78rem; color: var(--red); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-bottom: 10px; display: block; }
.team-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* --- Forms & Alerts --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.86rem; color: var(--ink); }
.form-control {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border);
    font-size: 0.95rem; font-family: inherit; color: var(--ink); background: #fff;
}
.form-control:focus { outline: none; border-color: var(--blue); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alert { padding: 14px 18px; margin-bottom: 20px; font-size: 0.92rem; border-left: 4px solid; }
.alert--success { background: #e8f5e9; border-color: #2e7d32; color: #1b5e20; }
.alert--error { background: #fce4ec; border-color: #c62828; color: #b71c1c; }

/* --- Medical Center Services --- */
.services-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-item { padding: 22px; border: 1px solid var(--border); border-top: 3px solid var(--blue); background: #fff; display: flex; align-items: flex-start; gap: 14px; }
.service-item__icon { font-size: 1.5rem; color: var(--red); flex-shrink: 0; }
.service-item h4 { font-size: 1rem; margin-bottom: 4px; }
.service-item p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* --- Tabs, Detail Pages, Sidebar, Donate, Reports, Map --- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn {
    padding: 11px 20px; font-size: 0.86rem; font-weight: 700; color: var(--muted);
    background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; margin-bottom: -2px; font-family: inherit;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue-dark); border-bottom-color: var(--red); }

.project-detail__header-img, .news-detail__header-img { width: 100%; height: 380px; object-fit: cover; margin-bottom: 24px; border: 1px solid var(--border); }
.project-detail__meta, .news-detail__meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.page-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.sidebar__widget { margin-bottom: 24px; padding: 22px; border: 1px solid var(--border); background: #fff; }
.sidebar__widget h4 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
.sidebar__widget ul li { padding: 8px 0; border-bottom: 1px solid var(--bg-alt); }
.sidebar__widget ul li a { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.sidebar__widget ul li a:hover { color: var(--blue); }

.donate-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.donate-box { padding: 28px; border: 1px solid var(--border); background: #fff; }
.donate-box h3 { margin-bottom: 14px; font-size: 1.2rem; }
.donate-box table { width: 100%; border-collapse: collapse; }
.donate-box td { padding: 9px 0; border-bottom: 1px solid var(--bg-alt); font-size: 0.94rem; }
.donate-box td:first-child { font-weight: 700; width: 150px; color: var(--ink); }

.report-item { display: flex; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--border); margin-bottom: 14px; background: #fff; }
.report-item__icon { font-size: 2rem; color: var(--red); }
.report-item h4 { margin-bottom: 4px; }
.report-item p { font-size: 0.88rem; color: var(--muted); margin: 0; }

.map-embed { width: 100%; height: 340px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-preview__image img { width: 100%; height: 380px; object-fit: cover; border: 1px solid var(--border); }

/* --- Lightbox --- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(10,16,32,0.94); z-index: 10000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; }
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border: 2px solid rgba(255,255,255,0.2); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); color: #fff; border: none; width: 48px; height: 48px; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__nav:hover { background: var(--red); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* --- Institutional Footer --- */
.footer { background: #0e1320; color: #b6bfd1; padding: 64px 0 0; border-top: 4px solid var(--red); }
.footer__grid { display: grid; grid-template-columns: 1.35fr 0.9fr 1fr 1.15fr; gap: 36px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { height: 50px; width: auto; background: #fff; padding: 3px; }
.footer__brand strong { display: block; color: #fff; font-family: var(--font-serif); font-size: 1rem; }
.footer__brand span { font-size: 0.74rem; color: #8c97ad; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.footer__col h4 {
    color: #fff; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 2px solid var(--red); display: inline-block;
}
.footer__col p { font-size: 0.88rem; line-height: 1.7; color: #9aa4b8; }
.footer__col ul li { margin-bottom: 9px; }
.footer__col ul li a { color: #b6bfd1; font-size: 0.88rem; }
.footer__col ul li a:hover { color: #fff; padding-left: 4px; }
.footer__contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; font-size: 0.88rem; color: #b6bfd1; }
.footer__contact-item svg { color: var(--red); flex-shrink: 0; margin-top: 3px; }
.footer__contact-item a { color: #fff; }
.footer__social-row a { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: rgba(255,255,255,0.08); padding: 8px 14px; font-size: 0.82rem; font-weight: 600; }
.footer__social-row a:hover { background: var(--blue); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__bottom p { font-size: 0.82rem; color: #8c97ad; margin: 0; }
.footer__bottom-links { display: flex; gap: 20px; font-size: 0.82rem; }
.footer__bottom-links a { color: #8c97ad; }
.footer__bottom-links a:hover { color: #fff; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-slider__slide { height: 500px; }
    .hero-slider__content h1 { font-size: 2.3rem; }
    .appeal-bar__inner { grid-template-columns: 1fr; }
    .appeal-bar__tiers { grid-template-columns: repeat(2, 1fr); }
    .about-split, .about-preview { grid-template-columns: 1fr; }
    .about-split__callout { position: static; max-width: 100%; margin-top: 16px; }
    .focus-grid, .team-grid, .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid, .news-grid, .services-list { grid-template-columns: repeat(2, 1fr); }
    .projects-carousel__track .project-card {
        flex: 0 0 calc((100% - 28px) / 2);
        min-width: calc((100% - 28px) / 2);
    }
    .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-mosaic .gallery-item:first-child { grid-row: auto; grid-column: 1 / 3; height: 280px; }
    .gallery-mosaic .gallery-item { height: 200px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .donate-methods, .donate-banner__inner, .page-with-sidebar, .contact-grid { grid-template-columns: 1fr; }
    .impact-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .impact-bar__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 20px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { padding: 6px 0; font-size: 0.75rem; }
    .top-bar__inner { justify-content: space-between; flex-wrap: nowrap; text-align: left; }
    .top-bar__reg,
    .top-bar__email,
    .top-bar__link { display: none !important; }
    .top-bar__left { gap: 0; }
    .nav-toggle { display: flex; }
    .main-nav__menu {
        display: none; flex-direction: column; width: 100%; background: #fff;
        border-top: 1px solid var(--border); position: absolute; top: 80px; left: 0; z-index: 999;
        box-shadow: 0 12px 24px rgba(12,30,84,0.12); align-items: stretch;
    }
    .main-nav__menu.open { display: flex; }
    .main-nav__menu > li > a { padding: 14px 20px; border-bottom: 1px solid var(--bg-alt); }
    .main-nav__menu li .dropdown { position: static; border: none; box-shadow: none; background: var(--bg-alt); }
    .main-nav__donate { margin: 12px 20px; }

    .hero-slider__slide { height: auto; min-height: 410px; }
    .hero-slider__slide > img { position: absolute; inset: 0; }
    .hero-slider__overlay { position: relative; padding: 40px 0; min-height: 410px; }
    .hero-slider__kicker { font-size: 0.64rem; padding: 4px 9px; margin-bottom: 12px; letter-spacing: 1px; }
    .hero-slider__content h1 { font-size: 1.55rem; margin-bottom: 10px; }
    .hero-slider__content p { font-size: 0.92rem; margin-bottom: 20px; }
    .hero-slider__content { padding-left: 16px; }
    .hero-slider__actions { flex-wrap: nowrap; gap: 10px; }
    .hero-slider__actions .btn { padding: 10px 14px; font-size: 0.82rem; white-space: nowrap; }
    .hero-slider__dots { display: none; }
    .hero-slider__arrow { display: none; }

    .impact-bar { padding: 36px 0; }
    .impact-bar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .impact-bar__item { padding: 14px 8px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .impact-bar__item h3 { font-size: 1.75rem; }
    .impact-bar__item p { font-size: 0.7rem; letter-spacing: 0.8px; }

    .about-split__actions { flex-wrap: nowrap; gap: 10px; }
    .about-split__actions .btn { padding: 10px 12px; font-size: 0.82rem; white-space: nowrap; flex: 1; }

    .report-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
    .report-item__icon { display: none; }

    .section { padding: 48px 0; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .focus-grid, .projects-grid, .news-grid, .services-list, .team-grid, .partners-grid, .form-row, .about-split__checks { grid-template-columns: 1fr; }
    .projects-carousel__track .project-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; }
}
