/* ============================================
   ENSPY TRAINING - Official Design System
   Ref: ENSPY / Polytech Yaoundé
   ============================================ */

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

:root {
    /* --- ENSPY Palette --- */
    --primary: #FF6B00;
    --primary-dark: #EA580C;
    --primary-light: #FF9D5C;
    --primary-glow: rgba(255, 107, 0, 0.4);

    /* --- Theme Colors (Light Mode) --- */
    --bg-dark: #FFFFFF;
    /* Main background white */
    --bg-card: #F7F9FA;
    /* Light grey for cards/sections */
    --bg-glass: rgba(255, 255, 255, 0.9);

    --text-main: #0F1419;
    /* Dark text */
    --text-muted: #536471;
    /* Muted grey */
    --text-dim: #8B98A5;

    /* --- Semantic --- */
    --success: #00BA7C;
    --error: #F4212E;
    --border: #EFF3F4;
    /* Light border */

    /* --- Spacing & Radius --- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --container-max: 1280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    height: 80px;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand img {
    height: 48px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.brand-highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-login {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid white;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    margin-left: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-hero-secondary i {
    font-size: 1.2rem;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-admin:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 0, 0.05);
}

.btn-admin::before {
    content: '\f013';
    /* FontAwesome gear icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Hero Carousel */
.hero-carousel {
    height: 650px;
    position: relative;
    overflow: hidden;
    /* Remove margin-top to let image flow behind header */
}

.carousel-inner {
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for fixed header */
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.4) 50%, rgba(15, 20, 25, 0) 100%);
}

.carousel-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.carousel-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.carousel-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: var(--radius-full);
}

/* Main Content Layout */
.main-content {
    padding: 4rem 0;
    min-height: 80vh;
}

.layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar Styling */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.filter-group:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.filter-group h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vertical Categories */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    /* No border by default */
    border-left: 3px solid transparent;
    /* Prepare for accent */
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    /* Flat left side */
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 1.25rem;
    /* Slide effect */
}

.cat-btn.active {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.1) 0%, transparent 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.cat-btn i {
    width: 20px;
    text-align: center;
    color: var(--text-dim);
    transition: var(--transition);
}

.cat-btn.active i {
    color: var(--primary);
}

/* Modified Inputs for Sidebar */
.search-box {
    width: 100%;
    margin-left: 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.85rem 1.5rem;
    padding-left: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    /* Consistent radius */
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter on focus */
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    transition: var(--transition);
}

.search-box:focus-within .search-icon {
    color: var(--primary);
}

/* Checkbox Styling */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    user-select: none;
}

.checkbox-item:hover {
    color: var(--text-main);
}

.filter-checkbox {
    display: none;
    /* Hide default checkbox */
}

.custom-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.custom-check::after {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.filter-checkbox:checked+.custom-check {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-checkbox:checked+.custom-check::after {
    opacity: 1;
    transform: scale(1);
}

.label-text {
    line-height: 1;
}

.filter-section {
    margin-bottom: 0.5rem;
}

/* Removed search-group overrides to keep consistency */

/* Courses Area */
.courses-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-dim);
}

.grid-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Course Cards */
.courses-section {
    padding: 4rem 0;
}


.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    /* For stretched link */
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 0.875rem;
    color: #4B5563;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

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

.card-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inst-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

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

.btn-detail {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Loading Overlay */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .brand-name {
    color: #fff;
}

.footer-text {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-title {
        font-size: 3rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .filter-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
        margin-left: 0;
        grid-column: 1 / -1;
        /* Search bar takes full width below selects */
    }

    .filter-select {
        width: 100%;
        min-width: 0;
    }

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

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .filter-group.search-group {
        position: sticky;
        top: 80px;
        background: var(--bg-dark);
        z-index: 50;
        margin: 0 -1rem;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .carousel-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .carousel-title {
        font-size: 2.25rem;
    }

    .carousel-content .btn-login,
    .carousel-content .btn-hero-secondary {
        display: block;
        width: fit-content;
        margin-left: 0;
        margin-bottom: 1rem;
    }
}

/* Landing Page Specifics */
.info-section {
    padding: 4rem 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.info-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-card:hover {
    background: var(--bg-card);
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.trending-section {
    padding: 5rem 0;
    background: var(--bg-card);
    /* Slight contrast */
}

/* Adjustments for Light Theme Inputs */
.search-input {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.search-input:focus {
    background: white;
}

/* Spacing logic for pages without carousel */
body:not(:has(.hero-carousel)) .main-content {
    margin-top: 100px;
    /* Offset for fixed navbar */
}

/* --- Course Details Page --- */
.course-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    margin-top: 80px;
    /* Below navbar */
}

.hero-tag {
    background: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-bottom: 2rem;
}

.btn-preview {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-preview:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-preview i {
    font-size: 0.9em;
}

.course-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.course-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.course-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.syllabus-list {
    list-style: none;
}

.syllabus-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.syllabus-list li i {
    color: var(--success);
}

.instructor-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.inst-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.inst-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Sticky Sidebar */
.course-sidebar {
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 100px;
    /* Offset for navbar */
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.enroll-meta {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-enroll {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.btn-enroll:hover {
    background: var(--primary-dark);
}

.course-meta-list .meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.meta-item i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .course-layout {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        order: -1;
        /* Sidebar first on mobile */
    }

    .sticky-card {
        position: static;
    }
}

/* Stretched Link Strategy */
.btn-detail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

/* --- Modal Styling --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* --- Message Modal (Success/Error) --- */
.message-modal-content {
    text-align: center;
    max-width: 380px;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.msg-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

.msg-icon.success {
    color: #10B981;
    background: #D1FAE5;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    font-size: 2.5rem;
}

.msg-icon.error {
    color: #DC2626;
    background: #FEE2E2;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    font-size: 2.5rem;
}

.msg-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #111827;
    font-weight: 700;
}

.msg-text {
    color: #6B7280;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn-msg {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.btn-msg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
}

/* --- Registration Modal Specifics --- */
.modal-lg {
    max-width: 500px;
}

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

/* --- Login Page --- */
.auth-body {
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid var(--border);
}

.auth-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* --- Video Section --- */
.video-container {
    width: 100%;
    margin-top: 1.5rem;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius-lg);
    line-height: 0;
}

video:focus {
    outline: none;
}

/* ── Student Navbar Area ─────────────────────────────────── */
#navStudentArea {
    display: flex;
    align-items: center;
}

.btn-student-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-student-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-student-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-student-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
}

.nav-student-name i {
    color: var(--primary);
    font-size: 1.1rem;
}

.nav-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-btn-logout:hover {
    border-color: #EF4444;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

/* On transparent navbars (actualites, etc.) */
.navbar-transparent .nav-student-name {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-transparent .nav-btn-logout {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.navbar-transparent .nav-btn-logout:hover {
    border-color: #ff8080;
    color: #ff8080;
    background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .nav-student-name span:last-child {
        display: none;
    }
    .btn-student-login span {
        display: none;
    }
    .btn-student-login {
        padding: 0.55rem 0.9rem;
    }
}