/* =========================================
   NUROHOPE WEBSITE
   MAIN STYLES
========================================= */


/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #d55f82;
    background: #ffffff;
    line-height: 1.6;
}

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

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

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e6edf2;
}

.nav-container {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.logo {
    font-family: 'Apple Chancery', cursive; 
    font-size: 2.00rem;
    font-weight: 800;

    letter-spacing: 1px;

    color: #123d66;
}

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 50px;
}

.nav-links a {
    font-size: 0.94rem;
    font-weight: 500;

    transition: 0.2s ease;
}

.nav-links a:hover {
    color: #16859a;
}

.nav-button {
    padding: 12px 22px;

    border-radius: 30px;

    background: #d55f82;
    color: white;

    font-weight: 700;

    transition: 0.25s ease;
}

.nav-button:hover {
    background: #16859a;
    transform: translateY(-2px);
}


/* =========================================
   GENERAL
========================================= */

.section {
    padding: 110px 0;
}

.eyebrow {
    margin-bottom: 16px;

    color: #15879a;

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 2.5px;
}

h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);

    line-height: 1.08;

    letter-spacing: -1.5px;
}

.text-link {
    display: inline-block;

    margin-top: 25px;

    color: #d55f82;

    font-weight: 700;

    border-bottom: 2px solid #15879a;

    padding-bottom: 4px;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 720px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(38, 155, 173, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #edf8fa 0%,
            #f7fbfc 55%,
            #ffffff 100%
        );

    overflow: hidden;
}

.hero-container {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;

    gap: 50px;
}

.hero-content {
    padding: 80px 0;
}

.hero h1 {
    max-width: 850px;

    margin-bottom: 30px;

    font-size: clamp(3.2rem, 6vw, 5.8rem);

    line-height: 0.98;

    letter-spacing: -3px;
}

.hero h1 span {
    color: #d55f82;
}

.hero-description {
    max-width: 680px;

    margin-bottom: 35px;

    color: #53647a;

    font-size: 1.15rem;
}

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}


/* =========================================
   BUTTONS
========================================= */

.button {
    display: inline-block;

    padding: 14px 26px;

    border-radius: 30px;

    font-weight: 700;

    transition: 0.25s ease;
}

.button-primary {
    background: #123d66;
    color: white;
}

.button-primary:hover {
    background: #16859a;
    transform: translateY(-3px);
}

.button-outline {
    border: 1.5px solid #123d66;
    color: #123d66;
}

.button-outline:hover {
    background: #123d66;
    color: white;
}

.button-light {
    background: white;
    color: #123d66;
}

.button-light:hover {
    transform: translateY(-3px);
}


/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {
    min-height: 480px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-circle {
    width: 340px;
    height: 340px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #ffffff 0%,
            #dff2f5 45%,
            #b9e1e7 100%
        );

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 30px 70px rgba(18, 61, 102, 0.12);

    border: 1px solid rgba(21, 135, 154, 0.2);
}

.brain-symbol {
    width: 150px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 45% 55% 50% 50%;

    background: #123d66;

    color: white;

    font-size: 5rem;

    transform: rotate(-8deg);
}

.floating-card {
    position: absolute;

    padding: 18px 22px;

    background: white;

    border: 1px solid #e3edf1;

    border-radius: 15px;

    box-shadow:
        0 20px 45px rgba(20, 55, 80, 0.1);
}

.floating-card strong {
    display: block;

    color: #d55f82;

    margin-bottom: 4px;
}

.floating-card span {
    display: block;

    color: #657489;

    font-size: 0.82rem;
}

.card-one {
    top: 60px;
    right: 0;
}

.card-two {
    bottom: 65px;
    left: 0;
}


/* =========================================
   MISSION
========================================= */

.mission {
    background: white;
}

.mission-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: start;
}

.section-label h2 {
    max-width: 500px;
}

.mission-text {
    padding-top: 35px;

    color: #53647a;

    font-size: 1.08rem;
}

.mission-text p + p {
    margin-top: 20px;
}


/* =========================================
   WHY NUROHOPE
========================================= */

.why {
    background: #f4f9fb;
}

.section-intro {
    max-width: 760px;

    margin-bottom: 55px;
}

.section-intro > p:last-child {
    margin-top: 20px;

    color: #607084;

    font-size: 1.05rem;
}

.feature-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.feature-card {
    min-height: 280px;

    padding: 30px;

    background: white;

    border: 1px solid #e2ebef;

    border-radius: 18px;

    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(20, 55, 80, 0.08);
}

.feature-number {
    margin-bottom: 55px;

    color: #15879a;

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 2px;
}

.feature-card h3 {
    margin-bottom: 12px;

    font-size: 1.25rem;
}

.feature-card p {
    color: #687789;

    font-size: 0.94rem;
}


/* =========================================
   PROGRAMS
========================================= */

