:root {
    --green: #087a3a;
    --green-dark: #075d2d;
    --green-soft: #edf8f1;
    --gold: #e5b51b;
    --blue: #1257a6;
    --red: #d92727;
    --orange: #ef8a17;
    --purple: #7d1e87;
    --ink: #1d2923;
    --muted: #68746d;
    --white: #ffffff;
    --soft: #f5f8f6;
    --border: #e3e9e5;
    --shadow: 0 14px 35px rgba(15, 50, 30, .08);
    --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
}

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

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

.container {
    width: min(1160px, 92%);
    margin-inline: auto;
}

.section { padding: 90px 0; }

.section-soft { background: var(--soft); }

.section-label {
    display: inline-block;
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin-bottom: 12px;
}

.section-heading { max-width: 720px; margin-bottom: 40px; }

.section-heading.centered { text-align: center; margin-inline: auto; }

.section-heading h2,
.two-col h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 15px;
}

.section-heading p,
.two-col > div > p { color: var(--muted); }

.section-heading.light .section-label { color: #b9e6c8; }
.section-heading.light h2,
.section-heading.light p { color: var(--white); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
}

.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: .98rem; }
.brand small { color: var(--green); font-weight: 800; margin-top: 4px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: .91rem;
    font-weight: 650;
}

.main-nav a:not(.nav-cta):hover { color: var(--green); }

.nav-cta {
    background: var(--green);
    color: white;
    padding: 11px 18px;
    border-radius: 999px;
}

.nav-cta:hover { background: var(--green-dark); }

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 42px;
    height: 42px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    min-height: 680px;
    position: relative;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(229,181,27,.2), transparent 30%),
        linear-gradient(135deg, #062e1b 0%, #087a3a 55%, #0a6d36 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
}

.hero::before { width: 560px; height: 560px; right: -180px; top: -120px; }
.hero::after { width: 360px; height: 360px; right: -70px; top: -20px; }

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider.swiper,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
    height: 100%;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 35%;
}

.hero-slider .swiper-slide-active img {
    animation: heroZoom 7s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(4, 22, 13, .8) 0%, rgba(8, 70, 36, .56) 48%, rgba(4, 22, 13, .4) 100%);
}

.hero-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 3;
    display: flex;
    justify-content: center;
}

.hero-slider-dots .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(255,255,255,.45);
    opacity: 1;
}

.hero-slider-dots .swiper-pagination-bullet-active {
    background: var(--gold);
    width: 22px;
    border-radius: 999px;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 50px;
    align-items: center;
}

.hero-copy { color: white; max-width: 760px; }

.eyebrow {
    color: #d9f1df;
    font-weight: 800;
    letter-spacing: .14em;
    font-size: .78rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.7rem);
    line-height: .98;
    margin: 18px 0 22px;
    letter-spacing: -.045em;
}

.hero-copy p {
    font-size: 1.12rem;
    max-width: 700px;
    color: #e7f5eb;
}

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

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary { background: var(--gold); color: #1f2a18; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(.96); }

.btn-light { background: white; color: var(--green-dark); }
.btn-light:hover { transform: translateY(-2px); }

.hero-badge {
    justify-self: end;
    text-align: center;
    color: white;
    width: 290px;
}

.hero-badge img {
    width: 230px;
    height: 230px;
    object-fit: contain;
    margin: auto;
    border-radius: 50%;
    background: white;
    padding: 10px;
    box-shadow: 0 25px 60px rgba(0,0,0,.22);
}

.hero-badge p { margin-top: 16px; font-weight: 700; color: #d9f1df; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.mission-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.card-accent {
    width: 50px;
    height: 5px;
    background: var(--gold);
    border-radius: 20px;
    margin-bottom: 22px;
}

.mission-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.mission-card p { color: var(--muted); }

.text-link { display: inline-block; margin-top: 24px; color: var(--green); font-weight: 800; }

.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.vision-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.number {
    color: var(--green);
    font-weight: 900;
    font-size: .8rem;
    letter-spacing: .12em;
}

.vision-card h3 { font-size: 1.5rem; margin: 12px 0; }
.vision-card p { color: var(--muted); }

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

.focus-card {
    padding: 30px;
    min-height: 260px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    transition: .2s ease;
}

.focus-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.focus-card .icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: .75rem;
    font-weight: 900;
    margin-bottom: 22px;
}

