:root {
    --green-deep: #1a4d1e;
    --green-main: #2e7d32;
    --green-mid: #388e3c;
    --green-light: #4caf50;
    --green-pale: #e8f5e9;
    --green-faint: #f1f8f2;
    --green-mist: #f7fbf7;
    --white: #ffffff;
    --off-white: #fafcfa;
    --text-dark: #1c2b1e;
    --text-body: #374a39;
    --text-muted: #5a7060;
    --border: rgba(46, 125, 50, 0.25);
    --border-mid: rgba(46, 125, 50, 0.45);
    --shadow-sm: 0 2px 12px rgba(26, 77, 30, 0.08);
    --shadow-md: 0 6px 30px rgba(26, 77, 30, 0.14);
    --shadow-lg: 0 16px 60px rgba(26, 77, 30, 0.18);
    --radius: 3px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    background-color: var(--off-white);
    color: var(--text-body);
    font-family: "Roboto Slab", serif;
    line-height: 1.75;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(46, 125, 50, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 125, 50, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

section {
    padding: 70px 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

section.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.brand-affiliation-showcase,
.team-member-primary,
.team-member-secondary,
.team-member-physio,
.project-card,
.objective-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.brand-affiliation-showcase.item-reveal-active,
.team-member-primary.item-reveal-active,
.team-member-secondary.item-reveal-active,
.team-member-physio.item-reveal-active,
.project-card.item-reveal-active,
.objective-item.item-reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* === TYPOGRAPHY === */
.section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 45px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-deep);
    scroll-margin-top: 130px;
    position: relative;
    padding-bottom: 20px;
}

/* Fix: sections with IDs scroll correctly under sticky header */
section[id] {
    scroll-margin-top: 112px;
}

/* Active nav link */
nav a.nav-active {
    color: var(--green-deep);
    background: var(--green-pale);
    border-color: var(--border-mid);
    box-shadow: var(--shadow-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green-main), transparent);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-light), transparent);
}

.sub-section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 35px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-deep);
    position: relative;
    display: block;
}

p {
    font-size: 0.95rem;
    color: var(--text-body);
    font-weight: 400;
    line-height: 1.8;
}

/* === HEADER === */
header {
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
    /* position: sticky; */
    top: 0;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 1px 20px rgba(26, 77, 30, 0.07);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-deep), var(--green-light), var(--green-deep));
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 105px;
    gap: 20px;
}

/* === CONTACT TOPBAR === */
.contact-topbar {
    background-color: var(--green-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1001;
    /* one above the header's 1000 */
}

.contact-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.ct-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a5d6a7;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.ct-item:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .contact-topbar-inner {
        justify-content: center;
        gap: 16px;
        padding: 8px 16px;
    }

    .ct-item {
        font-size: 0.65rem;
    }
}

/* Logo stays left — flex-basis fixed so nav stays centred */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    text-decoration: none;
    flex-shrink: 0;
}

/* Nav links sit in the middle */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    display: block;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 2px 6px rgba(26, 77, 30, 0.12));
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.03);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav a {
    color: var(--green-main);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-block;
}

nav a:hover {
    color: var(--green-deep);
    background: var(--green-pale);
    border-color: var(--border-mid);
    box-shadow: var(--shadow-sm);
}

/* === DONATE BUTTON === */
.nav-donate-btn {
    flex-shrink: 0;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding: 10px 22px;
    background: var(--green-main);
    color: var(--white);
    border: 1px solid var(--green-main);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.25);
    position: relative;
    overflow: hidden;
}

.nav-donate-btn::before {
    content: '♥ ';
    font-size: 0.7rem;
}

.nav-donate-btn:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
    box-shadow: 0 4px 18px rgba(26, 77, 30, 0.35);
    transform: translateY(-1px);
}

.nav-donate-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-donate-btn {
        padding: 8px 14px;
        font-size: 0.68rem;
    }
}

