/* ======================================
   DESIGN SYSTEM — Kindergarten Playful
   ====================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #f0f7f0;
    --surface: #ffffff;
    --surface-alt: #f3f8f3;
    --text: #2d3436;
    --text-secondary: #555e60;
    --muted: #7f8c8d;
    --primary: #27ae60;
    --primary-dark: #1e8c4c;
    --primary-light: #eafaf1;
    --accent: #f39c12;
    --accent-light: #fef9e7;
    --line: #e8ece8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container: 1200px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.narrow {
    max-width: 820px;
}

.section {
    padding: 4.5rem 0;
    position: relative;
    z-index: 1;
}

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

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }

p {
    margin-top: 0;
    color: var(--text-secondary);
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #e67e22;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Header ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--header-wave-height, 40px));
    left: 0;
    width: 100%;
    height: var(--header-wave-height, 40px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,0H1200V20C1100,40 1000,40 900,20S700,0 600,20S400,40 300,20S100,0 0,20Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
    z-index: 39;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary);
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.has-submenu {
    position: relative;
}

.submenu-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.submenu-trigger::after {
    content: '▾';
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.has-submenu.open .submenu-trigger::after {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem;
    padding-top: calc(0.4rem + 0.5rem);
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.submenu::before {
    content: '';
    position: absolute;
    top: -0.4rem;
    left: 0;
    right: 0;
    height: 0.4rem;
}

.submenu a {
    color: var(--text) !important;
}

.submenu a:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu {
    display: flex;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0.4rem;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-open .hamburger {
    background: transparent;
}

.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ── Breadcrumbs ── */

.breadcrumbs {
    padding: calc(var(--header-wave-height, 40px) + 1rem) 0 0;
}

.breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumbs li + li::before {
    content: '/';
    margin-right: 0.4rem;
    color: var(--line);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* ── Alerts ── */

main {
    padding-top: 5px;
}

.site-alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    font-size: 0.95rem;
}

.site-alert-success {
    border-color: #a3d9a5;
    background: #eafaf1;
    color: #1e8c4c;
}

.site-alert-error {
    border-color: #f5b7b1;
    background: #fdedec;
    color: #c0392b;
}

/* ── Hero ── */

.hero-home {
    position: relative;
}

/* Slideshow hero */
.hero-slideshow {
    position: relative;
    height: min(50vh, 480px);
    background: #000;
    overflow: hidden;
}

.slide {
    display: none;
    height: min(50vh, 480px);
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.slide img {
    width: 100%;
    height: min(50vh, 480px);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 80, 50, 0.75), rgba(30, 80, 50, 0.3));
    display: flex;
    align-items: center;
}

/* Static hero (no images) */
.hero-static {
    background: linear-gradient(135deg, var(--primary) 0%, #2ecc71 50%, #1abc9c 100%);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-static::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -5%;
    width: 110%;
    height: 80px;
    background: var(--bg);
    border-radius: 50% 50% 0 0;
}

.hero-static .hero-copy {
    color: #fff;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.hero-static .hero-copy .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.hero-static .hero-copy h1 {
    color: #fff;
}

.hero-static .hero-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.9);
}

/* Shared hero copy */
.hero-copy {
    color: #fff;
    max-width: 640px;
}

.hero-copy .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.hero-copy h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.15;
}

.hero-copy p:not(.eyebrow) {
    font-size: 1.05rem;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.btn-hero {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid #fff;
    backdrop-filter: blur(4px);
}

.btn-hero:hover {
    background: #fff;
    color: var(--primary-dark);
}

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

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background var(--transition);
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.slide-btn.prev {
    left: 1.25rem;
}

.slide-btn.next {
    right: 1.25rem;
}

.slide-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 3;
}

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

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

/* ── Stats Bar ── */

.stats-bar {
    background: var(--primary);
    padding: 1rem 0;
}

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

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.stat-icon {
    width: 24px;
    height: 24px;
    color: #fff;
    flex-shrink: 0;
}

