/* ==================== GLOBAL STYLES ==================== */

:root {
    /* Color Scheme - Deep Teal / Sand / Gold */
    --primary-blue: #0B6E6E;
    --primary-orange: #C9A24B;
    --primary-yellow: #D4AF37;
    --ash-gray: #3E8E8E;
    --ash-light: #F5EBDD;
    --sand: #F5EBDD;
    --sand-dark: #EFE3CE;
    --muted-teal: #3E8E8E;
    --white: #FFFFFF;
    --dark-text: #1F2D2D;
    --light-text: #5A6E6E;
    
    /* Design Tokens */
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --border-radius-pill: 50px;
    --transition: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 10px rgba(11,110,110,0.12);
    --shadow-md: 0 5px 15px rgba(11,110,110,0.12);
    --shadow-lg: 0 10px 30px rgba(11,110,110,0.18);
    --shadow-hover: 0 15px 30px rgba(11,110,110,0.22);
    
    /* Gradients - teal premium */
    --gradient-primary: linear-gradient(135deg, #0B6E6E 0%, #095C5C 100%);
    --gradient-hero: linear-gradient(135deg, #0B6E6E 0%, #084F4F 100%);
    --gradient-accent: linear-gradient(135deg, #D4AF37 0%, #C9A24B 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --line-height: 1.6;
    --line-height-tight: 1.2;
    
    /* Viewport */
    --vh: 1vh;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--dark-text);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== NAVIGATION ==================== */

.navbar {
    background: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 2px solid var(--muted-teal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

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

.nav-logo {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
    border: 2px solid var(--primary-yellow);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand .school-name-arabic {
    color: #C9A24B;
    font-size: 14px !important;
    font-weight: 600;
    margin-top: 2px;
    display: block;
    line-height: 1;
}

.nav-brand a:hover {
    color: var(--primary-yellow);
    transform: scale(1.02);
}

.nav-motto {
    color: var(--primary-yellow) !important;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    text-decoration: none;
    color: var(--sand);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
}

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

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-yellow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

@media (max-width: 991px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
        gap: var(--spacing-md);
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        border-top: 1px solid var(--muted-teal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: var(--spacing-xs) 0;
        color: var(--white);
    }
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

@media (max-width: 479px) {
    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

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

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

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

/* ==================== HERO SECTION ==================== */

.hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: var(--gradient-hero);
    color: var(--white);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(245,235,221,0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(201,162,75,0.12) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-tight);
    color: var(--white);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content .school-name-arabic {
    display: block;
    font-size: 35px;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: var(--spacing-sm);
    direction: rtl;
    unicode-bidi: embed;
    animation: fadeInUp 0.8s ease-out 0.15s backwards;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.school-motto {
    color: var(--primary-yellow) !important;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-content > p:first-of-type {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--sand);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-content > p:nth-of-type(2) {
    margin-bottom: var(--spacing-md);
    color: var(--white);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    padding: 12px 30px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-primary:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--primary-blue);
}

.btn-primary:active {
    background: #B8933F;
    transform: translateY(-1px);
    box-shadow: none;
}

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

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

.btn-secondary:active {
    border-color: var(--white);
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-secondary:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

.hero-image {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-sm);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-img {
    width: 100%;
    max-width: 800px;
    height: 460px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(245,235,221,0.25);
}

/* ==================== FEATURES SECTION ==================== */

.features {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-blue);
}

.features > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--sand);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition-smooth), background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--sand-dark);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--muted-teal);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-image {
    width: 100%;
    height: 180px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.feature-image::before {
    content: '👤';
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.2;
    z-index: 0;
}

.feature-image > span {
    z-index: 1;
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
    transition: var(--transition);
}

.feature-card:hover h3 {
    color: var(--primary-orange);
}

.feature-card p {
    color: var(--dark-text);
    opacity: 0.85;
}

/* ==================== PROGRAMS SECTION ==================== */

.programs {
    padding: var(--spacing-xl) 0;
    background: var(--sand);
    transition: background-color 0.3s ease;
}

.programs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-blue);
}

.programs > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth), background-color 0.3s ease;
    border: 1px solid var(--sand-dark);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--muted-teal);
}

.program-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: var(--transition);
}

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

.program-image::before {
    content: '📚';
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    z-index: 0;
}

.program-image > span {
    z-index: 1;
}

.program-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.program-card:hover h3 {
    color: var(--primary-orange);
}

.program-card p {
    padding: 0 1.5rem;
    color: var(--dark-text);
    opacity: 0.85;
}

.program-price {
    padding: 1rem 1.5rem 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* ==================== NEWS SECTION ==================== */

.news {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-blue);
}

