/* =============================================
   Truthful Trust – Charity Theme Overlay
   Forest green · white · golden yellow
   ============================================= */

:root {
    --green: #1a5c3a;
    --green-dark: #0e3d26;
    --green-light: #247a4d;
    --green-soft: #e8f3ec;
    --yellow: #f5c518;
    --yellow-light: #ffd84d;
    --yellow-dark: #d4a800;

    --blue: var(--green);
    --blue-dark: var(--green-dark);
    --blue-light: var(--green-light);
    --gold: var(--yellow);
    --gold-light: var(--yellow-light);
    --light-gray: #f4f7f4;
    --light-gray-2: #e8efe9;
    --border: #d5e3d9;
    --shadow: 0 4px 24px rgba(26, 92, 58, 0.08);
    --shadow-md: 0 12px 36px rgba(26, 92, 58, 0.12);
    --shadow-lg: 0 24px 56px rgba(26, 92, 58, 0.16);
    --shadow-gold: 0 8px 28px rgba(245, 197, 24, 0.35);
    --font-sans: "DM Sans", "Segoe UI", Tahoma, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-display: "Playfair Display", Georgia, serif;
}

body {
    font-family: var(--font-sans);
    color: #2a3d32;
}

html[lang="ta"] body {
    font-family: "Nirmala UI", "Latha", "Tamil MN", var(--font-sans);
}

a {
    color: var(--green);
}

a:hover {
    color: var(--yellow-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--green-dark);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.12;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    line-height: 1.2;
}

p {
    color: #5a6b60;
}

/* --- Torn paper edges --- */
.torn-edge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 48px;
    max-height: 48px;
    min-height: 48px;
    background-repeat: repeat-x;
    background-size: 120px 48px;
    background-position: left bottom;
    pointer-events: none;
    z-index: 3;
}

.torn-edge-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Cpath fill='%23ffffff' d='M0,0 L0,18 Q30,8 60,20 T120,15 L120,48 L0,48 Z'/%3E%3C/svg%3E");
}

.torn-edge-footer {
    display: none;
}

.section-torn-top {
    padding-top: 6rem;
}

.section-torn-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    max-height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Cpath fill='%23f4f7f4' d='M0,48 L0,30 Q30,40 60,28 T120,33 L120,0 L0,0 Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 48px;
    background-position: left top;
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--yellow-dark);
    margin-bottom: 0.65rem;
}

.section-label-center {
    display: block;
    text-align: center;
}

.section-title h2::after {
    background: linear-gradient(90deg, var(--yellow), var(--yellow-light));
    width: 64px;
    height: 5px;
}

/* --- Header --- */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(26, 92, 58, 0.06);
}

.site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(26, 92, 58, 0.1);
}

.trust-name {
    font-family: var(--font-display);
    color: var(--green-dark);
    font-size: 1.2rem;
}

.logo-img {
    box-shadow: 0 0 0 3px var(--yellow), 0 4px 12px rgba(26, 92, 58, 0.15);
}

.main-nav a:not(.nav-cta-btn):hover,
.main-nav a:not(.nav-cta-btn).active {
    color: var(--green);
    background: var(--green-soft);
}

