/* ============================================
   SHOOTING STAR ACADEMY - AWARD-WINNING REDESIGN
   Modern CSS with 2025 Best Practices
   ============================================ */

/* === FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Nizar BBC Kurdish';
    src: url('fonts/NizarBBCKurdish.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* === CSS CUSTOM PROPERTIES (Design Tokens) === */
:root {
    /* Colors */
    --color-navy: #062A42;
    --color-navy-deep: #041C2C;
    --color-navy-light: #0A3A5C;
    --color-gold: #D4AF37;
    --color-gold-light: #E8C547;
    --color-gold-dark: #B8962E;
    --color-white: #FFFFFF;
    --color-text: rgba(255, 255, 255, 0.95);
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-subtle: rgba(255, 255, 255, 0.5);

    /* Glass Effect */
    --glass-bg: rgba(6, 42, 66, 0.6);
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-gold: rgba(212, 175, 55, 0.3);

    /* Typography */
    --font-en: 'Poppins', system-ui, sans-serif;
    --font-ar: 'Zain', 'Arial', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
    background-color: var(--color-navy-deep);
    border-radius: 10px;
}

::-webkit-scrollbar {
    width: 10px;
    background-color: var(--color-navy-deep);
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--color-gold);
    background-image: -webkit-gradient(linear,
            40% 0%,
            75% 84%,
            from(#B8962E),
            to(#D4AF37),
            color-stop(.6, #E8C547));
    background-image: linear-gradient(135deg,
            #B8962E 0%,
            #E8C547 60%,
            #D4AF37 100%);
}

::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(135deg,
            #D4AF37 0%,
            #F0D660 60%,
            #E8C547 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) var(--color-navy-deep);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-en);
    background-color: var(--color-navy);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Font */
html[dir="rtl"] body {
    font-family: var(--font-ar);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === ACCESSIBILITY === */
@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;
    }
}

/* === HOMEPAGE BACKGROUND === */
.bg-stars {
    min-height: 100vh;
    background: linear-gradient(180deg,
            #000510 0%,
            #021020 20%,
            #041C2C 40%,
            var(--color-navy) 60%,
            var(--color-navy) 100%);
    background-attachment: fixed;
    position: relative;
}

#bgCanvas {
    display: none;
}

/* ============================================
   SHOOTING STARS - Pure CSS (constgenius style)
   ============================================ */
.night {
    position: fixed;
    inset: 0;
    transform: rotateZ(45deg);
    pointer-events: none;
    z-index: 1;
}

.shooting-star {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    background: linear-gradient(-45deg, var(--color-gold), rgba(0, 0, 255, 0));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px var(--color-gold));
    animation: tail 3s ease-in-out infinite, falling 3s ease-in-out infinite;
}

@keyframes tail {
    0% {
        width: 0;
    }

    30% {
        width: 100px;
    }

    100% {
        width: 0;
    }
}

@keyframes falling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(300px);
    }
}

.shooting-star::before,
.shooting-star::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), var(--color-gold), rgba(0, 0, 255, 0));
    border-radius: 100%;
    transform: translateX(50%) rotateZ(45deg);
    animation: shining 3s ease-in-out infinite;
}

.shooting-star::after {
    transform: translateX(50%) rotateZ(-45deg);
}

@keyframes shining {
    0% {
        width: 0;
    }

    50% {
        width: 30px;
    }

    100% {
        width: 0;
    }
}

/* Position each shooting star */
.shooting-star:nth-child(1) {
    top: calc(50% - 200px);
    left: calc(50% - 300px);
    animation-delay: 0s;
}

.shooting-star:nth-child(1)::before,
.shooting-star:nth-child(1)::after {
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    top: calc(50% - 100px);
    left: calc(50% - 200px);
    animation-delay: 1s;
}

.shooting-star:nth-child(2)::before,
.shooting-star:nth-child(2)::after {
    animation-delay: 1s;
}

.shooting-star:nth-child(3) {
    top: calc(50% + 0px);
    left: calc(50% - 400px);
    animation-delay: 2s;
}

.shooting-star:nth-child(3)::before,
.shooting-star:nth-child(3)::after {
    animation-delay: 2s;
}

