/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    touch-action: manipulation;
}

button, a, input, textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

:root {
    --primary-color: #1a3a5c;
    --secondary-color: #e8922f;
    --accent-color: #c0392b;
    --gold: #f5c518;
    --green-accent: #3a7d44;
    --text-dark: #2b2d42;
    --text-light: #6c757d;
    --bg-light: #faf8f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);

    /* Dark Mode Variables */
    --dm-bg-primary: #1a1a2e;
    --dm-bg-secondary: #16213e;
    --dm-bg-tertiary: #0f3460;
    --dm-text-primary: #eaeaea;
    --dm-text-secondary: #b8b8b8;
    --dm-card-bg: #1e2746;
    --dm-border: rgba(255, 255, 255, 0.1);
    --dm-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --dm-shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #2a5a8a;
    --secondary-color: #e8922f;
    --accent-color: #c0392b;
    --text-dark: var(--dm-text-primary);
    --text-light: var(--dm-text-secondary);
    --bg-light: var(--dm-bg-secondary);
    --white: var(--dm-card-bg);
    --shadow: var(--dm-shadow);
    --shadow-lg: var(--dm-shadow-lg);
}

[data-theme="dark"] body {
    background: var(--dm-bg-primary);
    color: var(--dm-text-primary);
}

[data-theme="dark"] .navbar {
    background: var(--dm-card-bg);
    border-bottom: 1px solid var(--dm-border);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--dm-bg-tertiary) 0%, var(--dm-bg-secondary) 100%);
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.85) 100%);
}

[data-theme="dark"] section {
    background: var(--dm-bg-primary);
}

[data-theme="dark"] .about,
[data-theme="dark"] .gallery,
[data-theme="dark"] .youtube-section,
[data-theme="dark"] .social-feed-section,
[data-theme="dark"] .values-section,
[data-theme="dark"] .leadership-section {
    background: var(--dm-bg-secondary);
}

[data-theme="dark"] .video-card {
    background: var(--dm-bg-tertiary);
}

[data-theme="dark"] .video-card-label {
    color: var(--dm-text-primary);
}

[data-theme="dark"] .programs {
    background: linear-gradient(180deg, var(--dm-bg-secondary) 0%, var(--dm-bg-primary) 50%, var(--dm-bg-secondary) 100%);
}

[data-theme="dark"] .contact {
    background: linear-gradient(180deg, var(--dm-bg-primary) 0%, var(--dm-bg-secondary) 50%, var(--dm-bg-primary) 100%);
}

[data-theme="dark"] .timeline-content,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .weather-widget,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .social-feed-item {
    background: var(--dm-card-bg);
    border-color: var(--dm-border);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(232, 146, 47, 0.15);
}

[data-theme="dark"] .footer {
    background: linear-gradient(180deg, var(--dm-bg-tertiary) 0%, var(--dm-bg-secondary) 50%, var(--dm-bg-primary) 100%);
}

body {
    font-family: 'Cairo', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent text size adjustment on iOS */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Enable smooth scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

/* Safe area insets for notched devices (iPhone X and newer) */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

body[dir="ltr"] {
    font-family: 'Poppins', 'Arial', sans-serif;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    flex-wrap: nowrap;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.theme-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95) rotate(15deg);
}