.main-nav .nav-cta-btn {
    background: linear-gradient(135deg, var(--yellow-light) 0%, var(--yellow) 100%);
    color: var(--green-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    box-shadow: var(--shadow-gold);
}

.main-nav .nav-cta-btn:hover {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    color: var(--green-dark);
}

.main-nav .nav-cta-btn.active {
    background: var(--yellow-dark);
    color: var(--green-dark);
    box-shadow: inset 0 0 0 2px var(--green-dark);
}

.nav-toggle-label span {
    background: var(--green);
}

/* --- Home: transparent header over hero --- */
.page-home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .site-header .trust-name {
    color: var(--white);
}

.page-home .site-header .trust-sub {
    color: rgba(255, 255, 255, 0.82);
}

.page-home .site-header .main-nav a:not(.nav-cta-btn) {
    color: rgba(255, 255, 255, 0.92);
}

.page-home .site-header .main-nav a:not(.nav-cta-btn):hover,
.page-home .site-header .main-nav a:not(.nav-cta-btn).active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.page-home .site-header .lang-link {
    color: rgba(255, 255, 255, 0.85);
}

.page-home .site-header .lang-link:hover,
.page-home .site-header .lang-link.active {
    color: var(--yellow-light);
}

.page-home .site-header .lang-divider {
    color: rgba(255, 255, 255, 0.35);
}

.page-home .site-header .nav-toggle-label span {
    background: var(--white);
}

.page-home .site-header.is-scrolled {
    position: sticky;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(26, 92, 58, 0.1);
    border-bottom: none;
}

.page-home .site-header.is-scrolled .trust-name {
    color: var(--green-dark);
}

.page-home .site-header.is-scrolled .trust-sub {
    color: var(--muted);
}

.page-home .site-header.is-scrolled .main-nav a:not(.nav-cta-btn) {
    color: var(--dark-text);
}

.page-home .site-header.is-scrolled .main-nav a:not(.nav-cta-btn):hover,
.page-home .site-header.is-scrolled .main-nav a:not(.nav-cta-btn).active {
    color: var(--green);
    background: var(--green-soft);
}

.page-home .site-header.is-scrolled .lang-link {
    color: var(--muted);
}

.page-home .site-header.is-scrolled .nav-toggle-label span {
    background: var(--green);
}

.page-home main {
    margin-top: 0;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--yellow-light) 0%, var(--yellow) 100%);
    color: var(--green-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.88rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    color: var(--green-dark);
}

.btn-green,
.btn-blue {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.btn-green:hover,
.btn-blue:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}

.btn-gold {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--green-dark);
}

.btn-gold:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    color: var(--green-dark);
}

.btn-outline-dark {
    color: var(--green);
    border-color: var(--green);
}

.btn-outline-dark:hover {
    background: var(--green);
    color: var(--white);
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    padding: 0.75rem 1.75rem;
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
}

.btn-ghost-sm {
    display: inline-block;
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.15rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-ghost-sm:hover {
    background: var(--white);
    color: var(--green-dark);
}

/* --- Hero: full background image --- */
.hero-fullbg {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 92vh, 820px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-fullbg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
}

.hero-fullbg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.25) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-fullbg-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: calc(var(--header-height) + 3rem) 0 5rem;
}

.hero-fullbg-centered {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-fullbg-centered .hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--yellow-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
}

.hero-fullbg-centered h1 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-fullbg-centered .hero-lead {
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.hero-fullbg-centered .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.hero-fullbg-centered .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.hero-fullbg-centered .btn-outline:hover {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
}

.hero-fullbg-centered .btn-green {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* --- Hero strip: 3 colored cards --- */
.hero-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.hero-strip-card {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-strip-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-strip-yellow .hero-strip-overlay {
    background: linear-gradient(180deg, rgba(212, 160, 30, 0.55) 0%, rgba(180, 130, 20, 0.82) 100%);
}

.hero-strip-dark .hero-strip-overlay {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.55) 0%, rgba(10, 10, 10, 0.82) 100%);
}

.hero-strip-green .hero-strip-overlay {
    background: linear-gradient(180deg, rgba(36, 122, 77, 0.55) 0%, rgba(14, 61, 38, 0.88) 100%);
}

.hero-strip-inner {
    position: relative;
    z-index: 2;
    padding: 2rem 1.75rem;
    width: 100%;
}

.hero-strip-inner p {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 500;
    line-height: 1.55;
    margin: 0 0 1.15rem;
    max-width: 320px;
}

/* --- About home section --- */
.section-about-home {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.about-home-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
}

.about-home-media {
    position: relative;
}

.about-photo-wrap {
    position: relative;
    padding: 0 0 1.5rem 1.5rem;
}

.about-photo-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--yellow), var(--green));
    border-radius: var(--radius-pill);
}

.about-photo-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(14, 61, 38, 0.15);
    border: 4px solid var(--white);
    line-height: 0;
}

.about-photo-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.about-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--yellow);
    color: var(--green-dark);
    border-radius: 14px;
    padding: 1rem 1.35rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4);
    min-width: 120px;
    border: 3px solid var(--white);
}

.about-badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.35rem;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.about-home-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 5px solid var(--green);
}

