/* Premium Foundation Theme */
:root {
    --bg-color: #FBFAF5; /* A sophisticated, warm cream */
    --text-main: #1C271E; /* Almost-black forest green for high contrast */
    --accent-green: #294D36;
    --forest: #1E3A2B;
    --forest-light: #2F5233;
    --mint: #DCEAD9;
    --mint-dark: #BFE0BD;
    --gold: #D8A857;
    --ink: #262626;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a { color: inherit; }

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

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: var(--bg-color);
    padding: 1.4rem 5%;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.is-scrolled {
    padding: 0.9rem 5%;
    box-shadow: 0 8px 24px rgba(28, 39, 30, 0.08);
}
.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(28, 39, 30, 0.15);
}
.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    color: var(--forest);
    line-height: 1.2;
}
.brand-text small {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.58rem;
    letter-spacing: 2px;
    color: #7c8c7f;
    margin-top: 1px;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.2rem;
    flex-wrap: wrap;
}
.nav-links a {
    position: relative;
    text-decoration: none;
    color: #4b544d;
    font-size: 0.92rem;
    font-weight: 500;
    padding-bottom: 6px;
    transition: color 0.25s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--forest);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); font-weight: 600; }

/* --- Pill Buttons --- */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.7rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-pill-dark {
    background: var(--forest);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(30, 58, 43, 0.5);
}
.btn-pill-dark:hover {
    background: var(--forest-light);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(30, 58, 43, 0.55);
}
.circle-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* --- Hero (Home) --- */
.hero-new {
    padding: 3rem 5% 2rem;
    position: relative;
}
.hero-headline {
    max-width: 980px;
    margin: 0 auto 4.5rem;
    text-align: center;
}
.hero-headline h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.18;
    color: var(--ink);
    letter-spacing: -1px;
}
.underline-accent {
    position: relative;
    display: inline-block;
}
.underline-accent::after {
    content: '';
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: -6px;
    height: 5px;
    background: var(--forest-light);
    border-radius: 3px;
    transform-origin: left;
    animation: growLine 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.5s both;
}

.hero-collage {
    display: flex;
    gap: 2.75rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem 9rem;
}
.collage-col {
    flex: 1;
    min-width: 0;
}
.collage-col.is-lower { margin-top: 6.5rem; }

.photo-frame { position: relative; }
.placeholder-photo {
    aspect-ratio: 3 / 2;
    border-radius: 28px;
    background: linear-gradient(135deg, #dcead9 0%, #eee7d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 30px 55px -25px rgba(30, 58, 43, 0.45);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.photo-frame:hover .placeholder-photo { transform: scale(1.025); }
.placeholder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ph-inner {
    text-align: center;
    padding: 1.5rem;
    color: var(--forest);
    opacity: 0.75;
}
.ph-inner svg { width: 34px; height: 34px; margin: 0 auto 0.6rem; opacity: 0.8; }
.ph-inner span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    max-width: 220px;
    margin: 0 auto;
}

.stat-card, .quote-bubble {
    position: absolute;
    animation: floatY 5.5s ease-in-out infinite;
}
.stat-card {
    background: var(--forest);
    color: #fff;
    border-radius: 20px;
    padding: 1.15rem 1.3rem;
    width: 205px;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: 0 20px 38px -14px rgba(30, 58, 43, 0.55);
}
.stat-card .circle-icon { margin-top: 0.7rem; border-color: rgba(255, 255, 255, 0.55); }
.quote-bubble {
    background: var(--mint);
    border-radius: 18px;
    padding: 0.95rem 1.15rem 1.1rem;
    width: 265px;
    box-shadow: 0 18px 32px -14px rgba(30, 58, 43, 0.3);
    animation-delay: 0.6s;
}
.quote-native {
    color: var(--forest);
    font-weight: 700;
    font-size: 0.86rem;
    margin-bottom: 0.15rem;
}
.quote-en {
    color: #3f5b46;
    font-size: 0.76rem;
    font-weight: 500;
}
.quote-mark {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--forest);
    line-height: 0.4;
    display: block;
    margin-top: 0.5rem;
}