.news > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.news-card {
    background: var(--sand);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth), background-color 0.3s ease;
    border: 1px solid var(--sand-dark);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--muted-teal);
}

.news-image {
    width: 100%;
    height: 180px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: var(--transition);
}

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

.news-image::before {
    content: '📰';
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    z-index: 0;
}

.news-image > span {
    z-index: 1;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: block;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.news-content h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-blue);
    transition: var(--transition);
}

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

.news-content p {
    color: var(--dark-text);
    opacity: 0.85;
    margin-bottom: var(--spacing-sm);
}

.btn-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.btn-link::after {
    content: '→';
    margin-left: 4px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-orange);
}

.btn-link:hover::after {
    margin-left: 8px;
}

.btn-link:active {
    color: var(--primary-blue);
    transform: scale(0.98);
}

/* ==================== GALLERY SECTION ==================== */

.gallery {
    padding: var(--spacing-xl) 0;
    background: var(--sand);
    transition: background-color 0.3s ease;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-blue);
}

.gallery > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid var(--sand-dark);
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--muted-teal);
}

.gallery-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.gallery-image::before {
    content: '📸';
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.2;
    z-index: 0;
}

.gallery-image > span {
    z-index: 1;
}

/* ==================== SPECIAL PROGRAMS SECTION ==================== */

.special-programs {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.special-programs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-blue);
}

.special-programs > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.special-card {
    background: var(--sand);
    color: var(--dark-text);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sand-dark);
}

.special-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--muted-teal);
}

.special-card h3 {
    color: var(--primary-blue);
}

.special-card p {
    margin-bottom: 1.5rem;
    opacity: 0.85;
    color: var(--dark-text);
}

/* ==================== TESTIMONIALS SECTION ==================== */

.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--sand);
    transition: background-color 0.3s ease;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-blue);
}

.testimonials > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sand-dark);
    transition: var(--transition-smooth), background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--muted-teal);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-yellow);
    opacity: 0.35;
    font-family: Georgia, serif;
    line-height: 1;
}

.rating {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-card p {
    color: var(--dark-text);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-blue);
    font-weight: 700;
}

.testimonial-author span {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* ==================== CTA SECTION ==================== */

.cta {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-hero);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245,235,221,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.92;
    color: var(--sand);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.cta .btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.cta .btn-primary:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--primary-blue);
}

.cta .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 720px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.contact-info > p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-icon {
    font-size: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--primary-blue);
}

.contact-item p {
    color: var(--dark-text);
    opacity: 0.85;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--sand-dark);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11,110,110,0.15);
}

.map-placeholder {
    margin-top: 2rem;
}

/* Timeline for About Page */
.timeline {
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--sand);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
    border: 1px solid var(--sand-dark);
}

.timeline-date {
    min-width: 100px;
    font-weight: bold;
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.timeline-content p {
    color: var(--dark-text);
    opacity: 0.85;
}

/* ==================== PORTAL PAGE STYLES ==================== */

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.login-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.login-info > p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.portal-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.portal-feature .feature-icon {
    font-size: 2rem;
}

.portal-feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.portal-feature p {
    color: var(--dark-text);
    opacity: 0.85;
}

.login-form {
    background: var(--sand);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sand-dark);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.login-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 600;
}

.login-links {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.login-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-links a:hover {
    color: var(--primary-orange);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 30px 0 15px;
    transition: background-color 0.3s ease;
    border-top: 3px solid var(--primary-orange);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-yellow);
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--sand);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.95;
}

.footer-section .school-name-arabic {
    font-size: 35px;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
    direction: rtl;
    unicode-bidi: embed;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.25rem;
}

.footer-section a {
    color: var(--sand);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(245,235,221,0.2);
    color: var(--sand);
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-bottom .school-motto {
    color: var(--primary-yellow) !important;
}

/* ==================== ANIMATIONS ==================== */

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--spacing-lg);
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content > p:first-of-type {
        font-size: 1.8rem;
    }
    
    .features h2,
    .programs h2,
    .news h2,
    .gallery h2,
    .special-programs h2,
    .testimonials h2 {
        font-size: 3rem;
    }
    
    .features-grid,
    .programs-grid,
    .news-grid,
    .special-grid,
    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cta h2 {
        font-size: 3rem;
    }
}

