@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

/* English Font Override */
body {
    font-family: 'Cairo', sans-serif;
}
h1, h2, h3, h4, h5, h6, p, span, a {
    font-family: 'Cairo', sans-serif;
}

/* Premium Yanfaa Colors */
:root {
    --yanfaa-primary: #063a31; /* Deep elegant purple/blue */
    --yanfaa-secondary: #ffd25d; /* Golden yellow */
    --yanfaa-accent: #2ab870; /* Green for progress/success */
    --yanfaa-bg: #f8f9fa;
    --yanfaa-dark-bg: #0b0826;
    --yanfaa-card-bg: #ffffff;
    --yanfaa-text: #333333;
    --yanfaa-light-text: #888888;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 20px;
}

/* --- Learning Paths Home Section --- */
.yanfaa-path-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--yanfaa-bg) 0%, #eef2f5 100%);
    overflow: hidden;
}

.yanfaa-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--yanfaa-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.yanfaa-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--yanfaa-secondary);
    border-radius: 2px;
}

.yanfaa-path-card {
    background: var(--yanfaa-card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}
.yanfaa-path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #063a31 0%, #063a31 101%);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s ease;
}
.yanfaa-path-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(21, 16, 74, 0.15);
}
.yanfaa-path-card:hover::before {
    transform: scaleY(1);
}
.yanfaa-path-card:hover h3, .yanfaa-path-card:hover p, .yanfaa-path-card:hover .courses-count {
    color: #fff;
}
.yanfaa-path-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background:rgb(6 58 49 / 21%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    color: #063a31;
    transition: all 0.4s ease;
}
.yanfaa-path-card:hover .yanfaa-path-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}
.yanfaa-path-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yanfaa-primary);
    margin-bottom: 10px;
    transition: color 0.4s ease;
}
.yanfaa-path-card p {
    color: var(--yanfaa-light-text);
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}
.courses-count {
    display: inline-block;
    padding: 5px 15px;
    background: #f1f1f1;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--yanfaa-primary);
    transition: all 0.4s ease;
}
.yanfaa-path-card:hover .courses-count {
    background: rgba(255,255,255,0.2);
}

/* --- Paths Detail Page --- */
.path-hero {
    padding: 120px 0 80px;
    background: #063a31;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.path-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240,201,50,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}
.timeline-container {
    position: relative;
    padding: 50px 0;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50px;
    width: 4px;
    background: #eef2f5;
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-right: 100px;
}
.timeline-icon {
    position: absolute;
    right: 25px;
    top: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--yanfaa-secondary);
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yanfaa-primary);
    font-size: 20px;
    z-index: 2;
}
.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.course-mini-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-top: 15px;
    transition: all 0.3s;
}
.course-mini-card:hover {
    border-color: var(--yanfaa-secondary);
    background: #fafafa;
}
.course-mini-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 15px;
}

/* --- Video Page Layout --- */
.yanfaa-video-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: var(--yanfaa-bg);
    min-height: 100vh;
}
.video-main-area {
    flex: 1;
    min-width: 60%;
    padding: 20px;
}
.video-sidebar {
    width: 350px;
    background: #fff;
    border-right: 1px solid #eee; /* Assuming RTL, this might be left border, but let's use right in RTL context it means left visually depending on how float works, actually border-left in RTL */
    border-left: 1px solid #eee;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}
.video-player-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: #000;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.video-player-container iframe, .video-player-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-tabs {
    margin-top: 30px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.video-tabs .nav-pills .nav-link {
    color: var(--yanfaa-light-text);
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
    margin-left: 10px;
}
.video-tabs .nav-pills .nav-link.active {
    background-color: var(--yanfaa-primary);
    color: #fff;
}
.curriculum-header {
    padding: 20px;
    background: var(--yanfaa-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.curriculum-module {
    border-bottom: 1px solid #eee;
}
.module-title {
    padding: 15px 20px;
    font-weight: 700;
    cursor: pointer;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.module-title:hover {
    background: #f1f1f1;
}
.lesson-item {
    padding: 12px 20px 12px 40px;
    font-size: 0.9rem;
    color: var(--yanfaa-text);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.lesson-item:hover {
    background: rgba(240, 201, 50, 0.1);
}
.lesson-item.active {
    background: rgba(240, 201, 50, 0.2);
    font-weight: 700;
    color: var(--yanfaa-primary);
    border-right: 4px solid var(--yanfaa-secondary);
}
.lesson-item i {
    margin-left: 10px;
    color: var(--yanfaa-light-text);
}
.lesson-item.active i {
    color: var(--yanfaa-primary);
}

@media (max-width: 991px) {
    .video-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .timeline-container::before {
        right: 30px;
    }
    .timeline-item {
        padding-right: 70px;
    }
    .timeline-icon {
        right: 15px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* --- Preloader Overrides (Mortqa Water Fill) --- */
.preloader {
    background-color: #ffffff !important;
}

.preloader .loader {
    display: none !important;
}

.preloader .animation-preloader .edu-preloader-icon {
    display: none !important;
}

.preloader .animation-preloader .txt-loading .letters-loading {
    display: none !important;
}

.preloader .animation-preloader .txt-loading::after {
    content: "MORTQA";
    display: block;
    font: bold 3.5em "Sora", system-ui, "Sora", sans-serif;
    color: transparent;
    -webkit-text-stroke: 2px var(--yanfaa-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M 0,50 C 25,25 25,75 50,50 C 75,25 75,75 100,50 L 100,100 L 0,100 Z' fill='%23063a31'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 100px 100px;
    -webkit-background-clip: text;
    background-clip: text;
    animation: wave-fill 4s infinite ease-in-out;
    letter-spacing: 5px;
    margin: 0 auto;
}

@keyframes wave-fill {
    0% {
        background-position: 0 60px;
    }
    50% {
        background-position: 100px -60px;
    }
    100% {
        background-position: 200px 60px;
    }
}

@media (max-width: 767px) {
    .preloader .animation-preloader .txt-loading::after {
        font-size: 2em;
        letter-spacing: 2px;
    }
}
.offcanvas__content{
        padding-bottom: 15px;
}