/* === HERO SECTION === */
.hero-section {
    width: 100%;
    min-height: calc(100vh - 144px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f2 45%, #dcedc8 100%);
}


.hero-section .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.18;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 5% 50%, rgba(46, 125, 50, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 95% 20%, rgba(76, 175, 80, 0.06) 0%, transparent 60%);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46, 125, 50, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 125, 50, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    padding-top: 40px;
    padding-bottom: 60px;
    width: 100%;
    min-height: calc(100vh - 144px);
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

/* යාවත්කාලීන කරන ලදි: මුලින් නොපෙනී තිබී ලෝඩ් වෙද්දී පහළ සිට ඉහළට ඒමට අවශ්‍ය හීරෝ ඇනිමේෂන් සැකසුම */
.hero-label,
.hero-heading,
.hero-subheading,
.hero-desc,
.hero-tag {
    opacity: 0;
    transform: translateY(30px);
    animation: heroElementFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: opacity, transform;
}


.hero-anim-1 {
    animation-delay: 0.15s;
}

/* Label */
.hero-anim-2 {
    animation-delay: 0.35s;
}

/* Heading */
.hero-anim-3 {
    animation-delay: 0.5s;
}

/* Subheading */
.hero-anim-4 {
    animation-delay: 0.65s;
}

/* Description */


.hero-tag:nth-child(1) {
    animation-delay: 0.8s;
}

.hero-tag:nth-child(2) {
    animation-delay: 0.9s;
}

.hero-tag:nth-child(3) {
    animation-delay: 1.0s;
}

.hero-tag:nth-child(4) {
    animation-delay: 1.1s;
}

.hero-tag:nth-child(5) {
    animation-delay: 1.2s;
}


@keyframes heroElementFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--green-main);
    background: rgba(46, 125, 50, 0.07);
    border: 1px solid var(--border-mid);
    padding: 5px 14px;
    margin-bottom: 26px;
}

.hero-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.05;
    letter-spacing: 0.5px;
    position: relative;
}

.hero-heading::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, var(--green-main), var(--green-light), transparent);
    margin-top: 22px;
}

.hero-subheading {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green-mid);
    margin-top: 16px;
    margin-bottom: 22px;
    letter-spacing: 0.2px;
}

.hero-desc {
    font-size: 0.96rem;
    color: var(--text-body);
    line-height: 1.85;
    max-width: 560px;
    border-left: 3px solid var(--green-light);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.hero-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green-deep);
    background: var(--white);
    border: 1px solid var(--border-mid);
    padding: 6px 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-tag:hover {
    background: var(--green-pale);
    border-color: var(--green-main);
}

.hero-illustration {
    flex-shrink: 0;
    width: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-illustration svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(26, 77, 30, 0.18));
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green-main), var(--green-light), var(--green-main), transparent);
    z-index: 3;
}

@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        justify-content: center;
        padding: 100px 24px 60px;
        gap: 40px;
        text-align: left;
    }

    .hero-heading {
        font-size: 3.2rem;
    }

    .hero-illustration {
        width: 240px;
    }

    .hero-tags {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2.2rem;
    }

    .hero-illustration {
        width: 180px;
    }
}

/* === HERO CONTACT STRIP === */
.hero-contact-strip {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin-top: 32px;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(232, 245, 233, 0.78));
    border: 1px solid rgba(46, 125, 50, 0.22);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(26, 77, 30, 0.13), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    max-width: max-content;
    opacity: 0;
    transform: translateY(30px);
    animation: heroElementFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.35s forwards;
    will-change: opacity, transform;
}

.hero-contact-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(120deg, var(--green-light), transparent 40%, transparent 60%, var(--green-main));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-contact-item:hover {
    background: linear-gradient(135deg, var(--green-main), var(--green-light));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.35);
}

.hero-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--green-pale);
    border-radius: 50%;
    color: var(--green-main);
    flex-shrink: 0;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease, transform 0.35s ease;
}

.hero-contact-icon svg {
    width: 19px;
    height: 19px;
}

.hero-contact-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--green-light);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-contact-item:hover .hero-contact-icon {
    background: #fff;
    color: var(--green-main);
    transform: rotate(-8deg) scale(1.08);
}

.hero-contact-item:hover .hero-contact-icon::after {
    opacity: 1;
    transform: scale(1);
}

.hero-contact-divider {
    width: 1px;
    margin: 10px 4px;
    background: linear-gradient(180deg, transparent, rgba(46, 125, 50, 0.25), transparent);
    flex-shrink: 0;
}