.focus-card.green .icon { background: var(--green); }
.focus-card.blue .icon { background: var(--blue); }
.focus-card.gold .icon { background: #b18b00; }
.focus-card.red .icon { background: var(--red); }
.focus-card.purple .icon { background: var(--purple); }
.focus-card.orange .icon { background: var(--orange); }

.focus-card h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 12px; }
.focus-card p { color: var(--muted); font-size: .94rem; }

.section-dark {
    background: #062f1c;
    color: white;
}

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

.program-card {
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.05);
    border-radius: var(--radius);
    padding: 30px;
    min-height: 280px;
}

.program-number { color: var(--gold); font-weight: 900; font-size: .82rem; letter-spacing: .1em; }
.program-card h3 { font-size: 1.3rem; line-height: 1.25; margin: 18px 0 12px; }
.program-card p { color: #c8ddd0; }
.program-tag {
    display: inline-block;
    margin-top: 22px;
    color: #d9f1df;
    font-size: .78rem;
    font-weight: 800;
}

.empty-event {
    text-align: center;
    max-width: 700px;
    margin: auto;
    padding: 55px 30px;
    border: 1px dashed #b9c8be;
    border-radius: var(--radius);
    background: var(--soft);
}

.event-symbol {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-weight: 900;
}

.empty-event h3 { font-size: 1.6rem; margin-bottom: 8px; }
.empty-event p { color: var(--muted); margin-bottom: 22px; }

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

.news-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.news-placeholder {
    height: 170px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green), #0e9b50);
    color: white;
    font-size: 2rem;
    font-weight: 900;
}

