/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand palette — Emerald #50C878 + Jade #00A86B (management preference) */
    --jade: #00A86B;
    --emerald: #50C878;
    --green-900: #00331F;
    --green-800: #005536;
    --green-700: #00A86B;  /* Jade — primary */
    --green-600: #1FBB7E;  /* Jade/Emerald blend */
    --green-500: #50C878;  /* Emerald — accent */
    --green-400: #7DD89A;
    --green-300: #A8E4BD;
    --green-200: #D4F0DE;
    --green-100: #E8F7EE;
    --green-50: #F3FBF6;
    --olive-700: #00724A;  /* deep jade (kept var name for compat) */
    --olive-600: #008856;  /* jade hover */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px -4px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

body.lang-en {
    font-family: 'Inter', 'Cairo', sans-serif;
}

/* ===== LANGUAGE SWITCH BUTTON ===== */
.lang-switch-wrap {
    display: flex;
    align-items: center;
}

.lang-switch {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 50px;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.25);
}

.navbar.scrolled .lang-switch {
    background: var(--green-50);
    color: var(--green-700);
    border-color: var(--green-200);
}

.navbar.scrolled .lang-switch:hover {
    background: var(--green-100);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    line-height: 1;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}
.navbar.scrolled .logo-img {
    height: 48px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
    line-height: 1.25;
    letter-spacing: 0.2px;
    max-width: 260px;
    white-space: normal;
}

body.lang-en .logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    max-width: 280px;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

body.lang-en .logo-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.4px;
}

.navbar.scrolled .logo-text {
    color: var(--green-700);
}

.navbar.scrolled .logo-subtitle {
    color: var(--gray-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: space-around;
    margin: 0 24px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-links a:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.nav-cta {
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.3);
}

.navbar.scrolled .nav-cta {
    background: var(--green-700) !important;
    color: var(--white) !important;
    border-color: var(--green-700);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-700);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 40%, var(--olive-600) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--white);
    color: var(--green-700);
}

.btn-primary:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light h2 {
    color: var(--white);
}

.section-tag {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-700);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.section-header.light .section-tag {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT ===== */
.about {
    background: var(--gray-50);
}

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

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    width: 72px;
    height: 72px;
    background: var(--green-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--green-700);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.about-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== PROGRAMS ===== */
.programs {
    background: var(--white);
}

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

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.program-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--green-600);
    transition: var(--transition);
    border-radius: 0 0 4px 4px;
}

.program-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.program-card.visible:hover {
    transform: translateY(-4px);
}

.program-card:hover::before {
    height: 100%;
}

.program-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.program-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.program-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.program-tag {
    display: inline-block;
    background: var(--green-50);
    color: var(--green-700);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===== STATS ===== */
.stats {
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
    position: relative;
}

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

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}

.stat-card.visible:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ===== KINDERGARTEN ===== */
.kindergarten {
    background: var(--white);
}

.kinder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.kinder-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.kinder-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.kinder-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.kinder-content .section-tag {
    margin-bottom: 16px;
}

.kinder-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.kinder-content p {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.kinder-stats {
    display: flex;
    gap: 40px;
}

.kinder-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green-700);
}

.kinder-stat span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===== FOUNDERS ===== */
.founders {
    background: var(--white);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
    gap: 40px;
}

.founder-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.founder-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.founder-card.visible:hover {
    transform: translateY(-6px);
}

.founder-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gray-100);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: var(--transition);
}

.founder-card:hover .founder-image img {
    transform: scale(1.04);
}

.founder-info {
    padding: 24px 24px 28px;
    text-align: center;
}

.founder-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.founder-info p {
    color: var(--green-700);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
}

/* ===== PARTNERS ===== */
.partners {
    background: var(--gray-50);
}

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

.partner-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.partner-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--green-200);
}

.partner-card.visible:hover {
    transform: translateY(-4px);
}

.partner-logo {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 10px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.partner-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.partner-card p {
    color: var(--gray-500);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
    background: var(--white);
    padding: 60px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--green-700) 0%, var(--olive-600) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-box p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--green-100);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: var(--transition);
}