.hero-contact-addr {
    cursor: pointer;
}

@media (max-width: 700px) {
    .hero-contact-strip {
        display: inline-flex;
        flex-direction: column;
        align-items: stretch;
        max-width: fit-content;
    }

    .hero-contact-divider {
        width: auto;
        height: 1px;
        margin: 2px 8px;
    }
}

/* === WHO WE ARE === */
.brand-affiliation-showcase {
    background-color: var(--green-faint);
    padding: 40px 35px;
    margin-bottom: 55px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--green-main);
}

.brand-showcase-logo {
    flex-shrink: 0;
    width: 115px;
    height: auto;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.brand-affiliation-showcase:hover .brand-showcase-logo {
    transform: scale(1.05);
}

.brand-showcase-text {
    flex: 1;
}

.brand-showcase-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-deep);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.brand-showcase-text p {
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.8;
}

.leader-row {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 20px;
}

.leader-img {
    width: 250px;
    height: 320px;
    border: 1px solid var(--border-mid);
    background: var(--green-faint);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.leader-img::before,
.leader-img::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--green-main);
    border-style: solid;
}

.leader-img::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.leader-img::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.leader-info {
    flex: 1;
}

.leader-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--green-deep);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 14px;
}

.leader-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--green-main), transparent);
}

.prosthetic-list {
    list-style: none;
    margin-top: 12px;
    margin-bottom: 28px;
}

.prosthetic-list li {
    margin-bottom: 10px;
    font-size: 0.93rem;
    padding: 8px 14px;
    border-left: 2px solid var(--green-light);
    background: var(--green-mist);
    transition: var(--transition);
}

.prosthetic-list li:hover {
    background: var(--green-pale);
    border-left-color: var(--green-deep);
    padding-left: 18px;
}

.prosthetic-list strong {
    color: var(--green-deep);
    font-weight: 600;
}

.orthotic-info-box {
    border-top: 1px dashed var(--border-mid);
    padding-top: 22px;
    margin-top: 22px;
}

.orthotic-info-box h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green-main);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === TEAM MEMBERS === */
.team-members-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-member-primary {
    display: flex;
    align-items: flex-start;
    gap: 45px;
    background: var(--white);
    border: 1px solid var(--border-mid);
    border-left: 5px solid var(--green-main);
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.team-member-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-deep), var(--green-light), var(--green-deep));
}

.team-photo-frame {
    width: 230px;
    min-height: 290px;
    border: 1px solid var(--border-mid);
    background: var(--green-faint);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.team-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.team-photo-frame::before,
.team-photo-frame::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--green-main);
    border-style: solid;
    z-index: 2;
}

.team-photo-frame::before {
    top: -1px;
    left: -1px;
    border-width: 3px 0 0 3px;
}

.team-photo-frame::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 3px 3px 0;
}

.team-badge {
    position: absolute;
    top: 12px;
    right: 0;
    background: var(--green-deep);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 3;
}

.team-info {
    flex: 1;
}

.team-name-primary {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--green-deep);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 10px;
}

.team-name-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--green-main), transparent);
}

.team-name-secondary {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-deep);
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.team-name-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 1px;
    background: linear-gradient(90deg, var(--green-mid), transparent);
}

.team-title-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-main);
    background: var(--green-pale);
    border: 1px solid var(--border-mid);
    padding: 4px 12px;
    margin-bottom: 14px;
}

.team-description {
    font-size: 0.93rem;
    color: var(--text-body);
    margin-bottom: 6px;
    line-height: 1.8;
}

.specialty-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--green-deep);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specialty-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.team-member-secondary {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green-mid);
    padding: 35px 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.team-member-physio {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: var(--green-faint);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green-light);
    padding: 35px 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.physio-reg-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border-mid);
    padding: 5px 14px;
    margin-bottom: 14px;
    margin-top: 4px;
}

.services-detail-list {
    list-style: none;
    margin-bottom: 6px;
}

.services-detail-list li {
    margin-bottom: 7px;
    font-size: 0.89rem;
    padding: 7px 12px;
    border-left: 2px solid var(--green-light);
    background: var(--green-mist);
    transition: var(--transition);
    color: var(--text-body);
}

