/*
Theme Name: Martyrs NGO Theme
Theme URI: https://example.org/
Author: Codex
Description: A patriotic and responsive custom theme for an NGO supporting families of Indian Armed Forces martyrs.
Version: 1.0.0
Text Domain: martyrs-ngo-theme
*/

:root {
    --saffron: #e97821;
    --green: #176833;
    --navy: #10243e;
    --ivory: #fffdf8;
    --sand: #f4eee1;
    --text: #243041;
    --muted: #5d6b7d;
    --shadow: 0 24px 60px rgba(16, 36, 62, 0.14);
    --radius-lg: 30px;
    --radius-md: 20px;
    --container: 1180px;
    --font-head: "Georgia", "Times New Roman", serif;
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(233, 120, 33, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(23, 104, 51, 0.16), transparent 24%),
        linear-gradient(180deg, #fffdf8, #fff 42%, #f7fbf7);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: clip;
}
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; height: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 253, 248, 0.92);
    border-bottom: 1px solid rgba(16, 36, 62, 0.08);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home .site-header {
    background: rgba(255, 253, 248, 0.78);
}
body.scrolled .site-header {
    box-shadow: 0 16px 34px rgba(16, 36, 62, 0.12);
    border-color: rgba(16, 36, 62, 0.12);
}
.wrap { width: min(100% - 2rem, var(--container)); margin: 0 auto; }
main.wrap,
.site-content,
.elementor-fullwidth-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
}
.header-topline {
    background: linear-gradient(90deg, var(--navy), #1b4c70);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
}
.header-topline-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}
.brand { display: flex; flex-direction: column; gap: 0.15rem; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--navy);
}
.brand-mark img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(16, 36, 62, 0.12);
}
.brand-copy {
    display: flex;
    flex-direction: column;
}
.brand-copy strong {
    font-family: var(--font-head);
    font-size: 1.35rem;
    line-height: 1.1;
}
.brand-copy small { color: var(--muted); }
.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(16, 36, 62, 0.1);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-shell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 1rem;
}
.submenu-toggle { display: none; }
.main-navigation ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-navigation a { color: var(--navy); font-weight: 600; font-size: 0.96rem; }
.main-navigation > div > ul > li > a,
.main-navigation > ul > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.main-navigation .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 0 1rem;
}
.main-navigation .menu-item-donate a,
.header-donate-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--saffron), var(--green));
    color: #fff;
    font-weight: 700;
}
.header-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    padding-bottom: 1rem;
}
.header-card {
    position: relative;
    padding: 1.6rem;
    border-radius: 18px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    min-height: 118px;
    display: flex;
    align-items: end;
    overflow: hidden;
}
.header-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.18), rgba(255,255,255,0.06));
}
.header-card span {
    position: relative;
    z-index: 1;
    font-size: clamp(1.1rem, 2vw, 1.8rem);
}
.header-card-green { background: linear-gradient(135deg, #89ba52, #6ea640); }
.header-card-orange { background: linear-gradient(135deg, #ef7f2d, #df6123); }
.header-card-blue { background: linear-gradient(135deg, #1490e1, #1fb3f4); }
.header-card-gold { background: linear-gradient(135deg, #f0bf16, #e8a805); }
.hero { padding: 0 0 4rem; }
.hero-shell {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1.4rem;
    border-radius: 0 0 36px 36px;
    background:
        linear-gradient(125deg, rgba(16, 36, 62, 0.92), rgba(23, 104, 51, 0.78)),
        radial-gradient(circle at top right, rgba(233, 120, 33, 0.28), transparent 32%);
    box-shadow: var(--shadow);
}
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
    display: none;
    animation: heroFade 0.5s ease;
    min-height: 72vh;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(16, 36, 62, 0.16), rgba(16, 36, 62, 0.16)),
        var(--slide-image) center/cover no-repeat;
}
.hero-slide.is-active { display: block; }
.hero-slide > :not(.hero-slide-image),
.hero-slide .hero-grid,
.hero-slide .hero-card,
.hero-slide .hero-actions,
.hero-slide .eyebrow,
.hero-slide h1,
.hero-slide h2,
.hero-slide p,
.hero-slide .flag-bars,
.hero-slide .hero-logo {
    display: none !important;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; min-height: 74vh; }
.hero-logo {
    width: 118px;
    height: 118px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.35rem;
    box-shadow: 0 18px 35px rgba(16, 36, 62, 0.12);
}
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.hero-dot {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 999px;
    background: rgba(16, 36, 62, 0.2);
    cursor: pointer;
}
.hero-dot.is-active { background: var(--saffron); }
.eyebrow {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(233, 120, 33, 0.12);
    color: var(--saffron);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.hero h1, .section-heading h2, .page-hero h1 {
    margin: 1rem 0;
    color: var(--navy);
    font-family: var(--font-head);
    line-height: 1.1;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); color: #fff; }
.hero p { max-width: 58ch; color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.button-link.primary { background: linear-gradient(135deg, var(--saffron), var(--green)); color: #fff; box-shadow: var(--shadow); }
.button-link.secondary { color: var(--navy); background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(16, 36, 62, 0.1); }
.button-link:hover {
    transform: translateY(-2px);
}
.button-link.primary:hover {
    box-shadow: 0 20px 34px rgba(16, 36, 62, 0.18);
}
.button-link.secondary:hover {
    background: #fff;
    box-shadow: 0 14px 26px rgba(16, 36, 62, 0.1);
}
.button-link::after {
    content: "›";
    font-size: 1.1em;
    line-height: 1;
}
.hero-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
        linear-gradient(135deg, rgba(233, 120, 33, 0.12), rgba(23, 104, 51, 0.12));
    box-shadow: var(--shadow);
}
.hero-card h2 {
    color: var(--navy);
}
.hero-card p {
    color: var(--text);
}
.flag-bars { display: grid; gap: 0.45rem; }
.flag-bars span { display: block; height: 14px; border-radius: 999px; }
.flag-bars span:nth-child(1) { background: var(--saffron); }
.flag-bars span:nth-child(2) { background: #fff; border: 1px solid rgba(16, 36, 62, 0.08); }
.flag-bars span:nth-child(3) { background: var(--green); }
.content-section { padding: 4.5rem 0; }
.section-tint {
    background: linear-gradient(180deg, rgba(244, 238, 225, 0.55), rgba(255, 255, 255, 0));
}
.surface { padding: 2rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.82); box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.section-head-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.card { padding: 1.5rem; border-radius: var(--radius-md); background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 238, 225, 0.9)); border: 1px solid rgba(16, 36, 62, 0.08); transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease; }
.card h3 { margin-top: 0; color: var(--navy); }
.home-support-cards .card {
    position: relative;
    padding-top: 1.35rem;
}
.home-support-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(233, 120, 33, 0.14), rgba(23, 104, 51, 0.12));
    color: var(--navy);
    box-shadow: inset 0 0 0 1px rgba(16, 36, 62, 0.08);
}
.home-support-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(16, 36, 62, 0.12);
    border-color: rgba(23, 104, 51, 0.18);
}
.card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: rgba(16, 36, 62, 0.08);
}
.cards-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-events { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-team-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ngo-pagination {
    margin-top: 2rem;
}
.ngo-pagination .page-numbers {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}
.ngo-pagination .page-numbers li {
    margin: 0;
}
.ngo-pagination a,
.ngo-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 36, 62, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(16, 36, 62, 0.06);
}
.ngo-pagination a:hover {
    border-color: rgba(23, 104, 51, 0.22);
    background: rgba(247, 251, 247, 0.98);
}
.ngo-pagination .current {
    background: linear-gradient(135deg, var(--green), #2f7b44);
    border-color: transparent;
    color: #fff;
}
.post-type-archive-services .site-content,
.post-type-archive-services main,
.post-type-archive-events .site-content,
.post-type-archive-events main {
    padding: 2.25rem 1.25rem 4rem;
}
.post-type-archive-services .cards-services,
.post-type-archive-events .cards-events {
    width: min(100%, var(--container));
    margin: 0 auto;
}
.service-card {
    position: relative;
    overflow: hidden;
}
.team-home-card {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.8rem 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 247, 0.94)),
        radial-gradient(circle at top left, rgba(233, 120, 33, 0.08), transparent 34%);
}
.team-home-card::before {
    content: "";
    width: 100%;
    height: 4px;
    position: absolute;
    inset: 0 0 auto;
    background: linear-gradient(90deg, var(--saffron), var(--green));
}
.team-home-card h3 {
    margin: 0;
    font-size: 1.2rem;
}
.team-home-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}
.team-home-meta {
    display: grid;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.35rem;
}
.team-home-contact {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: rgba(16, 36, 62, 0.04);
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: background 0.22s ease, transform 0.22s ease;
}
.team-home-contact:hover {
    background: rgba(23, 104, 51, 0.1);
    transform: translateY(-1px);
}
.team-home-avatar-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}
.team-home-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 28px rgba(16, 36, 62, 0.14);
    background: linear-gradient(135deg, rgba(233, 120, 33, 0.18), rgba(23, 104, 51, 0.16));
}
.team-home-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--saffron), var(--green));
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
}
.service-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 36, 62, 0.06);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.service-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron), var(--green));
    box-shadow: 0 0 0 4px rgba(23, 104, 51, 0.08);
}
.event-location,
.detail-meta {
    color: var(--green);
    font-weight: 700;
}
.tribute-grid, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.volunteer-band {
    padding: 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(16, 36, 62, 0.96), rgba(23, 104, 51, 0.92));
    color: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}
