/* ==========================================================================
   Path Academy - World-Class Professional EdTech Design System 2026
   Inspired by Coursera, Maven, Stripe, Udemy, Frontend Masters
   ========================================================================== */

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

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Brand Primary (Deep Royal Indigo) */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --primary-50: #EEF2FF;
    --primary-100: #E0E7FF;
    --primary-rgb: 79, 70, 229;

    /* Secondary Accent (Electric Sky / Teal) */
    --secondary: #0284C7;
    --secondary-50: #F0F9FF;
    --accent: #7C3AED;
    --accent-50: #F5F3FF;

    /* Neutrals & Slate */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;

    /* Canvas / Surfaces */
    --bg-page: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-canvas: #F8FAFC;
    --bg-muted: #F1F5F9;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Semantic Status */
    --emerald-500: #10B981;
    --emerald-600: #059669;
    --emerald-50: #ECFDF5;
    
    --amber-500: #F59E0B;
    --amber-600: #D97706;
    --amber-50: #FFFBEB;

    --rose-500: #F43F5E;
    --rose-600: #E11D48;
    --rose-50: #FFF1F2;

    /* Borders */
    --border-subtle: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-focus: rgba(79, 70, 229, 0.4);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-primary: 0 8px 20px -4px rgba(79, 70, 229, 0.35);

    /* Layout & Dimensions */
    --container-max: 1240px;
    --nav-height: 76px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.2px;
}

/* Search Bar in Nav */
.nav-search {
    flex: 1;
    max-width: 320px;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    background: var(--slate-100);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.nav-search input::placeholder {
    color: var(--text-light);
}

.nav-search input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 0.95rem;
    pointer-events: none;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-600);
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}

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

/* Nav CTA */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: var(--primary);
    color: #FFFFFF !important;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    transition: all 0.2s ease;
}

.nav-action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -4px rgba(var(--primary-rgb), 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* ==========================================================================
   Hero Section (EdTech World-Class Hero)
   ========================================================================== */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 70px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 60%, #F1F5F9 100%);
    overflow: hidden;
}

.hero-glow-bg {
    position: absolute;
    top: -150px;
    right: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.07) 0%, rgba(2, 132, 199, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

/* Hero Content */
.hero-text {
    max-width: 640px;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-pill);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--slate-900);
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 50%, #0284C7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--slate-600);
    line-height: 1.85;
    margin-bottom: 2rem;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    background: var(--primary);
    color: #FFFFFF !important;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px -4px rgba(var(--primary-rgb), 0.4);
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(var(--primary-rgb), 0.5);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #FFFFFF;
    color: var(--slate-700);
    border: 1px solid var(--border-subtle);
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-900);
    transform: translateY(-2px);
}

/* Trust Strip / Social Proof */
.hero-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.trust-stat-item {
    display: flex;
    flex-direction: column;
}

.trust-stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.1;
    margin-bottom: 4px;
}

.trust-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
}

/* Hero Visual: Interactive Mockup Card */
.hero-visual-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--emerald-50);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--emerald-600);
}

.hero-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--slate-800);
}

.hero-preview-body h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.hero-preview-body p {
    font-size: 0.92rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-700);
}

.hero-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--emerald-50);
    color: var(--emerald-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
}

.hero-floating-chip {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

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

.chip-text-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--slate-900);
}

.chip-text-sub {
    font-size: 0.75rem;
    color: var(--slate-500);
}

/* ==========================================================================
   Section Common Headers
   ========================================================================= */
.section-header-block {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-tag-pill {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-50);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.85rem;
}

.section-main-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
}

.section-main-subtitle {
    font-size: 1.08rem;
    color: var(--slate-600);
    line-height: 1.8;
}

/* ==========================================================================
   Mission / Bento Value Proposition ("كيف نساعدك؟")
   ========================================================================== */
.mission-section {
    padding: 90px 0;
    background: var(--slate-50);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.bento-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.bento-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-card-hover);
}

.bento-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.bento-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.85rem;
}

.bento-card-desc {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.8;
}

/* ==========================================================================
   Courses & Educational Products Grid
   ========================================================================== */
.courses-section {
    padding: 100px 0;
    background: #FFFFFF;
}

/* Layer 1: Filter Segmented Control */
.filter-segmented-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.filter-tab-pill-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: var(--slate-100);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: var(--slate-700);
    font-size: 0.96rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.filter-type-pill:hover {
    background: var(--slate-200);
    color: var(--slate-900);
}

