@import url('variables.css');
@import url('reset.css');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6
}

.container {
    max-width: 1170px;
    margin: auto;
    padding: 0 22px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase
}

.eyebrow:before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--gold)
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.15
}

h1 {
    font-size: clamp(2.65rem, 6vw, 5.2rem);
    letter-spacing: -.04em
}

h2 {
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    letter-spacing: -.035em
}

h3 {
    font-size: 1.35rem
}

p {
    color: var(--muted)
}

.section {
    padding: 100px 0
}

.section-head {
    max-width: 650px;
    margin-bottom: 46px
}

.section-head h2 {
    margin: 13px 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 23px;
    border: 1px solid transparent;
    border-radius: 99px;
    background: var(--teal);
    color: white;
    font-weight: 700;
    transition: .25s;
    cursor: pointer
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px #0f766e44
}

.btn.gold {
    background: var(--gold);
    color: var(--ink)
}

.btn.ghost {
    color: white;
    background: #ffffff15;
    border-color: #ffffff70
}

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

.btn.outline {
    background: white;
    color: var(--teal);
    border-color: var(--teal)
}

/* navigation */
.topline {
    background: var(--ink);
    color: #dbe6e5;
    font-size: .78rem
}

.topline .container {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav {
    height: 78px;
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 10;
    color: white
}

.nav.stuck {
    position: fixed;
    top: 0;
    background: #fffffff2;
    color: var(--ink);
    box-shadow: 0 4px 20px #00000010;
    backdrop-filter: blur(12px)
}

.nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.05;
    display: flex;
    align-items: center;
    gap: 10px
}

.brand-mark {
    width: 58px;              /* Adjusted container size for clear visibility */
    height: 58px;
    border-radius: 50%;       /* Keeps the circular shape */
    object-fit: contain;      /* Ensures image fits perfectly without distortion */
    object-position: center;   /* Centers the image within the container */
}

.brand small {
    display: block;
    font: 700 .56rem 'DM Sans';
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-top: 3px
}

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: .88rem;
    font-weight: 600
}

.menu a {
    position: relative
}

.menu a:not(.btn):after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: .2s
}

.menu a:hover:after,
.menu a.active:after {
    transform: scaleX(1)
}

.menu .btn {
    padding: 10px 16px
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.6rem;
    color: inherit
}

/* hero */
.hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg, #092c2e 5%, #0c5b53b5 50%, #0c332999), url('https://images.unsplash.com/photo-1509062522246-3755977927d3?auto=format&fit=crop&w=1800&q=85') center/cover
}

.hero:after {
    content: '';
    width: 500px;
    height: 500px;
    border: 1px solid #ffffff2d;
    border-radius: 50%;
    position: absolute;
    right: -120px;
    bottom: -210px
}

.hero-content {
    position: relative;
    padding-top: 95px;
    max-width: 800px
}

.hero .eyebrow {
    color: #fbd37e
}

.hero p {
    color: #e1f1ed;
    max-width: 600px;
    font-size: 1.1rem;
    margin: 22px 0 30px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    max-width: 910px;
    margin-top: 70px;
    background: #ffffff25;
    border: 1px solid #ffffff2f;
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(8px)
}

.hero-stat {
    padding: 18px 20px;
    background: #043a3690
}

.hero-stat strong {
    font-size: 1.35rem;
    display: block;
    font-family: 'Playfair Display'
}

.hero-stat span {
    font-size: .73rem;
    color: #d4e9e6
}

.scrollcue {
    position: absolute;
    bottom: 22px;
    right: 6%;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    color: #d7e9e7
}

/* blocks */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center
}