.about-home-content h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.about-home-content p {
    font-size: 0.98rem;
    line-height: 1.75;
}

.about-home-content .btn-green {
    margin-top: 0.25rem;
}

.charity-checklist {
    list-style: none;
    padding: 1rem 0 1.25rem;
    margin: 0.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.charity-checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: #4a5c52;
    font-weight: 500;
    font-size: 0.95rem;
}

.charity-checklist li:last-child {
    margin-bottom: 0;
}

.charity-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.35rem;
    height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--green-dark);
    background: var(--yellow);
    border-radius: 50%;
}

/* --- Charity cards --- */
.charity-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    padding: 2rem 1.75rem;
}

.charity-card p {
    line-height: 1.7;
    font-size: 0.95rem;
}

.charity-card::before {
    background: linear-gradient(90deg, var(--green), var(--yellow));
}

.card-featured {
    background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-featured h3,
.card-featured p {
    color: var(--white);
}

.card-featured p {
    color: rgba(255, 255, 255, 0.88);
}

.card-featured .card-icon {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* --- Why Choose Us – horizontal row + animations --- */
.section-why {
    overflow: hidden;
}

.why-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.why-cards-row .charity-card {
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(48px) scale(0.92);
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow var(--transition),
        border-color var(--transition);
}

.why-cards-row .charity-card.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.why-cards-row .charity-card:nth-child(1).visible { transition-delay: 0s; }
.why-cards-row .charity-card:nth-child(2).visible { transition-delay: 0.1s; }
.why-cards-row .charity-card:nth-child(3).visible { transition-delay: 0.2s; }
.why-cards-row .charity-card:nth-child(4).visible { transition-delay: 0.3s; }

.why-cards-row .charity-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-cards-row .charity-card.visible::before,
.why-cards-row .charity-card:hover::before {
    transform: scaleX(1);
}

.why-cards-row .charity-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 92, 58, 0.2);
}

.why-cards-row .charity-card .card-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-12deg);
    transition:
        transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.45s ease;
}

.why-cards-row .charity-card.visible .card-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.why-cards-row .charity-card:nth-child(1).visible .card-icon { transition-delay: 0.15s; }
.why-cards-row .charity-card:nth-child(2).visible .card-icon { transition-delay: 0.25s; }
.why-cards-row .charity-card:nth-child(3).visible .card-icon { transition-delay: 0.35s; }
.why-cards-row .charity-card:nth-child(4).visible .card-icon { transition-delay: 0.45s; }

.why-cards-row .charity-card:hover .card-icon {
    transform: scale(1.12) rotate(6deg);
    animation: whyIconBounce 0.6s ease;
}

.why-cards-row .card-featured {
    transform: translateY(-10px) scale(1);
    animation: whyFeaturedGlow 3s ease-in-out infinite;
}

.why-cards-row .card-featured.reveal.visible {
    transform: translateY(-10px) scale(1);
}

.why-cards-row .card-featured:hover {
    transform: translateY(-16px) scale(1.03);
    animation: none;
}

@keyframes whyIconBounce {
    0%, 100% { transform: scale(1.12) rotate(6deg); }
    40%      { transform: scale(1.2) rotate(-4deg); }
    70%      { transform: scale(1.1) rotate(4deg); }
}

@keyframes whyFeaturedGlow {
    0%, 100% { box-shadow: var(--shadow-lg); }
    50%      { box-shadow: 0 20px 48px rgba(26, 92, 58, 0.28), 0 0 0 1px rgba(245, 197, 24, 0.15); }
}

.section-why .section-title h2::after {
    animation: whyTitleLine 2.5s ease-in-out infinite;
}

@keyframes whyTitleLine {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50%      { transform: scaleX(1.15); opacity: 0.85; }
}

/* --- Service cards v2 (What We Do) --- */
.section-services {
    position: relative;
    background:
        linear-gradient(180deg, #faf8f2 0%, #f4f7f4 100%);
    overflow: hidden;
}

.section-services::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(26, 92, 58, 0.03) 3px,
        rgba(26, 92, 58, 0.03) 4px
    );
    pointer-events: none;
}