html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea {
    direction: rtl;
}

html[dir="ltr"] .contact-form input,
html[dir="ltr"] .contact-form textarea {
    direction: ltr;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--green-100);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    background: var(--green-700);
    color: var(--white);
    border: none;
    font-size: 1.05rem;
}

.contact-form .btn:hover {
    background: var(--green-800);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: var(--white);
    display: block;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    max-width: 100%;
}

.footer-logo-img {
    width: 90px;
    height: auto;
    display: block;
    background: var(--white);
    padding: 6px 10px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 400px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--gray-500);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-400);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

    .founders-grid {
        grid-template-columns: repeat(2, minmax(0, 280px));
        gap: 24px;
    }

    .kinder-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--gray-700) !important;
        padding: 12px 16px;
        width: 100%;
    }

    .nav-links a:hover {
        background: var(--green-50) !important;
    }

    .nav-cta {
        background: var(--green-700) !important;
        color: var(--white) !important;
        text-align: center;
        border-radius: 8px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

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

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

    .founders-grid {
        grid-template-columns: minmax(0, 300px);
    }

    .lang-switch-wrap {
        padding: 8px 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .section {
        padding: 70px 0;
    }
}

/* ===== ANIMATION DELAYS ===== */
.about-card:nth-child(1) { transition-delay: 0s; }
.about-card:nth-child(2) { transition-delay: 0.1s; }
.about-card:nth-child(3) { transition-delay: 0.2s; }

.program-card:nth-child(1) { transition-delay: 0s; }
.program-card:nth-child(2) { transition-delay: 0.08s; }
.program-card:nth-child(3) { transition-delay: 0.16s; }
.program-card:nth-child(4) { transition-delay: 0.24s; }
.program-card:nth-child(5) { transition-delay: 0.32s; }
.program-card:nth-child(6) { transition-delay: 0.4s; }

.stat-card:nth-child(1) { transition-delay: 0s; }
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-card:nth-child(4) { transition-delay: 0.3s; }

.partner-card:nth-child(1) { transition-delay: 0s; }
.partner-card:nth-child(2) { transition-delay: 0.08s; }
.partner-card:nth-child(3) { transition-delay: 0.16s; }
.partner-card:nth-child(4) { transition-delay: 0.24s; }
.partner-card:nth-child(5) { transition-delay: 0.32s; }
.partner-card:nth-child(6) { transition-delay: 0.4s; }

.founder-card:nth-child(1) { transition-delay: 0s; }
.founder-card:nth-child(2) { transition-delay: 0.15s; }

/* ===== FOUNDING PARTNERS (the two charitable orgs) ===== */
.founding-partners {
    background: var(--green-50);
}

.founding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.founding-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--green-200);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.founding-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.founding-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--green-500);
}

.founding-card.visible:hover {
    transform: translateY(-6px);
}

.founding-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.founding-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: var(--transition);
}

.founding-card:hover .founding-image img {
    transform: scale(1.04);
}

.founding-info {
    padding: 28px 28px 32px;
    text-align: center;
    flex: 1;
}

.founding-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.founding-info p {
    color: var(--gray-600);
    font-size: 0.98rem;
    line-height: 1.7;
}

.founding-card:nth-child(1) { transition-delay: 0s; }
.founding-card:nth-child(2) { transition-delay: 0.15s; }

/* ===== TEAM (Board + Consultants) ===== */
.team {
    background: var(--white);
}

.team-subheading {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green-700);
    margin: 24px 0 32px;
    position: relative;
    padding-bottom: 12px;
}

.team-subheading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--green-500);
    border-radius: 3px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.team-grid-consultants {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
    gap: 28px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--green-200);
}

.team-card.visible:hover {
    transform: translateY(-4px);
}

.team-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gray-100);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.04);
}

.team-info {
    padding: 16px 14px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.4;
}

.team-info p {
    color: var(--green-700);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
}

.team-credential {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 4px;
}