.stat-text strong {
    display: block;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.stat-text span {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* ── Welcome / Intro ── */

.welcome-section {
    text-align: center;
    padding: 4rem 0;
}

.welcome-section h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.welcome-section p {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ── Section Dividers ── */

.wave-divider {
    display: block;
    width: 100%;
    height: 50px;
    margin: -1px 0;
}

.wave-divider-top {
    margin-bottom: -1px;
}

/* ── General Layouts ── */

.contact-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.prose-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.section-subtitle {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ── About / Vision Preview ── */

.about-preview {
    display: flex;
    gap: 2.5rem;
    align-items: start;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.about-preview-img {
    width: 300px;
    min-width: 300px;
    height: 230px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.about-preview-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.about-preview-text p {
    line-height: 1.75;
}

.preview-clamp {
    max-height: 7.5em;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

/* ── Contact Info List ── */

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.92rem;
}

.contact-info-item a {
    color: var(--primary);
    font-weight: 600;
}

.contact-info-item a:hover {
    color: var(--primary-dark);
}

/* ── Cards & Content Blocks ── */

.content-card,
.card,
.gallery-card,
.gallery-tile,
.link-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover,
.link-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.content-card,
.link-card {
    padding: 1.75rem;
}

/* ── Info/Resources Pages ── */

.info-disclaimer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05) 0%, rgba(39, 174, 96, 0.02) 100%);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
}

.info-disclaimer-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 174, 96, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    flex-shrink: 0;
}

.info-disclaimer-icon svg {
    width: 26px;
    height: 26px;
}

.info-disclaimer-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.info-disclaimer-content strong {
    color: var(--primary);
    font-weight: 700;
}

.info-documents-list {
    display: grid;
    gap: 0.75rem;
}

.info-document-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.info-document-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
    border-color: var(--primary);
    background: linear-gradient(to right, rgba(39, 174, 96, 0.02), transparent);
}

.info-document-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 174, 96, 0.08);
    border-radius: var(--radius-md);
    color: var(--primary);
    flex-shrink: 0;
}

.info-document-icon svg {
    width: 22px;
    height: 22px;
}

.info-document-content h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

.info-document-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.6;
    transition: all var(--transition);
    flex-shrink: 0;
}

.info-document-arrow svg {
    width: 18px;
    height: 18px;
}

.info-document-card:hover .info-document-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ── Section Heads ── */

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

/* ── Card Grids ── */

.cards-grid,
.dual-info-grid,
.link-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

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

.card {
    overflow: hidden;
}

.card img,
.article-row-image img,
.gallery-card img,
.gallery-tile img {
    width: 100%;
    object-fit: cover;
}

.news-card img {
    height: 220px;
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-body h3 a:hover {
    color: var(--primary);
}

.meta-line {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}

/* ── Homepage News Featured ── */

/* ── Featured News ── */

.news-featured-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    padding: 1rem;
    transition: box-shadow var(--transition), transform var(--transition);
    margin-bottom: 2rem;
}

.news-featured-main:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.news-featured-main-img {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.news-featured-main-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-featured-main:hover .news-featured-main-img img {
    transform: scale(1.04);
}

.news-featured-main-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-featured-main-body h3 {
    font-size: 1.25rem;
    line-height: 1.35;
}

.news-featured-main-body h3 a:hover {
    color: var(--primary);
}

.news-featured-main-body > p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ── News Grid ── */

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

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.news-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    height: 140px;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.news-card-body {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
}

.news-card-body h3 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0;
}

.news-card-body h3 a:hover {
    color: var(--primary);
}

.news-card-body > p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: transform var(--transition);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ── Gallery Grid ── */

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

.gallery-tile,
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.gallery-tile img,
.gallery-card img {
    height: 240px;
    transition: transform 0.4s ease;
}

.gallery-tile span,
.gallery-card span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    z-index: 1;
}

.gallery-tile::after,
.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 0;
}

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

.card img,
.sidebar-image img {
    transition: transform 0.4s ease;
}

/* ── Info Cards ── */

.info-card h3,
.link-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--primary);
}

.link-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.link-list li + li {
    margin-top: 0.6rem;
}

.link-list a {
    color: var(--primary);
    font-weight: 600;
    transition: color var(--transition);
}