.shooting-star:nth-child(4) {
    top: calc(50% + 100px);
    left: calc(50% - 150px);
    animation-delay: 1.5s;
}

.shooting-star:nth-child(4)::before,
.shooting-star:nth-child(4)::after {
    animation-delay: 1.5s;
}

.shooting-star:nth-child(5) {
    top: calc(50% - 150px);
    left: calc(50% - 100px);
    animation-delay: 2.5s;
}

.shooting-star:nth-child(5)::before,
.shooting-star:nth-child(5)::after {
    animation-delay: 2.5s;
}

.shooting-star:nth-child(6) {
    top: calc(50% + 50px);
    left: calc(50% - 350px);
    animation-delay: 0.5s;
}

.shooting-star:nth-child(6)::before,
.shooting-star:nth-child(6)::after {
    animation-delay: 0.5s;
}

.shooting-star:nth-child(7) {
    top: calc(50% - 50px);
    left: calc(50% - 500px);
    animation-delay: 1.8s;
}

.shooting-star:nth-child(7)::before,
.shooting-star:nth-child(7)::after {
    animation-delay: 1.8s;
}

.shooting-star:nth-child(8) {
    top: calc(50% + 150px);
    left: calc(50% - 250px);
    animation-delay: 2.2s;
}

.shooting-star:nth-child(8)::before,
.shooting-star:nth-child(8)::after {
    animation-delay: 2.2s;
}

/* === NAVIGATION === */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav scrolled state - premium frosted glass */
.glass-nav.scrolled {
    padding: 0.5rem 1.5rem;
}

.glass-nav.scrolled .nav-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Premium Glassmorphism Pill - iPhone-inspired */
.nav-pill {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    /* Layered glass effect */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    /* Refined border with subtle glow */
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.5rem;
    /* Premium shadow stack */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.11) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a,
.dropbtn {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.dropdown:hover .dropbtn {
    color: var(--color-white);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-links a:hover::after {
    width: 100%;
}

/* RTL Nav sizing */
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .dropbtn {
    font-size: 1rem;
    letter-spacing: 0;
}

/* Dropdown - Premium Glass Style */
.dropdown {
    position: relative;
}

/* Invisible bridge to cover gap between button and dropdown */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    /* Premium glass background */
    background: linear-gradient(180deg,
            rgba(10, 30, 50, 0.95) 0%,
            rgba(6, 26, 42, 0.98) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 100;
}

/* Invisible bridge to maintain hover connection */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.dropdown:hover .dropdown-content,
.dropdown.touch-active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    margin-bottom: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-content a:last-child {
    margin-bottom: 0;
}

.dropdown-content a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
    padding-left: 1.25rem;
}

.dropdown-content a::after {
    display: none;
}

/* Language Dropdown */
.lang-dropdown .dropbtn {
    font-size: 0.8rem;
    padding-right: var(--space-sm);
    border-right: 1px solid var(--glass-border);
    margin-right: var(--space-xs);
}

html[dir="rtl"] .lang-dropdown .dropbtn {
    padding-right: 0;
    padding-left: var(--space-sm);
    border-right: none;
    border-left: 1px solid var(--glass-border);
    margin-right: 0;
    margin-left: var(--space-xs);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-xl) + 60px) var(--space-md) var(--space-xl);
    z-index: 2;
    overflow: hidden;
}

#hero-glitter {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.glitter-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero .content-layer {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: var(--space-md);
}

.hero-logo {
    width: 220px;
    max-width: 45vw;
    height: auto;
    margin: 0 auto var(--space-md);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    animation: fadeUp 1s ease-out forwards;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    text-wrap: balance;
    animation: fadeUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

html[dir="rtl"] .hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
}

.hero-title .gold-word {
    color: var(--color-gold);
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
    text-wrap: balance;
    animation: fadeUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

html[dir="rtl"] .hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 2;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-gold);
    border-radius: var(--radius-full);
    animation: scrollDown 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* === COUNTDOWN SECTION === */