.team-card:nth-child(1) { transition-delay: 0s; }
.team-card:nth-child(2) { transition-delay: 0.08s; }
.team-card:nth-child(3) { transition-delay: 0.16s; }
.team-card:nth-child(4) { transition-delay: 0.24s; }
.team-card:nth-child(5) { transition-delay: 0.32s; }

/* ===== KINDERGARTEN — featured tile inside Programs ===== */
.kinder-feature {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);
    border: 1px solid var(--green-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.kinder-feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.kinder-feature .kinder-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.kinder-feature .kinder-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.kinder-feature .kinder-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 14px 0 14px;
}

.kinder-feature .kinder-tag {
    display: inline-block;
}

.kinder-feature .kinder-content p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ===== SHOWCASE (video reel) ===== */
.showcase {
    background: var(--gray-50);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.showcase-content .section-tag {
    margin-bottom: 16px;
}

.showcase-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.showcase-content p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
}

.showcase-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.video-fallback-link {
    color: var(--green-700);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 16px;
    border: 1.5px solid var(--green-300);
    border-radius: 8px;
    transition: var(--transition);
}

.video-fallback-link:hover {
    background: var(--green-50);
    border-color: var(--green-500);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 267 / 476;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .showcase-content h2 {
        font-size: 1.6rem;
    }

    .video-wrapper {
        margin: 0 auto;
    }
}

/* ===== RESPONSIVE — new sections ===== */
@media (max-width: 968px) {
    .founding-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .kinder-feature {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .kinder-feature .kinder-image img {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid-consultants {
        grid-template-columns: minmax(0, 260px);
    }

    .founding-info h3 {
        font-size: 1.2rem;
    }

    .team-subheading {
        font-size: 1.2rem;
    }
}

/* ===== OUR GOAL SECTION (هدفنا) ===== */
.goal {
    background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);
}

.goal-body {
    max-width: 1100px;
    margin: 0 auto;
}

.goal-body > p {
    font-size: 1.12rem;
    line-height: 1.95;
    color: var(--gray-700);
    text-align: center;
    margin-bottom: 48px;
    padding: 0 16px;
}

.goal-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.goal-pillar {
    background: var(--white);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.goal-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-500), var(--green-700));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.goal-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-300);
}

.goal-pillar-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1;
}

.goal-pillar h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 10px;
}

.goal-pillar p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== PROGRAMS SUBHEADINGS (Vocational Training / Education & Care) ===== */
.programs-subheading {
    margin-top: 56px;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
}

.programs-subheading:first-of-type {
    margin-top: 8px;
}

.programs-subheading h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 8px;
    display: inline-block;
    position: relative;
    padding: 0 20px;
}

.programs-subheading h3::before,
.programs-subheading h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: var(--green-300);
}

.programs-subheading h3::before {
    right: 100%;
}

.programs-subheading h3::after {
    left: 100%;
}

.programs-subheading p {
    font-size: 0.98rem;
    color: var(--gray-600);
    max-width: 680px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .goal-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .goal-pillars {
        grid-template-columns: 1fr;
    }
    .goal-body > p {
        font-size: 1rem;
    }
    .programs-subheading h3 {
        font-size: 1.4rem;
    }
    .programs-subheading h3::before,
    .programs-subheading h3::after {
        width: 24px;
    }
}

/* ===== Past Trainings (V4) ===== */
.trainings { background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%); }

.trainings-year { margin-top: 3.5rem; }
.trainings-year:first-of-type { margin-top: 2.5rem; }

.year-band {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    background: var(--green-700);
    color: var(--white);
    padding: 0.55rem 1.4rem 0.55rem 1.6rem;
    border-radius: 999px;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-md);
}
.year-label { font-size: 0.95rem; font-weight: 600; opacity: 0.85; }
.year-number { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.5px; }

.trainings-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.training-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--green-100);
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.training-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.training-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.training-meta {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--green-50) 100%);
    border-inline-end: 1px solid var(--green-100);
}
.training-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green-900);
    margin-bottom: 1.1rem;
    line-height: 1.35;
}
.training-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.training-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
}
.fact-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.5;
    width: 1.5rem;
    text-align: center;
}