.filter-type-pill.active {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.category-count-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    background: var(--slate-900);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.filter-type-pill.active + .category-count-badge {
    background: var(--slate-900);
    border-color: #FFFFFF;
}

/* Layer 2: Status Sub-Filter */
.filter-status-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-status-pill {
    padding: 7px 18px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--slate-600);
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-status-pill:hover {
    background: var(--slate-50);
    color: var(--slate-900);
}

.filter-status-pill.active {
    background: var(--primary-50);
    border-color: var(--primary-100);
    color: var(--primary);
    font-weight: 700;
}

/* Course Cards Grid */
.courses-grid-layout,
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.course-card-pro,
.course-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
    position: relative;
}

.course-card-pro:hover,
.course-card:hover {
    background: #FFFFFF !important;
    transform: translateY(-6px);
    border-color: var(--primary-light) !important;
    box-shadow: var(--shadow-card-hover);
}

/* Card Header Strip */
.card-header-strip {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.badge-kind {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
}

.badge-kind.course { background: var(--primary-50); color: var(--primary); }
.badge-kind.bootcamp { background: var(--amber-50); color: var(--amber-600); }
.badge-kind.event { background: var(--rose-50); color: var(--rose-600); }

.badge-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
}

.badge-status-chip.live-current { background: var(--emerald-50); color: var(--emerald-600); }
.badge-status-chip.live-upcoming { background: var(--amber-50); color: var(--amber-600); }
.badge-status-chip.recorded-current { background: var(--secondary-50); color: var(--secondary); }
.badge-status-chip.recorded-upcoming { background: var(--slate-100); color: var(--slate-600); }

/* Card Body */
.card-body-content {
    padding: 0 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-icon-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.85rem;
}

.card-squircle-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.card-course-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.4;
}

.card-course-title a:hover {
    color: var(--primary);
}

.card-description-text {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta Tags */
.card-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.meta-chip-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--slate-100);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-700);
}

/* Card Footer Strip */
.card-footer-strip {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--slate-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-price-block {
    display: flex;
    flex-direction: column;
}

.price-current-val {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.1;
}

.price-old-val {
    font-size: 0.85rem;
    color: var(--slate-400);
    text-decoration: line-through;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary);
    color: #FFFFFF !important;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-card-action:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-card-action.disabled {
    background: var(--slate-200);
    color: var(--slate-500) !important;
    cursor: default;
    box-shadow: none;
}

/* Empty State */
.courses-empty-box {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--slate-50);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-xl);
    max-width: 600px;
    margin: 2rem auto;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.empty-desc {
    font-size: 0.95rem;
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Mentorship & Career Advising ("احجز استشارة مجانية")
   ========================================================================== */
.mentorship-section {
    padding: 100px 0;
    background: var(--slate-50);
    border-top: 1px solid var(--border-subtle);
}

.mentorship-card-wrap {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mentorship-left h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.mentorship-left p {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.mentorship-benefit-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.benefit-icon-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 2px;
}

.benefit-desc {
    font-size: 0.88rem;
    color: var(--slate-500);
}

/* Mentorship Form */
.mentorship-form-box {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--slate-700);
}

.form-field-input, .form-field-select, .form-field-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--slate-900);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-field-input:focus, .form-field-select:focus, .form-field-textarea:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-field-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
}

.btn-form-submit {
    padding: 15px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    transition: all 0.25s ease;
    text-align: center;
    margin-top: 0.5rem;
}

.btn-form-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   CTA Banner (Sleek Indigo Gradient Banner)
   ========================================================================== */
.cta-banner-section {
    padding: 90px 0;
    background: #FFFFFF;
}

.cta-banner-box {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 50%, #312E81 100%);
    border-radius: var(--radius-xl);
    padding: 4.5rem 3rem;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-banner-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.cta-banner-box p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #FFFFFF;
    color: var(--primary) !important;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.btn-cta-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-pro {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 80px 0 35px;
    border-top: 1px solid var(--slate-800);
}

.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-col-brand h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-col-brand p {
    font-size: 0.95rem;
    color: var(--slate-400);
    line-height: 1.8;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list li a {
    font-size: 0.92rem;
    color: var(--slate-400);
    transition: color 0.2s ease;
}

.footer-links-list li a:hover {
    color: #FFFFFF;
}

.footer-bottom-strip {
    padding-top: 2rem;
    border-top: 1px solid var(--slate-800);
    text-align: center;
    font-size: 0.88rem;
    color: var(--slate-500);
}

/* ==========================================================================
   Course Profile Page (Coursera/Udemy/Maven Layout)
   ========================================================================== */
.course-profile-pro-page {
    background: #FFFFFF;
    min-height: 100vh;
}

/* Sticky Smart Top Bar */
.course-profile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1050; /* Float above the navbar (z-index 1000) */
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-profile-top-bar.visible {
    transform: translateY(0);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.top-bar-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    transition: all 0.2s ease;
}

.back-circle-btn:hover {
    background: var(--slate-200);
    color: var(--slate-900);
}

.top-bar-course-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-800);
}

