/* Palestine Science Olympiad Portal - Main Stylesheet */

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary: #e11d48;
    --primary-soft: #fdecef;
    --bg: #f5f7fb;
    --card-bg: #fff5f8;
    --text-main: #111827;
    --text-muted: #6b7280;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius-lg: 18px;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
}

body {
    font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    background: radial-gradient(circle at top left, #ffffff 0, #f3f4f6 40%, #e5e7eb 100%);
    font-weight: 400;
    padding-top: 70px;
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 1);
}

header.scrolled .nav {
    padding: 8px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

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

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: conic-gradient(from 180deg, #22c55e, #0ea5e9, #f97316, #e11d48, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.35);
}

.logo-mark-inner {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #ffffff;
}

.logo-text-main {
    font-weight: 700;
    font-size: 15px;
}

.logo-text-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(249, 115, 22, 0.08));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

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

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 10px 24px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--primary), #f43f5e) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.3);
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
    background: linear-gradient(135deg, #f43f5e, var(--primary)) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(225, 29, 72, 0.08);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 12px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        border-radius: 12px;
        font-size: 15px;
        display: block;
    }

    .nav-link::before {
        display: none;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 14px 20px !important;
        margin-top: 8px;
    }

    .logo-text-main {
        font-size: 13px;
    }

    .logo-text-sub {
        font-size: 9px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .logo-mark-inner {
        width: 22px;
        height: 22px;
    }
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    display: block;
}

.navbar-menu a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), #f97316);
    transition: width 0.3s ease;
}

.navbar-menu a:hover {
    background: rgba(225, 29, 72, 0.06);
    color: var(--primary);
}

.navbar-menu a:hover::before {
    width: 60%;
}

.navbar-menu .btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), #f97316);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.3);
    border-radius: 999px;
}

.navbar-menu .btn-primary::before {
    display: none;
}

.navbar-menu .btn-primary:hover {
    background: linear-gradient(135deg, #f97316, var(--primary));
    box-shadow: 0 12px 32px rgba(225, 29, 72, 0.4);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(to left, #f97316, #e11d48);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(220, 38, 38, 0.45);
}

.btn-secondary {
    padding: 9px 18px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: var(--primary);
}

.btn-outline {
    padding: 9px 18px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-main);
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 40px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.7fr);
    gap: 40px;
    align-items: center;
}

.hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 11px;
}

.hero-badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.06);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.18);
    font-size: 11px;
}

.hero-badge strong {
    color: #1e40af;
}

.hero-title {
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.5;
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--text-main);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-primary {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(to left, #f97316, #e11d48);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.4);
}

.btn-outline {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
}

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

.hero-footnote {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.7;
}

.hero-footnote strong {
    color: #0f766e;
}

/* Hero Slider Styles */
.hero-slider-container {
    background: white;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    color: white;
    padding: 30px 24px 24px;
    z-index: 2;
}

.slide-caption h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.slide-caption p {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 16px;
}

.slider-nav.next {
    right: 16px;
}

.slider-nav svg {
    color: var(--text-main);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

/* Quick Stats Below Slider */
.hero-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 0 0 26px 26px;
    overflow: hidden;
}

.quick-stat {
    background: #f9fafb;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.quick-stat:hover {
    background: white;
    transform: translateY(-2px);
}

.quick-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1;
}

.quick-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 10px 0;
}

/* Competitions section with white background */
#competitions {
    background: #ffffff;
    padding: 40px 0;
}

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

/* Sections */
section {
    padding: 10px 0;
}

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

/* Professional Section Headers */
.section-header-pro {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(249, 115, 22, 0.08));
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.section-badge:hover {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(249, 115, 22, 0.12));
    transform: translateY(-2px);
}

.section-badge svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.section-title-pro {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description-pro {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
    margin: 0 auto;
    text-align: center;
}

/* Why Cards */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.why-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px 13px;
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.18);
    font-size: 13px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(148, 163, 184, 0.25);
}

.why-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
    font-size: 14px;
}

.why-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 12px;
}

/* Steps Section */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.step {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 16px;
    padding: 12px 12px 11px;
    font-size: 12px;
    transition: transform 0.18s ease, background 0.18s ease;
}

