:root {
    --brand-orange: #ef8f1f;
    --brand-orange-strong: #d5750f;
    --brand-green: #2f8f46;
    --brand-green-soft: #e8f8ed;
    --bg-main: #fcf8f1;
    --bg-surface: #ffffff;
    --text-main: #1d2b20;
    --text-soft: #526355;
    --line-soft: #e9dfcf;
    --shadow-main: 0 18px 42px rgba(41, 44, 24, 0.12);
    --radius-xl: 22px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", "Helvetica Neue", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% 0%, #fff0da 0, transparent 28%),
        radial-gradient(circle at 90% 0%, #def6e3 0, transparent 35%),
        var(--bg-main);
}

.site-container {
    width: min(1220px, calc(100vw - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: #121d14;
    color: #fff;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    z-index: 200;
}

.skip-link:focus {
    left: 14px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid #efe4d5;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.86);
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
}

.brand-link span {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(0.78rem, 1.45vw, 1rem);
}

.brand-link img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 9px 20px rgba(47, 143, 70, 0.2);
    background: #fff;
}

.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;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid #dcdccc;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: #fff8ef;
    border-color: #d9c29d;
    transform: translateY(-1px);
}

.nav-toggle-box {
    display: grid;
    gap: 0.28rem;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-backdrop {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.56rem 0.9rem;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: #f2f8f1;
    color: var(--brand-green);
}

.nav-link.is-active {
    background: var(--brand-orange);
    color: #fff;
}

.nav-cta {
    margin-left: 0.45rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 0.74rem 1.18rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-strong));
    color: #fff;
    box-shadow: 0 10px 20px rgba(216, 119, 23, 0.28);
}

.btn-secondary {
    background: var(--brand-green-soft);
    color: var(--brand-green);
}

.page-fade {
    animation: pageFade 0.55s ease;
}

@keyframes pageFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-slider {
    position: relative;
    height: clamp(500px, 68vh, 740px);
    min-height: 500px;
    overflow: hidden;
    background: #172018;
}

.slider-track {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.slide.is-active img {
    animation: zoomSoft 7s ease;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(10, 15, 10, 0.74) 22%, rgba(24, 61, 37, 0.42) 60%, rgba(14, 26, 18, 0.55) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    min-height: clamp(500px, 68vh, 740px);
    color: #fff;
    gap: 0.8rem;
    max-width: 700px;
    width: 100%;
}

.slide-content h1 {
    margin: 0;
    font-size: clamp(2rem, 4.7vw, 3.5rem);
    line-height: 1.07;
}

.slide-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.slide-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.86rem;
    backdrop-filter: blur(4px);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.slider-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    font-size: 1.58rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}

.slider-btn:hover,
.slider-btn:focus-visible {
    background: rgba(255, 255, 255, 0.35);
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.slider-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.section-block {
    margin-top: 1.3rem;
    margin-bottom: 1.3rem;
}

.section-head h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.5rem, 2.7vw, 2.2rem);
}

.section-head p {
    margin: 0;
    color: var(--text-soft);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    padding: 1.2rem 1.1rem;
    display: grid;
    gap: 0.22rem;
}

.metric-card strong {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    color: var(--brand-green);
}

.metric-card span {
    color: var(--text-soft);
}

.program-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.program-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    padding: 1.2rem;
}

.program-card h3 {
    margin: 0 0 0.45rem;
    color: #2b5a38;
}

.program-card p {
    margin: 0;
    color: var(--text-soft);
}

.map-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(160deg, #fff4e2 0%, #f2faef 100%);
    border-radius: var(--radius-xl);
    padding: 1.3rem;
    border: 1px solid var(--line-soft);
}

.map-panel h2 {
    margin: 0 0 0.45rem;
}

.map-panel p {
    color: var(--text-soft);
    margin: 0 0 0.95rem;
}

.map-panel figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #dce7d8;
    background: #fff;
}

.map-panel img {
    width: 100%;
    display: block;
}

