/* ===== CSS Variables ===== */
:root {
    --primary: #4A90A4;
    --primary-dark: #3A7A94;
    --primary-light: #6BB5C9;
    --secondary: #F5A962;
    --secondary-dark: #E09952;
    --accent: #7BC47F;
    --golden: #ce8b29;
    --golden-dark: #b57a24;
    --golden-light: #daa04a;
    --accent-light: #A8D9AB;
    --pink: #E8A4B8;
    --purple: #9B8EC4;
    --text-dark: #2D3748;
    --text-medium: #4A5568;
    --text-light: #718096;
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-gray: #EDF2F7;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

body.en {
    font-family: var(--font-en);
    direction: ltr;
}

body.en .text-ar { display: none !important; }
body.en .text-en { display: inline !important; }
body:not(.en) .text-ar { display: inline !important; }
body:not(.en) .text-en { display: none !important; }

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--bg-gray);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--golden), var(--golden-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--golden-light), var(--golden));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--golden);
    border: 2px solid var(--golden);
}

.btn-secondary:hover {
    background: var(--golden);
    color: white;
}

.btn-white {
    background: white;
    color: var(--golden);
}

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

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: var(--golden);
    color: white;
    border-color: var(--golden);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-ar {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-en {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-family: var(--font-en);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--golden);
    transition: var(--transition);
}

body.en .nav-links a::after {
    right: auto;
    left: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--golden);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--bg-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-en);
}

.lang-toggle:hover {
    background: var(--golden);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.9) 0%, rgba(58, 122, 148, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: white;
    padding: 40px 0;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== Welcome Section ===== */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.welcome-content > p {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 25px;
    line-height: 1.8;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-medium);
}

.welcome-features i {
    color: var(--accent);
    font-size: 1.1rem;
}

.welcome-image {
    position: relative;
}

.welcome-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.welcome-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

body.en .welcome-image::before {
    right: auto;
    left: -20px;
}

/* ===== Features Section ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--pink), #d48aa0);
    color: white;
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: white;
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Programs Section ===== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.program-age {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

body.en .program-age {
    right: auto;
    left: 15px;
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.program-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===== Gallery Preview ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

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

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

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

.gallery-item:hover::after {
    background: rgba(74, 144, 164, 0.3);
}

/* ===== CTA Section ===== */
.cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-image: url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.92) 0%, rgba(58, 122, 148, 0.92) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1rem;
    font-weight: 600;
}

.footer-about p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--golden);
    margin-top: 4px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--golden);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.1rem;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--golden);
    transform: translateY(-3px);
}

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

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

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    margin-top: 80px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Gallery Page ===== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--bg-gray);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--golden);
    color: white;
}

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

.gallery-full .gallery-item {
    aspect-ratio: 1;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.contact-card i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--golden);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-card p,
.contact-card a {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.contact-card a:hover {
    color: var(--golden);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--golden);
    background: white;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ===== Our Story Page ===== */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-section.reverse {
    direction: ltr;
}

body.en .story-section.reverse {
    direction: rtl;
}

.story-section.reverse .story-content,
.story-section.reverse .story-image {
    direction: rtl;
}

body.en .story-section.reverse .story-content,
body.en .story-section.reverse .story-image {
    direction: ltr;
}

.story-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 15px;
}

.story-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--golden);
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== For Parents Page ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    margin-bottom: 20px;
}

.info-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-card ul {
    padding-right: 20px;
}

body.en .info-card ul {
    padding-right: 0;
    padding-left: 20px;
}

.info-card ul li {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 8px;
    list-style: disc;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    transition: var(--transition);
}

body.en .faq-question {
    text-align: left;
}

.faq-question:hover {
    color: var(--golden);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===== Careers Page ===== */
.careers-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.careers-intro p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.job-listings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(-5px);
}

body.en .job-card:hover {
    transform: translateX(5px);
}

.job-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.job-meta i {
    color: var(--golden);
}