.countdown-section {
    position: relative;
    z-index: 10;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.countdown-label {
    font-size: clamp(0.7rem, 1.4vw, 0.85rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

html[dir="rtl"] .countdown-label {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    letter-spacing: 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    width: clamp(70px, 12vw, 90px);
    height: clamp(70px, 12vw, 90px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

/* Gold scanline shine effect */
.countdown-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Stagger the animation for each box */
.countdown-box:nth-child(1) .countdown-number::before {
    animation-delay: 0s;
}

.countdown-box:nth-child(2) .countdown-number::before {
    animation-delay: 0.75s;
}

.countdown-box:nth-child(3) .countdown-number::before {
    animation-delay: 1.5s;
}

.countdown-box:nth-child(4) .countdown-number::before {
    animation-delay: 2.25s;
}

.countdown-unit {
    font-size: clamp(0.6rem, 1.1vw, 0.7rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-subtle);
    margin-top: 0.75rem;
}

html[dir="rtl"] .countdown-unit {
    font-size: clamp(0.7rem, 1.3vw, 0.85rem);
    letter-spacing: 0;
}

/* === WELCOME SECTION === */
.welcome-section {
    position: relative;
    z-index: 10;
    background: transparent;
    padding: var(--space-md) var(--space-md) var(--space-lg);
    text-align: center;
}

.welcome-section h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

html[dir="rtl"] .welcome-section h2 {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    letter-spacing: 0;
    line-height: 1.5;
}

.welcome-section p {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-subtle);
}

html[dir="rtl"] .welcome-section p {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    letter-spacing: 0;
    line-height: 1.6;
}

/* === FOOTER === */
.site-footer {
    position: relative;
    z-index: 10;
    background: rgba(0, 5, 15, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-lg) var(--space-md);
    margin-top: var(--space-lg);
}

.footer-contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-contact-item:hover {
    color: var(--color-gold);
}

.footer-icon {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.footer-phones {
    flex-direction: row;
}

.phone-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phone-links a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.phone-links a:hover {
    color: var(--color-gold);
}

html[dir="rtl"] .footer-contact-item {
    font-size: 1.05rem;
}

html[dir="rtl"] .footer-contact-grid {
    direction: rtl;
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--color-text-subtle);
}

html[dir="rtl"] .footer-bottom {
    font-size: 1rem;
}

/* === UTILITY CLASSES === */
.text-gold {
    color: var(--color-gold);
}

.text-muted {
    color: var(--color-text-muted);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* === BUTTONS === */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--color-gold);
    color: var(--color-navy-deep);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.glass-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.glass-back-button:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* === PAGE HEADER === */
.page-header {
    padding: calc(var(--space-xl) + 100px) var(--space-md) var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

html[dir="rtl"] .page-header {
    text-align: right;
}

.page-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--color-gold);
    text-wrap: balance;
}

/* Service page branded header */
.service-header-branded {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.service-header-branded .brand-logo-bg {
    position: relative;
    width: clamp(150px, 25vw, 250px);
    height: auto;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    order: 2;
    flex-shrink: 0;
}

html[dir="rtl"] .service-header-branded .brand-logo-bg {
    order: 0;
}

.service-header-branded .header-content {
    position: relative;
    z-index: 1;
    order: 1;
    flex: 1;
}

html[dir="rtl"] .service-header-branded .header-content {
    order: 1;
}

@media (max-width: 768px) {
    .service-header-branded {
        flex-direction: column;
        text-align: center;
    }

    .service-header-branded .brand-logo-bg {
        order: 0;
        width: clamp(100px, 30vw, 150px);
        margin-bottom: 1rem;
    }

    .service-header-branded .header-content {
        order: 1;
    }
}

/* === GLASS PANEL === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

/* === FEATURE CARDS === */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    max-width: 1200px;
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
}

.feature-card {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-smooth);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-gold);
    box-shadow: var(--shadow-gold);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-sm);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    transition: transform var(--transition-smooth);
}

.feature-card:hover .service-icon {
    transform: scale(1.1);
}

/* === STORY TIMELINE === */
.story-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-md) 0 var(--space-md) 50px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    opacity: 0.5;
}

html[dir="rtl"] .story-timeline {
    padding-left: 0;
    padding-right: 50px;
}