.final-cta {
    text-align: center;
    background: linear-gradient(145deg, #1f7f39, #2f8f46);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.3rem);
    box-shadow: 0 18px 36px rgba(35, 94, 52, 0.32);
}

.final-cta h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3.1vw, 2.25rem);
}

.final-cta p {
    margin: 0 auto 1rem;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
}

.page-hero {
    position: relative;
    min-height: 280px;
    display: grid;
    align-items: end;
    padding: 2.4rem 0 1.8rem;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(18, 30, 20, 0.78), rgba(43, 88, 60, 0.64));
}

.page-hero .site-container {
    position: relative;
}

.page-hero-posts {
    background-image: url("../img/sitioweb/img2.jpg");
}

.page-hero-contact {
    background-image: url("../img/sitioweb/img2.jpg");
}

.page-hero-mission {
    background-image: url("../img/sitioweb/img1.webp");
}

.hero-label {
    margin: 0 0 0.3rem;
    opacity: 0.9;
    font-weight: 700;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.9rem);
}

.page-hero p {
    margin: 0.35rem 0 0;
    max-width: 740px;
    color: rgba(255, 255, 255, 0.92);
}

.blog-intro {
    margin-top: 0.4rem;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.blog-intro-card,
.blog-post {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(233, 223, 207, 0.9);
    box-shadow: var(--shadow-main);
}

.blog-intro-card {
    width: min(1120px, 100%);
    max-width: none;
    border-radius: 30px;
    padding: clamp(1.4rem, 3vw, 2rem);
    backdrop-filter: blur(10px);
}

.blog-intro-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.06;
}

.blog-intro-card p:last-child {
    margin: 0.8rem 0 0;
    max-width: 62ch;
    color: var(--text-soft);
    line-height: 1.7;
}

.blog-layout {
    padding-bottom: 0.5rem;
}

.blog-feed {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.3rem;
}

.blog-post {
    display: grid;
    gap: 1rem 1.4rem;
    align-items: start;
    border-radius: 32px;
    padding: clamp(1.2rem, 3vw, 2rem);
    scroll-margin-top: 110px;
}

.blog-post.has-featured-media {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    grid-template-areas:
        "header media"
        "content media"
        "gallery gallery"
        "expand expand";
}

.blog-post.is-text-only {
    grid-template-columns: 1fr;
}

.blog-post-header {
    grid-area: header;
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.blog-post-date {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    background: #f4f8f2;
    color: #355f40;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
}

.blog-post-header h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.blog-post-featured-media {
    grid-area: media;
    margin-bottom: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #182118;
    border: 1px solid #e7dccb;
    align-self: stretch;
}

.blog-post-featured-media img,
.blog-post-featured-media video {
    width: 100%;
    display: block;
    min-height: 360px;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    background: #000;
}

.blog-post-featured-media img[data-lightbox-src],
.blog-media-card img[data-lightbox-src] {
    cursor: zoom-in;
}

.blog-post-content {
    grid-area: content;
    display: grid;
    gap: 0.9rem;
}

.blog-post-content p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.85;
    font-size: 1rem;
}

.blog-post-gallery {
    grid-area: gallery;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.blog-post-gallery.is-expanded {
    margin-top: 0.9rem;
}

.blog-media-card {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e8ddce;
    background: #f7f4ef;
}

.blog-media-card img,
.blog-media-card video {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 360px;
    object-fit: cover;
    display: block;
    background: #000;
}

.blog-post-expand {
    grid-area: expand;
    margin-top: 1rem;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.4rem 0 0.8rem;
}

.pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid #dfd2be;
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    padding: 0.7rem 1rem;
    transition: 0.2s ease;
}

.pagination-link:hover,
.pagination-link:focus-visible,
.pagination-page:hover,
.pagination-page:focus-visible {
    border-color: #c8b392;
    background: #fff7ea;
}

.pagination-page {
    padding: 0.7rem;
}

.pagination-page.is-current {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}

.pagination-link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-ellipsis {
    color: #7d8377;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.posts-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.posts-intro-card,
.posts-archive,
.featured-post,
.story-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-main);
}