.link-list a:hover {
    color: var(--primary-dark);
}

/* ── Page Hero ── */

.page-hero,
.page-hero-soft {
    padding: 2.5rem 0 1.5rem;
    background: var(--primary-light);
    border-bottom: 3px solid var(--primary);
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.page-hero p {
    max-width: 620px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.page-hero .eyebrow {
    margin-bottom: 0.25rem;
}

/* ── Prose Layout ── */

.prose-layout {
    align-items: start;
}

.sidebar-stack {
    display: grid;
    gap: 1rem;
}

.sidebar-image img {
    height: 220px;
    border-radius: var(--radius-md);
}

/* ── Modern Gallery Hero (Despre Noi) ── */

.despre-gallery-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.despre-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    aspect-ratio: 16 / 4;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    display: block;
}

.despre-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.despre-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.despre-gallery-item:hover img {
    transform: scale(1.05);
}

.despre-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
}

.despre-gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* ── Article List ── */

.article-list {
    display: grid;
    gap: 1.5rem;
}

.article-list-body {
    display: grid;
    gap: 1.5rem;
}

.article-search {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.article-search label {
    font-weight: 700;
    color: var(--primary-dark);
}

.article-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
    font: inherit;
    color: var(--text);
    background: var(--surface);
}

.article-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.16);
}

.article-search-empty {
    margin-top: -0.3rem;
}

.is-filter-hidden {
    display: none !important;
}

.article-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.2rem;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: box-shadow var(--transition);
}

.article-row:hover {
    box-shadow: var(--shadow-lg);
}

.article-row > div {
    padding: 1rem 1.2rem 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-row h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.article-row h2 a:hover {
    color: var(--primary);
}

.article-row-image img {
    height: 100%;
    min-height: 160px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-header .meta-line {
    margin-bottom: 0.5rem;
}

.article-main h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0;
}

.article-hero-img {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 1px solid var(--line);
    background: var(--surface);
    aspect-ratio: 16 / 4;
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-hero-img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-hero-img:hover img {
    transform: scale(1.05);
}

.article-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
}

.article-hero-img:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.article-gallery a {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    aspect-ratio: 16 / 4;
    display: block;
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-gallery a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-gallery a:hover img {
    transform: scale(1.05);
}

.article-gallery a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
}

.article-gallery a:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.article-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.article-back {
    padding-top: 0.5rem;
}

/* ── Gallery Masonry ── */

.gallery-masonry {
    columns: 3 280px;
    column-gap: 1rem;
}

.gallery-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.gallery-card img {
    min-height: 240px;
}

/* ── Contact Form ── */

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.contact-form label {
    display: grid;
    gap: 0.35rem;
}

.contact-form label span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

.contact-card h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* ── Modern Contact Page ── */

.contact-modern {
    display: grid;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 255, 255, 0.5) 100%);
    border: 1px solid rgba(39, 174, 96, 0.15);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 0 1px rgba(39, 174, 96, 0.3);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.contact-info-card:hover {
    box-shadow: 
        0 12px 40px rgba(39, 174, 96, 0.15),
        0 0 1px rgba(39, 174, 96, 0.3);
    transform: translateY(-4px);
    border-color: rgba(39, 174, 96, 0.3);
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(39, 174, 96, 0.1);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    flex-shrink: 0;
    background: rgba(39, 174, 96, 0.08);
    border-radius: var(--radius-md);
    padding: 8px;
    box-sizing: border-box;
}

.contact-info-header h2 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-info-content {
    display: grid;
    gap: 2rem;
}

.contact-info-item {
    display: grid;
    gap: 0.6rem;
}

.contact-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin: 0;
}

.contact-value {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
    font-weight: 500;
}

.contact-value a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
}

.contact-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.contact-value a:hover::after {
    width: 100%;
}

.contact-map-container {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(39, 174, 96, 0.15);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        inset 0 0 1px rgba(39, 174, 96, 0.1);
    background: var(--surface);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.contact-map-container:hover {
    box-shadow: 
        0 12px 40px rgba(39, 174, 96, 0.15),
        inset 0 0 1px rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.25);
}