html[dir="rtl"] .story-timeline::before {
    left: auto;
    right: 15px;
}

.story-card {
    position: relative;
    background: rgba(10, 25, 45, 0.8);
    border: 1px solid var(--glass-border-gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all var(--transition-smooth);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

html[dir="rtl"] .story-card {
    text-align: right;
    padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-md);
}

.story-card::after {
    content: '';
    position: absolute;
    top: 40px;
    left: -43px;
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-gold);
}

html[dir="rtl"] .story-card::after {
    left: auto;
    right: -43px;
}

.story-card:hover {
    transform: translateX(10px);
    border-color: var(--color-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

html[dir="rtl"] .story-card:hover {
    transform: translateX(-10px);
}

.story-number {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}

html[dir="rtl"] .story-number {
    left: auto;
    right: 1.5rem;
}

/* === CONTACT PAGE === */
.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--space-xl) + 100px) var(--space-md) var(--space-lg);
}

/* Form section - full width first */
.contact-form-full {
    margin-bottom: var(--space-lg);
}

.contact-form-container {
    background: rgba(10, 25, 45, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(6, 42, 66, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Info & Map 50/50 split */
.contact-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: stretch;
}

.info-card {
    background: rgba(10, 25, 45, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.info-item>div {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    display: block;
}

.info-item h4 {
    color: var(--color-gold);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.info-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Phone list styling */
.phone-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.phone-number {
    color: var(--color-white);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.phone-number:hover {
    color: var(--color-gold);
}

/* WhatsApp button styling */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-full);
    color: #25D366;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: #25D366;
    transform: translateY(-1px);
}

.whatsapp-btn svg {
    flex-shrink: 0;
}

/* Email link */
.email-link {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    word-break: break-all;
    overflow-wrap: break-word;
}

.email-link:hover {
    color: var(--color-gold);
}

/* Hours list */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hours-list p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.hours-list strong {
    color: var(--color-white);
}

.hours-list .closed {
    opacity: 0.5;
    font-style: italic;
}

/* Social media links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.social-link svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

html[dir="rtl"] .social-link:hover {
    transform: translateX(-5px);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Facebook brand color */
.social-link.facebook:hover {
    border-color: rgba(24, 119, 242, 0.5);
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
}

/* Instagram gradient */
.social-link.instagram:hover {
    border-color: rgba(225, 48, 108, 0.5);
    background: linear-gradient(45deg, rgba(225, 48, 108, 0.1), rgba(253, 29, 29, 0.1), rgba(245, 133, 41, 0.1));
    color: #E1306C;
}

/* TikTok color */
.social-link.tiktok:hover {
    border-color: rgba(0, 242, 234, 0.5);
    background: rgba(0, 242, 234, 0.1);
    color: #00F2EA;
}

/* Map container */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(90%);
}

/* === SERVICE PAGES === */
.service-detail-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--space-xl) + 100px) var(--space-md) var(--space-lg);
    text-align: left;
}

html[dir="rtl"] .service-detail-wrapper {
    text-align: right;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.full-width-text {
    grid-column: 1 / -1;
    max-width: 900px;
    margin-bottom: var(--space-md);
}

.service-glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: 100%;
    transition: all var(--transition-smooth);
}

.service-glass-panel:hover {
    border-color: var(--glass-border-gold);
}

.professional-list {
    list-style: none;
    padding: 0;
}

.professional-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.professional-list li:last-child {
    border-bottom: none;
}

/* === APPLICANTS PORTAL === */
:root {
    --accent: var(--color-gold);
    --muted: var(--color-text-muted);
    --card-bg: rgba(10, 25, 45, 0.6);
    --border-color: var(--glass-border);
    --input-bg: rgba(6, 42, 66, 0.8);
    --success: #25D366;
    --warning: #FFC107;
}

.applicants-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--space-xl) + 100px) var(--space-md) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-md);
    align-items: start;
    position: relative;
    z-index: 2;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.app-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--color-gold);
    background: transparent;
    color: var(--color-gold);
    transition: all var(--transition-fast);
}

.btn-small:hover {
    background: var(--color-gold);
    color: var(--color-navy-deep);
}