.programs {
    background: white;
}

.program-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.program-card {
    padding: 35px;

    min-height: 260px;

    background: #f5f9fb;

    border-radius: 20px;

    border: 1px solid #e4edf1;

    transition: 0.25s ease;
}

.program-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(20, 55, 80, 0.08);
}

.program-large {
    grid-column: span 2;

    display: grid;

    grid-template-columns: 90px 1fr;

    gap: 30px;

    align-items: start;

    background: #123d66;

    color: white;
}

.program-large p,
.program-large h3 {
    color: white;
}

.program-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dceff2;

    color: #d55f82;

    font-weight: 800;
}

.program-category {
    margin-bottom: 8px;

    color: #15879a;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 2px;
}

.program-card h3 {
    margin-bottom: 12px;

    font-size: 1.5rem;
}

.program-card p {
    color: #647487;

    font-size: 0.95rem;
}

.program-large p {
    color: #d7e5ed;
}


/* =========================================
   FOUNDERS
========================================= */

.founders {
    background: #edf7f9;
}

.founders-container {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}

.founders-text > p:not(.eyebrow) {
    max-width: 570px;

    margin-top: 20px;

    color: #5e6e80;
}

.founder-cards {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.founder-card {
    padding: 35px 25px;

    text-align: center;

    background: white;

    border-radius: 20px;

    border: 1px solid #dfebef;
}

.founder-photo {
    width: 120px;
    height: 120px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #d55f82;

    color: white;

    font-size: 2rem;
    font-weight: 800;
}

.founder-card h3 {
    margin-bottom: 5px;
}

.founder-card p {
    color: #123d66;

    font-size: 0.9rem;
}


/* =========================================
   GET INVOLVED
========================================= */

.involved {
    background: white;
}

.involved-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.involved-card {
    padding: 35px;

    min-height: 300px;

    display: flex;
    flex-direction: column;

    border: 1px solid #e1e9ee;

    border-radius: 20px;

    transition: 0.25s ease;
}

.involved-card:hover {
    background: #123d66;

    color: white;

    transform: translateY(-5px);
}

.involved-card span {
    color: #15879a;

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 45px;
}

.involved-card h3 {
    font-size: 1.45rem;

    margin-bottom: 12px;
}

.involved-card p {
    color: #687789;

    font-size: 0.95rem;
}

.involved-card strong {
    margin-top: auto;

    padding-top: 25px;

    font-size: 0.9rem;
}

.involved-card:hover p {
    color: #d9e5eb;
}


/* =========================================
   SUPPORT
========================================= */

.support {
    background: #123d66;

    color: #db849e;
}

.support-container {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}

.support h2 {
    max-width: 600px;
}

.support p {
    margin-bottom: 25px;

    color: #d7e4eb;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    background: #f5f9fb;
}

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}

.contact-grid > div:first-child > p:last-child {
    max-width: 560px;

    color: #d55f82;

    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;

    gap: 30px;
}

.contact-item {
    padding-bottom: 25px;

    border-bottom: 1px solid #dce5e9;
}

.contact-item span {
    display: block;

    margin-bottom: 7px;

    color: #15879a;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 2px;
}

.contact-item a {
    color: #883587;

    font-size: 1.1rem;
    font-weight: 600;
}


/* =========================================
   FOOTER
========================================= */

footer {
    border-top: 1px solid #ffffff;
    background: #d55f82;

    color: white;
}

.footer-grid {
    padding: 65px 0;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 70px;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 15px;

    font-size: 1.4rem;
    font-weight: 800;

    letter-spacing: 1px;
}

.footer-grid p {
    max-width: 350px;

    color: #b7c7d2;
}

.footer-grid h4 {
    margin-bottom: 15px;
}

.footer-grid a:not(.footer-logo) {
    display: block;

    margin-bottom: 9px;

    color: #b7c7d2;
}

.footer-grid a:hover {
    color: white;
}

.copyright {
    padding: 20px;

    text-align: center;

    border-top: 1px solid rgba(255,255,255,0.1);

    color: #93a7b5;

    font-size: 0.82rem;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .nav-links {
        gap: 15px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

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

    .mission-grid,
    .founders-container,
    .support-container,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .section {
        padding: 75px 0;
    }

    .nav-container {
        min-height: 65px;
    }

    .nav-links {
        display: none;
    }

    .nav-button {
        padding: 9px 16px;

        font-size: 0.85rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 3.1rem;

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .feature-grid,
    .program-grid,
    .involved-grid,
    .founder-cards {
        grid-template-columns: 1fr;
    }

    .program-large {
        grid-column: span 1;

        grid-template-columns: 1fr;
    }

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

        gap: 35px;
    }

}
/* =====================================================
   INNER PAGE STYLES
===================================================== */


/* =====================================================
   PAGE HERO
===================================================== */

.page-hero {
    padding: 120px 0 100px;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(22, 138, 154, 0.14),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #EEF8FA 0%,
            #F8FBFC 60%,
            #FFFFFF 100%
        );
}