.section-label-pill {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.section-label-pill-sm {
    font-size: 0.88rem;
    padding: 0.35rem 1rem;
}

.section-label-pill-sm .pill-heart {
    color: var(--yellow-dark);
    margin-right: 0.15rem;
}

.services-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.services-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.18;
}

.services-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.services-deco-hands-left {
    top: 2rem;
    left: 2%;
    width: clamp(70px, 8vw, 110px);
}

.services-deco-hands-right {
    bottom: 5rem;
    right: 2%;
    width: clamp(60px, 7vw, 90px);
}

.services-deco svg {
    width: 100%;
    height: auto;
    display: block;
}

.service-cards-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.service-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border-radius: 22px;
    padding: 2rem 1.5rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card-v2-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-soft);
    color: var(--green);
    margin-bottom: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(26, 92, 58, 0.08);
}

.service-card-v2-icon svg {
    width: 32px;
    height: 32px;
}

.service-card-v2 h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.service-card-v2 > p {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-card-v2-img {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
    margin-top: auto;
}

.service-card-v2-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-card-v2-foot-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--yellow);
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.35);
}

.service-card-v2-featured {
    background: linear-gradient(165deg, var(--green-dark) 0%, var(--green) 100%);
    border-color: transparent;
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-card-v2-featured:hover {
    transform: translateY(-16px);
}

.service-card-v2-featured h3,
.service-card-v2-featured > p {
    color: rgba(255, 255, 255, 0.96);
}

.service-card-v2-featured .service-card-v2-icon {
    background: rgba(255, 255, 255, 0.12);
    color: var(--yellow-light);
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--yellow-light) 0%, var(--yellow) 100%);
    color: var(--green-dark);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-gold);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 197, 24, 0.45);
    color: var(--green-dark);
}

.services-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.services-dots span {
    width: 28px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: rgba(26, 92, 58, 0.2);
}

.services-dots span.is-active {
    background: var(--yellow);
}

/* --- Cause banner v2 --- */
.section-cause-v2 {
    background: var(--light-gray);
}

.cause-v2-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cause-v2-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    max-width: 640px;
    line-height: 1.2;
}

.cause-v2-nav {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
}

.cause-v2-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.cause-v2-nav-btn:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: var(--shadow);
}

.cause-v2-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cause-v2-nav-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--green);
    border-right: 2px solid var(--green);
    transform: translate(-35%, -50%) rotate(-135deg);
}

.cause-v2-nav-btn-next {
    background: var(--yellow);
    border-color: var(--yellow);
}

.cause-v2-nav-btn-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.cause-v2-slider-wrap {
    overflow: hidden;
}

.cause-v2-slider {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.cause-v2-slider .cause-v2-card {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.cause-v2-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    min-height: 420px;
}

.cause-v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.cause-v2-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-dark);
    background: var(--white);
}

.cause-v2-tag-yellow {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--green-dark);
}

.cause-v2-content h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    margin-bottom: 0.75rem;
}

.cause-v2-content > p {
    margin-bottom: 0.5rem;
}

.cause-progress-torn {
    position: relative;
    margin: 2rem 0 1.5rem;
    padding: 0 0.25rem;
}

.cause-progress-torn::before,
.cause-progress-torn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
    background-repeat: repeat-x;
    background-size: 120px 14px;
    pointer-events: none;
}

.cause-progress-torn::before {
    top: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath fill='%230e3d26' d='M0,14 L0,6 Q30,14 60,4 T120,10 L120,14 Z'/%3E%3C/svg%3E");
}

.cause-progress-torn::after {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath fill='%230e3d26' d='M0,0 L0,8 Q30,0 60,10 T120,4 L120,0 Z'/%3E%3C/svg%3E");
}

.cause-progress-torn-inner {
    background: var(--green-dark);
    padding: 1.35rem 1.25rem 1.15rem;
    color: rgba(255, 255, 255, 0.92);
}

.cause-progress-torn-top,
.cause-progress-torn-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.cause-progress-torn-top strong {
    color: var(--yellow-light);
    font-size: 1rem;
}

.cause-progress-bar-v2 {
    height: 8px;
    margin: 0.85rem 0 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.cause-progress-bar-v2 span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--yellow-light), var(--yellow));
    border-radius: var(--radius-pill);
}