.btn-small.primary {
    background: var(--color-gold);
    color: var(--color-navy-deep);
}

.app-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    scroll-margin-top: 180px;
}

.app-section h2 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.app-section .sub {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.app-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

.app-label.req::after {
    content: " *";
    color: var(--color-gold);
}

.app-input,
.app-select,
.app-textarea {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.app-textarea {
    min-height: 120px;
    resize: vertical;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.chip {
    padding: 6px 14px;
    background: var(--glass-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-muted);
}

.chip:hover {
    border-color: var(--color-gold);
}

.chip.active {
    background: var(--color-gold);
    color: var(--color-navy-deep);
    border-color: var(--color-gold);
}

.app-sidebar {
    position: sticky;
    top: 140px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.sidebar-nav li {
    padding: 12px;
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.sidebar-nav li:hover {
    background: var(--glass-bg-light);
}

.sidebar-nav li.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
    border-left: 3px solid var(--color-gold);
}

html[dir="rtl"] .sidebar-nav li.active {
    border-left: none;
    border-right: 3px solid var(--color-gold);
}

.status-dot {
    font-weight: bold;
}

.status-dot.done {
    color: var(--success);
}

.status-dot.warn {
    color: var(--warning);
}

.dropzone {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    background: var(--glass-bg-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.05);
}

.rep-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-top: var(--space-sm);
}

.date-group {
    display: flex;
    gap: 10px;
}

.date-part {
    flex: 1;
}

.app-slider {
    width: 100%;
    margin-top: 10px;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--glass-border);
    border-radius: var(--radius-full);
    outline: none;
}

.app-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.app-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--color-navy);
    border: 1px solid var(--color-gold);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-sm);
}

.btn-secondary {
    display: inline-block;
    padding: 8px 24px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.rep-remove-btn {
    background: transparent;
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.rep-remove-btn:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
    transform: scale(1.05);
}

/* === PAGE DECORATION === */
.page-decor-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.decor-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.15), transparent);
}

.decor-line.left {
    left: 12%;
}

.decor-line.right {
    right: 12%;
}

.decor-circle {
    position: absolute;
    border: 1px dashed rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    animation: slowRotate 60s linear infinite;
}

.decor-circle.one {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
}

.decor-circle.two {
    width: 400px;
    height: 400px;
    bottom: -50px;
    left: -100px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.03);
}

/* Hide decorative text - not needed */
.decor-text {
    display: none;
}

@keyframes slowRotate {
    to {
        transform: rotate(360deg);
    }
}