.photo {
    min-height: 470px;
    border-radius: var(--radius);
    background: linear-gradient(#0c3d3360, #0c3d3360), url('https://images.unsplash.com/photo-1607453998774-d533f65dac99?auto=format&fit=crop&w=1100&q=85') center/cover;
    box-shadow: var(--shadow);
    position: relative
}

.photo-badge {
    position: absolute;
    bottom: 25px;
    right: -18px;
    background: white;
    padding: 19px 22px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-weight: 700
}

.photo-badge b {
    display: block;
    font: 2rem 'Playfair Display';
    color: var(--teal)
}

.tick-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 25px;
    font-weight: 600;
    font-size: .91rem
}

.tick-list span:before {
    content: '✓';
    background: #d9f0e9;
    color: var(--green);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    margin-right: 8px
}

.soft {
    background: var(--mist)
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 21px
}

/* Updated Card Animations */
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 27px;
    /* Changed transition to a smoother, bouncier curve for a polished feel */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.card:hover {
    /* Slightly increased lift and added a subtle scale effect */
    transform: translateY(-10px) scale(1.02);
    /* Deeper, softer colored shadow */
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.15); 
    border-color: transparent
}

.program-card {
    padding: 0;
    overflow: hidden /* Ensures scaled image doesn't break border radius */
}

.program-image {
    height: 190px;
    background: center/cover;
    /* Added transition for image zoom effect */
    transition: transform 0.6s ease;
}

/* Image zoom effect on hover */
.program-card:hover .program-image {
    transform: scale(1.1);
}

.program-content {
    padding: 23px
}

.icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #e0f1ee;
    color: var(--teal);
    font-size: 1.35rem;
    margin-bottom: 15px
}

.program-content .icon {
    margin-top: -48px;
    position: relative;
    background: white;
    box-shadow: 0 5px 15px #0002
}

.program-content p {
    font-size: .9rem;
    margin-top: 8px
}

.program-modal-card {
    cursor: pointer;
    outline: none
}

.program-modal-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2)
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 20, 19, 0.78);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible
}

.modal-content {
    position: relative;
    width: min(860px, 100%);
    background: white;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24)
}

.modal-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover
}

.modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.modal-eyebrow {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 8px
}

.modal-body h3 {
    font: 1.5rem 'Playfair Display';
    margin-bottom: 10px
}

.modal-summary {
    font-size: 1rem;
    font-weight: 700;
    color: #21403d;
    margin-bottom: 10px
}

.modal-details {
    color: #4d5f5c;
    line-height: 1.7;
    margin-bottom: 16px
}

.modal-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.modal-highlights span {
    background: #e6f4ef;
    color: var(--teal);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    background: rgba(255,255,255,0.9);
    color: #123;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer
}

.impact {
    background: var(--ink);
    color: white
}

.impact .eyebrow {
    color: #fbd37e
}

.impact p {
    color: #bacbc9
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 45px;
    border-top: 1px solid #ffffff22;
    border-left: 1px solid #ffffff22
}

.impact-item {
    padding: 27px 20px;
    border-right: 1px solid #ffffff22;
    border-bottom: 1px solid #ffffff22
}

.impact-item strong {
    font: 2.45rem 'Playfair Display';
    display: block;
    color: #f9c565
}

.impact-item span {
    font-size: .8rem;
    color: #c7d7d4
}

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

.why-grid .card {
    padding: 22px
}

.why-grid h3 {
    font-size: 1.12rem
}

.why-grid p {
    font-size: .85rem;
    margin-top: 6px
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative
}

.timeline:before {
    content: '';
    height: 2px;
    background: #b1d8d2;
    position: absolute;
    top: 31px;
    left: 12%;
    right: 12%
}

.stage {
    position: relative;
    text-align: center
}

.stage b {
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    width: 64px;
    height: 64px;
    background: var(--teal);
    border: 7px solid #ddf0ed;
    color: white;
    border-radius: 50%;
    font-size: 1.3rem
}

.stage h3 {
    font-size: 1.2rem
}

.stage p {
    font-size: .87rem;
    margin-top: 7px
}

/* --- REPLACED SDG MARQUEE SECTION --- */
.sdg-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.sdg-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: sdg-scroll 18s linear infinite;
}