.top-bar-right-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Course Hero Area */
.course-hero-pro {
    padding: calc(var(--nav-height) + 30px) 0 60px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.course-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
    align-items: start;
}

/* Breadcrumb */
.course-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--slate-500);
    margin-bottom: 1.25rem;
}

.course-breadcrumb-nav a:hover {
    color: var(--primary);
}

.badge-row-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.course-hero-h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.course-hero-desc {
    font-size: 1.08rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

/* Quick Stats Bar */
.course-stats-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--slate-700);
    box-shadow: var(--shadow-xs);
}

/* Instructor Pill */
.instructor-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
}

.instructor-avatar-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.instructor-name-txt {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--slate-900);
}

.instructor-role-txt {
    font-size: 0.78rem;
    color: var(--slate-500);
}

/* Sticky Price Card (Sidebar) */
.price-card-sticky-wrapper {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.price-card-box {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.price-main-display {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.price-display-num {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1;
}

.price-currency-unit {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-500);
}

.price-strike-val {
    font-size: 1.05rem;
    color: var(--slate-400);
    text-decoration: line-through;
    margin-top: 6px;
}

.deadline-warning-pill {
    background: var(--amber-50);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--amber-600);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.25rem;
}

.btn-enroll-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    transition: all 0.25s ease;
    margin-bottom: 1.5rem;
}

.btn-enroll-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(var(--primary-rgb), 0.45);
}

.sidebar-features-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-700);
}

.sidebar-check-item span:first-child {
    color: var(--emerald-600);
    font-weight: 900;
}

/* Course Nav Tabs (Sticky) */
.course-tabs-sticky-nav {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

.course-tabs-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 14px 0;
}

.course-tab-link {
    padding: 8px 18px;
    color: var(--slate-600);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.course-tab-link:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.course-tab-link.active {
    background: var(--primary-50);
    color: var(--primary);
}

/* Course Main Content Blocks */
.course-main-content-layout {
    padding: 60px 0 100px;
}

.course-block-section {
    margin-bottom: 60px;
    scroll-margin-top: 90px;
}

.block-title-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.block-title-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
}

/* What You Learn 2-Col Grid */
.what-learn-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.outcome-card-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--slate-800);
    font-weight: 600;
}

.outcome-card-item .check-mark {
    color: var(--emerald-600);
    font-weight: 900;
    font-size: 1.1rem;
}

/* Curriculum Accordion Pro */
.curriculum-accordion-box {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #FFFFFF;
}

.curriculum-module-item {
    border-bottom: 1px solid var(--border-subtle);
}

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

.module-header-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #FFFFFF;
    transition: background-color 0.2s ease;
}

.module-header-toggle:hover {
    background: var(--slate-50);
}

.module-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.module-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.module-title-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
}

.module-collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.curriculum-module-item.active .module-collapse-body {
    max-height: 800px;
}

.module-content-inner {
    padding: 22px;
    background: var(--slate-50);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.95rem;
    color: var(--slate-700);
    line-height: 1.8;
}

/* Instructor Big Profile */
.instructor-full-card {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.instructor-big-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.instructor-big-details h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.instructor-big-details .spec-line {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.instructor-big-details .bio-line {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.8;
}

/* Requirements & Audience Lists */
.clean-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.clean-check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-700);
}

.clean-check-list li .bullet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ==========================================================================
   Modals (Subscription & Contact Fixed Overlays)
   ========================================================================== */
.sub-modal-overlay,
.modal-overlay,
.modal-backdrop-pro {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    padding: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sub-modal-overlay.active,
.modal-overlay.active,
.modal-backdrop-pro.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sub-modal,
.modal,
.modal-dialog-pro {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    margin: auto;
    border: 1px solid var(--border-subtle);
    animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000000;
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close Button */
.sub-modal-close,
.modal-close-round,
.close-modal-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.sub-modal-close:hover,
.modal-close-round:hover,
.close-modal-btn:hover {
    background: var(--rose-50);
    color: var(--rose-600);
    border-color: rgba(244, 63, 94, 0.2);
    transform: rotate(90deg);
}

/* Modal Hero Header (Subscription) */
.sub-product-hero {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    padding: 2.25rem 2rem 2rem;
    color: #FFFFFF;
    text-align: center;
    position: relative;
}

.sub-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sub-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
}

.sub-product-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.sub-product-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}

.sub-price-value {
    font-size: 1.6rem;
    font-weight: 900;
}