.news-body { padding: 25px; }
.news-type { color: var(--green); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.news-body h3 { margin: 10px 0; line-height: 1.25; }
.news-body p { color: var(--muted); font-size: .93rem; }

.join {
    background: linear-gradient(120deg, var(--green-dark), var(--green));
    color: white;
}

.join-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.join .section-label { color: #c5ead0; }
.join h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: 12px; }
.join p { color: #d8eee0; max-width: 700px; }

.contact-grid { align-items: start; }

.contact-points {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.contact-points div {
    display: grid;
    gap: 3px;
    padding: 16px 18px;
    background: var(--soft);
    border-radius: 12px;
}

.contact-points span { color: var(--muted); }

.contact-form {
    display: grid;
    gap: 17px;
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form label { display: grid; gap: 7px; font-weight: 750; font-size: .9rem; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #ccd7d0;
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(8,122,58,.1);
}

.form-note { min-height: 24px; color: var(--green); font-size: .9rem; }

.site-footer {
    background: #062017;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 50px;
    padding: 55px 0;
}

.footer-brand img { width: 48px; height: 48px; }
.footer-grid p { color: #a9c0b3; margin-top: 15px; }

.footer-grid h4 { margin-bottom: 15px; }
.footer-grid > div:not(:first-child) a {
    display: block;
    color: #b9c9c0;
    margin: 8px 0;
}

.footer-grid > div:not(:first-child) a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
    color: #9bb0a5;
    font-size: .82rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 900px) {
    .main-nav { gap: 12px; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-badge { display: none; }
    .focus-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { gap: 35px; }
}

@media (max-width: 720px) {
    .section { padding: 65px 0; }

    .menu-toggle { display: block; }

    .main-nav {
        position: absolute;
        left: 4%;
        right: 4%;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 15px;
        box-shadow: var(--shadow);
    }

    .main-nav.open { display: flex; }
    .main-nav a { padding: 8px; }

    .hero { min-height: 610px; }
    .hero h1 { font-size: 3.2rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }

    .two-col,
    .vision-grid,
    .focus-grid,
    .program-grid,
    .news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .join-box,
    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand strong { font-size: .88rem; }
}

/* Inner pages */
.page-hero {
    padding: 105px 0 85px;
    background:
        radial-gradient(circle at 85% 20%, rgba(229,181,27,.18), transparent 28%),
        linear-gradient(135deg, #062e1b, #087a3a);
    color: white;
}
.page-hero .eyebrow { color: #d9f1df; }
.page-hero h1 {
    font-size: clamp(2.7rem, 6vw, 4.7rem);
    line-height: 1;
    margin: 14px 0 18px;
}
.page-hero p { max-width: 760px; color: #dcefe3; font-size: 1.08rem; }

.content-narrow { max-width: 900px; margin: 0 auto; }
.content-narrow h2 { font-size: 2rem; margin: 35px 0 12px; }
.content-narrow h3 { font-size: 1.3rem; margin: 25px 0 8px; }
.content-narrow p { color: var(--muted); margin-bottom: 14px; }

.objective-list { display: grid; gap: 14px; margin-top: 25px; }
.objective-item {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 22px rgba(15,50,30,.05);
}
.objective-item strong { display: block; color: var(--green); margin-bottom: 5px; }

.program-detail {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 45px;
    align-items: start;
}
.program-side {
    position: sticky;
    top: 105px;
    background: var(--green);
    color: white;
    padding: 35px;
    border-radius: var(--radius);
}
.program-side .program-number { color: var(--gold); }
.program-side h2 { font-size: 2rem; line-height: 1.1; margin: 15px 0; }
.program-side p { color: #d8eee0; }
.program-detail-content h2 { font-size: 2rem; margin-bottom: 12px; }
.program-detail-content p { color: var(--muted); margin-bottom: 18px; }
.program-detail-content ul { padding-left: 20px; color: var(--muted); }
.program-detail-content li { margin: 8px 0; }
.program-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

@media (max-width: 800px) {
    .program-detail { grid-template-columns: 1fr; }
    .program-side { position: static; }
}

/* Events, News & Gallery */
.event-grid, .news-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.event-card, .news-card, .gallery-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15,50,30,.05);
}

.event-card-body, .news-body { padding: 24px; }

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-soft);
    color: var(--green);
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 850;
    margin-bottom: 14px;
}

.event-card h3, .news-body h3 { line-height: 1.25; margin-bottom: 9px; }
.event-card p, .news-body p { color: var(--muted); font-size: .93rem; }

.event-meta {
    margin-top: 17px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: .86rem;
}

.card-image {
    height: 190px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green), #0f9c52);
    color: white;
    font-weight: 900;
    font-size: 2rem;
}

.gallery-card { position: relative; }
.gallery-card .card-image { height: 230px; }
.gallery-card figcaption {
    padding: 15px 18px;
    font-weight: 750;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}
.filter-btn {
    border: 1px solid var(--border);
    background: white;
    color: var(--ink);
    border-radius: 999px;
    padding: 9px 15px;
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    font-weight: 750;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.register-box {
    background: var(--green-soft);
    border: 1px solid #cce6d5;
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 35px;
}
.register-box h3 { margin-bottom: 8px; }
.register-box p { color: var(--muted); margin-bottom: 18px; }

.page-pagination {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

@media (max-width: 850px) {
    .event-grid, .news-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .event-grid, .news-grid, .gallery-grid { grid-template-columns: 1fr; }
}

.event-poster {
    width: 100%;
    height: 310px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Membership & dashboard */
.auth-shell {
    min-height: calc(100vh - 90px);
    padding: 70px 0;
    background: #f5f8f6;
}
.auth-card {
    max-width: 760px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: 0 15px 40px rgba(15,50,30,.08);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 750; font-size: .9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    border: 1px solid #cbd8cf;
    border-radius: 10px;
    padding: 12px 13px;
    font: inherit;
    background: white;
    outline: none;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(8,122,58,.1);
}
.form-note {
    color: var(--muted);
    font-size: .84rem;
    margin-top: 7px;
}
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.auth-switch { text-align: center; margin-top: 22px; color: var(--muted); }
.auth-switch a { color: var(--green); font-weight: 800; }

.dashboard-shell { padding: 55px 0 80px; background: #f5f8f6; min-height: calc(100vh - 90px); }
.dashboard-head {
    display: flex; justify-content: space-between; align-items: end;
    gap: 20px; margin-bottom: 28px;
}
.dashboard-head p { color: var(--muted); }
.dashboard-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.dashboard-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: 0 8px 25px rgba(15,50,30,.05);
}
.dashboard-card .dash-icon {
    width: 45px; height: 45px; border-radius: 12px; display: grid; place-items: center;
    background: var(--green-soft); color: var(--green); font-weight: 900; margin-bottom: 15px;
}
.dashboard-card h3 { margin-bottom: 8px; }
.dashboard-card p { color: var(--muted); font-size: .9rem; }
.profile-panel {
    margin-top: 25px; background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.profile-row {
    display: grid; grid-template-columns: 180px 1fr; gap: 10px;
    padding: 12px 0; border-bottom: 1px solid #edf2ee;
}
.profile-row:last-child { border-bottom: 0; }
.profile-row strong { color: var(--green); }

.alert {
    display: none; padding: 12px 14px; border-radius: 10px; margin-bottom: 18px;
    font-size: .9rem; font-weight: 650;
}
.alert.success { background: #e8f6ec; color: #146b35; border: 1px solid #c8e8d1; }
.alert.error { background: #fff0f0; color: #a12626; border: 1px solid #f0caca; }

@media (max-width: 800px) {
    .form-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
    .dashboard-head { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
    .auth-card { padding: 23px; }
    .profile-row { grid-template-columns: 1fr; }
}


/* =========================================================
   GPK RESPONSIVE DESIGN SYSTEM — MOBILE / TABLET / DESKTOP
   Designed for small phones through large desktop screens.
   ========================================================= */

html, body { max-width: 100%; overflow-x: hidden; }
body { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
button, input, select, textarea { font-size: 16px; } /* prevents iOS zoom on form controls */
a, button { -webkit-tap-highlight-color: transparent; }
button, .btn, .filter-btn, .nav-cta { touch-action: manipulation; }
:focus-visible { outline: 3px solid rgba(229,181,27,.85); outline-offset: 3px; }

/* Better media behavior */
video, iframe { max-width: 100%; }
.card-image, .event-poster { max-width: 100%; }

/* Tablet and smaller laptops */
@media (max-width: 1024px) {
    .container { width: min(94%, 960px); }
    .main-nav { gap: 14px; font-size: .86rem; }

    .hero {
        min-height: 620px;
    }
    .hero-content {
        grid-template-columns: 1fr .45fr;
        gap: 28px;
    }
    .hero-badge { width: 230px; }
    .hero-badge img { width: 190px; height: 190px; }

    .two-col { gap: 40px; }
    .section { padding: 72px 0; }
}

/* Phones, tablets in portrait, and narrow windows */
@media (max-width: 860px) {
    .site-header { position: sticky; }
    .nav-wrap { min-height: 70px; }
    .brand img { width: 45px; height: 45px; }
    .brand strong { font-size: .9rem; }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
        z-index: 1101;
    }

    .main-nav {
        position: absolute;
        left: 3%;
        right: 3%;
        top: calc(100% + 8px);
        display: grid;
        gap: 4px;
        padding: 12px;
        background: rgba(255,255,255,.99);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(15,50,30,.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 10px 14px;
        border-radius: 10px;
    }

    .main-nav a:not(.nav-cta):hover { background: var(--green-soft); }
    .main-nav .nav-cta { justify-content: center; margin-top: 4px; }

    .hero {
        min-height: auto;
        padding: 75px 0 65px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-badge {
        justify-self: center;
        width: min(240px, 70vw);
        order: -1;
    }
    .hero-badge img { width: 150px; height: 150px; }

    .two-col, .vision-grid {
        grid-template-columns: 1fr;
    }

    .mission-card, .vision-card { padding: 28px; }

    .focus-grid,
    .program-grid,
    .event-grid,
    .news-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading h2,
    .two-col h2 { font-size: clamp(1.85rem, 7vw, 2.7rem); }
}

/* Small phones */
@media (max-width: 600px) {
    .container { width: min(92%, 520px); }
    .section { padding: 58px 0; }

    .brand span { min-width: 0; }
    .brand strong {
        display: block;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero { padding: 55px 0 50px; }
    .hero h1 {
        font-size: clamp(2.45rem, 14vw, 4rem);
        letter-spacing: -.04em;
    }
    .hero-copy p { font-size: 1rem; }
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 360px);
        margin-inline: auto;
    }
    .btn { width: 100%; }

    .focus-grid,
    .program-grid,
    .event-grid,
    .news-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-heading { margin-bottom: 28px; }
    .section-heading h2,
    .two-col h2 { font-size: 2rem; }

    .mission-card, .vision-card { padding: 23px; }

    .event-poster { height: auto; max-height: 420px; object-fit: contain; }
    .card-image, .gallery-card .card-image { height: 200px; }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }
    .filter-btn { flex: 0 0 auto; }

    .form-grid { gap: 14px; }
    .auth-shell { padding: 38px 0; }
    .auth-card { padding: 20px; border-radius: 14px; }
    .dashboard-shell { padding: 38px 0 55px; }
    .dashboard-card { padding: 20px; }

    .profile-row { gap: 3px; }
}

/* Very small devices (320–375px wide) */
@media (max-width: 375px) {
    .container { width: 91%; }
    .brand img { width: 40px; height: 40px; }
    .brand strong { font-size: .82rem; max-width: 145px; }
    .hero h1 { font-size: 2.35rem; }
    .hero-badge img { width: 125px; height: 125px; }
    .hero-badge p { font-size: .82rem; }
    .section { padding: 48px 0; }
}

/* Landscape phones: use available horizontal space without overflowing. */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 42px 0; }
    .hero-badge { display: none; }
    .hero h1 { font-size: 2.8rem; }
}

/* Respect users who prefer less animation. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Landing-page community photos */
.intro-photos {
    position: relative;
    min-height: 520px;
    padding-bottom: 36px;
}

.intro-photos .photo-main,
.intro-photos .photo-accent {
    display: block;
    overflow: hidden;
    background: #0d3a22;
}

.intro-photos .photo-main {
    width: 72%;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.intro-photos .photo-main img {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    object-position: center top;
}

.intro-photos .photo-accent {
    position: absolute;
    top: 10%;
    right: 0;
    width: 46%;
    z-index: 2;
    border-radius: 18px;
    border: 6px solid var(--white);
    box-shadow: var(--shadow);
}

.intro-photos .photo-accent img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.intro-mission {
    position: absolute;
    left: 4%;
    bottom: 0;
    width: min(340px, 72%);
    z-index: 3;
    padding: 24px;
}

.community-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(150px, 17vw);
    gap: 14px;
}

.gallery-tile {
    position: relative;
    display: block;
    grid-column: span 3;
    overflow: hidden;
    border-radius: 18px;
    background: #0d3a22;
    min-height: 0;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
    transform: scale(1.05);
}

.tile-hero { grid-column: span 8; grid-row: span 2; }
.tile-tall { grid-column: span 4; grid-row: span 2; }
.tile-tall img { object-position: center 18%; }
.tile-wide { grid-column: span 6; }

.tile-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 28px 16px 14px;
    background: linear-gradient(transparent, rgba(6, 24, 16, .8));
    color: white;
    font-size: .86rem;
    font-weight: 750;
}

.news-photo {
    display: block;
    height: 190px;
    overflow: hidden;
    background: #0d3a22;
}

.news-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.news-card:hover .news-photo img {
    transform: scale(1.05);
}

.news-card:nth-child(2) .news-photo img {
    object-position: center 18%;
}

@media (max-width: 1024px) {
    .intro-photos { min-height: 460px; }
    .community-gallery { grid-auto-rows: minmax(140px, 20vw); }
}

@media (max-width: 860px) {
    .intro-photos {
        min-height: 0;
        padding-bottom: 0;
        display: grid;
        gap: 16px;
    }

    .intro-photos .photo-main,
    .intro-photos .photo-accent,
    .intro-mission {
        position: static;
        width: 100%;
    }

    .intro-photos .photo-main img {
        aspect-ratio: 4 / 5;
        max-height: 460px;
    }

    .intro-photos .photo-accent {
        border: 0;
    }

    .intro-photos .photo-accent img {
        aspect-ratio: 16 / 10;
        max-height: 280px;
    }

    .community-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 230px;
    }

    .gallery-tile,
    .tile-hero,
    .tile-tall,
    .tile-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .tile-hero {
        grid-column: 1 / -1;
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .community-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-tile,
    .tile-hero,
    .tile-tall,
    .tile-wide {
        grid-column: 1 / -1;
    }

    .news-photo { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider .swiper-slide-active img {
        animation: none;
    }
}

/* Print-friendly basics */
@media print {
    .site-header, .menu-toggle, .hero-actions, footer { display: none !important; }
    .section { padding: 25px 0; }
    a { text-decoration: underline; }
}