.step:hover {
    transform: translateY(-4px);
    background: #1e293b;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.08);
    font-size: 11px;
    margin-bottom: 5px;
}

.step-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 12px;
    color: #e5e7eb;
}

.step-text {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 11px;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h2, .card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Competitions Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.comp-card {
    background: var(--card-bg);
    border-radius: 22px;
    padding: 28px 18px 20px;
    text-align: center;
    box-shadow: 0 14px 36px rgba(248, 113, 113, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.comp-card::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    height: 58px;
    top: -14px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(248, 250, 252, 0.7), transparent 70%);
    opacity: 0.9;
}

.comp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(220, 38, 38, 0.24);
    background: #fff0f4;
}

.comp-logo {
    margin: 12px auto;
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-logo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    opacity: 0.14;
}

.comp-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.comp-acronym {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 9px;
}

.comp-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    min-height: 60px;
}

.comp-footer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.comp-footer span.icon {
    font-size: 14px;
}

/* Forms */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.auth-card.wide {
    max-width: 800px;
}

.auth-card h1 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 28px;
}

.auth-card h1 + p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
    color: var(--text-main);
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.error::before {
    content: '⚠';
    font-size: 14px;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc2626;
    background: #fef2f2;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    margin: 0 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Dashboard Styles */
.dashboard-body {
    background: #f5f5f5;
    min-height: 100vh;
    margin: 0;
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 70px;
    max-width: 100%;
}

.dashboard-left {
    display: flex;
    align-items: center;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.dashboard-icon-inner {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: white;
}

.dashboard-title-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1;
}

.dashboard-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1;
}

.dashboard-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.home-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.user-profile-box {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
}

.user-profile-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.1);
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #f97316);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-display-name {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
}

.arrow-down {
    font-size: 10px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.user-profile-btn:hover .arrow-down {
    transform: rotate(180deg);
}

.user-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
    z-index: 1000;
}

.user-dropdown-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 14px 18px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: var(--primary);
}

.dropdown-item.logout {
    color: #dc2626;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
    max-width: 100%;
}

.sidebar {
    background: white;
    border-left: 1px solid #e5e7eb;
    padding: 20px 0;
    width: 260px;
    flex-shrink: 0;
    overflow-y: auto;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
}

.sidebar-menu {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
}

.sidebar-menu a span {
    font-size: 20px;
    width: 24px;
    text-align: center;
    display: inline-block;
}