.page-hero .container {
    max-width: 1000px;
}

.page-hero h1 {
    max-width: 900px;

    margin-bottom: 25px;

    color: var(--navy);

    font-size: clamp(3rem, 6vw, 5.5rem);

    line-height: 1;

    letter-spacing: -3px;
}

.page-hero p:last-child {
    max-width: 720px;

    color: var(--muted);

    font-size: 1.15rem;

    line-height: 1.75;
}


/* =====================================================
   TWO COLUMN CONTENT
===================================================== */

.two-column {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: start;
}

.content-text {
    padding-top: 20px;

    color: var(--muted);

    font-size: 1.05rem;

    line-height: 1.8;
}

.content-text p + p {
    margin-top: 22px;
}


/* =====================================================
   ABOUT HIGHLIGHT
===================================================== */

.about-highlight {
    background: var(--blue-soft);
}


/* =====================================================
   CENTERED CONTENT
===================================================== */

.center-content {
    text-align: center;
}

.center-content > p:not(.eyebrow) {
    max-width: 650px;

    margin: 20px auto 30px;

    color: var(--muted);

    font-size: 1.05rem;
}


/* =====================================================
   TEAM
===================================================== */

.team-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    max-width: 900px;

    margin: 0 auto;
}

.team-card {
    padding: 45px 35px;

    text-align: center;

    background: #edf7f9;

    border: 1px solid var(--border);

    border-radius: 22px;

    transition: all 0.25s ease;
}

.team-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(23, 54, 93, 0.1);
}


.team-photo {
    width: 145px;
    height: 145px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--navy),
        var(--teal)
    );

    color: #edf7f9;
    font-size: 2.4rem;
    font-weight: 600;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
      transform: scale(1.15);
}


.team-card h3 {
    margin-bottom: 15px;

    color: var(--navy);

    font-size: 1.6rem;
}

.team-card > p:last-child {
    color: var(--muted);

    line-height: 1.7;
}


/* =====================================================
   EVENTS
===================================================== */

.event-placeholder {
    max-width: 760px;

    margin: 0 auto;

    padding: 65px 45px;

    text-align: center;

    background: var(--blue-soft);

    border: 1px solid var(--border);

    border-radius: 24px;
}

.event-placeholder .program-icon {
    margin: 0 auto 25px;
}

.event-placeholder h3 {
    margin-bottom: 15px;

    font-size: 1.7rem;
}

.event-placeholder p {
    max-width: 560px;

    margin: 0 auto 30px;

    color: var(--muted);
}


/* =====================================================
   CONTACT PAGE
===================================================== */

.contact-page-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}

.contact-description {
    max-width: 550px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 1.05rem;

    line-height: 1.8;
}


/* =====================================================
   PAGE-SPECIFIC SUPPORT
===================================================== */