.sdg-marquee:hover .sdg-track {
    animation-play-state: paused;
}

.sdg {
    width: 170px;
    min-height: 138px;
    padding: 18px 12px;
    flex-shrink: 0;
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: .86rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    filter: brightness(1.15);
}

.sdg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
}

.sdg > * {
    position: relative;
    z-index: 1;
}

/* Background images from assets/icons */
.sdg:nth-child(7n + 1) { background-image: url('../assets/icons/nopoverty.png'); }
.sdg:nth-child(7n + 2) { background-image: url('../assets/icons/hunger.png'); }
.sdg:nth-child(7n + 3) { background-image: url('../assets/icons/medication.png'); }
.sdg:nth-child(7n + 4) { background-image: url('../assets/icons/education.png'); }
.sdg:nth-child(7n + 5) { background-image: url('../assets/icons/gd.png'); }
.sdg:nth-child(7n + 6) { background-image: url('../assets/icons/publichelp.png'); }
.sdg:nth-child(7n + 7) { background-image: url('../assets/icons/foregin.png'); }

@keyframes sdg-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 8px));
    }
}
/* --- END OF REPLACED SECTION --- */

.cta {
    border-radius: 25px;
    padding: 60px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(110deg, #0f766e, #164e44);
    color: white
}

.cta:after {
    content: '';
    position: absolute;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: #f59e0b;
    opacity: .17;
    right: -110px;
    top: -150px
}

.cta>* {
    position: relative;
    z-index: 1
}

.cta h2 {
    max-width: 620px
}

.cta p {
    color: #d7eeea;
    max-width: 600px;
    margin: 16px 0 25px
}

.funds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px
}

.bar {
    margin: 17px 0
}

.bar-label {
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between
}

.bar-track {
    height: 8px;
    border-radius: 10px;
    background: #d9e8e5;
    margin-top: 7px;
    overflow: hidden
}

.bar-track i {
    height: 100%;
    display: block;
    background: var(--teal);
    border-radius: inherit;
    width: var(--w)
}

/* inner / gallery / contact */
.page-hero {
    padding: 170px 0 75px;
    background: linear-gradient(110deg, #093f3a, #146458), url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: white
}

.page-hero p {
    color: #d9ece9;
    max-width: 600px;
    margin-top: 12px
}

.page-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem)
}

.crumb {
    font-size: .8rem;
    color: #f8cf76;
    margin-bottom: 16px
}

.gallery-filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 25px
}

.filter {
    border: 1px solid var(--line);
    background: white;
    padding: 8px 14px;
    border-radius: 99px;
    font-weight: 700;
    font-size: .8rem;
    cursor: pointer
}

.filter.active,
.filter:hover {
    background: var(--teal);
    color: white;
    border-color: var(--teal)
}

.gallery-grid {
    columns: 3;
    column-gap: 16px
}

.gallery-tile {
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    margin-bottom: 16px;
    cursor: pointer
}

.gallery-tile img {
    width: 100%;
    transition: .35s
}

.gallery-tile:hover img {
    transform: scale(1.06)
}

.gallery-tile figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 14px 12px;
    color: white;
    font-weight: 700;
    background: linear-gradient(transparent, #001a17bd);
    font-size: .88rem
}

.certificate {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px
}

