/** Project: LERNIING Platform | Author: Oualid Hamdi | Year: 2025 | All Rights Reserved. */
.lrn-protected-signature {
    content: "Property of Oualid Hamdi - Lerniing 2025";
    display: none !important
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --dark-color: #1f2937;
    --text-color: #4b5563;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --font-family: 'Cairo', 'Amiri', 'Outfit', system-ui, -apple-system, sans-serif;
}

/* Base font without !important to allow selective overrides */
body {
    font-family: var(--font-family);
}

/* Specific Arabic Font Overrides - Excluding FA classes */
:lang(ar) body,
:lang(ar) :not(.fas):not(.far):not(.fab):not(.fa):not([class*="fa-"]) {
    font-family: 'Cairo', 'Amiri', sans-serif !important;
}

/* ROBUST ICON FIX: Force FontAwesome font-family for all FA classes */
.fas,
.far,
.fab,
.fa,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-weight: 900 !important;
    /* Ensure solid icons display correctly */
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

.far {
    font-weight: 400 !important;
}

.fab {
    font-weight: 400 !important;
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.5
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.flex {
    display: flex
}

.justify-between {
    justify-content: space-between
}

.items-center {
    align-items: center
}

.gap-10 {
    gap: 10px
}

.gap-20 {
    gap: 20px
}

.text-center {
    text-align: center
}



.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 14px
}

.btn-primary {
    background-color: var(--primary-color);
    color: white
}

.btn-primary:hover {
    background-color: var(--primary-hover)
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color)
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white
}

.btn-danger {
    background-color: var(--danger-color);
    color: white
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px
}

.btn-outline-sm {
    padding: 8px 16px;
    border: 1px solid var(--dark-color);
    color: var(--dark-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500
}

.btn-outline-sm:hover {
    background: var(--dark-color);
    color: white
}

.btn-primary-sm {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500
}

.btn-primary-sm:hover {
    background: var(--primary-hover)
}

/* Navbar */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px
}

.logo span {
    color: var(--primary-color)
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative
}

.header-search input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--light-bg);
    font-size: 14px;
    transition: all 0.2s
}

.header-search input:focus {
    background: white;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1)
}

.header-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer
}

.header-search button:hover {
    color: var(--primary-color)
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 15px
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color)
}

.nav-icon-link {
    position: relative;
    color: var(--dark-color);
    font-size: 20px
}

.nav-icon-link:hover {
    color: var(--primary-color)
}

.nav-icon-link .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white
}

.user-dropdown-wrapper {
    position: relative
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: var(--primary-color)
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 240px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: none;
    overflow: hidden;
    animation: slideDown 0.2s ease
}

.dropdown-menu.show {
    display: block
}

.dropdown-header {
    padding: 15px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color)
}

.dropdown-header strong {
    display: block;
    color: var(--dark-color)
}

.dropdown-header span {
    font-size: 12px;
    color: #6b7280
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 14px;
    transition: background 0.2s
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: var(--primary-color)
}

.dropdown-divider {
    border-top: 1px solid var(--border-color)
}

.text-danger {
    color: var(--danger-color) !important
}

.text-danger:hover {
    background: #fef2f2 !important
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Homepage Video Cover */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-bottom: 40px
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6)
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 0.8s ease
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3)
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s
}

.play-btn i {
    font-size: 30px;
    color: white;
    margin-left: 5px
}

.play-btn:hover {
    transform: scale(1.1);
    background: white
}

.play-btn:hover i {
    color: var(--primary-color)
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px
}

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg)
}

.course-thumb {
    height: 200px;
    overflow: hidden;
    position: relative
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s
}

.course-card:hover .course-thumb img {
    transform: scale(1.05)
}

.course-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.course-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px
}

.course-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px
}

.course-price {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 18px
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px
}

.tab-btn {
    padding: 15px 25px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s
}

.tab-btn:hover {
    color: var(--primary-color)
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color)
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease
}

.tab-content.active {
    display: block
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-search {
        display: none
    }

    .hero-title {
        font-size: 36px
    }

    .header-container {
        padding: 0 15px
    }
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.text-center {
    text-align: center;
}



.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-outline-sm {
    padding: 8px 16px;
    border: 1px solid var(--dark-color);
    color: var(--dark-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}

.btn-outline-sm:hover {
    background: var(--dark-color);
    color: white;
}

.btn-primary-sm {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}

.btn-primary-sm:hover {
    background: var(--primary-hover);
}

/* Navbar */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--light-bg);
    font-size: 14px;
    transition: all 0.2s;
}

.header-search input:focus {
    background: white;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.header-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.header-search button:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-icon-link {
    position: relative;
    color: var(--dark-color);
    font-size: 20px;
}

.nav-icon-link:hover {
    color: var(--primary-color);
}

.nav-icon-link .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

.user-dropdown-wrapper {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 240px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: none;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    padding: 15px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header strong {
    display: block;
    color: var(--dark-color);
}

.dropdown-header span {
    font-size: 12px;
    color: #6b7280;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.dropdown-divider {
    border-top: 1px solid var(--border-color);
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-danger:hover {
    background: #fef2f2 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage Video Cover */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.play-btn i {
    font-size: 30px;
    color: white;
    margin-left: 5px;
}

.play-btn:hover {
    transform: scale(1.1);
    background: white;
}

.play-btn:hover i {
    color: var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-thumb img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.course-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

.course-price {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 18px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    /* Hide search on mobile for now or move it */
    .hero-title {
        font-size: 36px;
    }

    .header-container {
        padding: 0 15px;
    }
}

/* Global Layout Fixes - Enforcing consistency across all pages */
.h-\[65px\] {
    height: 65px !important;
}

.pt-\[65px\] {
    padding-top: 13px !important;
}

.top-\[65px\] {
    top: 65px !important;
}

.z-\[1001\] {
    z-index: 1001 !important;
}

header.fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
}