.no-jobs {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.no-jobs i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.no-jobs h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-jobs p {
    font-size: 1rem;
    color: var(--text-medium);
}

/* ===== Map ===== */
.map-container {
    margin-top: 50px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

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

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

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

    .gallery-full {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-text {
        max-width: 150px;
    }

    .logo-ar {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .logo-en {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .mobile-menu-btn {
        display: flex;
    }

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

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .welcome-grid,
    .story-section,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .welcome-image::before {
        display: none;
    }

    .features-grid,
    .programs-grid,
    .gallery-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }

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

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

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

    .map-section {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .nav {
        height: 70px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        max-width: 120px;
    }

    .logo-ar {
        font-size: 0.8rem;
    }

    .logo-en {
        font-size: 0.55rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .gallery-full {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 100px 0 50px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 360px) {
    .logo-text {
        max-width: 100px;
    }

    .logo-ar {
        font-size: 0.7rem;
    }

    .logo-en {
        font-size: 0.5rem;
    }

    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===== Sticky Bottom Bar ===== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95), rgba(45, 55, 72, 0.98));
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
}

.sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-cta .btn {
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(206, 139, 41, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 20px 5px rgba(206, 139, 41, 0.3);
    }
}

/* ===== Running Kids Animation ===== */
.sticky-cta .running-kid {
    position: absolute;
    bottom: 10px;
    font-size: 1.8rem;
    z-index: 1;
    transition: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Boy on the left - Primary color (teal) */
.sticky-cta .running-kid.kid-boy {
    left: 5%;
    color: var(--primary);
}

/* Girl on the right - Secondary color (orange) */
.sticky-cta .running-kid.kid-girl {
    right: 5%;
    color: var(--secondary);
}

/* Running animation for the kids */
.sticky-cta .running-kid i {
    display: inline-block;
    animation: kid-bounce 0.4s ease-in-out infinite;
}

.sticky-cta .running-kid.kid-girl i {
    animation-delay: 0.2s;
}

@keyframes kid-bounce {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-4px) rotate(5deg);
    }
}

/* Celebration animation when kids reach the end */
.sticky-cta .running-kid.celebrating i {
    animation: kid-celebrate 0.5s ease-in-out infinite;
}

@keyframes kid-celebrate {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotate(-10deg) scale(1.1);
    }
    50% {
        transform: translateY(-12px) rotate(0deg) scale(1.2);
    }
    75% {
        transform: translateY(-8px) rotate(10deg) scale(1.1);
    }
}

/* Confetti particles */
.sticky-cta .confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.sticky-cta.celebrating .confetti {
    animation: confetti-burst 1s ease-out forwards;
}

.sticky-cta .confetti:nth-child(1) { background: var(--primary); left: 45%; animation-delay: 0s; }
.sticky-cta .confetti:nth-child(2) { background: var(--secondary); left: 48%; animation-delay: 0.1s; }
.sticky-cta .confetti:nth-child(3) { background: var(--primary); left: 51%; animation-delay: 0.05s; }
.sticky-cta .confetti:nth-child(4) { background: var(--secondary); left: 54%; animation-delay: 0.15s; }
.sticky-cta .confetti:nth-child(5) { background: var(--accent); left: 46%; animation-delay: 0.08s; }
.sticky-cta .confetti:nth-child(6) { background: var(--accent); left: 53%; animation-delay: 0.12s; }

@keyframes confetti-burst {
    0% {
        bottom: 20px;
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        bottom: 60px;
        opacity: 0;
        transform: translateX(var(--drift, 10px)) rotate(360deg);
    }
}

.sticky-cta .confetti:nth-child(1) { --drift: -20px; }
.sticky-cta .confetti:nth-child(2) { --drift: 15px; }
.sticky-cta .confetti:nth-child(3) { --drift: -10px; }
.sticky-cta .confetti:nth-child(4) { --drift: 25px; }
.sticky-cta .confetti:nth-child(5) { --drift: -15px; }
.sticky-cta .confetti:nth-child(6) { --drift: 20px; }

/* Hide kids on very small screens */
@media (max-width: 480px) {
    .sticky-cta .running-kid {
        font-size: 1.4rem;
    }

    .sticky-cta .confetti {
        width: 6px;
        height: 6px;
    }
}

/* Add padding to footer so sticky bar doesn't cover content */
.footer {
    padding-bottom: 80px;
}

@media (max-width: 480px) {
    .sticky-cta {
        padding: 12px 15px;
    }

    .sticky-cta .btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* ===== Pause Notice (Tutoring Center) ===== */
.pause-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 1px solid #ffc107;
    border-radius: var(--radius);
    padding: 15px 20px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    font-weight: 500;
}

.pause-notice::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffc107;
}

/* ===== Gallery Overlay ===== */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Form Success Message ===== */
.form-success {
    background: #48bb78;
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 998;
}

body:not(:has(.sticky-cta.visible)) .whatsapp-float {
    bottom: 25px;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

body.en .whatsapp-float {
    right: auto;
    left: 25px;
}

body.en .whatsapp-float .tooltip {
    right: auto;
    left: 70px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 15px;
    }

    .whatsapp-float a {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .whatsapp-float .tooltip {
        display: none;
    }

    body.en .whatsapp-float {
        left: 15px;
    }
}

/* ===== Skeleton Loading Animation ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-text.title {
    height: 2em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-text.subtitle {
    height: 1.2em;
    width: 80%;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4/3;
}

.skeleton-card {
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
}

/* Hide skeleton when content loaded */
.content-loaded .skeleton {
    display: none;
}