.services-detail-list li:hover {
    background: var(--green-pale);
    border-left-color: var(--green-deep);
    padding-left: 16px;
}

/* === PHILOSOPHY / VISION / MISSION === */
.philosophy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.phil-box {
    border: 1px solid var(--border-mid);
    padding: 38px;
    background: var(--green-faint);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.phil-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.phil-box::before {
    content: '"';
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: var(--green-light);
    opacity: 0.25;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.phil-box h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    color: var(--green-deep);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.vision-mission-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vm-card {
    border: 1px solid var(--border-mid);
    padding: 28px;
    flex: 1;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--green-main), var(--green-light));
}

.vm-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}

.vm-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--green-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-left: 16px;
}

.vm-card p {
    padding-left: 16px;
}

/* === CERTIFICATIONS === */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
}

.cert-card {
    border: 1px solid var(--border-mid);
    height: 320px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cert-card::after {
    content: "VIEW CERTIFICATE";
    position: absolute;
    inset: 0;
    background: rgba(26, 77, 30, 0.55);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.cert-card:hover::after {
    opacity: 1;
}

.cert-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-main);
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.cert-card span {
    display: none;
}

.cert-card .cert-icon {
    display: none;
}

/* === WHAT WE DO MARQUEE === */
.marquee-container {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border-mid);
    background: linear-gradient(90deg, var(--green-faint) 0%, var(--green-pale) 50%, var(--green-faint) 100%);
    padding: 28px 0;
    display: flex;
    position: relative;
    cursor: grab;
    user-select: none;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(26, 77, 30, 0.05), inset 0 -2px 10px rgba(26, 77, 30, 0.05);
}

.marquee-container:active {
    cursor: grabbing;
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-item {
    width: 320px;
    height: 240px;
    border: 1px solid var(--border-mid);
    background: var(--white);
    margin-right: 22px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.marquee-item:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-main);
    z-index: 2;
}

.wwd-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.wwd-overlay {
    display: none;
}

.wwd-overlay h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* === LIGHTBOX === */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 25, 10, 0.93);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 94%;
    max-height: 92vh;
    border: 1px solid var(--green-main);
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(46, 125, 50, 0.3);
    display: none;
}

.lightbox-content.show {
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
    z-index: 10000;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--green-light);
    border-color: var(--green-light);
    transform: rotate(90deg);
}

/* === PROJECTS GRID === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    border: 1px solid var(--border);
    padding: 30px;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-main), var(--green-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--border-mid);
}

.project-card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--green-main);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.project-card p {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.project-card ul {
    list-style: none;
    margin-top: auto;
}

.project-card ul li {
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    padding-left: 8px;
    border-left: 1px solid var(--border);
}

/* === OBJECTIVES GRID === */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.objective-item {
    border-left: 3px solid var(--green-main);
    padding: 20px 24px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.objective-item:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--green-deep);
    transform: translateX(4px);
}

.objective-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green-deep);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.objective-item p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* === SERVICES GRID === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    border: 1px solid var(--border-mid);
    background: var(--white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.service-column {
    padding: 38px 32px;
    border-right: 1px solid var(--border);
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.service-column:last-child {
    border-right: none;
}

.service-column:hover {
    background: var(--green-faint);
}

.service-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-deep), var(--green-light));
}

.service-column h3 {
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 14px;
    margin-bottom: 18px;
    font-size: 0.78rem;
    color: var(--green-deep);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
}

.service-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--green-main);
}

.service-column ul {
    list-style: none;
}

.service-column ul li {
    font-size: 0.89rem;
    margin-bottom: 10px;
    color: var(--text-body);
    font-weight: 500;
    padding: 6px 10px;
    transition: var(--transition);
    border-radius: var(--radius);
}

.service-column ul li:hover {
    background: rgba(46, 125, 50, 0.08);
    color: var(--green-deep);
    padding-left: 14px;
}

/* === DONATION BOX === */


/* === FOOTER === */
footer {
    border-top: 1px solid var(--border);
    padding: 20px 30px;
    background: var(--white);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green-main), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-copy {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--green-main);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-left: 2px solid var(--green-light);
    padding-left: 8px;
}


.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 1px 4px rgba(26, 77, 30, 0.1));
}