/* === ANIMATIONS === */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-item {
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass-border);
    border-left-color: var(--color-gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1000px) {
    .applicants-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {

    .contact-split-grid,
    .service-content-grid {
        grid-template-columns: 1fr;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .map-container {
        min-height: 300px;
    }
}

/* === MOBILE NAVIGATION === */
/* Hamburger button - hidden on desktop */
.hamburger-btn {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

.mobile-menu {
    display: none;
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin: 0.5rem 0;
}

.view-all-link {
    color: var(--color-gold) !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    /* Hide desktop nav pill on mobile */
    .nav-pill {
        display: none;
    }

    /* Minimal transparent nav on mobile */
    .glass-nav {
        padding: 1rem 1.25rem;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        justify-content: flex-end;
    }

    .glass-nav.scrolled {
        padding: 0.75rem 1.25rem;
        background: transparent;
    }

    /* Hamburger Button - Minimal, top right */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-white);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hamburger Animation - Open State */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu - Glassmorphism dropdown from top */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg,
                rgba(6, 42, 66, 0.98) 0%,
                rgba(4, 28, 44, 0.99) 100%);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-bottom: 1px solid rgba(212, 175, 55, 0.25);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow: hidden;
        padding: 4rem 1.5rem 2rem;
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    /* Mobile Nav Links */
    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-links>li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav-links>li:last-child {
        border-bottom: none;
    }

    .mobile-nav-links>li>a {
        display: block;
        padding: 1.25rem 0.5rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        transition: all 0.2s ease;
    }

    html[dir="rtl"] .mobile-nav-links>li>a {
        font-size: 1.2rem;
        letter-spacing: 0;
    }

    .mobile-nav-links>li>a:hover,
    .mobile-nav-links>li>a:focus {
        color: var(--color-gold);
    }

    /* Mobile Dropdown */
    .mobile-dropdown-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1.25rem 0.5rem;
        background: none;
        border: none;
        font-family: inherit;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    html[dir="rtl"] .mobile-dropdown-btn {
        font-size: 1.2rem;
        letter-spacing: 0;
    }

    .mobile-dropdown-btn:hover,
    .mobile-dropdown-btn:focus {
        color: var(--color-gold);
    }

    .dropdown-arrow {
        font-size: 0.9rem;
        transition: transform 0.3s ease;
        color: var(--color-gold);
    }

    .mobile-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Mobile Dropdown Content */
    .mobile-dropdown-content {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
    }

    .mobile-dropdown.active .mobile-dropdown-content {
        max-height: 500px;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }

    .mobile-dropdown-content li a {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 400;
        color: var(--color-text-muted);
        text-transform: none;
        letter-spacing: 0;
        transition: all 0.2s ease;
    }

    html[dir="rtl"] .mobile-dropdown-content li a {
        font-size: 1.05rem;
    }

    .mobile-dropdown-content li a:hover,
    .mobile-dropdown-content li a:focus {
        color: var(--color-gold);
        background: rgba(212, 175, 55, 0.1);
    }

    .mobile-dropdown-content li.view-all a {
        color: var(--color-gold);
        font-weight: 600;
        border-top: 1px solid rgba(212, 175, 55, 0.15);
        margin-top: 0.5rem;
        padding-top: 1rem;
    }

    /* Mobile Language Selector */
    .mobile-lang-selector {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-lang-selector .lang-option {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--color-text-muted);
        padding: 0.5rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .mobile-lang-selector .lang-option:hover {
        color: var(--color-gold);
        border-color: rgba(212, 175, 55, 0.3);
        background: rgba(212, 175, 55, 0.1);
    }

    /* Hero */
    .hero {
        min-height: 100svh;
        padding-top: 80px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Countdown */
    .countdown-timer {
        gap: 0.5rem;
    }

    .countdown-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 10px;
    }

    .countdown-unit {
        font-size: 0.55rem;
        margin-top: 0.5rem;
    }

    /* Footer */
    .footer-contact-grid {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-phones {
        flex-direction: column;
        align-items: center;
    }

    .phone-links {
        align-items: center;
    }

    /* App Grid */
    .app-grid {
        grid-template-columns: 1fr;
    }

    /* Story Timeline */
    .story-timeline {
        padding-left: 30px;
    }

    .story-timeline::before {
        left: 10px;
    }

    .story-card::after {
        left: -28px;
    }

    html[dir="rtl"] .story-timeline {
        padding-left: 0;
        padding-right: 30px;
    }

    html[dir="rtl"] .story-timeline::before {
        left: auto;
        right: 10px;
    }

    html[dir="rtl"] .story-card::after {
        left: auto;
        right: -28px;
    }

    /* Hide decorations */
    .decor-line,
    .decor-circle,
    .decor-text {
        display: none;
    }

    /* RTL mobile menu */
    html[dir="rtl"] .glass-nav {
        justify-content: flex-start;
    }

    /* About Page Header - RTL font size adjustment for mobile */
    html[dir="rtl"] .page-header h1 {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {

    .nav-links a,
    .dropbtn {
        font-size: 0.65rem;
    }

    html[dir="rtl"] .nav-links a,
    html[dir="rtl"] .dropbtn {
        font-size: 0.8rem;
    }

    /* iOS input zoom prevention */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-logo {
        width: 150px;
    }
}

/* === PRINT === */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .glass-nav,
    .page-decor-layer,
    .gold-bar,
    #bgCanvas,
    #hero-glitter,
    .scroll-indicator,
    footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .hero {
        min-height: auto;
        padding: 2cm 0;
    }
}

/* === NAVIGATION LOGO FIX === */
.nav-logo {
    display: block;
    height: 45px;
    width: auto;
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-logo-container {
    flex-shrink: 0;
}

/* ============================================
   APPLICANT PORTAL LAYOUT FIXES
   ============================================ */

/* 1. Fix chip selector height alignment with text inputs */
.chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: 48px;
    /* Match input height */
    align-items: center;
    padding: 0.5rem 0;
}

.chip {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.chip:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold);
}

.chip.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.15));
    border-color: var(--color-gold);
    color: var(--color-gold);
    font-weight: 600;
}