.cause-progress-torn-bottom span:last-child {
    color: rgba(255, 255, 255, 0.75);
}

.cause-v2-media {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    justify-self: center;
    align-self: center;
    padding: 14px 14px 0 0;
}

.cause-v2-media-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 72%;
    height: 78%;
    background: var(--green);
    border-radius: 14px;
    z-index: 0;
}

.cause-v2-media-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    line-height: 0;
    background: var(--light-gray);
}

.cause-v2-media-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center center;
    display: block;
    vertical-align: middle;
}

/* Legacy service cards (other pages) --- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.06);
}

.service-card-body {
    padding: 1.5rem;
}

.service-card-body h3 {
    margin-bottom: 0.5rem;
}

.service-card-body p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

.service-card-featured {
    background: var(--green);
    border-color: var(--green);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.service-card-featured .service-card-body h3,
.service-card-featured .service-card-body p {
    color: rgba(255, 255, 255, 0.95);
}

.service-card-featured .btn-primary {
    margin-top: 1rem;
}

/* --- Cause banner --- */
.section-cause {
    background: var(--green-soft);
}

.cause-banner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.cause-progress {
    margin: 1.5rem 0;
}

.cause-progress-bar {
    height: 10px;
    background: var(--light-gray-2);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.cause-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    border-radius: var(--radius-pill);
}

.cause-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #5a6b60;
}

.cause-banner-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cause-banner-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* --- Page banners (inner pages) --- */
.page-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-light) 100%);
    padding-bottom: 5rem;
}

.page-banner::before {
    background: radial-gradient(circle, rgba(245, 197, 24, 0.18) 0%, transparent 70%);
}

.page-banner::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    max-height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Cpath fill='%23ffffff' d='M0,0 L0,18 Q30,8 60,20 T120,15 L120,48 L0,48 Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 48px;
    background-position: left bottom;
}

.page-banner h1 {
    font-family: var(--font-display);
}

/* --- Cards & facility --- */
.card {
    border-radius: var(--radius-lg);
}

.card-icon {
    background: var(--green-soft);
}

.card:hover {
    border-color: rgba(26, 92, 58, 0.2);
}

.facility-card {
    border-radius: var(--radius-lg);
}

.value-item {
    border-left-color: var(--yellow);
}

.value-item:hover {
    border-left-color: var(--yellow-light);
}

.commitment-list li::before {
    color: var(--yellow-dark);
}

.tagline-highlight {
    color: var(--green);
    font-family: var(--font-display);
}

/* --- Gallery --- */
.gallery-tile {
    border-radius: var(--radius-lg);
}

.gallery-tile::after {
    background: linear-gradient(180deg, transparent 40%, rgba(14, 61, 38, 0.8) 100%);
}

/* --- CTA section --- */
.cta-involved {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
    position: relative;
    padding-bottom: 4rem;
}

.cta-involved-pattern::before {
    background-image:
        radial-gradient(circle at 15% 70%, rgba(245, 197, 24, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}

.cta-involved h2 {
    font-family: var(--font-display);
}

.cta-involved .btn-outline:hover {
    color: var(--green-dark);
}

/* --- Contact & donate --- */
.contact-donate-box {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    border-radius: var(--radius-lg);
}

.contact-info-box {
    border-top-color: var(--yellow);
}

.donate-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, var(--green-light) 100%);
}

.donate-hero-bg {
    background:
        linear-gradient(135deg, rgba(14, 61, 38, 0.92) 0%, rgba(26, 92, 58, 0.88) 100%),
        url('../images/group-students.jpg') center center / cover no-repeat;
}

.donate-hero h1,
.donate-hero-lead {
    font-family: var(--font-display);
}

.donate-amount-card.is-selected,
.donate-amount-card:hover {
    border-color: var(--yellow);
    background: linear-gradient(180deg, #fffdf5 0%, var(--white) 100%);
}

.donate-amount-value {
    color: var(--green-dark);
}

.donate-upi-box {
    border-left-color: var(--yellow);
}

.donate-stat-number {
    color: var(--green);
    font-family: var(--font-display);
}

.donate-checklist li::before {
    background: linear-gradient(135deg, var(--yellow-light), var(--yellow));
    color: var(--green-dark);
}

.donate-appeal {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
}

.donate-contact-card {
    border-top-color: var(--yellow);
}

/* --- Footer --- */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--green-dark) 0%, #0a2e1c 100%);
    padding-top: calc(3.5rem + 48px);
    overflow: visible;
}