.sidebar-menu a:hover {
    background: #fef2f4;
    color: var(--primary);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, var(--primary), #f97316);
    color: white;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.sidebar-menu a.active span {
    filter: brightness(0) invert(1);
}

.dashboard-content {
    padding: 32px;
    background: #f5f5f5;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.dashboard-content .dashboard-header h1 {
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

.table th {
    background: var(--light-gray);
    font-weight: 600;
}

.table tbody tr:hover {
    background: var(--light-gray);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-submitted {
    background: var(--info-color);
    color: white;
}

.badge-accepted_training,
.badge-accepted_final {
    background: var(--success-color);
    color: white;
}

.badge-rejected,
.badge-cancelled {
    background: var(--danger-color);
    color: white;
}

.badge-under_review {
    background: var(--warning-color);
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.5), transparent);
}

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

.footer-col {
    animation: fadeInUp 0.6s ease-out;
}

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

.footer-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.footer-logo-inner {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: white;
}

.footer-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.footer-brand-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 3px;
}

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

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.footer-bottom {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

.footer-credits {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-credits span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 50px 0 0;
        margin-top: 60px;
    }

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

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

    .footer-heading::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-list a:hover {
        transform: translateX(0);
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-credits {
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero::before,
    .hero::after {
        display: none;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: clamp(28px, 5vw, 38px);
    }
    
    .hero-content p {
        max-width: 100%;
        font-size: 16px;
    }
    
    .hero-badge-row {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .timeline {
        margin: 30px auto 0;
    }
    
    .hero-slider-container {
        /* max-width: 500px; */
        /* margin: 0 auto; */
        width: 100%;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-caption h3 {
        font-size: 16px;
    }
    
    .slide-caption p {
        font-size: 12px;
    }
    
    .slider-nav {
        width: 44px;
        height: 44px;
        opacity: 0.9;
    }
    
    .slider-nav.prev {
        left: 8px;
    }
    
    .slider-nav.next {
        right: 8px;
    }
    
    .slider-dots {
        bottom: 12px;
        gap: 8px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
        border: 3px solid rgba(255, 255, 255, 0.9);
    }
    
    .quick-stat-value {
        font-size: 22px;
    }
    
    .quick-stat-label {
        font-size: 11px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-slider-container {
        order: -1;
        display: block !important;
        visibility: visible !important;
    }
    
    .hero-slider {
        display: block !important;
        min-height: 300px;
    }
    
    .competitions-grid,
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 26px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .why-grid,
    .steps {
        grid-template-columns: 1fr;
    }
    
    .logo-mark-inner::after {
        font-size: 16px;
    }
    
    .logo-text {
        font-size: 13px;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero-grid {
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 16px;
        line-height: 1.4;
    }
    
    .hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.7;
    }
    
    .hero-badge {
        font-size: 20px;
    }
    
    .hero-badge-text {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .hero-badge-row {
        margin-bottom: 16px;
        gap: 8px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .slide-caption {
        padding: 20px 16px 16px;
    }
    
    .slide-caption h3 {
        font-size: 14px;
    }
    
    .slide-caption p {
        font-size: 11px;
    }
    
    .slider-nav {
        width: 32px;
        height: 32px;
    }
    
    .slider-nav.prev {
        left: 8px;
    }
    
    .slider-nav.next {
        right: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    .quick-stat {
        padding: 14px;
    }
    
    .quick-stat-value {
        font-size: 20px;
    }
    
    .quick-stat-label {
        font-size: 10px;
    }
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        justify-content: center;
    }
    
    .timeline {
        width: 100%;
        padding: 16px 18px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 24px;
    }
    
    .timeline-step {
        gap: 6px;
    }
    
    .timeline-dot {
        width: 12px;
        height: 12px;
    }
    
    .timeline-dot::after {
        width: 5px;
        height: 5px;
    }
    
    .timeline-line {
        width: 30px;
    }
    
    .timeline-step span {
        font-size: 11px;
    }
    
    .hero-card {
        padding: 24px 20px;
    }
    
    .hero-card-header {
        margin-bottom: 16px;
    }
    
    .hero-card-title {
        font-size: 13px;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .stat-box {
        padding: 16px 12px;
    }
    
    .stat-box {
        padding: 16px 12px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .competitions-grid,
    .why-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dashboard-header h1 {
        font-size: 22px;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* ====================================
   Why Section - Professional Design
   ==================================== */

.why-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .why-section::before {
        width: 600px;
        height: 600px;
    }
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.why-section .section-header {
    text-align: center;
}

.section-title-large {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(225, 29, 72, 0.15);
    border-color: rgba(225, 29, 72, 0.2);
}

.feature-card.featured {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
    transform: scale(1.05);
}

.feature-card.featured:hover {
    transform: scale(1.08) translateY(-8px);
}

.feature-card.featured .feature-title,
.feature-card.featured .feature-description,
.feature-card.featured .feature-list {
    color: white;
}

.feature-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: #fbbf24;
    color: #92400e;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #e11d48;
    transition: all 0.3s ease;
}

.feature-card.featured .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 14px;
    color: #64748b;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.feature-card.featured .feature-list li {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Stats Showcase */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 2px solid #f1f5f9;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
    transition: all 0.3s ease;
    display: inline-block;
}

.stat-number.counting {
    transform: scale(1.1);
}

.stat-item:hover .stat-number {
    transform: scale(1.15);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header-pro {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .section-badge {
        font-size: 12px;
        padding: 6px 16px;
        gap: 6px;
    }
    
    .section-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .section-title-pro {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .section-description-pro {
        font-size: 16px;
    }
    
    .section-title-large {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card.featured {
        transform: scale(1);
    }
    
    .stats-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 20px;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 2px solid #f1f5f9;
        padding: 15px 10px;
    }
    
    .stat-item:nth-child(2n) {
        border-right: none;
    }
    
    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