/* 2. Fix date dropdown alignment */
.date-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-part {
    flex: 1;
    min-width: 0;
    /* Allow flex shrinking */
}

/* 3. Reduce excessive vertical spacing */
.app-section {
    margin-bottom: 2rem;
    /* Reduced from 4rem+ */
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.app-section h2 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.app-section .sub {
    margin-bottom: 1.25rem;
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}

/* 4. Constrain dropzone size */
.dropzone {
    padding: 1.5rem;
    /* Reduced from 3rem+ */
    min-height: auto;
    max-height: 120px;
    /* Prevent excessive height */
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.dropzone:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--color-gold);
}

.dropzone b {
    color: var(--color-gold);
    margin-bottom: 0.25rem;
}

/* 5. Grid improvements */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Allow full-width for single elements */
.app-grid>div:only-child {
    grid-column: 1 / -1;
}

/* 6. Input standardization */
.app-input,
.app-select,
.app-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    min-height: 48px;
    /* Consistent height */
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.app-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Fix for white dropdown options on Windows/Linux */
.app-select option {
    background-color: #062a42;
    /* Dark Navy to match theme */
    color: #ffffff;
}

/* 7. Label improvements */
.app-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.app-label.req::after {
    content: '*';
    color: var(--color-gold);
    margin-left: 0.25rem;
}

/* 8. Layout container */
.applicants-layout {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 80px;
    /* Account for fixed nav */
}

.applicants-layout main {
    flex: 1;
    min-width: 0;
}

/* 9. Sidebar */
.app-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav li.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
}

/* 10. Responsive adjustments */
@media (max-width: 968px) {
    .applicants-layout {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .app-section {
        padding: 1rem;
    }

    .applicants-layout {
        padding: 1rem;
    }

    .date-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .date-part {
        width: 100%;
    }
}

/* === COMPLETE LAYOUT FIX === */

/* HIDE SIDEBAR - Too complex to position properly */
.app-sidebar {
    display: none !important;
}

/* CENTER ALL CONTENT */
.applicants-layout {
    display: block !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
    padding-top: 100px !important;
}

.applicants-layout main {
    width: 100% !important;
    max-width: 100% !important;
}

/* STANDARDIZE ALL SECTIONS */
.app-section {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 2rem auto !important;
    padding: 1.5rem !important;
}

/* FIX FACULTY TEXTAREAS */
#faculty .app-textarea {
    width: 100% !important;
    max-width: 100% !important;
}

/* FIX DECLARATION GRID */
#submit .app-grid {
    width: 100% !important;
    max-width: 100% !important;
}

/* FIX ALL TEXTAREAS TO FILL SECTION */
.app-textarea {
    width: 100% !important;
    max-width: 100% !important;
}

/* FIX ALL GRIDS TO BE CONSISTENT */
.app-grid {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix for very wide screens */
@media (min-width: 1400px) {
    .applicants-layout {
        max-width: 1000px !important;
    }
}

/* ============================================
   ENROLLMENT CTA SECTION
   ============================================ */

.enrollment-cta-section {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: transparent;
    position: relative;
}

/* Welcome Section - Transparent */
.welcome-section {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: transparent;
}

.welcome-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.welcome-section p {
    font-size: 1rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.cta-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    margin: 1rem auto 0;
    border-radius: 2px;
}

html[dir="rtl"] .cta-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: 0;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

html[dir="rtl"] .cta-subtitle {
    font-size: 1.15rem;
    line-height: 1.9;
}

.social-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* WhatsApp Button */
.cta-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.cta-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Instagram Button */
.cta-instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.cta-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
}

/* Facebook Button */
.cta-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D5DC7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.cta-facebook:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* Mobile adjustments for CTA section */
@media (max-width: 768px) {
    .enrollment-cta-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .cta-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .social-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}