.site-footer::before {
    display: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    max-height: 48px;
    min-height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Cpath fill='%230e3d26' d='M0,48 L0,30 Q30,40 60,28 T120,33 L120,0 L0,0 Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 48px;
    background-position: left top;
    pointer-events: none;
}

.footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.footer-logo {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
}

.footer-tagline {
    color: var(--yellow-light);
    font-family: var(--font-display);
}

.site-footer h3 {
    color: var(--yellow);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--yellow-light);
}

.footer-credit {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-credit a {
    color: rgba(245, 197, 24, 0.85);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--yellow-light);
}

/* --- Forms --- */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.12);
}

.form-success {
    background: var(--green-soft);
    color: var(--green-dark);
    border-color: #a8d4b8;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-strip {
        grid-template-columns: 1fr;
    }

    .hero-strip-card {
        min-height: 200px;
    }

    .about-home-grid,
    .cause-v2-card,
    .service-cards-v2 {
        grid-template-columns: 1fr;
    }

    .why-cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .why-cards-row .charity-card {
        min-width: 0;
        padding: 1.35rem 1rem;
    }

    .why-cards-row .card-featured {
        transform: translateY(0) scale(1);
        animation: whyFeaturedGlow 3s ease-in-out infinite;
    }

    .why-cards-row .card-featured.reveal.visible,
    .why-cards-row .card-featured:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .service-card-v2-featured {
        transform: none;
    }

    .service-card-v2-featured:hover {
        transform: translateY(-6px);
    }

    .services-deco-hands-left,
    .services-deco-hands-right {
        opacity: 0.45;
    }

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

    .cause-v2-card {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 1.75rem;
        gap: 1.75rem;
    }

    .cause-v2-media {
        justify-self: center;
        align-self: center;
        max-width: min(360px, 100%);
        width: 100%;
        margin: 0 auto;
        order: -1;
    }

    .cause-v2-content {
        order: 1;
    }

    .cause-banner,
    .service-cards {
        grid-template-columns: 1fr;
    }

    .hero-fullbg-content {
        max-width: 100%;
    }

    .hero-fullbg-centered .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-fullbg-centered .btn {
        width: 100%;
    }

    .about-badge {
        right: 0.5rem;
        bottom: 0.5rem;
        padding: 0.85rem 1rem;
    }

    .about-home-content {
        padding: 1.75rem 1.5rem;
    }

    .service-card-featured {
        transform: none;
    }

    .service-card-v2-featured {
        transform: none;
    }

    .services-deco-hands-left,
    .services-deco-hands-right {
        display: none;
    }

    .cause-v2-nav {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .hero-fullbg {
        min-height: min(88vh, 560px);
    }

    .hero-fullbg-content {
        padding-bottom: 3rem;
        text-align: center;
    }

    .hero-fullbg-centered .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-strip-inner {
        padding: 1.5rem;
        text-align: center;
    }

    .hero-strip-inner p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .page-home .site-header {
        background: rgba(0, 0, 0, 0.5);
    }

    .page-home .nav-toggle:checked ~ .header-nav-group {
        background: var(--white);
    }

    .page-home .nav-toggle:checked ~ .header-nav-group .main-nav a:not(.nav-cta-btn) {
        color: var(--dark-text);
    }

    .cause-banner {
        padding: 1.5rem;
    }

    .about-photo-wrap {
        padding: 0 0 1rem 1rem;
    }

    .about-home-content {
        text-align: left;
    }

    .why-cards-row {
        gap: 0.85rem;
    }

    .why-cards-row .charity-card {
        padding: 1.15rem 0.85rem;
    }

    .why-cards-row .charity-card .card-icon {
        width: 2.75rem;
        height: 2.75rem;
        margin-bottom: 0.65rem;
        font-size: 1.25rem;
    }

    .why-cards-row .charity-card h3 {
        font-size: 0.92rem;
        line-height: 1.3;
        margin-bottom: 0.45rem;
    }

    .why-cards-row .charity-card p {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .why-cards-row .charity-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .why-cards-row .card-featured.reveal.visible,
    .why-cards-row .card-featured:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fullbg-image.hero-animated {
        animation: none;
    }

    .why-cards-row .charity-card,
    .why-cards-row .charity-card .card-icon {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .why-cards-row .card-featured,
    .section-why .section-title h2::after {
        animation: none;
    }

    .md,
    .footer-deco {
        animation: none !important;
    }
}

/* =============================================
   Decorative elements (site-wide)
   ============================================= */
.main-with-deco {
    position: relative;
    isolation: isolate;
}

.main-deco-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.main-with-deco > .section,
.main-with-deco > .hero,
.main-with-deco > .hero-strip,
.main-with-deco > .page-banner,
.main-with-deco > div:not(.main-deco-layer) {
    position: relative;
    z-index: 1;
}

.md {
    position: absolute;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.md-heart {
    color: var(--yellow);
    font-size: clamp(1rem, 2vw, 1.6rem);
    opacity: 0.45;
    animation: decoFloat 7s ease-in-out infinite alternate;
}

.md-star {
    color: var(--green-light);
    font-size: clamp(0.85rem, 1.5vw, 1.25rem);
    opacity: 0.4;
    animation: decoFloat 9s ease-in-out infinite alternate-reverse;
}

.md-plus {
    color: var(--yellow-dark);
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.25;
    animation: decoSpin 20s linear infinite;
}

.md-ring {
    width: 48px;
    height: 48px;
    border: 2px dashed rgba(26, 92, 58, 0.2);
    border-radius: 50%;
    animation: decoFloat 11s ease-in-out infinite alternate;
}

.md-dot {
    width: 10px;
    height: 10px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.35;
    box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.12);
    animation: decoPulse 4s ease-in-out infinite;
}

.md-blob {
    width: 90px;
    height: 90px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: radial-gradient(circle at 30% 30%, rgba(245, 197, 24, 0.18), rgba(26, 92, 58, 0.08));
    animation: decoMorph 14s ease-in-out infinite alternate;
}

.md-1  { top: 4%;   left: 6%;   animation-delay: 0s; }
.md-2  { top: 8%;   right: 8%;  animation-delay: 0.5s; }
.md-3  { top: 14%;  right: 18%; animation-delay: 1s; }
.md-4  { top: 22%;  left: 4%;   animation-delay: 0.3s; }
.md-5  { top: 28%;  right: 5%;  animation-delay: 1.2s; }
.md-6  { top: 38%;  left: 10%;  animation-delay: 0.8s; }
.md-7  { top: 45%;  right: 12%; animation-delay: 0.2s; }
.md-8  { top: 52%;  left: 3%;   animation-delay: 1.5s; }
.md-9  { top: 58%;  right: 6%;  animation-delay: 0.6s; }
.md-10 { top: 65%;  left: 14%;  animation-delay: 1.8s; }
.md-11 { top: 72%;  right: 15%; animation-delay: 0.4s; }
.md-12 { top: 78%;  left: 7%;   animation-delay: 1.1s; }
.md-13 { top: 84%;  right: 4%;  animation-delay: 0.9s; }
.md-14 { top: 88%;  left: 18%;  animation-delay: 1.4s; }
.md-15 { top: 92%;  right: 20%; animation-delay: 0.7s; }
.md-16 { top: 96%;  left: 5%;   animation-delay: 1.6s; }

@keyframes decoFloat {
    from { transform: translateY(0) rotate(0deg); }
    to   { transform: translateY(-14px) rotate(8deg); }
}

@keyframes decoSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes decoPulse {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50%      { transform: scale(1.35); opacity: 0.55; }
}

@keyframes decoMorph {
    from { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); }
    to   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(12deg); }
}