.support-container {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.support-container .eyebrow {
    color: #BDECEF;
}

.support-container p:not(.eyebrow) {
    color: #E2F5F6;

    line-height: 1.7;
}


/* =====================================================
   INNER PAGE MOBILE
===================================================== */

@media (max-width: 900px) {

    .page-hero {
        padding: 90px 0 75px;
    }

    .page-hero h1 {
        font-size: clamp(2.8rem, 8vw, 4.5rem);
    }

    .two-column,
    .contact-page-grid,
    .support-container {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .team-grid {
        grid-template-columns: 1fr;

        max-width: 550px;
    }

}


@media (max-width: 700px) {

    .page-hero {
        padding: 75px 0 65px;
    }

    .page-hero h1 {
        font-size: 3rem;

        letter-spacing: -2px;
    }

    .page-hero p:last-child {
        font-size: 1rem;
    }

    .event-placeholder {
        padding: 45px 25px;
    }

    .team-card {
        padding: 35px 25px;
    }

}
/* =====================================================
   NAVBAR LOGO IMAGE
===================================================== */

.nav-container {
    display: flex;
    align-items: center;
}

.nav-container > img {
    width: 65px;
    height: 65px;

    object-fit: contain;

    border-radius: 70px;
}


/* Keep navbar elements aligned */

.nav-container .nav-button {
    flex-shrink: 0;
}


/* Mobile */

@media (max-width: 700px) {

    .nav-container > img {
        width: 36px;
        height: 36px;

        margin-left: 15px;
    }

}
/* =====================================================
   SCROLLING TEAM MEMBERS
===================================================== */

.team-scroll {
    display: flex;
    gap: 24px;

    overflow-x: auto;

    padding: 10px 5px 30px;

    scroll-behavior: smooth;

    scrollbar-width: thin;
}

.team-member {
    flex: 0 0 280px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 28px;

    min-height: 190px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-member h3 {
    color: var(--navy);

    margin: 8px 0 12px;

    font-size: 1.35rem;
}

.team-member p:not(.program-category) {
    color: var(--muted);

    line-height: 1.6;

    margin: 0;
}
/* =========================================
   HERO WATER RIPPLE & FLOATING CARDS
========================================= */

.hero-visual {
    position: relative;
    isolation: isolate;
}

/* Brain circle */

.brain-circle {
    position: relative;
    z-index: 2;

    animation: brainDrop 1s ease-out both;
}

@keyframes brainDrop {
    0% {
        opacity: 0;
        transform: translateY(-45px) scale(0.8);
    }

    70% {
        opacity: 1;
        transform: translateY(5px) scale(1.03);
    }

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

/* Continuous ripple rings */

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;

    border: 2px solid rgba(21, 135, 154, 0.4);
    border-radius: 50%;

    pointer-events: none;
    z-index: 1;

    animation: waterRipple 3.6s ease-out infinite;
    will-change: transform, opacity;
}

.ring-1 {
    width: 350px;
    height: 350px;
    animation-delay: 0s;
}

.ring-2 {
    width: 350px;
    height: 350px;
    animation-delay: 1.2s;
}

.ring-3 {
    width: 350px;
    height: 350px;
    animation-delay: 2.4s;
}

@keyframes waterRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    15% {
        opacity: 0.65;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.65);
        opacity: 0;
    }
}

/* Floating cards */

.floating-card {
    position: absolute;
    z-index: 3;

    width: 205px;
    padding: 17px 19px;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(21, 135, 154, 0.2);
    border-radius: 17px;

    box-shadow: 0 15px 40px rgba(18, 61, 102, 0.12);

    animation: gentleFloat 4s ease-in-out infinite;
}

.floater-icon {
    display: block;
    margin-bottom: 7px;

    color: #D55F82;
    font-size: 1.5rem;
    line-height: 1.2;
}

.floating-card strong {
    display: block;
    margin-bottom: 4px;

    color: #D55F82;
    font-size: 0.95rem;
}

.floating-card span:last-child {
    display: block;

    color: #657489;
    font-size: 0.78rem;
    line-height: 1.45;
}

.card-one {
    top: 35px;
    right: -10px;
    animation-delay: 0s;
}

.card-two {
    bottom: 30px;
    left: -25px;
    animation-delay: 1s;
}

.card-three {
    top: 65px;
    left: -25px;
    animation-delay: 2s;
}

.card-four {
    bottom: 35px;
    right: -10px;
    animation-delay: 0.5s;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Keep the hero visual visible on desktop only for now */

@media (max-width: 1000px) {
    .hero-visual {
        display: none;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .brain-circle,
    .ripple,
    .floating-card {
        animation: none;
    }

    .ripple {
        display: none;
    }
}
/* =========================================
   OUR PARTNERS SECTION
========================================= */

/* Ensure two equal columns with a comfortable gap */
.founders-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Image container styling */
.partners-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image styling */
.partners-img {
    width: 100%;
    max-width: 650px; /* Increase this number (e.g. 700px) if you want it even bigger */
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(20, 55, 80, 0.12);
    border: 1px solid #e1e9ee;
}

/* Responsive adjustment for tablets & mobile screens */
@media (max-width: 1000px) {
    .founders-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partners-img {
        max-width: 100%;
    }
}
/* =========================================
   WHY NUROHOPE SIDE-BY-SIDE LAYOUT
========================================= */

.why-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 55px;
}

.why-hero-grid .section-intro {
    margin-bottom: 0; /* Clears bottom margin so grid aligns nicely */
}

.why-logo {
    display: flex;
    justify-content: right;
    align-items: right;
    transform: translateY(-20px);
    
}

.why-logo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(20, 55, 80, 0.1);
    object-fit: cover;
}

/* Stack on mobile screens */
@media (max-width: 1000px) {
    .why-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* BLOG IMAGE SIZE */

.blog-card img {
 width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(20, 55, 80, 0.1);
    object-fit: cover;
}
/* FOUNDER PHOTOS */

.founder-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f9fb;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* GET INVOLVED SIDE-BY-SIDE LAYOUT */

.involved .why-hero-grid {
    margin-bottom: 55px;
}

.involved .why-hero-grid .section-intro {
    margin-bottom: 0;
}

.involved .why-logo {
    justify-content: flex-end;
    transform: translateY(-20px);
}

/* Stack on smaller screens */
@media (max-width: 1000px) {
    .involved .why-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .involved .why-logo {
        transform: none;
        justify-content: flex-start;
    }
}
/* FIX WHAT WE DO SECTION SPACING */

.programs .why-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 35px;
}

.programs .section-intro {
    margin-bottom: 0;
}

.programs .why-logo {
    transform: none;
    justify-content: flex-end;
}

.programs .why-logo img {
    width: 100%;
    max-width: 400px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

/* Keep program cards in their grid */
.programs .program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 700px) {
    .programs .why-hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .programs .why-logo img {
        max-width: 100%;
        height: 260px;
    }

    .programs .program-grid {
        grid-template-columns: 1fr;
    }
}
/* FINAL FIX — WHAT WE DO SECTION */

.programs .container {
    width: min(1180px, 90%);
    margin-left: auto;
    margin-right: auto;
}

.programs .why-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
    margin-bottom: 35px;
}

