/* ==========================================================================
   Karka.org.in – Consolidated styles (base + all pages)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #609f9a;
    --base-color: #609e99;
    --secondary-color: #efa968;
    --light-text: #F8F9FA;
    --content-max-width: 1280px;
}

/* Fallback utility colors for localized Tailwind runtime gaps */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-base { background-color: var(--base-color) !important; }
.bg-light { background-color: #ffffff !important; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-light { color: var(--light-text) !important; }
.text-light\/70 { color: rgba(248, 249, 250, 0.7) !important; }
.text-light\/80 { color: rgba(248, 249, 250, 0.8) !important; }
.text-light\/90 { color: rgba(248, 249, 250, 0.9) !important; }
.text-white\/90 { color: rgba(255, 255, 255, 0.9) !important; }
.bg-secondary\/10 { background-color: rgba(239, 169, 104, 0.1) !important; }
.bg-primary\/15 { background-color: rgba(96, 159, 154, 0.15) !important; }
.bg-primary\/25 { background-color: rgba(96, 159, 154, 0.25) !important; }
.border-primary\/20 { border-color: rgba(96, 159, 154, 0.2) !important; }
.hover\:bg-secondary:hover { background-color: var(--secondary-color) !important; }
.hover\:text-secondary:hover { color: var(--secondary-color) !important; }
.from-base\/80 {
    --tw-gradient-from: rgba(96, 158, 153, 0.8) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(96, 158, 153, 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
.via-base\/20 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(96, 158, 153, 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

/* Top header bar: secondary color (all pages) */
.karka-top-header {
    background-color: var(--secondary-color);
    width: 100%;
    min-height: 24px;
}

/* Main content: clear fixed header (top bar + nav) on about, program, volunteer, donate, contact */
body.page-hero-light main.main-after-hero {
    padding-top: 7.5rem;
}

@media (min-width: 1024px) {
    body.page-hero-light main.main-after-hero {
        padding-top: 8rem;
    }
}

/* Container: consistent max-width and alignment on all pages */
.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Section spacing: consistent gaps between sections and divs (about, program, volunteer, donate, contact) */
.main-after-hero-content>section,
section.page-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {

    .main-after-hero-content>section,
    section.page-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {

    .main-after-hero-content>section,
    section.page-hero {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Base (from base.html)                                                      */
/* -------------------------------------------------------------------------- */
.font-display {
    font-family: 'Playfair Display', serif;
}

html {
    font-size: 87.5%;
}

body {
    font-family: 'Readex Pro', sans-serif;
    background: var(--base-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--light-text);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

main {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer {
    background-color: black;
    color: var(--light-text);
}

.footer-heading {
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-link {
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(96, 159, 154, 0.25);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    color: var(--light-text);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer p,
.footer span {
    color: var(--light-text);
}

.footer .text-primary {
    color: var(--primary-color) !important;
}

.karka-icon-card i,
.karka-icon-card svg {
    color: #ffffff !important;
}

.karka-icon-card svg {
    width: 2rem;
    height: 2rem;
}

.karka-icon-card--sm {
    width: 2.75rem;
    height: 2.75rem;
}

.karka-icon-card--sm i {
    font-size: 1rem;
}

.karka-icon-card--sm svg {
    width: 1rem;
    height: 1rem;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px var(--primary-color), 0 0 0 3px rgba(96, 159, 154, 0.25);
}

/* Page hero – white grid (about, program, gallery, volunteer, donate, contact – reduced height) */
.page-hero {
    background: #ffffff;
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #142431;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .page-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .page-hero {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.page-hero .page-hero-title {
    letter-spacing: -0.02em;
    color: #efa968;
}

.page-hero .hero-donate-btn {
    margin-left: auto;
    margin-right: auto;
}

.page-hero p,
.page-hero span,
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero h4 {
    color: #142431;
}

.page-hero .text-primary {
    color: var(--primary-color) !important;
}

.page-hero .text-secondary {
    color: #efa968 !important;
}

.page-hero p,
.page-hero .text-gray-700 {
    color: #142431 !important;
}

.page-hero a[class*="border-2"]:not([class*="bg-primary"]):not([class*="bg-secondary"]) {
    color: #142431 !important;
}

.page-hero a[class*="border-gray"] {
    color: #142431 !important;
}

.hero-static p,
.hero-static .hero-static-sub,
.hero-static .text-gray-700,
.volunteer-top-bg p,
.volunteer-top-bg .text-gray-700 {
    color: #374151 !important;
}

/* Hero section paragraphs: black text on About, Gallery, Volunteer, Program, Donate, Contact */
.page-hero p,
.page-hero .text-lg,
.page-hero .text-xl {
    color: #000000 !important;
}

.hero-static {
    color: #142431;
}

.hero-static .hero-static-title,
.hero-static .hero-static-sub,
.hero-static p,
.hero-static h1,
.hero-static h2 {
    color: #142431 !important;
}

.hero-static .text-primary {
    color: var(--primary-color) !important;
}

.hero-static .text-secondary {
    color: #efa968 !important;
}

.hero-static .hero-static-sub,
.hero-static .hero-static-content p {
    color: #374151 !important;
}

.hero-static .hero-static-cta-secondary,
.hero-static a[class*="border-gray"] {
    color: #142431 !important;
}

.bg-white {
    color: #142431 !important;
}

.bg-white p,
.bg-white span,
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white li {
    color: #142431 !important;
}

.bg-white .text-primary {
    color: var(--primary-color) !important;
}

.bg-white .text-secondary {
    color: #efa968 !important;
}

.bg-light {
    color: #142431;
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light p,
.bg-light span,
.bg-light li {
    color: #142431;
}

.bg-light .text-primary {
    color: #609f9a !important;
}

.bg-light .text-gray-600,
.bg-light .text-gray-700 {
    color: #374151 !important;
}

.bg-light .bg-white,
.bg-light .bg-white h1,
.bg-light .bg-white h2,
.bg-light .bg-white h3,
.bg-light .bg-white h4,
.bg-light .bg-white p,
.bg-light .bg-white span,
.bg-light .bg-white li {
    color: #142431;
}

.bg-light .bg-white .text-primary {
    color: #609f9a !important;
}

.volunteer-top-bg {
    color: #142431;
}

.volunteer-top-bg h1,
.volunteer-top-bg p,
.volunteer-top-bg span {
    color: #142431;
}

.volunteer-top-bg .text-primary {
    color: #609f9a !important;
}

.volunteer-callout,
.volunteer-callout p,
.volunteer-callout span {
    color: #142431 !important;
}

.bg-light.text-dark,
.bg-light .text-dark {
    color: #142431;
}

.page-hero-light .navbar-karka .nav-link {
    color: #142431;
}

.page-hero-light .navbar-karka .nav-link::after {
    background-color: #142431;
}

.page-hero-light .navbar-karka .nav-link:hover {
    color: #0f172a;
}

.page-hero-light .navbar-karka .header-logo-img {
    filter: none;
}

.page-hero-light .header-donate-btn {
    background: #5a9b93;
    color: #fff;
}

.page-hero-light .navbar-karka.scrolled .header-donate-btn:hover {
    background: #4d8982;
}

.main-after-hero {
    position: relative;
    background: linear-gradient(to bottom, #ffffff 50%, #609e99 50%);
    overflow-x: hidden;
}

.main-after-hero::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    background-color: #fff;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
}

.main-after-hero-content {
    position: relative;
    z-index: 1;
}

.bg-base {
    color: var(--light-text);
    background-color: #609e99;
}

.bg-base.rounded-2xl,
.bg-base.rounded-xl,
.rounded-2xl.bg-base,
.rounded-xl.bg-base {
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bg-base h1,
.bg-base h2,
.bg-base h3,
.bg-base h4,
.bg-base p,
.bg-base li,
.bg-base span {
    color: inherit;
}

.bg-base .text-dark,
.bg-base [class*="text-dark"] {
    color: var(--light-text) !important;
}

.bg-base .counter-number {
    color: var(--light-text) !important;
}

.bg-base .text-dark\/70,
.bg-base .text-dark\/80,
.bg-base .text-dark\/90,
.bg-base .text-dark\/60 {
    opacity: 0.9;
}

.bg-base a[class*="bg-primary"]:not(.text-white),
.bg-base a[class*="bg-secondary"]:not(.text-white),
.bg-base button[class*="bg-primary"]:not(.text-white),
.bg-base button[class*="bg-secondary"]:not(.text-white) {
    color: #142431 !important;
}

.bg-base .text-gray-700,
.bg-base .text-gray-800,
.bg-base .text-gray-900 {
    color: var(--light-text) !important;
}

.bg-base a:hover,
.bg-base .text-primary {
    color: var(--primary-color) !important;
}

html,
body {
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a7c79;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

img:not([class*="object-"]):not([class*="h-"]) {
    height: auto;
}

@media (max-width: 639px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .main-after-hero-content>section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 1024px) {
    .parallax {
        background-attachment: scroll !important;
    }
}

@media (max-width: 767px) {
    .page-hero {
        min-height: 38vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    #backToTop {
        bottom: 1rem;
        right: 1rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}

.hero-donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #50a79e;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(80, 167, 158, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    margin-right: 3rem;
}

.hero-donate-btn:hover {
    background: #459690;
    color: #fff;
    box-shadow: 0 4px 12px rgba(80, 167, 158, 0.4);
}

.hero-donate-btn i {
    color: #fff;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

a.bg-primary.text-white:hover,
button.bg-primary.text-white:hover,
a.bg-primary:hover:not(.text-dark),
button.bg-primary:hover:not(.text-dark) {
    color: #ffffff !important;
}

a.bg-secondary:hover,
button.bg-secondary:hover {
    color: #142431 !important;
}

a.bg-dark:hover,
button.bg-dark:hover {
    color: #ffffff !important;
}

a.border-white:hover,
a[class*="border-white"]:hover {
    color: #142431 !important;
}

#backToTop:hover,
button#backToTop:hover {
    color: #ffffff !important;
}

a[class*="rounded-full"][class*="inline-flex"][class*="px-8"],
a[class*="rounded-xl"][class*="inline-flex"][class*="px-8"],
a[class*="rounded-full"][class*="inline-block"][class*="px-8"],
button[class*="rounded-full"][class*="px-8"],
button[class*="rounded-xl"][class*="px-8"],
#backToTop {
    transition: all 0.3s ease !important;
}

a[class*="rounded-full"][class*="inline-flex"][class*="px-8"]:hover,
a[class*="rounded-xl"][class*="inline-flex"][class*="px-8"]:hover,
a[class*="rounded-full"][class*="inline-block"][class*="px-8"]:hover,
button[class*="rounded-full"][class*="px-8"]:hover,
button[class*="rounded-xl"][class*="px-8"]:hover,
#backToTop:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* -------------------------------------------------------------------------- */
/* Header (from header.html)                                                  */
/* -------------------------------------------------------------------------- */
.navbar-karka {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar-karka.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.navbar-karka .nav-link {
    position: relative;
    padding: 0.5rem 0;
    margin: 0 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.2s ease;
}

.navbar-karka .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.navbar-karka .nav-link:hover {
    color: #fff;
}

.navbar-karka .nav-link:hover::after {
    width: 100%;
}

.navbar-karka .nav-link.active {
    color: var(--primary-color);
}

.navbar-karka .nav-link.active::after {
    width: 100%;
    background-color: var(--primary-color);
}

.navbar-karka.scrolled .nav-link {
    color: #142431;
}

.navbar-karka.scrolled .nav-link::after {
    background-color: #142431;
}

.navbar-karka.scrolled .nav-link:hover {
    color: #142431;
}

.navbar-karka.scrolled .nav-link.active {
    color: var(--primary-color);
}

.navbar-karka.scrolled .nav-link.active::after {
    background-color: var(--primary-color);
}

.header-donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #5a9b93;
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.header-donate-btn:hover {
    background: #4d8982;
    color: #fff;
}

.header-donate-btn i {
    color: #fff;
}

.navbar-karka.scrolled .header-donate-btn {
    background: #5a9b93;
    color: #fff;
}

.navbar-karka.scrolled .header-donate-btn:hover {
    background: #4d8982;
    color: #fff;
}

.header-logo-img {
    transition: filter 0.3s ease;
}

.navbar-karka .header-logo-wrap {
    margin-left: 2.5rem;
}

@media (min-width: 768px) {
    .navbar-karka .header-logo-wrap {
        margin-left: 7.5rem;
    }
}

.navbar-karka .header-donate-wrap {
    margin-right: 2.5rem;
}

@media (min-width: 768px) {
    .navbar-karka .header-donate-wrap {
        margin-right: 7.5rem;
    }
}

.navbar-karka .header-logo-img {
    filter: none;
}

.header-hamburger-line {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-karka.scrolled .header-hamburger-line {
    background-color: #142431;
}

.navbar-karka .header-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: #fff;
}

.navbar-karka .header-mobile-menu.open {
    max-height: 85vh;
    overflow-y: auto;
}

.hamburger.open .header-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open .header-hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .header-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1023px) {
    .navbar-karka {
        background: #ffffff;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .header-hamburger-line {
        background-color: #142431 !important;
    }

    .navbar-karka .header-logo-img {
        filter: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Index (home)                                                               */
/* -------------------------------------------------------------------------- */
.hero-static .hero-static-content {
    font-family: 'Montserrat', sans-serif;
}

.hero-light .navbar-karka {
    background: transparent;
}

.hero-light .navbar-karka.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.hero-light .navbar-karka .header-logo-img {
    filter: none;
}

.hero-light .navbar-karka .nav-link {
    color: #142431;
}

.hero-light .navbar-karka .nav-link::after {
    background-color: #142431;
}

.hero-light .navbar-karka .nav-link:hover {
    color: #142431;
}

.hero-light .header-donate-btn {
    background: #5a9b93;
    color: #fff;
}

.hero-light .header-donate-btn:hover {
    background: #4d8982;
    color: #fff;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #609f9a;
}

.reveal-text {
    overflow: hidden;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-text--pad {
    padding-top: 0.25rem;
    overflow: visible;
}

.reveal-text.in-view {
    opacity: 1;
    transform: translateY(0);
}

.hero-static {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Shared grid background – used on body (all pages) and optionally in sections */
.hero-static-grid-bg,
.karka-body-grid-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-static-grid-bg {
    position: absolute;
    inset: 0;
}

.karka-body-grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* Home hero: images closer to centre text, less gap */
.hero-static-image--left {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    padding: 8rem 0 0 0.5rem;
}

/* Tablet: prevent text colliding with hero images - add side padding so content clears images (hero content only, not header) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-static>.container {
        padding-left: 13rem;
        padding-right: 13rem;
    }

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

    .hero-static-sub,
    .hero-static-content p {
        line-height: 1.6;
        letter-spacing: 0.01em;
    }
}

@media (max-width: 767px) {
    .hero-static-image--right {
        display: none;
    }

    /* Paper images visible and scaled for small screens */
    .hero-static-paper {
        display: block;
        width: clamp(60px, 18vw, 100px);
        max-width: 100%;
    }
    .hero-static-paper img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* More space below fixed header before image */
    .hero-static {
        padding-top: 8rem;
    }

    /* Image first, in flow; content below, all centered */
    .hero-static .container {
        align-items: center;
        justify-content: flex-start;
        padding-top: 1rem;
        padding-bottom: 2rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-static-image--left {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin-top: 2rem;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
    }

    .hero-static-image--left .hero-static-img-wrap {
        width: clamp(160px, 60vw, 220px);
        aspect-ratio: 4/5;
        margin: 0 auto;
    }

    .hero-static-content {
        text-align: center;
        max-width: 100%;
        width: 100%;
    }

    .hero-static-content .hero-static-title,
    .hero-static-content .hero-static-sub {
        text-align: center;
    }

    /* Donate button exactly centered on viewport for mobile */
    .hero-static-content .flex {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-static-content .hero-donate-btn {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-static-image--left .hero-static-img-wrap {
    width: clamp(160px, 24vw, 320px);
    aspect-ratio: 4/5;
}

.hero-static-paper {
    width: clamp(85px, 14vw, 180px);
    max-width: 100%;
}
.hero-static-paper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.hero-static-image--left .hero-static-paper--left {
    width: clamp(85px, 14vw, 180px);
}
.hero-static-image--right .hero-static-paper--right {
    width: clamp(85px, 14vw, 180px);
}

@media (min-width: 1024px) {
    .hero-static-image--left {
        left: 6%;
        padding: 10rem 0 0 0;
    }

    .hero-static-image--left .hero-static-img-wrap {
        width: clamp(240px, 20vw, 360px);
    }
    .hero-static-image--left .hero-static-paper--left,
    .hero-static-image--right .hero-static-paper--right {
        width: clamp(140px, 12vw, 200px);
    }
}

/* 1024px: prevent content collapsing – clear space so headline and text don’t overlap side images */
@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-static > .container {
        padding-left: 20rem;
        padding-right: 20rem;
    }

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

    /* Slightly smaller side images at this width to keep center clear */
    .hero-static-image--left .hero-static-img-wrap {
        width: clamp(200px, 17vw, 300px);
    }
    .hero-static-image--right .hero-static-img-wrap {
        width: clamp(200px, 17vw, 300px);
    }

    /* Let headline wrap so it stays clear of images */
    .hero-static-title .whitespace-nowrap {
        white-space: normal;
    }
}

@media (min-width: 1280px) {
    .hero-static-image--left {
        left: 10%;
    }

    .hero-static-image--left .hero-static-img-wrap {
        width: clamp(260px, 18vw, 380px);
    }
    .hero-static-image--left .hero-static-paper--left,
    .hero-static-image--right .hero-static-paper--right {
        width: clamp(160px, 11vw, 220px);
    }
}

.hero-static-image--right {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 5;
    padding: 0 0.5rem 3rem 0;
}

.hero-static-image--right .hero-static-img-wrap {
    width: clamp(160px, 24vw, 300px);
    aspect-ratio: 3/4;
}

@media (min-width: 1024px) {
    .hero-static-image--right {
        right: 6%;
        padding: 0 0 4rem 0;
    }

    .hero-static-image--right .hero-static-img-wrap {
        width: clamp(240px, 20vw, 340px);
    }
}

@media (min-width: 1280px) {
    .hero-static-image--right {
        right: 10%;
    }

    .hero-static-image--right .hero-static-img-wrap {
        width: clamp(260px, 18vw, 360px);
    }
}

.hero-static-title {
    letter-spacing: -0.02em;
    color: #142431 !important;
}

.hero-static-sub,
.hero-static-content p {
    color: #374151 !important;
}

.hero-static-cta-primary {
    box-shadow: 0 4px 20px rgba(96, 159, 154, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-static-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(96, 159, 154, 0.45);
}

.hero-static-cta-secondary {
    transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-static-cta-secondary:hover {
    transform: translateY(-2px);
    background: #fdf3e7 !important;
    border-color: rgba(239, 169, 104, 0.4);
}

.bg-light.home-section-grid {
    position: relative;
}

.bg-light.home-section-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.bg-light.home-section-grid>* {
    position: relative;
    z-index: 1;
}

/* Impact section (index) */
.impact-section {
    padding: 120px 6%;
    background: #609e99;
    color: white;
}

.impact-heading {
    max-width: 700px;
    margin-bottom: 80px;
}

.impact-heading h2 {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.impact-heading p {
    font-size: 16px;
    color: #ffffff;
}

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

.impact-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.4s ease;
}

.impact-item span {
    font-size: 48px;
    font-weight: 700;
    color: #efa968cb;
    min-width: 80px;
}

.impact-item h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.impact-item p {
    color: #ffffff;
    font-size: 14px;
    max-width: 600px;
}

.impact-item:hover {
    transform: translateX(15px);
}

.impact-item:hover span {
    color: #efa968;
}

@media (max-width: 768px) {
    .impact-section {
        padding: 60px 1rem 80px;
    }

    .impact-heading {
        margin-bottom: 48px;
    }

    .impact-list {
        grid-template-columns: 1fr;
        gap: 24px 0;
    }

    .impact-item {
        gap: 16px;
        padding: 20px 0;
    }

    .impact-item span {
        font-size: 32px;
        min-width: 56px;
    }

    .impact-item h3 {
        font-size: 18px;
    }
}

/* -------------------------------------------------------------------------- */
/* About                                                                      */
/* -------------------------------------------------------------------------- */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2.5rem;
}

.timeline-item:last-of-type {
    padding-bottom: 0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.5rem;
    bottom: -2.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-color) 60%, rgba(255, 183, 159, 0.3));
}

.timeline-item:last-of-type:before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 183, 159, 0.2);
}

.timeline-content {
    margin-top: 0;
}

.reveal-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-item.show {
    opacity: 1;
    transform: translateY(0);
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.journey-section-grid {
    position: relative;
    background: #ffffff;
}

.journey-section-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.journey-section-grid>* {
    position: relative;
    z-index: 1;
}

.journey-section-grid .timeline-content>span {
    color: #efa968 !important;
}

.journey-section-grid .timeline-content p,
.journey-section-grid p,
.journey-section-grid .text-black {
    color: #142431 !important;
}

.journey-section-grid .text-black\/90 {
    color: rgba(20, 36, 49, 0.9) !important;
}

.journey-section-grid .text-black\/70 {
    color: rgba(20, 36, 49, 0.7) !important;
}

.journey-section-grid .text-black\/80 {
    color: rgba(20, 36, 49, 0.8) !important;
}

.career-form-header,
.career-form-header h3,
.career-form-header p {
    color: #ffffff !important;
}

/* -------------------------------------------------------------------------- */
/* Program                                                                     */
/* -------------------------------------------------------------------------- */
.parallax-bg {
    background-attachment: fixed !important;
}

.infra-card-white h3,
.infra-card-white p {
    color: #ffffff !important;
}

.program-light-grid {
    position: relative;
}

.program-light-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.program-light-grid>* {
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Donate                                                                      */
/* -------------------------------------------------------------------------- */
.donation-option {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.donation-option:hover,
.donation-option.selected {
    border-color: var(--primary-color, #609f9a);
    background-color: rgba(96, 159, 154, 0.1);
}

.payment-method {
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--primary-color, #609f9a) !important;
    background-color: rgba(96, 159, 154, 0.08) !important;
}

.progress-bar {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #609f9a, #efa968);
    transition: width 0.5s ease;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

/* -------------------------------------------------------------------------- */
/* Volunteer                                                                   */
/* -------------------------------------------------------------------------- */
.volunteer-bottom-bg {
    background-color: var(--primary-color);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
}

.volunteer-form-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.volunteer-input-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.volunteer-input-glass::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.volunteer-input-glass:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.volunteer-callout {
    background: #ffffff;
    color: #142431;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------- */
/* Gallery                                                                     */
/* -------------------------------------------------------------------------- */
.bento-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    grid-auto-rows: minmax(180px, auto);
}

.bento-gallery .gallery-item {
    min-height: 180px;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.35s ease;
    position: relative;
    background: var(--base-color, #609e99);
}

.bento-gallery .gallery-item.hidden-item {
    display: none !important;
}

.bento-gallery .gallery-item:hover {
    transform: scale(0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.bento-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.bento-gallery .gallery-item:hover img {
    filter: brightness(0.88);
}

.bento-gallery .image-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
    color: #fff;
    font-size: 0.875rem;
}

.bento-gallery .image-caption p {
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.bento-gallery .image-caption h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.bento-12 {
    grid-column: span 12;
    grid-row: span 2;
}

.bento-8 {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-6 {
    grid-column: span 6;
    grid-row: span 1;
}

.bento-6-2 {
    grid-column: span 6;
    grid-row: span 2;
}

.bento-4 {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-4-2 {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-3 {
    grid-column: span 3;
    grid-row: span 1;
}

.bento-2 {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 1024px) {
    .bento-gallery {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }

    .bento-gallery .gallery-item.bento-12,
    .bento-gallery .gallery-item.bento-8,
    .bento-gallery .gallery-item.bento-6,
    .bento-gallery .gallery-item.bento-6-2,
    .bento-gallery .gallery-item.bento-4,
    .bento-gallery .gallery-item.bento-4-2,
    .bento-gallery .gallery-item.bento-3,
    .bento-gallery .gallery-item.bento-2 {
        grid-column: span 6 !important;
        grid-row: span 1 !important;
    }
}

@media (max-width: 640px) {
    .bento-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(260px, auto);
    }

    .bento-gallery .gallery-item.bento-12,
    .bento-gallery .gallery-item.bento-8,
    .bento-gallery .gallery-item.bento-6,
    .bento-gallery .gallery-item.bento-6-2,
    .bento-gallery .gallery-item.bento-4,
    .bento-gallery .gallery-item.bento-4-2,
    .bento-gallery .gallery-item.bento-3,
    .bento-gallery .gallery-item.bento-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Contact                                                                     */
/* -------------------------------------------------------------------------- */
.info-icon-box {
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}

.info-item:hover .info-icon-box {
    background-color: #efa968;
    transform: translateY(-4px);
}

/* Contact page map iframe */
iframe {
    filter: grayscale(80%) sepia(20%);
    transition: all 0.5s ease;
    border: 2px solid transparent;
}

iframe:hover {
    filter: grayscale(0%) sepia(0%);
    border-color: var(--primary-color) !important;
}

.info-item {
    transition: opacity 0.2s ease;
}

.info-item:hover h4,
.info-item:hover a {
    color: #ffffff !important;
    opacity: 1;
}

.contact-details-white,
.contact-details-white h2,
.contact-details-white h4,
.contact-details-white p,
.contact-details-white a,
.contact-details-white span {
    color: #ffffff !important;
}

.contact-details-white a:hover {
    color: #efa968 !important;
}

/* -------------------------------------------------------------------------- */
/* 404                                                                        */
/* -------------------------------------------------------------------------- */
#bridge-plank-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
}

.bridge-plank {
    height: 12px;
    width: 100%;
    background-color: #5D4037;
    margin: 2px 0;
    border-radius: 4px;
    opacity: 1;
}

#cliff-left,
#cliff-right {
    background-image: linear-gradient(to top, #F8F9FA, #FFFFFF);
}