/* Section corner accents (skip sections that use ::before for torn edges) */
main .section:not(.section-torn-top):not(.cta-involved-pattern) {
    overflow: hidden;
}

main .section:not(.section-torn-top)::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

main .section:nth-of-type(4n+1):not(.section-torn-top)::after {
    content: "✦";
    top: 2.5rem;
    right: 4%;
    font-size: 1.4rem;
    color: rgba(245, 197, 24, 0.35);
    font-family: var(--font-sans);
}

main .section:nth-of-type(4n+2):not(.section-torn-top)::after {
    width: 64px;
    height: 64px;
    bottom: 2rem;
    left: 3%;
    border: 2px dotted rgba(26, 92, 58, 0.15);
    border-radius: 50%;
}

main .section:nth-of-type(4n+3):not(.section-torn-top)::after {
    width: 12px;
    height: 12px;
    top: 40%;
    right: 5%;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.3;
    box-shadow: -30px 20px 0 rgba(26, 92, 58, 0.08), 25px -15px 0 rgba(245, 197, 24, 0.15);
}

main .section:nth-of-type(4n):not(.section-torn-top)::after {
    content: "♥";
    bottom: 3rem;
    right: 6%;
    font-size: 1.2rem;
    color: rgba(26, 92, 58, 0.2);
}