@media (max-width: 1919px) and (min-width: 1440px) {
    .container {
        max-width: 1300px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .features-grid,
    .programs-grid,
    .news-grid,
    .special-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1439px) and (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .features-grid,
    .programs-grid,
    .news-grid,
    .special-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 950px;
        padding: 0 var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content > p:first-of-type {
        font-size: 1.3rem;
    }
    
    .features-grid,
    .programs-grid,
    .news-grid,
    .special-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: var(--spacing-lg) 0 var(--spacing-md);
        min-height: auto;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content > p:first-of-type {
        font-size: 1.1rem;
    }
    
    .hero-content > p:nth-of-type(2) {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .hero-image {
        max-width: 100%;
        margin-top: var(--spacing-xs);
    }
    
    .hero-img {
        width: 100%;
        height: 360px;
        object-fit: cover;
        object-position: center;
    }
    
    .placeholder-image {
        height: 280px;
    }
    
    .features-grid,
    .programs-grid,
    .news-grid,
    .special-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid,
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .timeline-date {
        min-width: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-sm);
    }
    
    .navbar .container {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .nav-brand a {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: var(--spacing-lg) 0 var(--spacing-md);
        margin-top: 50px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content > p:first-of-type {
        font-size: 1rem;
    }
    
    .hero-content > p:nth-of-type(2) {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .placeholder-image {
        height: 250px;
        max-width: 100%;
    }
    
    .hero-img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: center;
    }
    
    .features h2,
    .programs h2,
    .news h2,
    .gallery h2,
    .special-programs h2,
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .features > .container > p,
    .programs > .container > p,
    .news > .container > p,
    .gallery > .container > p,
    .special-programs > .container > p,
    .testimonials > .container > p {
        font-size: 1rem;
    }
    
    .feature-card,
    .program-card,
    .special-card,
    .testimonial-card,
    .news-card {
        padding: 1.5rem;
    }
    
    .program-image,
    .news-image {
        height: 160px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .feature-image {
        height: 150px;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) and (min-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    .navbar .container {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .nav-brand a {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: var(--spacing-md) 0 var(--spacing-sm);
        margin-top: 50px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content > p:first-of-type {
        font-size: 0.95rem;
    }
    
    .hero-content > p:nth-of-type(2) {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .placeholder-image {
        height: 220px;
    }
    
    .hero-img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: center;
    }
    
    .features h2,
    .programs h2,
    .news h2,
    .gallery h2,
    .special-programs h2,
    .testimonials h2 {
        font-size: 1.8rem;
    }
    
    .features > .container > p,
    .programs > .container > p,
    .news > .container > p,
    .gallery > .container > p,
    .special-programs > .container > p,
    .testimonials > .container > p {
        font-size: 0.95rem;
    }
    
    .feature-card,
    .program-card,
    .special-card,
    .testimonial-card,
    .news-card {
        padding: 1.25rem;
    }
    
    .program-image,
    .news-image {
        height: 140px;
    }
    
    .gallery-image {
        height: 160px;
    }
    
    .feature-image {
        height: 130px;
    }
    
    .feature-card h3,
    .program-card h3,
    .special-card h3,
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p,
    .program-card p,
    .special-card p,
    .news-content p,
    .testimonial-card p {
        font-size: 0.9rem;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    .cta p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .social-links a {
        font-size: 0.85rem;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: 15px;
        left: 15px;
    }
    
    .rating {
        font-size: 1.2rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-md) 0;
        margin-top: 50px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content > p:first-of-type {
        font-size: 1rem;
    }
    
    .hero-content > p:nth-of-type(2) {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-buttons {
        gap: var(--spacing-xs);
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .placeholder-image {
        height: 150px;
    }
    
    .hero-img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
    }
    
    .features,
    .programs,
    .news,
    .gallery,
    .special-programs,
    .testimonials {
        padding: var(--spacing-md) 0;
    }
    
    .feature-card,
    .program-card,
    .special-card,
    .testimonial-card,
    .news-card {
        padding: var(--spacing-sm);
    }
    
    .feature-image,
    .program-image,
    .news-image,
    .gallery-image {
        height: 120px;
    }
}

@media (max-height: 500px) and (orientation: portrait) {
    .hero {
        padding: var(--spacing-md) 0 var(--spacing-sm);
        margin-top: 50px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content > p:first-of-type {
        font-size: 1rem;
    }
    
    .hero-content > p:nth-of-type(2) {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-buttons {
        gap: var(--spacing-xs);
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .placeholder-image {
        height: 150px;
    }
    
    .hero-img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
    }
    
    .features,
    .programs,
    .news,
    .gallery,
    .special-programs,
    .testimonials {
        padding: var(--spacing-md) 0;
    }
    
    .feature-card,
    .program-card,
    .special-card,
    .testimonial-card,
    .news-card {
        padding: var(--spacing-sm);
    }
    
    .feature-image,
    .program-image,
    .news-image,
    .gallery-image {
        height: 120px;
    }
}

/* High DPI Displays (Retina) Optimization */