.theme-icon {
    font-size: 1.5rem;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.logo-sun {
    width: 50px;
    height: 50px;
    position: relative;
    background: linear-gradient(to top, #ffa500, #ffd700);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
    overflow: visible;
}

.logo-sun::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: 
        radial-gradient(circle at 20% 30%, #ff6b35 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, #ff6b35 0%, transparent 50%),
        radial-gradient(circle at 50% 70%, #ff6b35 0%, transparent 50%);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sun-face {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.sun-eye {
    width: 8px;
    height: 6px;
    background: #dc143c;
    border-radius: 50%;
    margin: 2px;
    position: absolute;
    top: 35%;
}

.sun-eye:first-child {
    left: 30%;
}

.sun-eye:last-child {
    right: 30%;
}

.sun-mouth {
    width: 20px;
    height: 10px;
    border: 3px solid #dc143c;
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text-ar {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc143c;
    font-family: 'Cairo', sans-serif;
    line-height: 1;
}

.logo-text-en {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Hide language switcher from main header - it's now in the menu */
.nav-wrapper > .lang-switcher {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu a:active {
    transform: translateY(0);
}

.nav-menu a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* ── Language Dropdown ── */
.lang-menu-item {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    list-style: none;
}

.lang-dropdown {
    position: relative;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid rgba(26, 58, 92, 0.35);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.lang-trigger:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.lang-trigger:hover svg { stroke: var(--white); }

.lang-chevron {
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-options {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    flex-direction: column;
    min-width: 155px;
    z-index: 600;
    overflow: hidden;
}

[dir="rtl"] .lang-options {
    right: auto;
    left: 0;
}

.lang-dropdown.open .lang-options {
    display: flex;
}

.lang-btn {
    width: 100%;
    text-align: start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    background: transparent;
    color: var(--text-dark, #333);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:last-child { border-bottom: none; }

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

@media (max-width: 768px) {

    .lang-switcher::-webkit-scrollbar {
        display: none;
    }
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 500px;
    max-height: 900px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2840 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

/* ── Hero Video Background ── */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-video { display: none; }
    .hero {
        background:
            linear-gradient(135deg, rgba(15, 40, 64, 0.55) 0%, rgba(15, 40, 64, 0.55) 100%),
            url("Shams_Al-Assil_School.jpg") center/cover no-repeat;
    }
    /* No video on mobile → no embedded video titles to make way for.
       Without this, heroTextSync hides ALL hero text for ~16s of every
       28.5s cycle on phones. (Bug exposed during 2026-06 redesign.) */
    .hero-content { animation: none; }
    .hero-overlay { animation: none; }
}

/* ── Vision & Mission Section ── */
.vision-section {
    background: var(--white);
    padding: 5rem 0;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.vision-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.vision-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--secondary-color);
}

.vision-card:nth-child(2) .vision-card-icon { color: var(--primary-color); }
.vision-card:nth-child(3) .vision-card-icon { color: var(--gold); }

.vision-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
    .vision-card {
        padding: 2rem 1.5rem;
    }
}

/* ── Campus Banner (parallax strip) ── */
.campus-banner {
    position: relative;
    height: 280px;
    background-image: url('school_facade.jpg');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    overflow: hidden;
}

.campus-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.75) 0%, rgba(15, 40, 64, 0.65) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.campus-banner-text {
    color: #fff;
    max-width: 700px;
    padding: 0 2rem;
}

.campus-banner-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.campus-banner-text p {
    font-size: 1.05rem;
    opacity: 0.9;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .campus-banner {
        height: 220px;
        background-attachment: scroll;
    }
    .campus-banner-text h3 { font-size: 1.4rem; }
    .campus-banner-text p  { font-size: 0.9rem; }
}

/* ── Disable fixed background on mobile for hero ── */
@media (max-width: 768px) {
    .hero {
        max-height: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, rgba(14, 24, 46, 0.72) 0%, rgba(10, 18, 38, 0.65) 100%);
    z-index: 1;
    animation: heroOverlaySync 28.5s infinite ease-in-out;
}

/* Lighten overlay when video's own text is showing so it's readable */
@keyframes heroOverlaySync {
    0%      { opacity: 1; }
    28%     { opacity: 1; }
    35%     { opacity: 0.35; }
    93%     { opacity: 0.35; }
    100%    { opacity: 1; }
}

/* ── Stats Bar ── */
.stats-bar {
    background: linear-gradient(90deg, #0f2840 0%, var(--primary-color) 50%, #0f2840 100%);
    color: var(--white);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.3);
    position: relative;
}

.stats-bar-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    gap: 0.35rem;
    text-align: center;
}

.stat-number {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    margin: 1rem 0;
    align-self: stretch;
}

@media (max-width: 600px) {
    .stats-bar-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .stat-item {
        flex: 1 1 45%;
        padding: 1rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .stat-divider {
        display: none;
    }
    .stat-number { font-size: 1.2rem; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: heroTextSync 28.5s infinite ease-in-out;
}

/* Sync hero text with video: visible 0–9s (clean footage), hidden 9–28.5s (video has its own text) */
@keyframes heroTextSync {
    0%      { opacity: 1; }
    28%     { opacity: 1; }   /* 8s / 28.5s — start fading */
    35%     { opacity: 0; }   /* 10s / 28.5s — fully hidden */
    93%     { opacity: 0; }   /* 26.5s / 28.5s — start fading back */
    100%    { opacity: 1; }   /* 28.5s — visible again for loop restart */
}

.hero-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    line-height: 1.2;
}

.hero-title-ar {
    font-size: clamp(2.6rem, 5.5vw, 4.75rem);
    font-family: 'Cairo', 'Arial', sans-serif;
    font-weight: 900;
    direction: rtl;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.45);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .hero-title-ar { white-space: normal; }
}

.hero-title-en {
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255,255,255,0.92);
    font-family: 'Poppins', 'Arial', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    direction: ltr;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-motto {
    margin-bottom: 2.25rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 2.5rem;
    border-top: 1px solid rgba(245,197,24,0.3);
    border-bottom: 1px solid rgba(245,197,24,0.3);
}

.hero-motto-ar {
    font-size: 1.7rem;
    font-weight: 700;
    font-family: 'Cairo', 'Arial', sans-serif;
    direction: rtl;
    letter-spacing: 0.02em;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-motto-en {
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Poppins', 'Arial', sans-serif;
    direction: ltr;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.08em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    min-height: 48px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
    box-shadow: var(--shadow-lg);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cta-button:hover {
    background: #d4811f;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(232, 146, 47, 0.4);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.45s both;
}

.cta-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-whatsapp:hover {
    background: #1ebe5d !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45) !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 28px;
    height: 56px;
    padding: 0 1.25rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-radius 0.25s ease;
    text-decoration: none;
    animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float-label {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0); }
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 1.75rem;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
    animation: none;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.25rem;
    }
    [dir="rtl"] .whatsapp-float {
        right: auto;
        left: 1.25rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        border-radius: 50%;
        width: 60px;
        height: 60px;
        padding: 0;
        bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
    }
    .whatsapp-float-label {
        display: none;
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.programs {
    padding: 7rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5rem;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
}

.about-logo {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    background: var(--bg-light);
    padding: 2rem;
}

/* Programs Section */
/* Programs Section - Division Cards */
.programs {
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 50%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 58, 92, 0.2), transparent);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.division-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    border: 1px solid rgba(0,0,0,0.07);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.division-kg::before   { background: var(--secondary-color); }
.division-elem::before { background: var(--green-accent); }
.division-middle::before { background: var(--primary-color); }
.division-high::before { background: var(--accent-color); }

.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.division-card:hover::before {
    height: 6px;
}

.division-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
}

.division-kg .division-icon   { color: var(--secondary-color); }
.division-elem .division-icon { color: var(--green-accent); }
.division-middle .division-icon { color: var(--primary-color); }
.division-high .division-icon { color: var(--accent-color); }

.division-grades {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.division-kg .division-grades   { background: rgba(232,146,47,0.12); color: var(--secondary-color); }
.division-elem .division-grades { background: rgba(58,125,68,0.12); color: var(--green-accent); }
.division-middle .division-grades { background: rgba(26,58,92,0.1); color: var(--primary-color); }
.division-high .division-grades { background: rgba(192,57,43,0.1); color: var(--accent-color); }

.division-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.division-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

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

@media (max-width: 500px) {
    .divisions-grid {
        grid-template-columns: 1fr;
    }
    .division-card {
        padding: 2rem 1.5rem;
    }
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Legacy support for old grid layout if needed */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.program-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Gallery Section */
.gallery {
    background: var(--bg-light);
}

/* ── Video Gallery Grid ── */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.video-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    background: var(--white);
    position: relative;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.video-card-featured {
    grid-column: span 2;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 12;
    background: #000;
    overflow: hidden;
}

.video-card-featured .video-wrapper {
    aspect-ratio: 16 / 11;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-card:hover .video-wrapper video {
    transform: scale(1.03);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-play-btn::after {
    content: '';
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230e182e'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 55% center;
    background-size: 28px;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.video-play-btn:hover::after {
    transform: scale(1.12);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35);
}

.video-play-btn.playing {
    background: transparent;
    pointer-events: none;
}

.video-play-btn.playing::after {
    display: none;
}

.video-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-card:hover .video-card-label {
    opacity: 1;
}

.video-play-btn.playing ~ .video-card-label {
    opacity: 0;
}

@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .video-card-featured {
        grid-column: span 2;
    }
    .video-card-featured .video-wrapper {
        aspect-ratio: 16 / 9;
    }
    .video-wrapper {
        aspect-ratio: 3 / 4;
    }
    .video-play-btn::after {
        width: 48px;
        height: 48px;
        background-size: 22px;
    }
    .video-card {
        border-radius: 16px;
    }
    .video-card:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .video-card-featured {
        grid-column: span 2;
    }
    .video-card-featured .video-wrapper {
        aspect-ratio: 16 / 9;
    }
    .video-wrapper {
        aspect-ratio: 3 / 4;
    }
    .video-play-btn::after {
        width: 52px;
        height: 52px;
        background-size: 24px;
    }
    .video-card-label {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.instagram-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.instagram-post {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
    aspect-ratio: 1;
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-post-overlay {
    opacity: 1;
}

.instagram-post-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instagram-post-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-post-info {
    opacity: 1;
}

.instagram-embed-wrapper {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.instagram-embed-wrapper iframe {
    width: 100%;
    border: none;
}

.snapwidget-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.snapwidget-widget {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .snapwidget-container iframe {
        height: 500px !important;
    }
}

@media (max-width: 480px) {
    .snapwidget-container iframe {
        height: 400px !important;
    }
}

.instagram-link {
    text-align: center;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    min-height: 48px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.instagram-btn .social-icon svg,
.youtube-btn .social-icon svg {
    fill: currentColor;
}

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

/* YouTube Section */
.youtube-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.youtube-link {
    text-align: center;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    min-height: 48px;
    background: linear-gradient(45deg, #FF0000, #CC0000);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.youtube-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(45deg, #CC0000, #990000);
}

.youtube-btn .social-icon {
    width: 28px;
    height: 28px;
}

.youtube-btn .social-icon svg {
    fill: currentColor;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 7rem 0;
    position: relative;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 2rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(26, 58, 92, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(26, 58, 92, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 58, 92, 0.2);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.08), rgba(244, 162, 97, 0.08));
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(26, 58, 92, 0.1);
}

.contact-item:hover .contact-icon {
    transform: scale(1.05) rotate(5deg);
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.12), rgba(244, 162, 97, 0.12));
    border-color: rgba(26, 58, 92, 0.2);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.15);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 0.01em;
}

/* Weather Widget Styles */
.weather-widget-container {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

.weather-widget {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(26, 58, 92, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.weather-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(26, 58, 92, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.weather-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    padding-bottom: 0.75rem;
}

.weather-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.weather-location {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.01em;
}

.weather-location::before {
    content: '📍';
    font-size: 1.25rem;
}

.weather-forecast {
    margin-top: 1.5rem;
    width: 100%;
}

#weather-forecast {
    width: 100%;
}

#weather-forecast .weather-days {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 0 !important;
    width: 100% !important;
}

#weather-forecast .weather-day {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.03), rgba(244, 162, 97, 0.03)) !important;
    padding: 2.5rem 2rem !important;
    border-radius: 16px !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid rgba(26, 58, 92, 0.1) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 200px !important;
}

.weather-loading {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
}

.weather-error {
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
}

.weather-days {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 0 !important;
    width: 100% !important;
}

.weather-day {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.03), rgba(244, 162, 97, 0.03)) !important;
    padding: 2.5rem 2rem !important;
    border-radius: 16px !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid rgba(26, 58, 92, 0.1) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.weather-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.weather-day:hover::before {
    transform: scaleX(1);
}

.weather-day:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26, 58, 92, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(26, 58, 92, 0.25);
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.05), rgba(244, 162, 97, 0.05));
}

.weather-day-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    text-transform: capitalize;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.weather-icon {
    font-size: 4rem;
    margin: 1.25rem 0;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
    display: block;
    transition: transform 0.3s ease;
}

.weather-day:hover .weather-icon {
    transform: scale(1.1);
}

.weather-temps {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.temp-max {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -1px;
}

.temp-min {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.75;
    line-height: 1;
}

.temp-min::before {
    content: '/';
    margin-right: 0.25rem;
    opacity: 0.4;
    font-weight: 400;
}

.contact-item p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.contact-item p a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.map-link,
.phone-link,
.whatsapp-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.06), rgba(244, 162, 97, 0.06));
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid rgba(26, 58, 92, 0.1);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.map-link:hover,
.phone-link:hover,
.whatsapp-link:hover {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.12), rgba(244, 162, 97, 0.12));
    color: var(--primary-color);
    transform: translateX(5px);
    border-color: rgba(26, 58, 92, 0.2);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.15);
}

.social-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.04), rgba(244, 162, 97, 0.04));
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(26, 58, 92, 0.1);
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.social-link:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.1), rgba(244, 162, 97, 0.1));
    border-color: rgba(26, 58, 92, 0.2);
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(26, 58, 92, 0.15);
}

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