main .section .container {
    position: relative;
    z-index: 1;
}

/* Page banner – deco on inner container (keeps torn-edge pseudo-elements) */
.page-banner .container::before {
    content: "♥";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.5rem;
    color: rgba(245, 197, 24, 0.35);
    z-index: 2;
    animation: decoFloat 6s ease-in-out infinite alternate;
}

.page-banner .container::after {
    content: "";
    position: absolute;
    top: 0.5rem;
    right: 0;
    width: 48px;
    height: 48px;
    border: 2px dashed rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    z-index: 2;
}

.page-banner .container {
    position: relative;
}

/* Hero strip mini dots */
.hero-strip-card::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    z-index: 2;
    box-shadow: -14px 8px 0 rgba(255, 255, 255, 0.2), 8px 14px 0 rgba(255, 255, 255, 0.15);
}

/* Cards & boxes */
.card::after,
.about-home-content::before,
.cause-banner::before,
.contact-donate-box::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.card::after {
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-top: 2px solid rgba(245, 197, 24, 0.35);
    border-right: 2px solid rgba(245, 197, 24, 0.35);
}

.about-home-content::before {
    top: -8px;
    right: 2rem;
    width: 16px;
    height: 16px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.5;
}

.cause-banner::before {
    top: 1rem;
    left: 1rem;
    font-size: 1.1rem;
    content: "✦";
    color: rgba(26, 92, 58, 0.2);
}

.contact-donate-box::after {
    bottom: 1rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: 2px dotted rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.card,
.about-home-content,
.cause-banner,
.contact-donate-box {
    position: relative;
    overflow: hidden;
}

/* Footer decorations */
.footer-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.footer-deco-1 {
    top: 2rem;
    right: 8%;
    font-size: 2rem;
    color: rgba(245, 197, 24, 0.2);
    animation: decoFloat 8s ease-in-out infinite alternate;
}

.footer-deco-2 {
    bottom: 4rem;
    left: 6%;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.12);
}

.footer-deco-ring {
    top: 40%;
    right: 4%;
    width: 80px;
    height: 80px;
    border: 2px dashed rgba(245, 197, 24, 0.15);
    border-radius: 50%;
}

.site-footer .footer-grid,
.site-footer .footer-bottom {
    position: relative;
    z-index: 1;
}

/* Donate page accents */
.donate-hero::before {
    content: "♥";
    position: absolute;
    top: 20%;
    right: 8%;
    font-size: 2rem;
    color: rgba(245, 197, 24, 0.25);
    z-index: 2;
    animation: decoFloat 7s ease-in-out infinite alternate;
}

.donate-amount-card:nth-child(odd)::after {
    content: "";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.5;
}

.donate-amount-card {
    position: relative;
}

@media (max-width: 768px) {
    .md-ring,
    .md-blob,
    .md-13,
    .md-14,
    .md-15,
    .md-16 {
        display: none;
    }

    main .section:not(.section-torn-top)::after {
        opacity: 0.5;
        transform: scale(0.8);
    }

    .page-banner .container::before,
    .page-banner .container::after {
        display: none;
    }
}