.programs .why-hero-grid .section-intro {
    max-width: 760px;
    margin-bottom: 0;
}

.programs .why-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transform: none;
}

.programs .why-logo img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

/* Prevent the first card from spanning the entire row */
.programs .program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.programs .program-card.program-large {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .programs .why-hero-grid,
    .programs .program-grid {
        grid-template-columns: 1fr;
    }

    .programs .why-logo img {
        max-width: 100%;
        height: 260px;
    }
}

/* Make the Education card full-width like the Programs page */
.program-card.program-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: start;
    gap: 24px;
}

/* Keep the remaining program cards in two columns */
.program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Mobile layout */
@media (max-width: 700px) {
    .program-grid {
        grid-template-columns: 1fr;
    }

    .program-card.program-large {
        grid-template-columns: 1fr;
    }
}
/* OUR STORY SECTION */
.why-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    margin-bottom: 35px;
}

.why-hero-grid .section-intro {
    text-align: left;
}

.why-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-logo img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* STORY TEXT */
.content-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 18px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .why-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-hero-grid .section-intro {
        text-align: center;
    }

    .why-logo img {
        max-width: 100%;
    }
}

/* OUR MISSION — SIDE-BY-SIDE LAYOUT */

.about-highlight .mission-image-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.about-highlight .mission-image {
    display: flex;
    justify-content: flex-end;
     transform: translateY(-100px);
    align-items: center;
}

.about-highlight .mission-image img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(20, 55, 80, 0.1);
}

.about-highlight .mission-content {
    min-width: 0;
}

/* MOBILE */
@media (max-width: 700px) {
    .about-highlight .mission-image-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-highlight .mission-image {
        justify-content: flex-start;
    }

    .about-highlight .mission-image img {
        max-width: 100%;
    }
}

/* ===== VOLUNTEERS PAGE (Strictly Contained Horizontal Scroll) ===== */

/* Prevent the whole page from getting a side scrollbar */
body {
    overflow-x: hidden;
}

.volunteer-slider {
    width: 100%;
    max-width: 100vw;
    overflow: hidden; /* Hides the overflowing track */
    position: relative;
    padding: 10px 0 30px;
}

.volunteer-grid {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: horizontalScrollLoop 30s linear infinite;
}

/* Pause the scrolling when a user hovers over the cards */
.volunteer-grid:hover {
    animation-play-state: paused;
}

.volunteer-card {
    flex: 0 0 280px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.volunteer-card h3 {
    color: var(--navy);
    margin: 8px 0 12px;
    font-size: 1.35rem;
}

.volunteer-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Keyframes for horizontal translation */
@keyframes horizontalScrollLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* =========================================
   NUROHOPE VOLUNTEER PORTAL — MODERN DESIGN
   ========================================= */

.volunteer-portal-content {
    max-width: 1050px;
    margin: 55px auto 80px;
    padding: 0;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: #ffffff;
    border: 1px solid #e9eaf0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(23, 59, 96, 0.10);
    text-align: left;
}

/* Welcome panel on the left */

.volunteer-portal-content::before {
    content: "NUROHOPE\A\A Making brain health knowledge accessible to every community.\A\A Your time, ideas, and compassion can make a difference.";
    white-space: pre-line;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 42px;
    background: linear-gradient(145deg, #173b60, #24577e);
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 400;
}

/* Form side */

.volunteer-portal-content #auth-section,
.volunteer-portal-content #dashboard {
    min-width: 0;
    padding: 45px;
}

.volunteer-portal-content h3 {
    color: #173b60;
    font-size: 1.45rem;
    margin: 0 0 24px;
}

.volunteer-portal-content hr {
    border: 0;
    border-top: 1px solid #e9eaf0;
    margin: 32px 0;
}

/* Form fields */

#signup-form,
#login-form,
#hours-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.volunteer-portal-content label {
    display: block;
    margin-top: 8px;
    color: #35465d;
    font-size: 0.9rem;
    font-weight: 600;
}

.volunteer-portal-content input,
.volunteer-portal-content textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    margin-bottom: 8px;
    border: 1px solid #dfe3eb;
    border-radius: 10px;
    background: #f9fafc;
    color: #26364a;
    font-family: inherit;
    font-size: 0.96rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.volunteer-portal-content input:focus,
