:root {
    --green: #00a86b;
    --green-dark: #06734f;
    --green-soft: #e9f8f1;
    --blue: #1769aa;
    --blue-dark: #12395a;
    --ink: #14202b;
    --muted: #64748b;
    --line: #dce7ef;
    --white: #ffffff;
    --off-white: #f7fbfa;
    --shadow: 0 24px 60px rgba(18, 57, 90, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@property --count {
    syntax: "<integer>";
    inherits: false;
    initial-value: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content,
    .page-hero .container,
    .section-intro {
        animation: slide-in-left 0.8s ease both;
    }

    .hero-panel,
    .contact-form,
    .volunteer-form,
    .payment-card {
        animation: slide-in-right 0.8s ease both;
    }

    .about-card,
    .contact-intro-card,
    .donate-info-card,
    .roles-panel,
    .impact-note,
    .cta-inner {
        animation: fade-up-soft 0.8s ease both;
    }

    .mission-grid article,
    .cert-grid div,
    .project-card,
    .event-card,
    .feature-grid article,
    .gallery-item,
    .why-grid article,
    .proof-grid article,
    .method-steps article,
    .impact-grid article {
        animation: fade-up-soft 0.75s ease both;
    }

    .mission-grid article:nth-child(2n),
    .cert-grid div:nth-child(2n),
    .project-card:nth-child(2n),
    .event-card:nth-child(2n),
    .feature-grid article:nth-child(2n),
    .gallery-item:nth-child(2n),
    .why-grid article:nth-child(2n),
    .proof-grid article:nth-child(2n),
    .method-steps article:nth-child(2n),
    .impact-grid article:nth-child(2n) {
        animation-delay: 0.1s;
    }

    .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.55s ease, transform 0.55s ease;
        transition-delay: var(--reveal-delay, 0ms);
        will-change: opacity, transform;
    }

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-up-soft {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .section-intro,
        .section-heading {
            animation: view-slide-left both;
            animation-timeline: view();
            animation-range: entry 0% cover 38%;
        }

        .about-card,
        .contact-form,
        .volunteer-form,
        .payment-card {
            animation: view-slide-right both;
            animation-timeline: view();
            animation-range: entry 0% cover 38%;
        }

        .mission-grid article,
        .cert-grid div,
        .project-card,
        .event-card,
        .feature-grid article,
        .gallery-item,
        .why-grid article,
        .proof-grid article,
        .method-steps article,
        .impact-grid article,
        .roles-panel,
        .impact-note,
        .cta-inner {
            animation: view-rise both;
            animation-timeline: view();
            animation-range: entry 0% cover 34%;
        }
    }
}

@keyframes view-slide-left {
    from {
        opacity: 0;
        transform: translateX(-70px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes view-slide-right {
    from {
        opacity: 0;
        transform: translateX(70px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes view-rise {
    from {
        opacity: 0;
        transform: translateY(48px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    body {
        scroll-snap-type: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    background: #f8fbfa;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 88px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(220, 231, 239, 0.8);
    backdrop-filter: blur(16px);
}

.topbar {
    background: linear-gradient(90deg, var(--blue-dark), #0d5744);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    font-weight: 700;
    overflow: hidden;
}

.topbar-inner {
    width: 100%;
    min-height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.topbar-track {
    display: inline-flex;
    align-items: center;
    gap: 140px;
    min-width: max-content;
    padding-left: 100%;
    white-space: nowrap;
    animation: topbar-scroll 22s linear infinite;
}

.topbar a {
    color: #b7f7d9;
}

@keyframes topbar-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.navbar {
    width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 0 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand img {
    width: 170px;
    max-width: none;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transform: scale(1.65);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    padding: 11px 15px;
    border-radius: 999px;
    color: #315064;
    font-size: 0.98rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: var(--green-dark);
    background: var(--green-soft);
}

.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(18, 57, 90, 0.08);
    cursor: pointer;
}

.nav-toggle-label span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue-dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #0b2f45;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center 44%;
    background-size: cover;
    background-repeat: no-repeat;
    animation: hero-bg-swap 18s infinite;
}

.hero::before {
    background-image: url("https://inamigosfoundation.org.in/public/storage/gallery/1743051382.jpg");
}

.hero::after {
    background-image: url("https://inamigosfoundation.org.in/public/storage/gallery/1738054473.jpg");
    animation-delay: 6s;
    opacity: 0;
}

@keyframes hero-bg-swap {
    0%,
    8% {
        opacity: 1;
        transform: scale(1);
    }

    27% {
        opacity: 1;
        transform: scale(1.05);
    }

    33%,
    94% {
        opacity: 0;
        transform: scale(1.06);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-bg-third {
    position: absolute;
    inset: 0;
    background: url("https://inamigosfoundation.org.in/public/storage/gallery/1738299164.jpg") center 44%/cover no-repeat;
    animation: hero-bg-swap 18s infinite 12s;
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 35, 54, 0.92) 0%, rgba(8, 35, 54, 0.78) 42%, rgba(8, 35, 54, 0.36) 100%),
        linear-gradient(180deg, rgba(8, 35, 54, 0.22) 0%, rgba(8, 35, 54, 0.08) 52%, rgba(8, 35, 54, 0.54) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 48px));
    margin-left: clamp(72px, 8vw, 152px);
    padding: 82px 0 198px;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow,
.cta .eyebrow {
    color: #8ff1c5;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 700px;
    margin-bottom: 22px;
    font-size: clamp(2.85rem, 5.15vw, 4.65rem);
    line-height: 0.98;
    font-weight: 800;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

h2 {
    margin-bottom: 20px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
}

h3 {
    color: var(--blue-dark);
    line-height: 1.2;
}

.hero-text {
    max-width: 580px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.02rem, 1.65vw, 1.18rem);
    font-weight: 600;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--green);
    box-shadow: 0 14px 28px rgba(0, 168, 107, 0.28);
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-light {
    color: var(--blue-dark);
    background: var(--white);
}

.btn-soft {
    color: var(--green-dark);
    background: var(--green-soft);
}

.btn-outline {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-badges span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-panel {
    position: absolute;
    z-index: 2;
    left: clamp(72px, 8vw, 152px);
    bottom: 18px;
    width: min(760px, calc(100% - 144px));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.hero-panel div {
    padding: 14px 20px;
}

.hero-panel div + div {
    border-left: 1px solid var(--line);
}

.trust-strip {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 68px 0 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.trust-grid div {
    padding: 26px 28px;
}

.trust-grid div + div {
    border-left: 1px solid var(--line);
}

.trust-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--blue-dark);
    font-size: 1.08rem;
}

.trust-grid span {
    color: var(--muted);
    font-size: 0.94rem;
}

.page-hero {
    position: relative;
    min-height: 360px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, rgba(18, 57, 90, 0.92), rgba(0, 103, 81, 0.86)), url("https://inamigosfoundation.org.in/public/storage/gallery/1738054473.jpg") center 45%/cover no-repeat;
}

.about-hero {
    background: linear-gradient(90deg, rgba(12, 41, 61, 0.88) 0%, rgba(0, 103, 81, 0.72) 55%, rgba(0, 103, 81, 0.52) 100%), url("https://inamigosfoundation.org.in/public/storage/gallery/1738238755.JPG") center 42%/cover no-repeat;
}

.why-hero {
    background: linear-gradient(90deg, rgba(12, 41, 61, 0.9) 0%, rgba(0, 103, 81, 0.74) 58%, rgba(0, 103, 81, 0.52) 100%), url("https://inamigosfoundation.org.in/public/storage/gallery/1743051382.jpg") center 45%/cover no-repeat;
}

.page-hero .container {
    padding: 76px 0;
}

.page-hero h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.page-hero p:not(.eyebrow) {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
}

.page-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.page-link-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.hero-panel span,
.founder-card span,
.mission-grid span,
.contact-card span,
.event-card span,
.project-body span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel strong,
.founder-card strong {
    color: var(--blue-dark);
    font-size: 1rem;
}

.hero-panel span {
    margin-bottom: 4px;
    font-size: 0.68rem;
}

.hero-panel strong {
    font-size: 0.92rem;
}

.two-column,
.impact-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 72px;
    align-items: center;
}

.section-intro h2,
.section-heading h2 {
    max-width: 760px;
}

.contact .section-intro {
    max-width: 640px;
}

.events .section-heading h2,
.contact .section-intro h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.section-intro p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.contact-card p,
.contact-card a {
    color: var(--muted);
}

.about-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.about-list span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-dark);
    font-weight: 800;
}

.about-list span::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px var(--green-soft);
}

.about-card {
    position: relative;
}

.about-official {
    background: linear-gradient(180deg, #ffffff 0%, #f3faf7 100%);
}

.about-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
    gap: 66px;
    align-items: center;
}

.about-copy {
    max-width: 760px;
}

.about-copy p:not(.eyebrow),
.about-belief p,
.credential-grid p,
.initiative-grid p {
    color: var(--muted);
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.about-card img {
    width: 100%;
    aspect-ratio: 4 / 3.3;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.founder-card {
    position: absolute;
    left: 28px;
    bottom: 28px;
    width: min(310px, calc(100% - 56px));
    padding: 22px;
    background: var(--white);
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 58px;
}

.mission-grid article,
.feature-grid article,
.impact-grid article,
.stats-grid article,
.cert-grid div,
.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 38px rgba(18, 57, 90, 0.08);
}

.mission-grid article {
    padding: 32px;
}

.certifications {
    margin-top: 72px;
}

.credentials-panel,
.initiative-impact,
.about-belief {
    margin-top: 78px;
}

.credential-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.credential-grid article,
.initiative-grid article,
.about-belief article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 38px rgba(18, 57, 90, 0.08);
}

.credential-grid article {
    min-height: 238px;
    padding: 26px;
}

.credential-grid span,
.initiative-grid span,
.about-belief article span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credential-grid h3,
.initiative-grid h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.initiative-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.initiative-grid article {
    min-height: 260px;
    padding: 30px;
    border-top: 5px solid var(--green);
}

.about-belief {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr);
    gap: 34px;
    align-items: stretch;
    padding: 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(18, 57, 90, 0.06), rgba(0, 168, 107, 0.12));
}

.about-belief h2 {
    max-width: 820px;
}

.about-belief article {
    padding: 30px;
}

.about-belief article .btn {
    margin-top: 12px;
}

.section-heading {
    max-width: none;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.cert-grid div {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: var(--blue-dark);
    text-align: center;
    font-weight: 800;
}

.why-inamigos {
    background: linear-gradient(180deg, #ffffff 0%, #f3faf7 100%);
}

.why-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1fr);
    gap: 58px;
    align-items: start;
}

.why-layout .section-intro {
    position: sticky;
    top: 132px;
}

.why-grid {
    display: grid;
    gap: 16px;
}

.why-grid article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 4px 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(18, 57, 90, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.why-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 107, 0.38);
    box-shadow: 0 24px 48px rgba(18, 57, 90, 0.13);
}

.why-grid span {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--blue));
    box-shadow: 0 12px 24px rgba(0, 121, 82, 0.2);
    font-size: 0.86rem;
    font-weight: 800;
}

.why-grid h3 {
    margin-bottom: 4px;
    font-size: 1.12rem;
}

.why-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.why-proof {
    background: #ffffff;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.proof-grid article {
    min-height: 210px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
    box-shadow: 0 14px 34px rgba(18, 57, 90, 0.08);
}

.proof-grid strong {
    display: block;
    margin-bottom: 14px;
    color: var(--blue-dark);
    font-size: 1.25rem;
}

.proof-grid span {
    color: var(--muted);
}

.why-model {
    background: linear-gradient(180deg, #f6fbfa 0%, #ffffff 100%);
}

.stats {
    padding: 58px 0;
    background: linear-gradient(135deg, var(--blue-dark), #135d81);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stats-grid article {
    padding: 30px 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.stats-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
}

.count-up {
    --count: 0;
    animation: count-up 1.6s ease-out forwards;
    counter-reset: impact-number var(--count);
}

.count-up::after {
    content: counter(impact-number);
}

.count-up.count-plus::after {
    content: counter(impact-number) "+";
}

.count-up span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@keyframes count-up {
    to {
        --count: var(--target);
    }
}

.stats-grid span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.projects,
.join {
    background: var(--off-white);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 30px;
    margin-top: 48px;
}

.project-card,
.event-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 16px 42px rgba(18, 57, 90, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover,
.event-card:hover,
.feature-grid article:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(18, 57, 90, 0.16);
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 1.15s ease;
}

.project-card.tall img {
    height: 300px;
}

.project-body {
    padding: 34px;
}

.project-card:hover img,
.event-card:hover img,
.about-card:hover img {
    transform: scale(1.07);
}

.project-body span {
    color: var(--green-dark);
}

.project-body h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.project-more {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.project-more summary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 12px 24px rgba(0, 168, 107, 0.2);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-more summary:hover {
    transform: translateY(-2px);
    background: var(--green-dark);
}

.project-more summary::marker,
.project-more summary::-webkit-details-marker {
    display: none;
}

.project-more[open] summary {
    margin-bottom: 16px;
}

.project-more p {
    margin-bottom: 0;
}

.project-more > p,
.project-more > ul {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease, margin 0.35s ease;
}

.project-more[open] > p,
.project-more[open] > ul {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
}

.project-more ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-more[open] ul {
    margin-top: 16px;
}

.project-more li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    font-size: 0.96rem;
}

.project-more li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.project-body p,
.event-card p,
.feature-grid p,
.mission-grid p,
.method-steps p,
.roles-panel p,
.footer p {
    color: var(--muted);
}

.method {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
}

.method-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1fr);
    gap: 72px;
    align-items: center;
}

.method .section-intro {
    max-width: 560px;
}

.method .section-intro h2 {
    font-size: clamp(2.15rem, 3.4vw, 3.65rem);
    line-height: 1.08;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.method-steps article {
    min-height: 198px;
    padding: 24px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 18px 42px rgba(18, 57, 90, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.method-steps article:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 168, 107, 0.38);
    box-shadow: 0 26px 54px rgba(18, 57, 90, 0.14);
}

.method-steps span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--blue));
    box-shadow: 0 10px 22px rgba(0, 121, 82, 0.2);
    font-weight: 800;
}