.posts-intro-card {
    border-radius: var(--radius-xl);
    padding: clamp(1.4rem, 3vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 244, 226, 0.98), rgba(239, 248, 238, 0.95)),
        #fff;
}

.posts-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-green);
}

.posts-intro-card h2,
.posts-archive h2,
.featured-post h2,
.section-head.posts-feed-head h2,
.story-card h3 {
    margin: 0;
}

.posts-intro-card h2 {
    font-size: clamp(1.8rem, 3.3vw, 2.8rem);
    line-height: 1.04;
}

.posts-intro-card > p:last-of-type {
    margin: 0.7rem 0 0;
    max-width: 60ch;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.posts-intro-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.posts-intro-stat {
    border-radius: 18px;
    border: 1px solid rgba(47, 143, 70, 0.12);
    background: rgba(255, 255, 255, 0.86);
    padding: 0.95rem 0.9rem;
    display: grid;
    gap: 0.18rem;
}

.posts-intro-stat strong {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #245c33;
}

.posts-intro-stat span {
    color: var(--text-soft);
}

.posts-archive {
    border-radius: var(--radius-xl);
    padding: 1.2rem;
    display: grid;
    gap: 0.9rem;
}

.posts-archive-list {
    display: grid;
    gap: 0.72rem;
}

.archive-link {
    display: grid;
    gap: 0.28rem;
    text-decoration: none;
    color: var(--text-main);
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid #efe4d5;
    background: #fcfaf6;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.archive-link:hover,
.archive-link:focus-visible {
    transform: translateY(-2px);
    border-color: #d9c8ae;
    background: #fff;
}

.archive-link-title {
    font-weight: 700;
    line-height: 1.3;
}

.archive-link-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #6a7d69;
    font-size: 0.88rem;
}

.featured-post {
    border-radius: 30px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.featured-post,
.story-card {
    scroll-margin-top: 110px;
}

.featured-post-media,
.story-card-media {
    position: relative;
    background: #1c251f;
}

.featured-post-media img,
.featured-post-media video,
.story-card-media img,
.story-card-media video {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.featured-post-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: rgba(20, 31, 22, 0.8);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.featured-post-thumbs,
.story-media-strip {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.featured-thumb,
.story-media-chip {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(20, 31, 22, 0.72);
    text-decoration: none;
    color: #fff;
}

.featured-thumb img,
.story-media-chip img {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.featured-thumb.is-video,
.story-media-chip.is-video,
.post-gallery-item.is-video {
    display: grid;
    place-items: center;
    padding: 0.75rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(145deg, rgba(26, 42, 31, 0.92), rgba(47, 143, 70, 0.84));
}

.featured-post-body,
.story-card-body {
    padding: clamp(1.25rem, 3vw, 2rem);
    display: grid;
    align-content: start;
    gap: 1rem;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.post-meta-pill,
.story-stat {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.post-meta-pill {
    background: #f4f8f2;
    color: #355f40;
}

.featured-post h2 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.08;
}

.post-prose,
.post-expand-body {
    display: grid;
    gap: 0.85rem;
}

.post-prose p,
.post-expand-body p,
.story-excerpt,
.section-head.posts-feed-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.72;
}

.post-actions,
.story-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.media-link {
    width: fit-content;
    text-decoration: none;
    color: var(--brand-green);
    font-weight: 700;
}

.media-link:hover,
.media-link:focus-visible {
    color: #206935;
}

.post-expand {
    border-top: 1px solid #ece3d6;
    padding-top: 1rem;
}

.post-expand summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: #29573a;
}

.post-expand summary::-webkit-details-marker {
    display: none;
}

.post-expand summary::after {
    content: "+";
    margin-left: 0.5rem;
}

.post-expand[open] summary::after {
    content: "−";
}

.post-expand-body {
    margin-top: 0.9rem;
}

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.post-gallery-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-gallery-item {
    min-height: 138px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8ddce;
    background: #f7f4ef;
}

.post-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.posts-feed-head {
    margin-bottom: 1rem;
}

.posts-feed {
    display: grid;
    gap: 1rem;
}

.story-card {
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.story-card.is-reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.story-card.is-reverse .story-card-media {
    order: 2;
}

.story-card.is-reverse .story-card-body {
    order: 1;
}

.story-card-media img,
.story-card-media video {
    min-height: 300px;
}

.story-card h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    line-height: 1.15;
}

.story-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.story-stat {
    background: #fff3df;
    color: #8f5d16;
}

.empty-state {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-main);
    padding: 1.4rem;
}

.empty-state h2 {
    margin: 0 0 0.4rem;
}

.empty-state p {
    margin: 0 0 1rem;
    color: var(--text-soft);
}

.contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    padding: 1rem;
    border-top: 5px solid var(--brand-orange);
}

.contact-card:nth-child(even) {
    border-top-color: var(--brand-green);
}

.contact-card h3 {
    margin: 0 0 0.45rem;
}

.contact-card p {
    margin: 0;
    color: var(--text-soft);
}

.contact-card a {
    color: var(--brand-green);
    font-weight: 700;
}

.contact-panel {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-main);
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.contact-form {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.8rem;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    border-radius: 12px;
    border: 1px solid #d9decc;
    padding: 0.65rem 0.8rem;
    font: inherit;
    background: #fcfdfb;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #bbddb9;
    border-color: #86bc8e;
}

.contact-form small {
    color: #607260;
}

.field-error {
    color: #b42318;
}

.form-alert {
    border-radius: 16px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    font-weight: 600;
}

.form-alert.is-success {
    background: #eaf8ed;
    border-color: #bde1c3;
    color: #1d6b31;
}

.form-alert.is-error {
    background: #fff1f1;
    border-color: #f2c5c5;
    color: #9b1c1c;
}

.mission-shell {
    margin-top: 0.4rem;
    position: relative;
    z-index: 2;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mission-card {
    border-radius: 30px;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-main);
    background: #fff;
}

.mission-card h2,
.mission-story-content h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.mission-card p:last-child,
.mission-story-content p {
    margin: 0.8rem 0 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.mission-card-primary {
    background: linear-gradient(145deg, rgba(255, 244, 226, 0.98), rgba(255, 255, 255, 0.98));
}

.mission-card-secondary {
    background: linear-gradient(145deg, rgba(232, 248, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.mission-values-panel {
    display: grid;
    gap: 1rem;
}

.mission-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.mission-value-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    padding: 1.2rem;
}

.mission-value-card h3 {
    margin: 0 0 0.45rem;
    color: #2b5a38;
}

.mission-value-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.mission-story-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 1rem;
    align-items: center;
    background: linear-gradient(155deg, #fff4e2 0%, #edf8ef 100%);
    border: 1px solid var(--line-soft);
    border-radius: 32px;
    box-shadow: var(--shadow-main);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.mission-story-content {
    display: grid;
    gap: 0.8rem;
}

.mission-story-content p {
    margin: 0;
}

.mission-story-media {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #dce7d8;
    background: #fff;
}

.mission-story-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.map-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff6e6 0%, #edf8ef 100%);
    border: 1px solid var(--line-soft);
    padding: 1rem;
    display: grid;
    align-content: start;
    gap: 0.7rem;
}

.map-card h3 {
    margin: 0;
}

.map-card p {
    margin: 0;
    color: var(--text-soft);
}

.map-card img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d7e6d7;
    background: #fff;
}

.site-footer {
    background: #1f2d22;
    color: #d9e5d9;
    margin-top: 2rem;
    padding: 1.7rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.site-footer h3,
.site-footer h4 {
    margin: 0 0 0.45rem;
    color: #fff;
}

.site-footer p {
    margin: 0 0 0.75rem;
}

.credits-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.credits-list a {
    color: #cce8d2;
}

.to-top-btn {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--brand-orange);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 10px 20px rgba(214, 123, 28, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    z-index: 90;
}

.to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lightbox-modal[hidden] {
    display: none;
}

.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(12, 17, 13, 0.88);
    cursor: zoom-out;
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100vw - 24px));
    height: min(92vh, calc(100vh - 24px));
    margin: 12px auto;
    display: grid;
    place-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.32);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .posts-intro,
    .featured-post,
    .story-card,
    .story-card.is-reverse {
        grid-template-columns: 1fr;
    }

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

    .mission-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card.is-reverse .story-card-media,
    .story-card.is-reverse .story-card-body {
        order: initial;
    }

    .posts-intro-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-gallery-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .blog-feed {
        width: 100%;
    }

    .blog-post.has-featured-media {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.84fr);
    }
}