.sub-price-currency {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Modal Content & Body */
.sub-modal-content {
    padding: 2rem;
    background: #FFFFFF;
}

.sub-account-info {
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 1.5rem;
}

.sub-account-header {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate-500);
    margin-bottom: 4px;
}

.sub-account-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-account-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--slate-900);
}

.sub-account-username {
    font-size: 0.85rem;
    color: var(--slate-500);
}

.sub-form-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sub-input-group {
    position: relative;
}

.sub-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--slate-900);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.sub-input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.sub-form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sub-btn-primary, .sub-btn-submit {
    flex: 1;
    background: var(--primary);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-primary);
}

.sub-btn-primary:hover, .sub-btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.sub-btn-secondary {
    flex: 1;
    background: var(--slate-100);
    color: var(--slate-700) !important;
}

.sub-btn-secondary:hover {
    background: var(--slate-200);
    color: var(--slate-900) !important;
}

.sub-btn-ghost {
    background: transparent;
    color: var(--slate-500);
}

.sub-btn-ghost:hover {
    color: var(--slate-800);
    background: var(--slate-100);
}

/* Modal States */
.sub-state {
    text-align: center;
}

.sub-state-visual {
    margin-bottom: 1.25rem;
}

.sub-lock-icon, .sub-success-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
}

.sub-success-circle {
    background: var(--emerald-50);
    color: var(--emerald-600);
    font-size: 2rem;
    font-weight: 900;
}

.sub-state-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.sub-state-desc {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.sub-auth-buttons {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-trust-strip {
        justify-content: center;
    }

    .hero-floating-chip {
        display: none;
    }

    .bento-grid-3 {
        grid-template-columns: 1fr;
    }

    .mentorship-card-wrap {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.75rem;
    }

    .course-hero-grid {
        grid-template-columns: 1fr;
    }

    .price-card-sticky-wrapper {
        position: static;
    }

    .what-learn-grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }

    .nav-search {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - var(--nav-height));
        background: #FFFFFF;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-xl);
    }

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

    .hamburger {
        display: flex;
    }

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

    .courses-grid-layout {
        grid-template-columns: 1fr;
    }

    .instructor-full-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid-4 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Course Profile Mobile Sticky Bar & Hero CTA */
    .course-profile-top-bar {
        height: auto;
        min-height: 56px;
        padding: 6px 0;
        z-index: 1050;
    }

    .top-bar-inner {
        gap: 8px;
    }

    .top-bar-course-title {
        display: none;
    }

    .top-bar-left-group {
        gap: 6px;
    }

    .top-bar-right-cta {
        gap: 8px;
        flex: 1;
        justify-content: flex-end;
    }

    .top-bar-right-cta .btn-card-action {
        padding: 8px 14px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    .top-bar-right-cta span {
        font-size: 1.05rem !important;
    }

    .course-hero-pro {
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 30px;
    }

    .price-card-sticky-wrapper {
        position: static;
        margin-top: 1.5rem;
    }
}

/* ==========================================================================
   Authentication Pages (Login & Registration Light Theme)
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.05) 0%, transparent 60%), #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Cairo', sans-serif;
}

.auth-shell {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.auth-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 1.25rem;
    object-fit: contain;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.auth-notice {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-notice-error {
    background: var(--rose-50);
    color: var(--rose-600);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.auth-notice-success {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.auth-notice-warning {
    background: var(--amber-50);
    color: var(--amber-600);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.auth-notice-info {
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid var(--primary-100);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.auth-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.auth-input,
.auth-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--slate-900);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.auth-input:focus,
.auth-select:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.auth-input.error,
.auth-select.error {
    border-color: var(--rose-500);
    background: var(--rose-50);
}

.auth-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
}

.auth-help {
    font-size: 0.78rem;
    color: var(--slate-500);
    margin-top: 4px;
}

.auth-actions {
    margin-top: 0.75rem;
}

.btn-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #FFFFFF !important;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-auth-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -4px rgba(var(--primary-rgb), 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: var(--slate-600);
}

.auth-links a {
    color: var(--primary);
    font-weight: 700;
    margin-right: 4px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-back {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
}

.auth-back a {
    color: var(--slate-500);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-back a:hover {
    color: var(--slate-800);
}

/* Status & Role Radio / Pill Selectors */
.status-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0.5rem;
}

.status-pill-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--slate-50);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-700);
    transition: all 0.2s ease;
    text-align: center;
}

.status-pill-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.status-pill-label:hover {
    background: var(--slate-100);
    border-color: var(--slate-300);
}

.status-pill-label.active,
.status-pill-label:has(input:checked) {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.dependent-field-box {
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