.certificate .paper {
    aspect-ratio: 1.35;
    background: linear-gradient(135deg, #fff, #edf5f3);
    border: 1px solid #c5dad6;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px
}

.paper b {
    font-family: 'Playfair Display';
    font-size: 1.3rem;
    color: var(--teal)
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 30px
}

.contact-info {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 42px;
    color: white
}

.contact-info p {
    color: #d6e4e2
}

.contact-row {
    border-top: 1px solid #ffffff25;
    margin-top: 21px;
    padding-top: 18px
}

.contact-row b {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    color: #f5c25c;
    letter-spacing: .1em
}

.form {
    padding: 37px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

.field {
    margin-bottom: 16px
}

.field label {
    display: block;
    font-size: .79rem;
    font-weight: 700;
    margin-bottom: 6px
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    outline: none
}

.field input:focus,
.field textarea:focus {
    border-color: var(--teal)
}

.field textarea {
    height: 115px;
    resize: vertical
}

.map {
    height: 180px;
    border-radius: 12px;
    margin-top: 28px;
    background: linear-gradient(135deg, #c7e4dd, #f9f1d9);
    display: grid;
    place-items: center;
    color: var(--teal);
    font-weight: bold
}

.partners {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.partner {
    height: 75px;
    min-width: 150px;
    flex: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #7b8b90;
    font-weight: 700
}

/* footer */
footer {
    background: #081d1c;
    color: white;
    padding: 60px 0 20px
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 35px
}

.footer-grid h4 {
    font: 1.05rem 'Playfair Display';
    margin-bottom: 14px
}

.footer-grid p,
.footer-grid a {
    font-size: .84rem;
    color: #bbcfcc;
    display: block;
    margin: 8px 0;
    transition: font-size .2s ease, text-shadow .2s ease, color .2s ease
}

.footer-grid a:hover {
    font-size: .9rem;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(255,255,255,0.25)
}

.footer-brand p {
    max-width: 310px;
    margin-top: 15px
}

.copyright {
    border-top: 1px solid #ffffff22;
    margin-top: 45px;
    padding-top: 16px;
    color: #9ab0ac;
    font-size: .76rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.footer-policy-btn {
    background: transparent;
    border: 0;
    color: #f9d79a;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px
}

.footer-policy-btn:hover {
    color: white
}

.policy-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 20, 19, 0.82);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 2200;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease
}

.policy-modal.open {
    opacity: 1;
    visibility: visible
}

.policy-modal-card {
    width: min(760px, 100%);
    max-height: 85vh;
    overflow: auto;
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative
}

.policy-modal-card h3 {
    font: 1.45rem 'Playfair Display';
    color: var(--teal);
    margin-bottom: 10px
}

.policy-modal-card p {
    color: #4d5f5c;
    line-height: 1.75;
    margin-bottom: 12px
}

.policy-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    background: #edf7f4;
    color: #123;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s, transform .65s
}

.reveal.show {
    opacity: 1;
    transform: none
}

@media(max-width:900px) {
    .menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85%);
        height: 100vh;
        background: white;
        color: var(--ink);
        padding: 88px 30px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: -10px 0 30px #0002
    }

    .menu.open {
        display: flex
    }

    .menu-toggle {
        display: block
    }

    .menu .btn {
        width: 100%
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 34px
    }

    .photo {
        min-height: 360px
    }

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

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

    .impact-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .sdgs {
        grid-template-columns: repeat(4, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .timeline {
        gap: 12px
    }

    .timeline:before {
        left: 13%;
        right: 13%
    }
}

@media(max-width:560px) {
    .topline .container span:last-child {
        display: none
    }

    .section {
        padding: 65px 0
    }

    .hero {
        min-height: 700px
    }

    .hero-content {
        padding-top: 105px
    }

    .hero-stats {
        margin-top: 45px
    }

    .hero-stat {
        padding: 13px
    }

    .hero-stat strong {
        font-size: 1.1rem
    }

    .cards,
    .why-grid {
        grid-template-columns: 1fr
    }

    .impact-grid {
        grid-template-columns: 1fr 1fr
    }

    .impact-item {
        padding: 20px
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
        gap: 25px
    }

    .timeline:before {
        display: none
    }

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

    .gallery-grid {
        columns: 2
    }

    .cta {
        padding: 35px 25px
    }

    .funds {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .copyright {
        display: block
    }

    .copyright span {
        display: block;
        margin-top: 6px
    }

    .tick-list {
        grid-template-columns: 1fr
    }

    .page-hero {
        padding: 145px 0 60px
    }
}