@media (max-width: 980px) {
    .nav-wrap {
        position: relative;
        justify-content: space-between;
        min-height: 78px;
        padding: 0.7rem 0;
        flex-wrap: nowrap;
    }

    .brand-link {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-start;
        text-align: left;
    }

    .brand-link span {
        font-size: clamp(0.72rem, 2.5vw, 0.95rem);
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        width: 100%;
        padding: 1rem;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 0.65rem;
        border: 1px solid #efe4d5;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 22px 44px rgba(39, 45, 28, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        z-index: 95;
    }

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

    .nav-cta {
        margin-left: 0;
    }

    .nav-link,
    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 70;
        border: 0;
        background: rgba(16, 24, 18, 0.28);
        backdrop-filter: blur(2px);
    }

    .nav-backdrop.is-visible {
        display: block;
    }

    body.nav-open {
        overflow: hidden;
    }

    .blog-post.has-featured-media {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "media"
            "content"
            "gallery"
            "expand";
    }

    .blog-post-featured-media img,
    .blog-post-featured-media video {
        min-height: 300px;
        max-height: 420px;
    }

    .mission-grid,
    .map-panel,
    .contact-panel,
    .mission-story-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-wrap {
        align-items: center;
    }

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

@media (max-width: 680px) {
    .program-grid,
    .contact-grid,
    .metrics-grid,
    .mission-grid,
    .mission-values-grid {
        grid-template-columns: 1fr;
    }

    .slide-content {
        min-height: clamp(420px, 62vh, 620px);
    }

    .hero-slider {
        height: clamp(420px, 62vh, 620px);
        min-height: 420px;
    }

    .slide-content {
        padding-bottom: 4.2rem;
    }

    .slider-controls {
        width: calc(100% - 32px);
        bottom: 14px;
        gap: 0.65rem;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .page-hero {
        min-height: 240px;
        padding: 1.9rem 0 1.35rem;
    }

    .posts-intro-stats,
    .post-gallery-grid,
    .post-gallery-grid.compact {
        grid-template-columns: 1fr;
    }

    .featured-post-media img,
    .featured-post-media video,
    .story-card-media img,
    .story-card-media video {
        min-height: 260px;
    }

    .featured-thumb,
    .story-media-chip {
        width: 68px;
        height: 68px;
    }

    .blog-intro {
        margin-top: 0.4rem;
    }

    .blog-post-gallery,
    .blog-post-gallery.is-expanded {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: 1rem;
    }

    .blog-post-featured-media img,
    .blog-post-featured-media video,
    .blog-media-card img,
    .blog-media-card video {
        min-height: 220px;
        max-height: none;
    }

    .blog-pagination {
        flex-direction: column;
    }

    .mission-shell {
        margin-top: 0.4rem;
    }

    .mission-story-media img {
        min-height: 240px;
    }
}

@media (max-width: 520px) {
    .site-container {
        width: min(100%, calc(100vw - 20px));
    }

    .blog-intro-card,
    .blog-post,
    .mission-card,
    .mission-story-panel,
    .contact-panel,
    .map-panel,
    .final-cta {
        border-radius: 22px;
    }

    .lightbox-dialog {
        width: min(100vw, calc(100vw - 12px));
        height: min(100vh, calc(100vh - 12px));
        margin: 6px auto;
    }

    .lightbox-close {
        top: 6px;
        right: 6px;
    }
}
