@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --secondary-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --primary-hover: #4338ca;
    --secondary-color: #0ea5e9;
    --accent-color: #f43f5e;
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -6px rgba(79, 70, 229, 0.04);
    --transition-speed: 0.3s;
}

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Custom Navbar */
.custom-navbar {
    background: var(--dark-gradient) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1.5rem;
}

/* Navbar Logo */
.navbar-logo {
    height: 68px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(155, 48, 200, 0.4));
}

.custom-navbar .navbar-brand:hover .navbar-logo {
    transform: scale(1.06);
}

.custom-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    text-decoration: none;
}

/* Navbar Brand Text */
.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 1px;
}

.brand-main {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.custom-navbar .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}

.custom-navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.custom-navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(79, 70, 229, 0.2);
    border-left: 2px solid #a78bfa;
}

/* ===== Navbar Login / Logout Buttons ===== */
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    cursor: pointer;
    font-family: inherit;
}

.btn-nav-login:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.btn-nav-logout {
    display: inline-flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-nav-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

/* معلومات المستخدم في الـ Navbar */
.nav-user-info {
    gap: 0.5rem;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 0.85rem;
}

.nav-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main Container and Hero */
.main-content {
    flex: 1 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Hero Section */
.hero-card {
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-card h1 {
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero-card p {
    font-size: 1.15rem;
    font-weight: 300;
    color: #e0e7ff;
}

/* Custom Cards */
.custom-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.card-header-gradient {
    background: var(--dark-gradient);
    color: #ffffff;
    font-weight: 700;
    border-bottom: none;
    padding: 1.2rem 1.5rem;
}

.card-header-gradient-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 700;
    border-bottom: none;
    padding: 1.2rem 1.5rem;
}

/* Buttons */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.btn-secondary-gradient {
    background: var(--secondary-gradient);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}

.btn-secondary-gradient:hover {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

.btn-action {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.4rem 1rem;
    transition: all 0.2s ease;
}

/* Badges */
.badge-custom {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-online {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-inperson {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-active {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-inactive {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-pending {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-confirmed {
    background-color: #e0e7ff;
    color: #4338ca;
}

/* Forms styling */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: #ffffff;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-group-text {
    border: 1px solid var(--border-color);
    background-color: #f1f5f9;
    border-radius: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Custom Table */
.custom-table-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.custom-table {
    margin-bottom: 0;
    background-color: #ffffff;
}

.custom-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 1.1rem 1.5rem;
    vertical-align: middle;
    color: #334155;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr {
    transition: background-color 0.2s ease;
}

.custom-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Details and Lists */
.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #e0e7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.meta-text h6 {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.meta-text p {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Success Card animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-card {
    border: none;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
    animation: fadeInUp 0.5s ease forwards;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

/* Validation Errors */
.text-danger {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}

/* ===== Photo Upload Area ===== */
.photo-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.25s ease;
    padding: 0.5rem;
    cursor: pointer;
}

.photo-upload-area:hover {
    border-color: #818cf8;
    background-color: #eef2ff;
}

/* ===== Payment Method Radio Buttons ===== */
.btn-check:checked + .btn-outline-secondary {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background-color: #f1f5f9;
    border-color: #818cf8;
    color: #4f46e5;
}

/* ===== Form Select ===== */
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: #ffffff;
    transition: all var(--transition-speed) ease;
}

.form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Fix input-group with select */
.input-group .form-select {
    border-radius: 0 10px 10px 0;
}

/* ===== FOOTER STYLES ===== */
.custom-footer {
    background: linear-gradient(180deg, #0d1117 0%, #0f172a 100%);
    color: #94a3b8;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
}

/* Footer Top */
.footer-top {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(155, 48, 200, 0.25));
}

.footer-logo-link:hover .footer-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 18px rgba(155, 48, 200, 0.4));
}

/* Footer Brand Name (beside logo) */
.footer-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 2px;
}

.footer-brand-main {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-sub {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.footer-brand-desc {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.8;
    margin: 0;
    max-width: 320px;
}

/* Footer Contact */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-contact-item:hover {
    color: #cbd5e1;
}

.footer-contact-icon {
    width: 32px;
    height: 32px;
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
}

.footer-contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #a78bfa;
}

/* Footer Widget */
.footer-widget {
    padding-top: 0.5rem;
}

.footer-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1.4rem;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #9b30c8);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-links li a i {
    font-size: 0.65rem;
    color: #4f46e5;
    transition: transform 0.2s ease;
}

.footer-links li a:hover {
    color: #a78bfa;
    padding-right: 4px;
}

.footer-links li a:hover i {
    transform: translateX(-3px);
    color: #a78bfa;
}

/* Footer About Text */
.footer-about-text {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.footer-about-text strong {
    color: #94a3b8;
    font-weight: 600;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #9b30c8);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.2rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copyright {
    color: #475569;
    font-size: 0.85rem;
}

.footer-copyright strong {
    color: #64748b;
    font-weight: 600;
}

.footer-made-with {
    color: #475569;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-heart {
    color: #f43f5e;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 0.85rem;
}

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

@media (max-width: 767px) {
    .footer-top {
        padding: 2.5rem 0 2rem;
    }
    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
    .footer-widget-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-links li a {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-brand-desc {
        max-width: 100%;
    }
    .footer-contact-item {
        justify-content: flex-start;
    }
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Override main-content padding for home page */
.main-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== HERO SECTION ===== */
.home-hero {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.min-vh-hero {
    min-height: 70vh;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4f46e5, transparent);
    top: -200px;
    right: -100px;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent);
    bottom: -150px;
    left: -100px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #0ea5e9, transparent);
    top: 50%;
    left: 40%;
    animation: floatShape 12s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.4);
    color: #a78bfa;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.45);
    color: #ffffff !important;
}

.btn-hero-outline {
    background: transparent;
    color: #cbd5e1 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-icon-main {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(124, 58, 237, 0.3));
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #a78bfa;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.3); }
    50% { box-shadow: 0 0 0 20px rgba(79, 70, 229, 0); }
}

.hero-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card.card-1 {
    top: 20px;
    right: 0;
    animation-delay: 0s;
}

.hero-float-card.card-2 {
    bottom: 60px;
    right: 20px;
    animation-delay: 1.5s;
}

.hero-float-card.card-3 {
    top: 50%;
    left: -20px;
    animation-delay: 0.8s;
}

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

/* ===== WHY CHOOSE US / STATS SECTION ===== */
.why-us-section {
    padding: 5rem 0;
    background: #ffffff;
    position: relative;
}

/* ===== WHY STAT CARDS ===== */
.why-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.why-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.why-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
    border-color: #c7d2fe;
}

.why-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.why-stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -1.5px;
}

.why-stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.why-stat-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== WHY FEATURE CARDS ===== */
.why-feature-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.why-feature-card:hover {
    background: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
    border-color: #c7d2fe;
}

.why-feature-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.why-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.why-feature-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    letter-spacing: -2px;
    font-family: 'Outfit', sans-serif;
}

.why-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

.why-feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.why-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.why-tag {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== COURSE CARDS ===== */
.course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.15);
    border-color: #c7d2fe;
}

/* Course card with image - fixed object-fit */
.course-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    width: 100%;
}