.volunteer-portal-content textarea:focus {
    outline: none;
    border-color: #dc5c83;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(220, 92, 131, 0.12);
}

.volunteer-portal-content textarea {
    min-height: 110px;
    resize: vertical;
}

/* Buttons */

.volunteer-portal-content button {
    width: 100%;
    padding: 14px 20px;
    margin-top: 12px;
    border: none;
    border-radius: 10px;
    background: #173b60;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.volunteer-portal-content button:hover {
    background: #24577e;
    transform: translateY(-1px);
}

/* Status messages */

#auth-message,
#hours-message {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Dashboard */

#dashboard h3 {
    margin-top: 25px;
}

#hours-list {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

/* Mobile screens */

@media (max-width: 760px) {
    .volunteer-portal-content {
        grid-template-columns: 1fr;
        margin: 30px auto 50px;
        border-radius: 18px;
    }

    .volunteer-portal-content::before {
        padding: 30px 25px;
        font-size: 1rem;
    }

    .volunteer-portal-content #auth-section,
    .volunteer-portal-content #dashboard {
        padding: 28px 22px;
    }
}

/* =========================================
   NUROHOPE VOLUNTEER PORTAL
========================================= */

/* Keep hidden elements hidden */
[hidden] {
    display: none !important;
}

/* Portal section spacing */
.volunteer-portal-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Center the login card */
.auth-card {
    max-width: 540px;
    margin: 0 auto;
    padding: 38px;
    background: #ffffff;
    border: 1px solid #e6edf2;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(18, 61, 102, 0.09);
}

/* Login and signup headings */
#auth-section h3 {
    color: #123d66;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

#auth-section h3:not(:first-child) {
    margin-top: 30px;
}

/* Forms */
#login-form,
#signup-form,
#hours-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Labels */
.volunteer-portal-content label {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Input fields */
.volunteer-portal-content input,
.volunteer-portal-content textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e4ea;
    border-radius: 12px;
    background: #fbfcfe;
    color: #263445;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s ease;
}

/* Focus styling */
.volunteer-portal-content input:focus,
.volunteer-portal-content textarea:focus {
    border-color: #15879a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(21, 135, 154, 0.12);
}

/* Description field */
.volunteer-portal-content textarea {
    min-height: 110px;
    resize: vertical;
}

/* Portal buttons */
.volunteer-portal-content .button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: 0.2s ease;
}

/* Navy sign-in button */
.volunteer-portal-content .button-primary {
    background: #172f83;
    color: #ffffff;
}

.volunteer-portal-content .button-primary:hover {
    background: #123d66;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(18, 61, 102, 0.18);
}

/* Divider */
#auth-section hr {
    margin-top: 28px;
    border: none;
    border-top: 1px solid #e6edf2;
}

/* Dashboard card */
#dashboard {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e6edf2;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(18, 61, 102, 0.08);
}

/* Submitted volunteer hours */
.hour-entry {
    margin: 16px 0;
    padding: 20px;
    background: #f4f9fb;
    border: 1px solid #e1e9ee;
    border-left: 4px solid #15879a;
    border-radius: 14px;
    overflow-wrap: anywhere;
}

.hour-entry h3 {
    margin-bottom: 8px;
    color: #123d66;
}

.hour-entry p {
    margin-top: 6px;
    color: #53647a;
    line-height: 1.6;
}

/* Status messages */
#auth-message,
#hours-message {
    overflow-wrap: anywhere;
}

/* Mobile portal layout */
@media (max-width: 600px) {
    .volunteer-portal-content {
        padding: 0 14px;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 18px;
    }

    #dashboard {
        padding: 22px 18px;
    }
}
.volunteer-portal-section {
    padding: 75px 0;
}

@media (max-width: 600px) {
    .volunteer-portal-section {
        padding: 45px 0;
    }
}

/* =====================================
   NUROHOPE LOGIN - REFERENCE DESIGN
===================================== */

.portal-login-page {
    position: relative;
    isolation: isolate;
    min-height: 700px;
    padding: 65px 20px 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fdfdfc;
}

/* Decorative blue corner shapes */
.portal-circle {
    position: absolute;
    z-index: -1;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #172f83;
    pointer-events: none;
}

.portal-circle-top {
    top: -145px;
    right: -90px;
    box-shadow: 0 0 0 13px #e8e5ed;
}

.portal-circle-bottom {
    bottom: -195px;
    left: 10%;
    width: 230px;
    height: 230px;
    box-shadow: 0 0 0 13px #e8e5ed;
}

.portal-login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.portal-heading {
    text-align: center;
    margin-bottom: 28px;
}

.portal-heading .eyebrow {
    color: #15879a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.portal-heading h1 {
    color: #123d66;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 12px;
}