.volunteer-band h2,
.volunteer-band h3,
.volunteer-band .eyebrow { color: #fff; }
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.volunteer-card {
    padding: 1.4rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}
.volunteer-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 1rem;
}
.volunteer-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.volunteer-directory-photo {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.volunteer-directory-fallback {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron), #ffd24f);
    color: var(--navy);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.volunteer-badge {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron), #ffd24f);
    color: var(--navy);
    font-weight: 700;
    font-size: 1.1rem;
}
.volunteer-card h3 { margin-bottom: 0.5rem; color: #fff; }
.volunteer-card p,
.volunteer-card span { margin: 0; color: rgba(255, 255, 255, 0.82); }
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.contact-panel {
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(233, 120, 33, 0.1), rgba(23, 104, 51, 0.08));
}
.contact-form-shell {
    padding: 1.5rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(16, 36, 62, 0.08);
}
.contact-form-shell p { margin-top: 0; }
.contact-form-shell input,
.contact-form-shell textarea,
.contact-form-shell select {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 0.4rem;
    border: 1px solid #d5dbe3;
    border-radius: 14px;
}
.contact-form-shell input[type="submit"] {
    width: auto;
    border: none;
    background: linear-gradient(135deg, var(--saffron), var(--green));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.contact-placeholder {
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(16, 36, 62, 0.04);
}
.detail-page {
    overflow: hidden;
}
.detail-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 1.5rem;
}
.detail-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}
.elementor-fullwidth-content {
    min-height: 40vh;
}
.elementor-canvas-page {
    background: #fff;
}
.page-hero { padding: 4rem 0 1.5rem; }
.entry-content { padding-bottom: 4rem; }
.site-footer { color: rgba(255, 255, 255, 0.82); background: var(--navy); }
.site-footer a { color: #fff; }
.footer-upper {
    padding: 1.5rem 0 1.5rem;
}
.footer-upper-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.footer-action {
    min-height: 112px;
    padding: 1.35rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}
.footer-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(8, 13, 21, 0.16);
    filter: saturate(1.05);
}
.footer-action-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
}
.footer-action-icon svg,
.footer-link-icon svg,
.footer-contact-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}
.footer-action-green { background: linear-gradient(135deg, #84b94e, #699b35); }
.footer-action-orange { background: linear-gradient(135deg, #f47f2e, #db581d); }
.footer-action-blue { background: linear-gradient(135deg, #1493e5, #0fa7f7); }
.footer-action-gold { background: linear-gradient(135deg, #f2c11c, #e5a104); }
.footer-main {
    position: relative;
    padding: 2rem 0 2rem;
    background:
        linear-gradient(rgba(10, 15, 24, 0.84), rgba(10, 15, 24, 0.9)),
        radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 45%);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 2rem;
}
.footer-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 1rem;
}
.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li,
.footer-contact li {
    margin: 0.65rem 0;
}
.footer-links a,
.footer-contact a,
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    transition: transform 0.2s ease, color 0.2s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
    transform: translateX(4px);
    color: #fff;
}
.footer-link-icon,
.footer-contact-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.88);
}
.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    font-weight: 700;
    transition: transform 0.22s ease, background 0.22s ease;
}
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}
.footer-social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}
.footer-socials a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
}
.footer-bottom {
    background: #ef7b2d;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    color: #fff;
}
.whatsapp-chat-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 62px;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 40px rgba(16, 36, 62, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.whatsapp-chat-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(16, 36, 62, 0.22);
    filter: saturate(1.04);
}
.whatsapp-chat-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}
.whatsapp-chat-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}
.whatsapp-chat-label {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}
.ngo-page-shell {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.ngo-page-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}
.ngo-page-copy,
.ngo-about-hero-card,
.ngo-story-card,
.ngo-values-card,
.ngo-contact-info-card,
.ngo-contact-form-card,
.ngo-contact-summary {
    padding: 1.75rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(16, 36, 62, 0.08);
    box-shadow: var(--shadow);
}
.ngo-page-copy h1,
.ngo-contact-info-card h2,
.ngo-contact-form-card h2,
.ngo-story-card h2,
.ngo-values-card h2,
.ngo-mission-band h2 {
    margin: 0.75rem 0 1rem;
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.1;
}
.ngo-about-hero-card {
    display: grid;
    gap: 1rem;
    align-content: center;
    background:
        linear-gradient(145deg, rgba(16, 36, 62, 0.96), rgba(23, 104, 51, 0.9)),
        radial-gradient(circle at top right, rgba(233, 120, 33, 0.22), transparent 32%);
    color: rgba(255, 255, 255, 0.9);
}
.ngo-about-hero-card img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    padding: 0.4rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
}
.ngo-about-hero-card ul {
    margin: 0;
    padding-left: 1.1rem;
}
.ngo-about-grid,
.ngo-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.ngo-value-list,
.ngo-contact-info-list {
    display: grid;
    gap: 1rem;
}
.ngo-value-item,
.ngo-contact-info-list > div,
.ngo-contact-pill {
    padding: 1rem 1.1rem;
    border-radius: 20px;
}
.ngo-value-item,
.ngo-contact-info-list > div {
    background: linear-gradient(180deg, rgba(244, 238, 225, 0.92), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(16, 36, 62, 0.06);
}
.ngo-value-item h3 {
    margin: 0 0 0.5rem;
    color: var(--navy);
}
.ngo-mission-band {
    margin-top: 1.5rem;
    padding: 1.8rem;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(233, 120, 33, 0.12), rgba(23, 104, 51, 0.12));
    border: 1px solid rgba(16, 36, 62, 0.08);
}
.ngo-mission-hero .ngo-page-copy {
    background:
        linear-gradient(140deg, rgba(16, 36, 62, 0.96), rgba(23, 104, 51, 0.88)),
        radial-gradient(circle at top right, rgba(233, 120, 33, 0.2), transparent 30%);
    color: rgba(255, 255, 255, 0.9);
}
.ngo-mission-hero .ngo-page-copy h1,
.ngo-mission-hero .ngo-page-copy p,
.ngo-mission-hero .ngo-page-copy .eyebrow {
    color: #fff;
}
.ngo-mission-summary {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 247, 0.98)),
        radial-gradient(circle at top right, rgba(23, 104, 51, 0.08), transparent 28%);
    color: var(--text);
}
.ngo-mission-summary .ngo-contact-pill {
    background: linear-gradient(180deg, rgba(244, 238, 225, 0.9), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(16, 36, 62, 0.06);
}
.ngo-mission-summary .ngo-contact-pill strong {
    color: var(--navy);
}
.ngo-mission-summary .ngo-contact-pill span,
.ngo-mission-summary .ngo-contact-pill p {
    color: var(--muted);
}
.ngo-mission-band-strong {
    background:
        linear-gradient(135deg, rgba(233, 120, 33, 0.18), rgba(23, 104, 51, 0.16)),
        radial-gradient(circle at top right, rgba(16, 36, 62, 0.08), transparent 35%);
}
.ngo-contact-summary {
    display: grid;
    gap: 0.9rem;
    background:
        linear-gradient(145deg, rgba(16, 36, 62, 0.96), rgba(27, 76, 112, 0.92)),
        radial-gradient(circle at top right, rgba(233, 120, 33, 0.2), transparent 30%);
    color: rgba(255, 255, 255, 0.92);
}
.ngo-contact-pill {
    background: rgba(255, 255, 255, 0.08);
}
.ngo-contact-pill strong,
.ngo-contact-info-list strong {
    display: block;
    margin-bottom: 0.35rem;
}
.ngo-contact-info-list strong {
    color: var(--navy);
}
.ngo-contact-pill strong {
    color: #fff;
}
.ngo-contact-form-card .contact-form-shell {
    padding: 0;
    border: 0;
    background: transparent;
}
@keyframes heroFade {
    from { opacity: 0.25; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
    .hero-grid, .cards, .tribute-grid, .contact-grid, .volunteer-grid, .contact-layout, .cards-services, .cards-events, .cards-team-home, .footer-grid, .footer-upper-grid, .volunteer-page-grid, .ngo-page-hero, .ngo-about-grid, .ngo-contact-grid, .ngo-mission-band { grid-template-columns: 1fr; }
    .header-topline { display: none; }
    .header-inner {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.9rem 0;
        padding-right: 0;
    }
    .brand {
        flex: 1;
        min-width: 0;
    }
    .brand-mark {
        width: 100%;
        gap: 0.7rem;
    }
    .brand-mark img {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }
    .brand-copy {
        min-width: 0;
    }
    .brand-copy strong,
    .brand-copy small {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .section-head-row { align-items: flex-start; flex-direction: column; }
    .header-topline-inner { flex-direction: column; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: auto;
        right: auto;
        flex-shrink: 0;
        margin-left: auto;
        z-index: 1002;
    }
    .nav-shell {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 320px);
        height: 100vh;
        padding: 5.2rem 1rem 1.5rem;
        background: rgba(255, 253, 248, 0.98);
        box-shadow: -18px 0 40px rgba(16, 36, 62, 0.18);
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.28s ease, opacity 0.2s ease;
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .nav-shell.is-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    .main-navigation { width: 100%; }
    .submenu-toggle {
        position: absolute;
        right: 0;
        top: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(16, 36, 62, 0.08);
        border-radius: 12px;
        background: #fff;
    }
    .submenu-toggle span {
        position: absolute;
        width: 12px;
        height: 2px;
        background: var(--navy);
    }
    .submenu-toggle span:last-child { transform: rotate(90deg); }
    .submenu-open > .submenu-toggle span:last-child { transform: rotate(0deg); }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }
    .main-navigation li {
        width: 100%;
        position: relative;
        padding-right: 3rem;
        border-bottom: 1px solid rgba(16, 36, 62, 0.08);
    }
    .main-navigation a {
        display: flex;
        width: 100%;
        min-height: 52px;
        align-items: center;
        padding: 0.35rem 0;
    }
    .main-navigation .sub-menu {
        display: none;
        padding: 0 0 0.5rem 1rem;
    }
    .main-navigation .submenu-open > .sub-menu { display: block; }
    .header-donate-link {
        width: 100%;
        min-height: 52px;
        margin-top: 1rem;
    }
    body.menu-open { overflow: hidden; }
}
@media (max-width: 1100px) and (min-width: 901px) {
    .cards-team-home {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .team-home-card {
        padding-inline: 1rem;
    }
}
@media (max-width: 900px) and (min-width: 641px) {
    .cards-team-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 1120px) {
    .main-navigation ul {
        gap: 0.65rem;
    }
    .main-navigation a {
        font-size: 0.9rem;
    }
    .header-donate-link {
        padding: 0.8rem 1rem;
    }
}
@media (max-width: 640px) {
    .hero { padding-top: 0; }
    .hero-card, .surface { padding: 1.4rem; }
    .brand-copy { max-width: calc(100vw - 150px); }
    .brand-copy strong { font-size: 1rem; }
    .brand-copy small { font-size: 0.76rem; }
    .hero-shell {
        left: auto;
        right: auto;
        width: auto;
        margin-left: 0;
        margin-right: 0;
        padding: 0.85rem;
        border-radius: 0 0 28px 28px;
    }
    .volunteer-band { padding: 1rem; }
    .hero-slide {
        min-height: 42vh;
        border-radius: 24px;
        background-size: contain;
        background-position: center center;
        background-color: rgba(255, 255, 255, 0.96);
    }
    .hero-grid { min-height: auto; gap: 1.25rem; }
    .hero h1 { font-size: 2rem; }
    .button-link { width: 100%; }
    .footer-bottom-inner { flex-direction: column; }
    .whatsapp-chat-button {
        display: inline-flex !important;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        min-height: 54px;
        padding: 0.4rem 0.75rem 0.4rem 0.4rem;
        gap: 0.5rem;
        max-width: calc(100vw - 24px);
    }
    .whatsapp-chat-icon { width: 42px; height: 42px; }
    .whatsapp-chat-icon svg { width: 22px; height: 22px; }
    .whatsapp-chat-label { font-size: 0.86rem; }
    .ngo-page-shell { padding: 1rem 0 3rem; }
    .ngo-page-copy,
    .ngo-about-hero-card,
    .ngo-story-card,
    .ngo-values-card,
    .ngo-contact-info-card,
    .ngo-contact-form-card,
    .ngo-contact-summary,
    .ngo-mission-band { padding: 1.25rem; }
}
@media (max-width: 420px) {
    .hero-slide {
        min-height: 46vh;
        background-size: contain;
    }
}
@media (max-width: 420px) {
    .whatsapp-chat-button {
        width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .whatsapp-chat-label { display: none; }
}