.pos-tr { top: -2.75rem; right: -1.25rem; }
.pos-bl { bottom: -2.5rem; left: -1.25rem; }

.hero-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: -6rem;
}
.btn-cta {
    background: var(--forest);
    color: #fff;
    padding: 1.05rem 2.3rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 20px 40px -14px rgba(30, 58, 43, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-cta:hover {
    background: var(--forest-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 26px 50px -14px rgba(30, 58, 43, 0.55);
}
.btn-cta .circle-icon { background: rgba(255, 255, 255, 0.15); }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@keyframes growLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.25, 1, 0.5, 1) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.5s; }

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* --- Legacy Hero (kept for reference / other pages) --- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-image: url('classroom-meeting.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 700px;
}
.btn-outline {
    display: inline-block;
    padding: 14px 45px;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background-color: #fff;
    color: var(--text-main);
}

/* --- Content Layouts --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5% 6rem;
}
.page-title {
    font-size: 2.6rem;
    margin-bottom: 3rem;
}

/* The exact Wix Split-Screen Look */
.split-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    margin-bottom: 3rem;
    align-items: start;
}
.split-title h2 {
    font-size: 2.8rem;
    margin-top: -0.4rem;
}
.split-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #333;
}
.split-content p strong {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.25rem;
}

/* Full Width Image Breaker */
.feature-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    margin: 4rem 0;
}

/* Reusable inline photo placeholder (for pages without real images yet) */
.img-placeholder {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    background: linear-gradient(135deg, #dcead9 0%, #eee7d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.img-placeholder .ph-inner { opacity: 0.7; }
.img-placeholder.tall { aspect-ratio: 4 / 5; }

/* Post cards (Achievements) */
.post-card {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.post-card:last-child { border-bottom: none; }
.post-meta { font-size: 0.8rem; color: #6f7a71; letter-spacing: 0.5px; margin-bottom: 0.6rem; text-transform: uppercase; }
.post-content h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.post-content p { color: #4a4a4a; font-size: 0.98rem; }

.page-subtitle {
    margin-top: -2rem;
    margin-bottom: 3rem;
    max-width: 640px;
    color: #5a6b5e;
    font-size: 1.05rem;
}

/* Gallery grid (masonry via CSS columns, handles mixed portrait/landscape) */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    box-shadow: 0 10px 25px -12px rgba(28, 39, 30, 0.25);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -14px rgba(28, 39, 30, 0.35); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
    padding: 0.9rem 0.2rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--forest);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 17, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img {
    max-width: 88vw;
    max-height: 86vh;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close, .lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.8rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 4.5rem 5%;
    font-size: 0.9rem;
    margin-top: 3rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.footer-logo { width: 56px; height: 56px; border-radius: 50%; }
.footer-col p { margin-bottom: 0.5rem; color: #555; }
.footer-col a { color: var(--text-main); text-decoration: none; border-bottom: 1px solid transparent; transition: border 0.3s ease; }
.footer-col a:hover { border-bottom: 1px solid var(--text-main); }

/* --- Mobile Responsiveness --- */
@media (max-width: 1100px) {
    .gallery-grid { column-count: 2; }
}
@media (max-width: 900px) {
    .split-section { grid-template-columns: 1fr; gap: 2rem; }
    .post-card { grid-template-columns: 1fr; }
    .gallery-grid { column-count: 1; }
    .hero h1 { font-size: 2.5rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-close { top: 0.75rem; right: 0.75rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-logo { margin: 0 auto; }

    .nav-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
    .nav-links { order: 3; width: 100%; justify-content: center; gap: 1.2rem 1.6rem; margin-top: 0.5rem; }

    .hero-collage { flex-direction: column; padding-bottom: 3rem; gap: 5.5rem; }
    .collage-col.is-lower { margin-top: 0; }
    .stat-card, .quote-bubble { position: static; width: 100%; margin-top: 1.25rem; animation: none; }
    .pos-tr, .pos-bl { top: auto; right: auto; bottom: auto; left: auto; }
    .hero-cta-wrap { margin-top: 1rem; }
}