.portal-heading > p:last-child {
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Main login card */
.portal-auth-card {
    padding: 38px 30px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(228, 228, 228, 0.7);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.055);
    backdrop-filter: blur(8px);
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portal-form h2 {
    color: #161616;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}

/* Rounded fields with icons */
.portal-input {
    min-width: 0;
    min-height: 58px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    border: 1px solid #e5e5e5;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-input:focus-within {
    border-color: #172f83;
    box-shadow: 0 0 0 3px rgba(23, 47, 131, 0.08);
}

.portal-input svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #424b57;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-input input {
    min-width: 0;
    width: 100%;
    height: 54px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #202938;
    font: inherit;
    font-size: 0.9rem;
    box-shadow: none;
}

.portal-input input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.portal-input input::placeholder {
    color: #747474;
    opacity: 1;
}

/* Accessible labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Navy pill-shaped sign-in button */
.portal-form .portal-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border: none;
    border-radius: 30px;
    background: #172f83;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s, transform 0.2s;
}

.portal-form .portal-submit:hover {
    background: #102465;
    transform: translateY(-1px);
}

/* Forgot password */
.portal-text-link {
    align-self: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #424242;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.portal-text-link:hover {
    color: #172f83;
    text-decoration: underline;
}

/* Sign-up prompt */
.portal-switch {
    margin: 10px 0 0;
    text-align: center;
    color: #454545;
    font-size: 0.82rem;
    line-height: 1.8;
}

.portal-switch button {
    padding: 0 0 0 4px;
    border: none;
    background: transparent;
    color: #202020;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.portal-switch button:hover {
    color: #172f83;
    text-decoration: underline;
}

/* Dashboard */
.portal-dashboard {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 650px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.055);
}

.portal-dashboard h2,
.portal-dashboard h3 {
    color: #123d66;
}

.portal-dashboard form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-dashboard input,
.portal-dashboard textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 13px;
    border: 1px solid #e0e4ea;
    border-radius: 12px;
    font: inherit;
}

.portal-dashboard textarea {
    min-height: 90px;
}

.portal-dashboard .button {
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    background: #172f83;
    color: white;
    cursor: pointer;
}