.phone-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.phone-link:hover {
    color: var(--secondary-color);
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.whatsapp-link:hover {
    color: #128C7E;
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    min-height: 48px;
    border: 2px solid rgba(26, 58, 92, 0.15);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Prevent zoom on iOS when focusing input fields */
@media screen and (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(232, 146, 47, 0.12);
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    min-height: 52px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    letter-spacing: 0.02em;
}

.submit-btn:hover {
    background: #d4811f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 146, 47, 0.3);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-section {
    position: relative;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1rem;
    letter-spacing: 0.01em;
    margin: 0;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    letter-spacing: 0.01em;
    position: relative;
}

.footer-section ul li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 1rem;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    letter-spacing: 0.01em;
    min-height: 50px;
}

.social-link-footer:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link-footer .social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-link-footer .social-icon svg {
    fill: currentColor;
    width: 100%;
    height: 100%;
}

/* Social Icons Styling */
.social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-inline-end: 8px;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.instagram-btn .social-icon,
.youtube-btn .social-icon {
    width: 24px;
    height: 24px;
}

.social-link .social-icon svg,
.social-link-footer .social-icon svg {
    fill: currentColor;
}

.map-link {
    transition: color 0.3s ease;
    padding: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.map-link:hover {
    color: var(--secondary-color);
}

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

/* Logo Responsive */
@media (max-width: 768px) {
    .logo-image {
        height: 45px;
    }
    
    .logo-sun {
        width: 40px;
        height: 40px;
    }
    
    .logo-text-ar {
        font-size: 1rem;
    }
    
    .logo-text-en {
        font-size: 0.65rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-wrapper {
        padding: 0.75rem 0;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
    }
    
    .logo {
        flex-shrink: 0;
        min-width: 0;
    }
    
    .logo-image {
        height: 55px;
        max-width: 100%;
        object-fit: contain;
    }
    
    .logo-link {
        display: flex;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 2rem 1rem;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    /* Language switcher is now in the menu, not in header */
    .nav-menu .lang-menu-item {
        margin-top: 1rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.15);
    }

    .nav-menu .lang-trigger {
        padding: 0.75rem 1.2rem;
        font-size: 1rem;
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }

    .nav-menu .lang-options {
        position: static;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        margin-top: 0.5rem;
    }

    .nav-menu .lang-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        min-height: 44px;
    }
    
    .nav-controls {
        order: 2;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hamburger {
        order: 2;
        flex-shrink: 0;
    }
    
    .theme-toggle {
        order: 1;
    }
    
    .logo {
        order: 1;
        flex-shrink: 0;
    }

    .hero {
        height: 100vh;
        min-height: 500px;
        max-height: none;
        padding-top: 70px;
    }

    .hero-content {
        padding: 0 1.25rem;
    }

    .hero-title {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    .hero-title-ar { font-size: 2.2rem; line-height: 1.15; }
    .hero-title-en { font-size: 0.95rem; letter-spacing: 0.1em; }
    .hero-motto-ar { font-size: 1.2rem; }
    .hero-motto-en { font-size: 0.8rem; }

    .hero-slogan {
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0 1rem;
    }

    .cta-button {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
        min-height: 52px;
        text-align: center;
    }

    section {
        padding: 2.5rem 0;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .programs-timeline {
        padding: 2.5rem 0;
        max-width: 100%;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item:hover {
        transform: translateY(-3px);
    }
    
    .timeline-marker {
        width: 18px;
        height: 18px;
        margin-top: 0;
        order: 1;
    }
    
    .timeline-content {
        width: 100%;
        padding: 1.75rem 1.25rem;
        margin-top: 0;
        text-align: center;
        order: 2;
    }
    
    .timeline-content h3 {
        font-size: 1.35rem;
        margin-top: 0;
        margin-bottom: 0.75rem;
    }
    
    .timeline-content h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .timeline-connector {
        width: 2px;
        height: 50px;
        margin: 0 auto;
        margin-left: auto;
        margin-right: auto;
        order: 3;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-card {
        padding: 1.5rem;
    }
    
    .program-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
        padding: 1.75rem 1.25rem;
        gap: 1.25rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .contact-item h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-item p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .weather-widget {
        padding: 1.5rem 1.25rem;
    }
    
    .weather-widget h3 {
        font-size: 1.2rem;
    }
    
    .weather-location {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .weather-days {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .weather-day {
        padding: 1.5rem 1.25rem;
        min-height: 160px;
    }
    
    .weather-icon {
        font-size: 2.75rem;
        margin: 1rem 0;
    }
    
    .temp-max {
        font-size: 1.4rem;
    }
    
    .temp-min {
        font-size: 1rem;
    }
    
    .instagram-btn,
    .youtube-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.95rem;
    }
    
    .social-link-footer {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-wrapper {
        padding: 0.5rem 0;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .logo {
        max-width: 130px;
    }
    
    @media (max-width: 360px) {

        
        .logo-image {
            height: 45px;
        }
        
        .logo {
            max-width: 120px;
        }
    }

    .hero {
        min-height: 440px;
        max-height: 75vh;
    }

    .hero-title-ar { font-size: 1.75rem; line-height: 1.15; }
    .hero-title-en { font-size: 0.85rem; letter-spacing: 0.1em; }
    .hero-motto-ar { font-size: 1.05rem; }
    .hero-motto-en { font-size: 0.75rem; }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 52px;
        width: 100%;
        max-width: 300px;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .timeline-marker {
        width: 18px;
        height: 18px;
        margin-top: 0;
    }
    
    .timeline-content {
        padding: 1.75rem 1.25rem;
    }
    
    .timeline-content h3 {
        font-size: 1.35rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    
    .timeline-connector {
        height: 40px;
    }
    
    .program-card {
        padding: 1.25rem;
    }
    
    .program-card h3 {
        font-size: 1.2rem;
    }
    
    .program-card p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch-friendly */
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 52px; /* Touch-friendly */
        border-radius: 8px;
        font-weight: 600;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }
}

/* Extra small devices (phones in portrait, less than 360px) */
@media (max-width: 360px) {
    .hero-title-ar { font-size: 1.5rem; }
    .hero-title-en { font-size: 0.85rem; }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-menu .lang-btn {
        font-size: 0.85rem;
        padding: 0.65rem 0.8rem;
    }
}

/* RTL/LTR Support */
body[dir="ltr"] .nav-menu a::after {
    left: 0;
    right: auto;
}

body[dir="ltr"] .section-title::after {
    left: 50%;
    right: auto;
}

/* ============================================
   MICRO-INTERACTIONS & MODERN EFFECTS
   ============================================ */

/* Enhanced Button Interactions */
button, .btn, .lang-btn, .submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

button:active, .btn:active {
    transform: scale(0.98);
}

/* Card Hover Effects with Glassmorphism */
.timeline-content, .contact-item, .program-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content::after, .contact-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.timeline-content:hover::after, .contact-item:hover::after {
    opacity: 1;
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass-effect {
    background: rgba(30, 39, 70, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Overlays */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 58, 92, 0.1) 0%, 
        rgba(244, 162, 97, 0.1) 50%,
        rgba(231, 111, 81, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.gradient-overlay:hover::before {
    opacity: 1;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Link Hover Effects */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

a:hover {
    transform: translateY(-1px);
}

/* Input Focus Effects */
.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.2);
}

/* Icon Animations */
.social-icon, .contact-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover .social-icon,
.contact-item:hover .contact-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Pulse Animation for Important Elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   SOCIAL MEDIA FEED AGGREGATOR
   ============================================ */

.social-feed-section {
    background: var(--bg-light);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.social-feed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 58, 92, 0.2), transparent);
}

/* ── Social Platform Cards ── */
.social-platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.social-platform-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 58, 92, 0.1);
    display: flex;
    flex-direction: column;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid rgba(26, 58, 92, 0.08);
}

.platform-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Facebook Page Plugin */
.fb-page-wrapper {
    display: flex;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
}

/* YouTube embed */
.yt-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.yt-embed-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Instagram profile card */
.ig-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
    flex: 1;
}

.ig-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.ig-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--white);
}

.ig-profile-info {
    text-align: center;
}

.ig-username {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ig-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Side cards column */
.social-side-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Follow buttons */
.platform-follow-btn {
    display: block;
    text-align: center;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s;
    color: var(--white);
    min-height: 48px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-follow-btn:hover {
    opacity: 0.88;
}

.facebook-btn  { background: #1877f2; }
.youtube-btn   { background: #ff0000; }
.instagram-btn { background: linear-gradient(90deg, #f09433, #dc2743, #bc1888); }

@media (max-width: 900px) {
    .social-platforms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .social-feed-section {
        padding: 4rem 0;
    }
}

/* Enhanced Mobile Typography */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Base font size - prevents zoom on iOS */
        line-height: 1.6;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    p {
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Touch-Friendly Interactive Elements */
@media (max-width: 768px) {
    /* Better touch feedback */
    button:active,
    .btn:active,
    a:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
    
    /* Remove hover effects on touch devices */
    @media (hover: none) {
        .timeline-content:hover,
        .contact-item:hover,
        .video-card:hover {
            transform: none;
        }
        
        button:hover::before,
        .btn:hover::before {
            width: 0;
            height: 0;
        }
    }
}

/* Improved Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        /* Add backdrop blur on iOS */
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.98);
    }
    
    [data-theme="dark"] .nav-menu {
        background: rgba(30, 39, 70, 0.98);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Mobile Form Enhancements */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Better input focus on mobile */
    .form-group input:focus,
    .form-group textarea:focus {
        transform: none; /* Remove translate on mobile */
        box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.2);
        outline: none;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch-friendly */
        padding: 1rem;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Larger select dropdowns */
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        min-height: 48px;
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 52px; /* Touch-friendly */
        border-radius: 8px;
        font-weight: 600;
    }
}

/* Mobile Video Gallery */
@media (max-width: 768px) {
    .video-card {
        border-radius: 12px;
    }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact-item {
        padding: 1.5rem 1rem;
        gap: 1rem;
        border-radius: 16px;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
        flex-shrink: 0;
    }
    
    .contact-item p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .contact-item p a,
    .map-link,
    .phone-link,
    .whatsapp-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
        margin: 0.25rem 0;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        min-height: 52px;
        padding: 0.875rem 1rem;
    }
}

/* Mobile Weather Widget */
@media (max-width: 768px) {
    .weather-widget {
        padding: 1.5rem 1rem;
    }
    
    .weather-days {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .weather-day {
        min-height: 140px;
        padding: 1.5rem 1rem !important;
    }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        padding-top: env(safe-area-inset-top, 0);
        min-height: 60vh;
        height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 52px; /* Touch-friendly */
        width: 100%;
        max-width: 300px;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    /* Disable expensive effects on mobile */
    .timeline-content::before,
    .contact-item::before,
    .gradient-overlay::before {
        display: none;
    }
    
    /* Optimize backdrop filters */
    .glass-effect {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--white);
    }
    
    [data-theme="dark"] .glass-effect {
        background: var(--dm-card-bg);
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .nav-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-title-ar { font-size: 1.8rem; }
    .hero-title-en { font-size: 0.9rem; }
    .hero-mascot-img { width: 60px; height: 60px; }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .nav-menu {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-color, #f8f9fa);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg, #fff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #333);
    text-align: start;
    gap: 1rem;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

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

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    line-height: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--text-light, #666);
    line-height: 1.7;
    font-size: 0.97rem;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.faq-whatsapp-cta:hover {
    background: #1ebe5d;
}

.faq-map-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.faq-map-link:hover {
    text-decoration: underline;
}

/* ── Hero Mascot (Shamoosy) ── */
.hero-mascot {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease both;
}

.hero-mascot-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(245, 197, 24, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.hero-mascot-img:hover {
    transform: scale(1.08);
}

/* ── Hero Slogan (new bilingual) ── */
.hero-slogan {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.15s both;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-slogan-ar {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Cairo', 'Arial', sans-serif;
    direction: rtl;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.01em;
}

.hero-slogan-en {
    font-size: 0.95rem;
    font-weight: 400;
    font-family: 'Poppins', 'Arial', sans-serif;
    direction: ltr;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.06em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .hero-mascot {
        margin-bottom: 1rem;
    }
    .hero-mascot-img {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }
    .hero-slogan-ar {
        font-size: 1.1rem;
    }
    .hero-slogan-en {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .hero-mascot-img {
        width: 72px;
        height: 72px;
    }
    .hero-slogan-ar {
        font-size: 0.95rem;
    }
    .hero-slogan-en {
        font-size: 0.72rem;
    }
}

/* ── About Tagline ── */
.about-tagline {
    font-size: 1.3rem !important;
    font-weight: 600;
    color: var(--primary-color) !important;
    font-style: italic;
}

/* ── Values Section (replaces Vision & Mission) ── */
.values-section {
    background: var(--white);
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1200px;
}

.value-card {
    position: relative;
    height: 320px;
    cursor: pointer;
    perspective: 1000px;
}

.value-card-front,
.value-card-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.value-card-front {
    background: var(--bg-light);
    border: 2px solid transparent;
    z-index: 2;
}

.value-card-back {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
    z-index: 1;
}

.value-card.flipped .value-card-front {
    transform: rotateY(-180deg);
}

.value-card.flipped .value-card-back {
    transform: rotateY(0deg);
}

/* Hover glow on front */
.value-card:not(.flipped):hover .value-card-front {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 32px rgba(232, 146, 47, 0.18);
    transform: translateY(-4px);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
}

.value-card[data-value="identity"] .value-icon { color: var(--primary-color); }
.value-card[data-value="future"] .value-icon { color: var(--gold); }

.value-card-front h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.value-teaser {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.value-card-back h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold);
}

.value-card-back p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .value-card {
        height: 280px;
    }
}

/* Dark mode values */
[data-theme="dark"] .values-section {
    background: var(--dm-bg-secondary);
}
[data-theme="dark"] .value-card-front {
    background: var(--dm-card-bg);
    border-color: var(--dm-border);
}
[data-theme="dark"] .value-card-back {
    background: var(--dm-bg-tertiary);
}

/* ── Division Contact ── */
.division-contact {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
}

.division-contact-label {
    color: var(--text-light);
    font-weight: 500;
}

.division-contact-name {
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
}

/* Style "To be announced" placeholders as subtle badges */
.division-contact-name[data-en="To be announced"],
.leader-name[data-en="To be announced"] {
    font-style: normal;
    font-weight: 500;
    color: var(--text-light);
    background: rgba(232, 146, 47, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85em;
    display: inline-block;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .division-contact {
    border-top-color: var(--dm-border);
}

/* ── Leadership Team Section ── */
.leadership-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leader-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Principal card spans full width on top for hierarchy */
.leader-principal {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto 1rem;
    border: 2px solid var(--gold);
}

.leader-photo-wrapper {
    padding: 2rem 2rem 0;
}

.leader-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.leader-photo-placeholder svg {
    width: 56px;
    height: 56px;
}

.leader-principal .leader-photo-placeholder {
    width: 140px;
    height: 140px;
    border: 3px solid var(--gold);
}

.leader-info {
    padding: 1.25rem 1.5rem 2rem;
}

.leader-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    background: rgba(232, 146, 47, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.leader-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.leader-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .leader-principal {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode leadership */
[data-theme="dark"] .leadership-section {
    background: var(--dm-bg-secondary);
}
[data-theme="dark"] .leader-card {
    background: var(--dm-card-bg);
    border-color: var(--dm-border);
}
[data-theme="dark"] .leader-principal {
    border-color: var(--gold);
}

/* ── Graduate Stories Section ── */
.graduates-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 50%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.graduates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 58, 92, 0.15), transparent);
}

.graduates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.graduate-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.graduate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.graduate-photo {
    padding: 2rem 2rem 0;
}

.graduate-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gold) 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.graduate-photo-placeholder svg {
    width: 44px;
    height: 44px;
}

.graduate-info {
    padding: 1.25rem 1.5rem 2rem;
}

.graduate-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.graduate-achievement {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.graduate-quote {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

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

@media (max-width: 600px) {
    .graduates-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode graduates */
[data-theme="dark"] .graduates-section {
    background: linear-gradient(180deg, var(--dm-bg-primary) 0%, var(--dm-bg-secondary) 50%, var(--dm-bg-primary) 100%);
}
[data-theme="dark"] .graduate-card {
    background: var(--dm-card-bg);
    border-color: var(--dm-border);
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════
   Careers Page
   ═══════════════════════════════════════════════════ */

.page-hero {
    padding: 9rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a5a8a 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(245, 197, 24, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(232, 146, 47, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.careers-why {
    padding: 4rem 0;
    background: var(--bg-light);
}

.careers-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.careers-why-card {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(26, 58, 92, 0.06);
}

.careers-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.careers-why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    color: var(--secondary-color);
}

.careers-why-icon svg {
    width: 100%;
    height: 100%;
}

.careers-why-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.careers-why-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.98rem;
}

.careers-apply {
    padding: 4rem 0 5rem;
    background: var(--white);
}

.careers-apply-container {
    max-width: 640px;
}

.careers-apply-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.careers-form-wrapper {
    margin-top: 1rem;
}

.careers-form-wrapper label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
}

.careers-whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 0.5rem;
    padding: 2px 8px;
    background: #25D366;
    color: var(--white);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.careers-whatsapp-badge svg {
    fill: currentColor;
}

/* File input — match the styling of other inputs */
.careers-form-wrapper input[type="file"] {
    width: 100%;
    padding: 0.8rem 1rem;
    min-height: 48px;
    border: 2px dashed rgba(26, 58, 92, 0.25);
    border-radius: 12px;
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.careers-form-wrapper input[type="file"]:hover {
    border-color: var(--secondary-color);
    background: rgba(232, 146, 47, 0.04);
}

.careers-form-wrapper input[type="file"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(232, 146, 47, 0.12);
}

.careers-form-wrapper input[type="file"]::file-selector-button {
    margin-inline-end: 0.75rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.careers-form-wrapper input[type="file"]::file-selector-button:hover {
    background: #2a5a8a;
}

.careers-file-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.careers-privacy-note {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.careers-status {
    margin-top: 1.5rem;
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
}

.careers-status-success {
    background: rgba(58, 125, 68, 0.08);
    color: var(--green-accent);
    border: 2px solid rgba(58, 125, 68, 0.25);
}

.careers-status-success svg {
    width: 56px;
    height: 56px;
    color: var(--green-accent);
    margin-bottom: 0.75rem;
}

.careers-status-error {
    background: rgba(192, 57, 43, 0.06);
    color: var(--accent-color);
    border: 2px solid rgba(192, 57, 43, 0.2);
}

.careers-status-error .cta-button {
    margin-top: 1rem;
    display: inline-block;
}

@media (max-width: 600px) {
    .page-hero {
        padding: 7rem 0 3rem;
    }
    .careers-why {
        padding: 3rem 0;
    }
    .careers-apply {
        padding: 3rem 0 4rem;
    }
}

/* Dark mode */
[data-theme="dark"] .careers-why {
    background: var(--dm-bg-primary);
}
[data-theme="dark"] .careers-why-card {
    background: var(--dm-card-bg);
    border-color: var(--dm-border);
}
[data-theme="dark"] .careers-apply {
    background: var(--dm-bg-secondary);
}
[data-theme="dark"] .careers-form-wrapper input[type="file"] {
    background: var(--dm-card-bg);
    color: var(--dm-text-primary);
    border-color: var(--dm-border);
}
[data-theme="dark"] .careers-form-wrapper input[type="file"]::file-selector-button {
    background: var(--secondary-color);
}

/* ═══════════════════════════════════════════════════
   Homepage Section Cards (front-door teasers)
   ═══════════════════════════════════════════════════ */

.home-sections {
    padding: 5rem 0;
    background: var(--bg-light);
}

.home-sections-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 720px;
    margin: -1rem auto 3rem;
    line-height: 1.7;
}

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

.home-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(26, 58, 92, 0.06);
    position: relative;
    overflow: hidden;
}

.home-card::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

[dir="rtl"] .home-card::after {
    transform: translateX(100%);
}

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

.home-card:hover::after {
    transform: translateX(0);
}

.home-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
}

.home-card-icon svg {
    width: 100%;
    height: 100%;
}

.home-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.home-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.98rem;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.home-card-cta {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.home-card:hover .home-card-cta {
    gap: 12px;
}

.home-card-cta::after {
    content: '←';
    font-size: 1.1rem;
}

[dir="ltr"] .home-card-cta::after {
    content: '→';
}

/* "Featured" teaser — slightly larger */
.home-card.home-card-featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a5a8a 100%);
    color: var(--white);
}

.home-card.home-card-featured h3 {
    color: var(--white);
}

.home-card.home-card-featured p {
    color: rgba(255, 255, 255, 0.9);
}

.home-card.home-card-featured .home-card-icon {
    color: var(--gold);
}

.home-card.home-card-featured .home-card-cta {
    color: var(--gold);
}

@media (max-width: 600px) {
    .home-sections {
        padding: 3rem 0;
    }
    .home-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode */
[data-theme="dark"] .home-sections {
    background: var(--dm-bg-primary);
}
[data-theme="dark"] .home-card {
    background: var(--dm-card-bg);
    border-color: var(--dm-border);
}


/* ════════════════════════════════════════════════════════════════════
   2026-06 homepage transformation: cinematic hero cue, media cards,
   scroll reveals, navbar scrolled state, stat count-up.
   ════════════════════════════════════════════════════════════════════ */

/* ── Hero scroll cue ── */
.hero-scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 1s both, cueBob 2.2s ease-in-out 2s infinite;
}

.hero-scroll-cue-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.hero-scroll-cue:hover .hero-scroll-cue-ring {
    border-color: var(--gold);
    transform: scale(1.12);
}

@keyframes cueBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(7px); }
}

@media (max-width: 768px) {
    .hero-scroll-cue { display: none; }
}

/* ── Navbar scrolled state (shrink + blur) ── */
.navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(15, 40, 64, 0.12);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(30, 39, 70, 0.88);
}

.navbar.scrolled .nav-wrapper {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

/* ── Media cards ── */
.home-card {
    padding: 0;
}

.home-card::after {
    display: none;
}

.home-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary-color);
}

.home-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 40, 64, 0) 55%, rgba(15, 40, 64, 0.35) 100%);
    pointer-events: none;
}

.home-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-card:hover .home-card-media img {
    transform: scale(1.06);
}

.home-card-body {
    padding: 1.6rem 1.6rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-card-body h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-weight: 800;
}

.home-card-body p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.97rem;
    flex-grow: 1;
    margin-bottom: 1.1rem;
}

.home-card.home-card-featured .home-card-body h3 {
    color: var(--white);
}

[data-theme="dark"] .home-card-body h3 {
    color: var(--dm-text-primary);
}

/* Featured card keeps its navy body but with media on top */
.home-card.home-card-featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a5a8a 100%);
}

.home-card.home-card-featured .home-card-body p {
    color: rgba(255, 255, 255, 0.85);
}

.home-card.home-card-featured .home-card-cta {
    color: var(--gold);
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children of the cards grid */
.home-cards-grid .home-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.home-cards-grid .home-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.home-cards-grid .home-card.reveal:nth-child(4) { transition-delay: 0.08s; }
.home-cards-grid .home-card.reveal:nth-child(5) { transition-delay: 0.16s; }
.home-cards-grid .home-card.reveal:nth-child(6) { transition-delay: 0.08s; }
.home-cards-grid .home-card.reveal:nth-child(7) { transition-delay: 0.16s; }

/* ── Stat count-up: tabular numerals to avoid jitter ── */
.stat-count {
    font-variant-numeric: tabular-nums;
}

/* ── Reduced motion: kill the new animations ── */
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-cue { animation: none; }
    .home-card-media img { transition: none; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