.training-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 4px;
    aspect-ratio: 4 / 3;
    background: var(--green-100);
}
.training-photos:has(.photo-thumb:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}
.training-photos:has(.photo-thumb:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
}

.photo-thumb {
    position: relative;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
    background: var(--gray-100);
    transition: transform 0.4s ease;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}
.photo-thumb:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}
.photo-thumb:focus-visible {
    outline: 3px solid var(--green-500);
    outline-offset: -3px;
}
.photo-thumb-more::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 31, 0.55);
    transition: background 0.3s ease;
}
.photo-thumb-more:hover::after {
    background: rgba(0, 51, 31, 0.4);
}
.more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.4rem;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: none;
}

.trainings-footnote {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--green-100);
    border-inline-start: 4px solid var(--green-700);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.open {
    display: flex;
    animation: lightbox-fade 0.25s ease;
}
@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox-stage {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-counter {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 0;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}
.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}
.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%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
/* In RTL the visual prev/next chevrons stay where they are; the JS already
   inverts the LeftArrow/RightArrow keyboard mapping for direction sensitivity */

/* Responsive: stack training cards on tablet & mobile */
@media (max-width: 900px) {
    .training-card {
        grid-template-columns: 1fr;
    }
    .training-meta {
        border-inline-end: 0;
        border-bottom: 1px solid var(--green-100);
        padding: 1.5rem 1.25rem;
    }
    .training-title { font-size: 1.25rem; }
    .training-photos {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .year-band { padding: 0.45rem 1.1rem; }
    .year-number { font-size: 1.25rem; }
    .training-title { font-size: 1.15rem; }
    .training-facts li { font-size: 0.9rem; }
    .more-overlay { font-size: 1.1rem; }
    .lightbox { padding: 0.75rem; }
    .lightbox-close { top: 0.75rem; right: 0.75rem; width: 42px; height: 42px; }
    .lightbox-prev { left: 0.5rem; width: 42px; height: 42px; }
    .lightbox-next { right: 0.5rem; width: 42px; height: 42px; }
    .lightbox-counter { bottom: -2rem; font-size: 0.85rem; }
}

/* ===== Kindergarten program-card with photo (V4 Row 4) ===== */
.program-card-with-photo {
    padding: 0;
    overflow: hidden;
    grid-row: span 1;
}
.program-card-with-photo .program-photo {
    width: calc(100% + 0px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--green-100);
    margin: 0;
}
.program-card-with-photo .program-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.program-card-with-photo:hover .program-photo img {
    transform: scale(1.04);
}
.program-card-with-photo .program-icon,
.program-card-with-photo h3,
.program-card-with-photo p,
.program-card-with-photo .program-tag {
    margin-inline-start: 1.5rem;
    margin-inline-end: 1.5rem;
}
.program-card-with-photo .program-icon { margin-top: 1.25rem; }
.program-card-with-photo .program-tag { margin-bottom: 1.25rem; }

/* ===== Future Programs cards (V4 Row 5) ===== */
.program-card-future {
    background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);
    border: 1px dashed var(--green-300);
    position: relative;
}
.program-card-future::before {
    content: "";
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 4px rgba(80, 200, 120, 0.18);
    animation: future-pulse 2s ease-in-out infinite;
}
@keyframes future-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}
.program-tag-future {
    background: var(--green-200);
    color: var(--green-900);
    border: 1px solid var(--green-400);
}

@media (max-width: 640px) {
    .logo-img { height: 44px; }
    .navbar.scrolled .logo-img { height: 38px; }
    .logo-text { font-size: 0.92rem; max-width: 150px; }
    body.lang-en .logo-text { font-size: 0.83rem; }
}

/* ===== Typography polish (V4 Row 9 — Nada's "clearer typography" feedback) ===== */
body {
    font-size: 1.02rem;
    line-height: 1.75;
}
.section-desc {
    font-size: 1.05rem;
    line-height: 1.8;
}
.about-card p, .program-card p, .training-facts li, .partner-card p, .team-info p, .founding-info p {
    font-size: 1rem;
    line-height: 1.75;
}