.method-steps h3 {
    margin-bottom: 12px;
    font-size: 1.14rem;
}

.impact {
    background: linear-gradient(180deg, #ffffff 0%, #eff9f4 100%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.impact-grid article {
    padding: 30px;
}

.impact-grid strong {
    display: block;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: 2.2rem;
    line-height: 1;
}

.impact-grid span {
    color: var(--blue-dark);
    font-weight: 800;
}

.impact-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 42px;
    padding: 32px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-dark), var(--green-dark));
    box-shadow: var(--shadow);
}

.impact-note h3 {
    margin-bottom: 8px;
    color: var(--white);
}

.impact-note p {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.gallery {
    background: #ffffff;
}

.gallery-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 42px;
}

.gallery-header .section-heading {
    max-width: 760px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: min(1280px, calc(100% - 48px));
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    background: var(--off-white);
    box-shadow: 0 14px 34px rgba(18, 57, 90, 0.08);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 57, 90, 0), rgba(18, 57, 90, 0.28));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.1s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 38px;
}

.event-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 1.1s ease;
}

.event-card div {
    padding: 24px;
}

.event-card span {
    color: var(--green-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 42px;
}

.feature-grid article {
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-grid article::before {
    content: "";
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.roles-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 44px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.roles-panel h3 {
    margin-bottom: 10px;
    font-size: 1.65rem;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-tags span {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--green-soft);
    font-weight: 800;
}

.cta {
    padding: 78px 0;
    color: var(--white);
    background: linear-gradient(135deg, rgba(0, 103, 81, 0.94), rgba(18, 57, 90, 0.94)), url("https://inamigosfoundation.org.in/public/storage/gallery/1738299164.jpg") center/cover no-repeat;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.cta h2 {
    color: var(--white);
}

.cta p {
    max-width: 610px;
    color: rgba(255, 255, 255, 0.82);
}

.contact {
    background: linear-gradient(180deg, #ffffff 0%, #f3faf7 100%);
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-intro-card {
    min-height: 520px;
    padding: 54px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    background: linear-gradient(135deg, rgba(18, 57, 90, 0.94), rgba(0, 121, 82, 0.88)), url("https://inamigosfoundation.org.in/public/storage/gallery/1738299164.jpg") center/cover no-repeat;
}

.contact-intro-card h2 {
    max-width: 620px;
    color: var(--white);
    font-size: clamp(2.35rem, 4vw, 4.1rem);
}

.contact-intro-card p:not(.eyebrow) {
    max-width: 560px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.contact-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.contact-highlights span {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.84rem;
    font-weight: 800;
}

.contact-form {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 54px;
    background: #ffffff;
}

.contact-form h3 {
    margin-bottom: 8px;
    font-size: 1.85rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    color: var(--ink);
    background: #fafdfe;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.12);
}

.contact-form button {
    margin-top: 4px;
    border: 0;
    cursor: pointer;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px 18px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.contact-details div {
    display: grid;
    gap: 5px;
}

.contact-details div:first-child {
    grid-column: auto;
}

.contact-details span {
    color: #8ff1c5;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-details p,
.contact-details a {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contact-details a:hover {
    color: #ffffff;
}

.volunteer-hero {
    background: linear-gradient(135deg, rgba(18, 57, 90, 0.94), rgba(0, 121, 82, 0.86)), url("https://inamigosfoundation.org.in/public/storage/gallery/1738054473.jpg") center 45%/cover no-repeat;
}

.volunteer-section {
    background: linear-gradient(180deg, #ffffff 0%, #f3faf7 100%);
}

.volunteer-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1fr);
    gap: 32px;
    align-items: start;
}

.volunteer-info,
.volunteer-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.volunteer-info {
    position: sticky;
    top: 132px;
    padding: 38px;
}

.volunteer-info h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.volunteer-info p:not(.eyebrow) {
    color: var(--muted);
}

.volunteer-points {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.volunteer-points span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-dark);
    font-weight: 800;
}

.volunteer-points span::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px var(--green-soft);
}

.volunteer-mini-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.volunteer-mini-steps div {
    min-height: 74px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fafdfe;
}

.volunteer-mini-steps strong {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--blue));
    font-size: 0.76rem;
}

.volunteer-mini-steps span {
    display: block;
    color: var(--blue-dark);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
}

.volunteer-form {
    padding: 38px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.volunteer-form label {
    display: grid;
    gap: 8px;
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 800;
}

.volunteer-form label.full {
    grid-column: 1 / -1;
}

.volunteer-form input,
.volunteer-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 16px;
    color: var(--ink);
    background: #fafdfe;
    font: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.volunteer-form input[type="file"] {
    padding: 12px;
    background: var(--white);
}

.volunteer-form textarea {
    min-height: 118px;
    resize: vertical;
}

.volunteer-form input:focus,
.volunteer-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.12);
}

.volunteer-form button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    cursor: pointer;
}

.donate-hero {
    background: linear-gradient(135deg, rgba(18, 57, 90, 0.92), rgba(0, 130, 62, 0.86)), url("https://inamigosfoundation.org.in/public/storage/gallery/1743051438.jpg") center/cover no-repeat;
}

.donate-section {
    background: linear-gradient(180deg, #ffffff 0%, #f3faf7 100%);
}

.donate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
    gap: 32px;
    align-items: start;
}

.donate-info-card,
.payment-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.donate-info-card {
    padding: 44px;
}

.donate-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 42px;
}

.donate-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 32px rgba(18, 57, 90, 0.16);
}

.donate-brand h2 {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.donate-info-card h3 {
    margin-bottom: 22px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.donate-info-card p {
    color: var(--blue-dark);
    font-weight: 700;
}

.donate-info-card ul {
    display: grid;
    gap: 16px;
    margin: 28px 0;
    padding-left: 24px;
    color: var(--blue-dark);
}

.donate-info-card li {
    padding-left: 8px;
}

.donate-contact {
    display: grid;
    gap: 10px;
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.donate-contact strong {
    color: var(--blue-dark);
}

.donate-contact a {
    color: var(--blue-dark);
    font-weight: 700;
}

.donate-contact a:hover {
    color: var(--green-dark);
}

.payment-card {
    position: sticky;
    top: 132px;
    padding: 44px;
}

.payment-card h2 {
    margin-bottom: 30px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.donate-action-card p {
    color: var(--muted);
}

.donation-impact-list {
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.donation-impact-list span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-dark);
    font-weight: 800;
}

.donation-impact-list span::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px var(--green-soft);
}

.donate-action-card .btn {
    width: 100%;
    margin-top: 8px;
}

.payment-note {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.payment-note strong {
    color: var(--blue-dark);
}

.payment-note p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer {
    color: rgba(255, 255, 255, 0.78);
    background: #14202b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr 0.7fr;
    gap: 34px;
    padding: 64px 0 44px;
}

.footer-grid > div:first-child {
    text-align: left;
}

.footer-grid > div:first-child img {
    width: 134px;
    height: 48px;
    object-fit: contain;
    margin: 0 0 18px;
    padding: 9px 28px;
    border-radius: var(--radius);
    background: var(--white);
}

.footer h3 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: 1rem;
}

.footer a {
    display: block;
    margin: 9px 0;
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
}

.footer a:hover {
    color: #8ff1c5;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    font-weight: 800;
}

.social-links img {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    filter: invert(1);
    opacity: 0.95;
}

.social-links a:hover {
    color: var(--white);
    background: var(--green);
}

.footer-bottom {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--blue-dark));
    box-shadow: 0 16px 34px rgba(18, 57, 90, 0.26);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(18, 57, 90, 0.34);
}

@media (max-width: 980px) {
    .topbar-inner {
        min-height: 36px;
    }

    .topbar-track {
        gap: 80px;
        padding-left: 100%;
        white-space: nowrap;
        animation-duration: 18s;
    }

    .navbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 16px 24px;
        gap: 12px;
    }

    .nav-toggle-label {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
    }

    .nav-toggle:checked ~ .nav-links {
        max-height: 420px;
        padding-top: 12px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fafdfe;
    }

    .hero {
        min-height: 760px;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(12, 41, 61, 0.9), rgba(12, 41, 61, 0.52));
    }

    .hero-panel,
    .trust-grid,
    .two-column,
    .about-feature,
    .about-belief,
    .why-layout,
    .impact-layout,
    .contact-layout,
    .method-layout,
    .roles-panel,
    .contact-shell,
    .volunteer-layout,
    .donate-layout,
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .hero-panel div + div,
    .trust-grid div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .cert-grid,
    .credential-grid,
    .stats-grid,
    .proof-grid,
    .project-grid,
    .event-grid,
    .gallery-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-inner {
        display: grid;
    }

    .impact-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-intro-card,
    .contact-form {
        padding: 38px;
    }

    .contact-intro-card {
        min-height: 420px;
    }

    .volunteer-info {
        position: static;
    }

    .why-layout .section-intro {
        position: static;
    }

    .payment-card {
        position: static;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .navbar {
        width: 100%;
        padding: 14px;
    }

    .section {
        padding: 72px 0;
    }

    .brand {
        width: 52px;
        height: 52px;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .nav-links a {
        padding: 10px 12px;
        font-size: 0.86rem;
    }

    .hero {
        min-height: 980px;
        align-items: start;
    }

    .hero-content {
        width: calc(100% - 28px);
        margin-left: 14px;
        padding-top: 38px;
        padding-bottom: 430px;
    }

    h1 {
        font-size: clamp(2.35rem, 13vw, 3.45rem);
        line-height: 1.03;
    }

    .hero-text {
        margin-bottom: 24px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-badges {
        margin-top: 20px;
    }

    .hero-badges span {
        min-height: 32px;
        padding: 0 11px;
        font-size: 0.74rem;
    }

    .hero-panel {
        left: 14px;
        right: 14px;
        width: auto;
        transform: none;
        grid-template-columns: 1fr;
        bottom: 24px;
    }

    .hero-panel div {
        padding: 20px 26px;
    }

    .hero-panel div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .trust-strip {
        margin-top: 0;
    }

    .trust-grid div,
    .impact-note,
    .roles-panel {
        padding: 38px;
    }
}

@media (max-width: 680px) {
    .contact-intro-card,
    .contact-form {
        padding: 24px;
    }

    .volunteer-info,
    .volunteer-form,
    .donate-info-card,
    .payment-card {
        padding: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .donate-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-intro-card {
        min-height: 360px;
    }

    .volunteer-mini-steps {
        grid-template-columns: 1fr;
    }

    .mission-grid,
    .cert-grid,
    .credential-grid,
    .initiative-grid,
    .stats-grid,
    .proof-grid,
    .project-grid,
    .impact-grid,
    .event-grid,
    .gallery-grid,
    .feature-grid,
    .method-steps,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .why-grid article {
        grid-template-columns: 1fr;
    }

    .why-grid span {
        grid-row: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .founder-card {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        margin-top: 16px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn {
        width: 100%;
        min-height: 58px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .about-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-belief {
        padding: 24px;
    }
}