.contact-map-container iframe {
    display: block;
    border: none;
}

.contact-info-map {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(39, 174, 96, 0.1);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.contact-info-map iframe {
    display: block;
    border: none;
    width: 100%;
}

/* ── Map ── */

.map-frame {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.map-frame iframe {
    display: block;
}

/* ── Rich Content ── */

.rich-content {
    overflow: hidden;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 1.5rem;
    color: var(--text);
}

.rich-content p {
    color: var(--text-secondary);
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.rich-content th,
.rich-content td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.85rem;
    text-align: left;
}

.rich-content th {
    background: var(--primary-light);
    font-weight: 600;
    color: var(--text);
}

.rich-content img {
    border-radius: var(--radius-sm);
}

/* ── Footer ── */

.site-footer {
    margin-top: 0;
    background: #1a332a;
    color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding: 3.5rem 0 2.5rem;
}

.footer-grid h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
}

.footer-links,
.footer-socials {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a,
.footer-socials a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-socials a:hover {
    color: var(--accent);
}

.footer-links li + li,
.footer-socials li + li {
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ── Lightbox ── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img-wrap {
    overflow: hidden;
    width: 95vw;
    height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
    position: relative;
}

.lightbox-img-wrap.is-zoomed {
    cursor: grab;
}

.lightbox-img-wrap.is-dragging {
    cursor: grabbing;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: var(--radius-md);
    transform-origin: center center;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    font-size: 1.75rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: background var(--transition);
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: background var(--transition);
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 1.25rem;
}

.lightbox-next {
    right: 1.25rem;
}

.lightbox-controls {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.lightbox-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn.lightbox-zoom-reset {
    border-radius: 999px;
    width: auto;
    padding: 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Utilities ── */

.empty-state {
    margin: 0;
    color: var(--muted);
    font-style: italic;
}

/* ── Animations ── */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======================================
   RESPONSIVE — Tablet
   ====================================== */

@media (max-width: 980px) {
    .contact-strip,
    .contact-strip,
    .prose-layout,
    .contact-layout,
    .cards-grid,
    .dual-info-grid,
    .link-card-grid,
    .footer-grid,
    .article-row,
    .gallery-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .despre-gallery-hero {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .article-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .news-featured-main {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .news-featured-main-img img {
        height: 180px;
    }

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

    .contact-modern {
        gap: 2.25rem;
    }

    .contact-info-card {
        padding: 1.75rem;
    }

    .contact-item-icon {
        width: 24px;
        height: 24px;
    }

    .contact-info-header {
        margin-bottom: 1.75rem;
    }

    .contact-info-header h2 {
        font-size: 1.4rem;
    }

    .contact-map-container {
        height: 400px;
    }

    .info-disclaimer {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .info-document-card {
        padding: 1.1rem 1.25rem;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-preview {
        flex-direction: column;
    }

    .about-preview-img {
        width: 100%;
        min-width: 0;
        height: 260px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        padding: 0.75rem 1rem;
        z-index: 50;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-toggle {
        display: inline-block;
    }

    .submenu {
        position: static;
        min-width: 0;
        margin-top: 0.25rem;
        box-shadow: none;
        border: 0;
        border-radius: var(--radius-sm);
        background: var(--bg-soft);
    }

    .submenu a {
        color: var(--text-secondary) !important;
    }

    .submenu a:hover {
        background: var(--primary-light) !important;
        color: var(--primary) !important;
    }

    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu {
        display: none;
    }

    .has-submenu.open .submenu {
        display: flex;
    }
}

/* ======================================
   RESPONSIVE — Mobile
   ====================================== */

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

    .page-hero {
        padding: 2rem 0 1.25rem;
    }

    .contact-strip,
    .contact-strip,
    .prose-layout,
    .contact-layout,
    .cards-grid,
    .dual-info-grid,
    .link-card-grid,
    .footer-grid,
    .article-row,
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }

    .despre-gallery-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .article-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .news-featured-main {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .news-featured-main-img img {
        height: 150px;
    }

    .news-featured-main-body h3 {
        font-size: 1.05rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .news-card-body {
        padding: 0.75rem;
    }

    .contact-modern {
        gap: 1.5rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-info-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .contact-info-header h2 {
        font-size: 1.3rem;
    }

    .contact-info-content {
        gap: 1.5rem;
    }

    .contact-item-icon {
        width: 22px;
        height: 22px;
    }

    .contact-map-container {
        height: 320px;
    }

    .info-disclaimer {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .info-disclaimer-icon {
        width: 40px;
        height: 40px;
    }

    .info-disclaimer-icon svg {
        width: 22px;
        height: 22px;
    }

    .info-disclaimer-content p {
        font-size: 0.9rem;
    }

    .info-document-card {
        grid-template-columns: auto 1fr;
        padding: 1rem;
        gap: 0.9rem;
    }

    .info-document-arrow {
        display: none;
    }

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

    .slide,
    .slide img,
    .hero-slideshow {
        height: 40vh;
    }

    .hero-copy {
        padding: 2rem 0;
    }

    .hero-copy h1 {
        font-size: 1.5rem;
    }

    /* Let the copy determine the height on narrow and short screens. */
    .hero-slideshow {
        height: auto;
        min-height: 40vh;
    }

    .hero-slideshow .slide {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .hero-slideshow .slide img {
        height: 100%;
    }

    .hero-overlay {
        position: relative;
        min-height: 40vh;
        padding: calc(var(--header-wave-height, 40px) + 2rem) 0 2rem;
    }

    .hero-overlay .hero-copy {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-static {
        padding: 3rem 0 2.5rem;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-masonry {
        columns: 1;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .article-row-image img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        min-height: 200px;
    }

    .about-preview {
        padding: 1.25rem;
    }

    .about-preview-img {
        height: 180px;
    }

    .welcome-section {
        padding: 3rem 0 2rem;
    }
}
/* Mobile navigation expands within the header as one continuous surface. */
@media (max-width: 980px) {
    .site-header { border-bottom: 0; box-shadow: none; }
    .site-header::after { display: block; }
    .header-inner { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
    .header-inner > .logo { min-height: 72px; }
    .nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #f0f5ea; color: #365a40; cursor: pointer; transition: background .2s; }
    .nav-toggle:hover { background: #e5eddd; }
    .nav-toggle:focus-visible { outline: 3px solid #8ca875; outline-offset: 3px; }
    .site-header .main-nav { display: grid; grid-template-rows: 0fr; position: static; flex: 0 0 100%; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; opacity: 0; visibility: hidden; transition: grid-template-rows .32s ease, opacity .24s ease, visibility .32s; }
    .site-header .main-nav.open { display: grid; grid-template-rows: 1fr; opacity: 1; visibility: visible; }
    .site-header .main-nav > ul { min-height: 0; overflow: hidden; gap: 4px; max-height: calc(100dvh - 95px); padding: 0 0; transform: translateY(-8px); transition: padding .32s ease, transform .32s ease; }
    .site-header .main-nav.open > ul { overflow-y: auto; padding: 8px 0 18px; transform: translateY(0); }
    .site-header .main-nav > ul > li > a { padding: 12px 16px; border-radius: 12px; font-size: .95rem; }
    .site-header .main-nav a.active { background: #eaf2e1; color: #416839; }
    .site-header .main-nav a:hover { background: #f0f5eb; }
    .site-header .submenu-trigger { display: flex; justify-content: space-between; }
    .site-header .submenu { margin: 4px 0 6px 16px; padding: 6px; border-left: 2px solid #d9e6ce; border-radius: 0 10px 10px 0; background: #f6f8f2; }
    .site-header .submenu a { border-radius: 8px; padding: 10px 14px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header .main-nav, .site-header .main-nav > ul, .site-header .nav-toggle { transition: none; }
}

/* Homepage news: one consistent, compact grid. */
.home-news { background: #f5f7ef; }
.home-news-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.home-news-heading h2 { color: #284235; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.035em; margin: 0; }
.home-news-all { display: inline-flex; gap: 22px; align-items: center; padding: 11px 16px; border: 1px solid #d7e1cd; border-radius: 12px; background: #fff; color: #3b6344; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.home-news-all:hover { background: #e9efdf; }
.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-news-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dfe7d8; border-radius: 20px; background: #fff; color: #284235; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.home-news-photo { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e6eddd; }
.home-news-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s; }
.home-news-latest { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 7px; background: #fff; color: #41623a; font-size: .68rem; font-weight: 800; box-shadow: 0 2px 10px #0001; }
.home-news-placeholder { display: grid; place-items: center; height: 100%; color: #91a67d; }
.home-news-placeholder svg { width: 40px; height: 40px; }
.home-news-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.home-news-body time { font-size: .73rem; color: #6c7d64; }
.home-news-body h3 { color: #284235; font-size: 1.15rem; line-height: 1.4; letter-spacing: -.02em; margin: 12px 0 10px; overflow-wrap: anywhere; }
.home-news-body p { color: #647369; font-size: .85rem; line-height: 1.75; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-read { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid #e9eee3; color: #376445; font-size: .8rem; font-weight: 800; }
.home-news-read > span { transition: transform .25s; }
.home-news-card:hover { transform: translateY(-5px); border-color: #bdcfb0; box-shadow: 0 14px 28px #354e3510; }
.home-news-card:hover img { transform: scale(1.035); }
.home-news-card:hover .home-news-read > span { transform: translate(2px, -2px); }
.home-news a:focus-visible { outline: 3px solid #8da873; outline-offset: 4px; }
@media (max-width: 980px) { .home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 600px) { .home-news-grid { grid-template-columns: minmax(0, 1fr); } .home-news-heading { align-items: flex-start; flex-direction: column; gap: 16px; } .home-news-body { padding: 22px; } .home-news-photo { aspect-ratio: 16/8; } }
@media (prefers-reduced-motion: reduce) { .home-news-card, .home-news-photo img, .home-news-read > span { transition: none; } .home-news-card:hover, .home-news-card:hover img, .home-news-card:hover .home-news-read > span { transform: none; } }

/* Lead story and a compact editorial rail. */
.home-news { background: #f7f9f3; }
.home-news-heading { margin-bottom: 24px; }
.home-news-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 26px; align-items: stretch; }
.home-news-card { border-radius: 16px; box-shadow: none; }
.home-news-card-featured { grid-column: 1; grid-row: 1 / span 2; }
.home-news-card-featured .home-news-photo { aspect-ratio: 16 / 9; flex-shrink: 0; }
.home-news-card-featured .home-news-body { padding: 26px 28px; }
.home-news-card-featured h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.25; letter-spacing: -.035em; margin: 14px 0; }
.home-news-card-featured .home-news-body p { font-size: .9rem; -webkit-line-clamp: 3; }
.home-news-card:not(.home-news-card-featured) { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.home-news-card:not(.home-news-card-featured) .home-news-photo { height: 100%; min-height: 150px; aspect-ratio: auto; }
.home-news-card:not(.home-news-card-featured) .home-news-body { padding: 18px 20px; }
.home-news-card:not(.home-news-card-featured) h3 { font-size: 1.02rem; line-height: 1.35; margin: 8px 0; }
.home-news-card:not(.home-news-card-featured) .home-news-body p { -webkit-line-clamp: 2; font-size: .78rem; line-height: 1.55; margin-bottom: 12px; }
.home-news-card:not(.home-news-card-featured) .home-news-read { font-size: .72rem; padding-top: 9px; }
.home-news-card:nth-child(n+5) { grid-column: 2; }
.home-news-card-featured .home-news-latest { background: #edf4e5; color: #355538; left: 18px; bottom: 18px; }
@media (max-width: 980px) and (min-width: 701px) {
    .home-news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
    .home-news-card:not(.home-news-card-featured) { grid-template-columns: 100px minmax(0, 1fr); }
    .home-news-card:not(.home-news-card-featured) .home-news-body { padding: 16px; }
}
@media (max-width: 700px) {
    .home-news-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .home-news-card-featured { grid-column: auto; grid-row: auto; }
    .home-news-card:nth-child(n+5) { grid-column: auto; }
    .home-news-card-featured .home-news-body { padding: 22px; }
    .home-news-card-featured h3 { font-size: 1.45rem; }
    .home-news-card:not(.home-news-card-featured) { grid-template-columns: 100px minmax(0, 1fr); }
    .home-news-card:not(.home-news-card-featured) .home-news-body { padding: 16px; }
    .home-news-card:not(.home-news-card-featured) .home-news-photo { min-height: 140px; }
    .home-news-card:not(.home-news-card-featured) .home-news-body p { display: none; }
    .home-news-heading { flex-direction: row; align-items: center; gap: 12px; }
    .home-news-heading h2 { font-size: 1.6rem; }
    .home-news-all { padding: 9px 11px; font-size: .72rem; gap: 8px; }
}

/* Search controls shared by resource lists and gallery albums. */
.content-search { display: grid; gap: 8px; max-width: 560px; margin: 0 0 28px; color: #496344; font-size: .82rem; font-weight: 800; }
.content-search input { width: 100%; box-sizing: border-box; padding: 14px 18px; border: 1px solid #d6e1ce; border-radius: 13px; background: #fff; color: #2d4837; font: inherit; font-weight: 400; outline: none; }
.content-search input:focus { border-color: #88a775; box-shadow: 0 0 0 4px #88a77520; }
.gallery-title-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; text-align: left; }
.gallery-album-search { flex: 0 1 360px; width: 100%; margin: 0; color: inherit; }
.gallery-album-search input { background: #ffffffed; }
.album-card[hidden], .info-document-card[hidden], .albums-more button[hidden] { display: none !important; }
.albums-more { display: flex; justify-content: center; margin-top: 28px; }
.search-empty { text-align: center; padding: 28px; color: #647369; }
.search-empty[hidden] { display: none; }
/* Statistics remain compact at every screen width. */
.stats-bar { padding: 28px 0; background: #f5f7ef; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 22px; border: 1px solid #dfe7d6; border-radius: 18px; background: #fff; text-align: left; box-shadow: 0 4px 16px #36503904; }
.stat-item:nth-child(2) { background: #edf3e5; }
.stat-item:nth-child(3) { background: #faf1df; }
.stat-item:nth-child(4) { background: #e9f1ee; }
.stat-icon { flex-shrink: 0; width: 30px; height: 30px; color: #7c966b; }
.stat-text { min-width: 0; }
.stat-text strong { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; color: #2d4e37; }
.stat-text span { display: block; margin-top: 7px; color: #66765e; font-size: .76rem; line-height: 1.45; }
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .gallery-title-row { align-items: stretch; flex-direction: column; gap: 22px; }
    .gallery-album-search { flex: auto; max-width: none; }
    .stats-bar { padding: 20px 0; }
    .stats-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-item { padding: 18px 14px; gap: 12px; flex-direction: column; align-items: flex-start; }
    .stat-icon { width: 24px; height: 24px; }
    .stat-text strong { font-size: 2rem; }
    .stat-text span { font-size: .74rem; margin-top: 6px; }
}
#homeStatistics { scroll-margin-top: 100px; }
.stat-item { justify-content: flex-start; }

/* Homepage contact details: icon beside each text block. */
.contact-strip .contact-info-item { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; }
.contact-strip .contact-info-item > div { min-width: 0; overflow-wrap: anywhere; }
.contact-strip .contact-info-icon { flex: 0 0 48px; }

/* Three homepage stories: one lead card beside two compact stories. */
.home-news-card-featured .home-news-photo { height: 200px; aspect-ratio: auto; }
.home-news-card-featured .home-news-body { padding: 22px 24px; }
.home-news-card-featured h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 10px 0; }
.home-news-card-featured .home-news-body p { -webkit-line-clamp: 2; margin-bottom: 16px; }
@media (max-width: 700px) { .home-news-card-featured .home-news-photo { height: 180px; } }

.home-gallery-link-mobile { display: none; }
@media (max-width: 768px) {
    .home-gallery-link-desktop { display: none; }
    .home-gallery-link-mobile { display: flex; justify-content: center; margin-top: 1.5rem; }
}