@media (max-width: 768px) {
    .logo-img {
        height: 130px;
    }

    .nav-container {
        height: auto;
        padding: 12px 0;
        flex-direction: column;
        gap: 12px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav a {
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    .hero-inner {
        flex-direction: column;
        padding: 30px 24px 50px;
        gap: 40px;
        text-align: left;
    }

    .hero-heading {
        font-size: 3.2rem;
    }

    .hero-illustration {
        width: 240px;
    }

    .hero-tags {
        gap: 8px;
    }

    .brand-affiliation-showcase {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }

    .team-member-primary,
    .team-member-secondary,
    .team-member-physio {
        flex-direction: column;
        padding: 22px;
        align-items: center;
    }

    .team-photo-frame {
        width: 100%;
        max-width: 100%;
        min-height: 260px;
        margin: 0 auto;
    }

    .philosophy-container,
    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    .cert-card {
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 8px;
    }

    .cert-card span {
        display: flex !important;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        color: var(--green-deep);
        padding: 12px;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-top: 1px solid var(--border);
        z-index: 2;
        align-items: center;
        gap: 6px;
    }

    .cert-card .cert-icon {
        display: inline-block !important;
        color: var(--green-main);
        font-weight: bold;
    }

    .cert-card::after {
        display: none;
    }

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

    .service-column {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .service-column:last-child {
        border-bottom: none;
    }

    .account-details-list {
        padding: 18px;
    }

    .account-details-list li {
        flex-direction: column;
        gap: 2px;
    }

    .donation-box {
        padding: 35px 20px;
    }

    /* Gallery mobile */
    .team-photo-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-thumb {
        aspect-ratio: 16/9;
    }

    .gallery-lb-nav {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .gallery-lb-prev {
        left: 8px;
    }

    .gallery-lb-next {
        right: 8px;
    }

    .gallery-lightbox-img {
        max-width: 96vw;
        max-height: 80vh;
    }
}

/* ===== SUGATH PHOTO GALLERY ===== */
/* Desktop: side by side */
.team-photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 22px;
    width: 100%;
}

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

/* .team-photo-frame{

            position: center;
        } */
.gallery-thumb {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-mid);
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--green-faint);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
}

.gallery-thumb:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-main);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-thumb:hover img {
    transform: scale(1.04);
}

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 12, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-thumb:hover .gallery-thumb-overlay {
    background: rgba(10, 30, 12, 0.30);
}

.gallery-thumb-overlay span {
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover .gallery-thumb-overlay span {
    opacity: 1;
}

/* Mobile: stacked vertically, full width, larger */
@media (max-width: 768px) {

    .team-photo-gallery,
    .team-photo-gallery.has-more {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-thumb {
        aspect-ratio: 16/10;
    }

    .gallery-lightbox-img {
        max-width: 96vw;
        max-height: 75vh;
    }
}

/* Gallery lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    z-index: 9800;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.gallery-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(46, 125, 50, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.gallery-lightbox.open .gallery-lightbox-img {
    transform: scale(1);
}

.gallery-lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: sans-serif;
}

.gallery-lb-close:hover {
    background: rgba(46, 125, 50, 0.4);
    border-color: var(--green-light);
}

.gallery-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-lb-nav:hover {
    background: rgba(46, 125, 50, 0.4);
    border-color: var(--green-light);
}

.gallery-lb-prev {
    left: 16px;
}

.gallery-lb-next {
    right: 16px;
}

.gallery-lb-caption {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* Nusky reg tag restyle */
.physio-reg-clean {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border-mid);
    padding: 6px 16px;
    margin-bottom: 14px;
    margin-top: 4px;
}

.physio-reg-clean::before {
    content: '🏥';
    font-size: 0.9rem;
}


/* ===== SANDAREKA & PHYSIO SMALL GALLERY ===== */
.sandara-gallery,
.physio-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
    width: 100%;
}

.sandara-thumb,
.physio-thumb {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-mid);
    aspect-ratio: 4/3;
    background: var(--green-faint);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.sandara-thumb:hover,
.physio-thumb:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-main);
}

.sandara-thumb img,
.physio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.sandara-thumb:hover img,
.physio-thumb:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .sandara-gallery,
    .physio-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}