/* شريط الزاوية المائل - "قريباً" / "مجاني" */
.corner-ribbon {
    position: absolute;
    top: 14px;
    left: -38px;
    width: 150px;
    transform: rotate(-45deg);
    text-align: center;
    padding: 5px 0;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    z-index: 15;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.5px;
}

.corner-ribbon.ribbon-comingsoon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.corner-ribbon.ribbon-free {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.course-badge-over {
    position: absolute;
    bottom: 10px;
    right: 12px;
}

.course-card-header {
    padding: 1.8rem 1.5rem 1.2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.course-badge-active {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #15803d;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-card-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.course-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}

.course-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #475569;
}

.course-meta-item i {
    color: #4f46e5;
    font-size: 0.8rem;
    width: 14px;
    flex-shrink: 0;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.course-students {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.course-students i {
    color: #4f46e5;
}

.btn-enroll {
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    color: #ffffff !important;
}

/* View All Button */
.btn-view-all {
    background: transparent;
    color: #4f46e5 !important;
    border: 2px solid #4f46e5;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-view-all:hover {
    background: #4f46e5;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 2px dashed var(--border-color);
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #4f46e5;
    margin: 0 auto 1.5rem;
}

.empty-state h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 5rem 0;
    background: #ffffff;
}

.feature-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.35s ease;
    height: 100%;
}

.feature-card:hover {
    background: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
    border-color: #c7d2fe;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 auto 1.2rem;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.cta-wrapper {
    background: var(--primary-gradient);
    border-radius: 24px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.cta-bg-shape {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1rem;
    color: #c7d2fe;
    margin: 0;
    line-height: 1.7;
}

.btn-cta-primary {
    background: #ffffff;
    color: #4f46e5 !important;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: #4338ca !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .home-hero {
        padding: 3rem 0 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

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

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

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .cta-wrapper {
        padding: 2rem 1.5rem;
    }

    .cta-title {
        font-size: 1.4rem;
    }
}

/* ============================================================
   NEW HOME PAGE REDESIGN STYLES
   ============================================================ */

/* ===== HERO CAROUSEL SECTION ===== */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel-section .carousel,
.hero-carousel-section .carousel-inner,
.hero-carousel-section .carousel-item {
    height: 100%;
}

/* Hero Slide Base */
.hero-slide {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Slide 1: Dark (original) */
.hero-slide-dark {
    background: var(--dark-gradient);
}

/* Slide 2: In-Person */
.hero-slide-inperson {
    background: linear-gradient(135deg, #1a0a00 0%, #3d1a00 40%, #7c2d12 100%);
}

/* Slide 3: Online */
.hero-slide-online {
    background: linear-gradient(135deg, #0c1445 0%, #1e3a8a 40%, #1d4ed8 100%);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Carousel Controls */
.hero-carousel-btn {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.hero-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-50%) scale(1.08);
}

.hero-prev { right: auto; left: 1.5rem; }
.hero-next { left: auto; right: 1.5rem; }

.hero-carousel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 1rem;
}

/* Carousel Indicators */
.hero-indicators {
    bottom: 1.5rem !important;
}

.hero-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.4) !important;
    border: none !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.hero-indicators button.active {
    background: #ffffff !important;
    width: 28px !important;
    border-radius: 5px !important;
}

/* Hero Badge Variants */
.hero-badge-orange {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: #fdba74 !important;
}

.hero-badge-blue {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #93c5fd !important;
}

/* Hero Highlight Variants */
.hero-highlight-orange {
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight-blue {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Buttons Variants */
.btn-hero-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff !important;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.45);
    color: #ffffff !important;
}

.btn-hero-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff !important;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.45);
    color: #ffffff !important;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 3.5rem 0;
    background: #ffffff;
    position: relative;
    z-index: 2;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}

.service-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    background: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
    border-color: #c7d2fe;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

.service-desc {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.service-tag {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
    border-color: #c7d2fe;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 5rem 0;
    background: #ffffff;
}

.category-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cat-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 18px;
    z-index: 0;
}

.category-card:hover::after {
    opacity: 0.06;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
    border-image: var(--cat-gradient) 1;
}

.category-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--cat-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--cat-text);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon-wrap {
    background: var(--cat-gradient);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-info {
    position: relative;
    z-index: 1;
}

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

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cat-text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: var(--cat-light);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-link:hover {
    background: var(--cat-gradient);
    color: #ffffff;
    transform: translateX(-3px);
}

/* ===== COURSES FILTER TABS ===== */
.courses-filter-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.4rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    gap: 0.3rem;
}

.filter-tab:hover {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}

.filter-tab.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-count {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

.filter-tab.active .filter-count {
    background: #4f46e5;
    color: #ffffff;
}

/* ===== COURSES GROUP HEADER ===== */
.courses-group {
    margin-bottom: 3.5rem;
}

.courses-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.courses-group-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.inperson-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.online-badge {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.courses-group-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* ===== COURSE CARD TYPE BADGE ===== */
.course-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-inperson-card {
    background: rgba(251, 191, 36, 0.92);
    color: #78350f;
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.badge-online-card {
    background: rgba(59, 130, 246, 0.92);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

/* ===== COURSE CARD VARIANTS ===== */
.course-card {
    position: relative;
}

.course-card-inperson {
    border-top: 3px solid #f59e0b;
}

.course-card-inperson:hover {
    border-color: #f59e0b;
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.15);
}

.course-card-online {
    border-top: 3px solid #3b82f6;
}

.course-card-online:hover {
    border-color: #3b82f6;
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.15);
}

/* ===== COURSE CATEGORY TAG ===== */
.course-category-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    margin-top: 1rem;
}

/* ===== BOOK BUTTON (In-Person) ===== */
.btn-book {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    color: #ffffff !important;
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* ===== BUY BUTTON (Online) ===== */
.btn-buy {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff !important;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* ===== COURSE CARD BODY PADDING FIX ===== */
.course-card-body {
    padding: 1rem 1.5rem 1.5rem;
}

/* ===== ANIMATION ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION BADGE VARIANTS ===== */
.section-badge-orange {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.section-badge-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ===== COURSES SECTION VARIANTS ===== */
.courses-section-inperson {
    background: #fffbf0;
    border-top: 3px solid #f59e0b;
}

.courses-section-online {
    background: #f0f7ff;
    border-top: 3px solid #3b82f6;
}

/* ===== SHOW MORE BUTTON ===== */
.btn-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 2px solid;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    background: transparent;
}

.btn-show-more-inperson {
    color: #d97706;
    border-color: #f59e0b;
}

.btn-show-more-inperson:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.btn-show-more-online {
    color: #2563eb;
    border-color: #3b82f6;
}

.btn-show-more-online:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-show-more.btn-show-less {
    opacity: 0.8;
}

.more-count {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 600;
}

/* ===== EXTRA COURSES GRID ===== */
.extra-courses-inperson,
.extra-courses-online {
    margin-top: 1.5rem !important;
}

/* ===== CATEGORY CARDS (NEW DESIGN) ===== */
.cat-card-link {
    display: block;
    height: 100%;
}

.cat-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.cat-card-bg {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: var(--cat-g);
    border-radius: 50%;
    opacity: 0.06;
    transition: all 0.4s ease;
    pointer-events: none;
}

.cat-card:hover .cat-card-bg {
    opacity: 0.12;
    transform: scale(1.4);
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--cat-s, rgba(79,70,229,0.2));
    border-color: var(--cat-t);
}

.cat-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: var(--cat-l);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--cat-t);
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.cat-card:hover .cat-card-icon {
    background: var(--cat-g);
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px var(--cat-s, rgba(0,0,0,0.15));
}

.cat-card-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cat-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.2rem;
    letter-spacing: -0.3px;
}

.cat-card-en {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cat-card-count {
    display: inline-flex;
    align-items: center;
    background: var(--cat-l);
    color: var(--cat-t);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.cat-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.9rem;
    background: var(--cat-l);
    color: var(--cat-t);
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cat-card:hover .cat-card-btn {
    background: var(--cat-g);
    color: #ffffff;
    padding-right: 1.1rem;
}

.cat-card-btn i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.cat-card:hover .cat-card-btn i {
    transform: translateX(-4px);
}

/* ===== RESPONSIVE - NEW STYLES ===== */
@media (max-width: 991px) {
    .hero-slide {
        min-height: 70vh;
        padding: 4rem 0 3rem;
    }

    .courses-filter-tabs {
        width: 100%;
    }

    .filter-tab {
        font-size: 0.82rem;
        padding: 0.55rem 1rem;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: 60vh;
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-outline,
    .btn-hero-orange,
    .btn-hero-blue {
        width: 100%;
        justify-content: center;
    }

    .services-section {
        padding: 2.5rem 0;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .categories-section {
        padding: 3rem 0;
    }

    .category-card {
        padding: 1.2rem 1rem;
    }

    .category-icon-wrap {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .courses-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .courses-filter-tabs {
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .filter-tab {
        font-size: 0.78rem;
        padding: 0.5rem 0.8rem;
    }

    .hero-prev { left: 0.5rem; }
    .hero-next { right: 0.5rem; }

    .hero-carousel-btn {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 1.9rem;
    }
}
/* ══════════════════════════════════════════
   اصلاح تداخل القائمة الجانبية مع الشريط العلوي
   ══════════════════════════════════════════ */
.offcanvas.account-sidebar {
    z-index: 1060 !important; /* رفع القائمة فوق الـ header الذي يمتلك 1050 */
}

.offcanvas-backdrop {
    z-index: 1055 !important; /* رفع التعتيم الخلفي ليكون تحت القائمة وفوق الشريط العلوي */
}
html {
    scroll-behavior: smooth !important;
}