.portal-dashboard .hour-entry {
    margin: 15px 0;
    padding: 18px;
    border: 1px solid #e6edf2;
    border-left: 4px solid #15879a;
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.portal-dashboard [hidden],
.portal-auth-card [hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .portal-login-page {
        min-height: 620px;
        padding: 45px 18px 65px;
    }

    .portal-auth-card {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .portal-heading {
        margin-bottom: 22px;
    }

    .portal-circle {
        width: 190px;
        height: 190px;
    }

    .portal-circle-top {
        top: -120px;
        right: -95px;
    }

    .portal-circle-bottom {
        bottom: -155px;
        left: 10%;
    }

    .portal-dashboard {
        padding: 22px 18px;
    }
}

/* ===== MOBILE RESPONSIVENESS FIX ===== */

@media (max-width: 700px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    /* Header and navigation */
    header,
    .navbar,
    nav {
        max-width: 100%;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .navbar img {
        max-width: 48px;
        height: auto;
    }

    .navbar a {
        max-width: 100%;
    }

    /* Main page spacing */
    main,
    section,
    .container {
        max-width: 100%;
    }

    /* Hero heading */
    h1 {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
        line-height: 1.08;
        overflow-wrap: break-word;
    }

    /* Hero text */
    p {
        overflow-wrap: break-word;
    }

    /* Buttons */
    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-buttons a,
    .hero-buttons button {
        max-width: 100%;
    }

    /* Images */
    img {
        max-width: 100%;
    }
}

/* ===== EMERGENCY MOBILE LAYOUT FIX ===== */

@media screen and (max-width: 768px) {
    html {
        width: 100%;
        overflow-x: clip;
        -webkit-text-size-adjust: 100%;
    }

    body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow-x: clip;
    }

    *, *::before, *::after {
        box-sizing: border-box;
    }

    img, video, iframe {
        max-width: 100%;
    }

    /* Header and navigation */
    header {
        width: 100%;
        max-width: 100%;
    }

    header nav,
    nav.navbar,
    .navbar {
        max-width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        gap: 12px;
    }

    header nav a,
    nav.navbar a,
    .navbar a {
        white-space: normal;
    }

    /* Prevent long headings and text from widening the page */
    h1, h2, h3, p {
        overflow-wrap: anywhere;
    }

    /* Hero section */
    .hero,
    .hero-content,
    .hero-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero h1,
    .hero-content h1,
    .hero-section h1 {
        font-size: clamp(2.25rem, 8vw, 3.25rem);
        line-height: 1.08;
    }

    /* Buttons */
    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* General page sections */
    section, main, footer {
        max-width: 100%;
        min-width: 0;
    }
}

/* ===== FIX NUROHOPE MOBILE NAVIGATION ===== */

@media (max-width: 700px) {
    header.navbar {
        width: 100%;
        padding: 12px 0;
    }

    .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .nav-container > img {
        width: 34px;
        height: 34px;
        margin: 0;
        flex: 0 0 34px;
    }

    .nav-container > .logo {
        font-size: clamp(1.7rem, 7vw, 2.3rem);
        white-space: nowrap;
        margin-right: auto;
    }

    .nav-container > nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    .nav-container .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        width: 100%;
        margin: 0;
        padding: 12px 0 4px;
        list-style: none;
    }

    .nav-container .nav-links li {
        margin: 0;
        padding: 0;
    }

    .nav-container .nav-links a {
        display: block;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .nav-container > .nav-button {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 0.9rem;
        margin: 0;
    }
}

/* ===== FIX HOMEPAGE HERO ON PHONES ===== */

@media (max-width: 700px) {
    .hero {
        padding: 70px 0 65px;
    }

    .hero-container {
        display: block;
        width: 100%;
        padding: 0 24px;
    }

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

    .hero-content h1 {
        font-size: clamp(2.5rem, 9vw, 3.2rem);
        line-height: 1.06;
        letter-spacing: -1.5px;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-content h1 span {
        display: inline;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.65;
    }

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

    .hero-buttons .button {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .hero-visual {
        display: none;
    }

    .mission-grid,
    .why-hero-grid,
    .feature-grid,
    .program-grid,
    .founders-container,
    .involved-grid,
    .support-container,
    .contact-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

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

/* ===== MOBILE SIZE ADJUSTMENTS ===== */

@media screen and (max-width: 700px) {

    /* Smaller header */
    .navbar {
        padding: 8px 0;
    }

    .nav-container {
        padding: 0 16px;
        gap: 8px;
    }

    .nav-container > img {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .nav-container > .logo {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .nav-container > .nav-button {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    /* Smaller navigation links */
    .nav-container .nav-links {
        gap: 8px 14px;
        padding-top: 8px;
    }

    .nav-container .nav-links a {
        font-size: 0.8rem;
    }

    /* Fix page hero spacing and prevent left clipping */
    .page-hero {
        padding: 55px 0 45px;
        overflow-wrap: break-word;
    }

    .page-hero .container {
        width: 100%;
        padding-left: 22px;
        padding-right: 22px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero h1 {
        font-size: clamp(2.3rem, 8vw, 3rem);
        line-height: 1.08;
        letter-spacing: -1px;
        overflow-wrap: break-word;
    }

    .page-hero p {
        font-size: 1rem;
        line-height: 1.65;
    }
}

/* ===== FINAL MOBILE HERO OVERRIDE ===== */

@media screen and (max-width: 700px) {
    .page-hero {
        width: 100%;
        padding: 48px 0 50px !important;
        overflow: hidden;
    }

    .page-hero .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 24px !important;
        transform: none !important;
    }

    .page-hero .container > *,
    .page-hero h1,
    .page-hero p {
        max-width: 100%;
        margin-left: 0 !important;
        transform: none !important;
    }

    .page-hero h1 {
        font-size: clamp(2.4rem, 8vw, 3rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -1px;
        overflow-wrap: break-word;
    }

    .page-hero p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

/* ===== NUROHOPE: COMPACT MOBILE LAYOUT ===== */

@media (max-width: 600px) {

    /* General page spacing */
    body {
        font-size: 14px;
        line-height: 1.55;
    }

    section,
    .section {
        padding: 40px 18px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Headings */
    h1 {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
        line-height: 1.15;
        margin-bottom: 16px;
    }

    h2 {
        font-size: clamp(1.45rem, 5.5vw, 1.8rem);
        line-height: 1.25;
        margin-bottom: 14px;
    }

    h3 {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    /* Paragraphs and lists */
    p,
    li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Buttons */
    button,
    .btn,
    a.btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    /* Cards */
    .card,
    .program-card,
    .event-card,
    .blog-card,
    .volunteer-card {
        padding: 20px;
        border-radius: 16px;
    }

    /* Images */
    img {
        max-width: 100%;
    }

    /* Reduce oversized gaps */
    .section-title {
        margin-bottom: 24px;
    }

    /* Forms */
    input,
    select,
    textarea {
        font-size: 16px;
        max-width: 100%;
    }

}

/* ===== MOBILE OVERFLOW AND SPACING FIX ===== */

@media (max-width: 600px) {

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Stop the hero section from forcing a tall layout */
    .hero {
        min-height: 0;
        height: auto;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    /* Keep hero content within the phone screen */
    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.15;
        margin-top: 12px;
        margin-bottom: 20px;
        overflow-wrap: break-word;
    }

    .hero p {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-visual {
        display: none;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }
}
