/* =========================================
   Premium Islamic Modern UI (V4)
   ========================================= */
:root {
    /* Luxury Islamic Palette (Calm & Bright - Screenshot Matching) */
    --clr-sage: #81A891;
    --clr-emerald: #386651;
    --clr-emerald-light: #50866A;
    --clr-emerald-dark: #1E3B2E;
    --clr-gold: #D4AF37;
    --clr-gold-light: #FBE58F;

    --clr-bg: #F8F9F5;
    /* Very soft warm cream */
    --clr-surface: #FFFFFF;

    --clr-text: #1C1917;
    --clr-text-muted: #57534E;

    /* Typography */
    --font-main: 'Alexandria', sans-serif;
    --font-quran: 'Amiri', serif;

    /* Premium Soft Shadows */
    --shadow-soft: 0 10px 30px rgba(27, 67, 50, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(27, 67, 50, 0.07);

    --radius-sm: 0.75rem;
    --radius-md: 1.5rem;
    --radius-lg: 2rem;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Typography & Buttons
   ========================================= */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-family: var(--font-main);
    transition: var(--transition);
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-ghost {
    color: var(--clr-emerald);
    background: transparent;
    font-weight: 700;
}

.btn-ghost:hover {
    background: rgba(56, 102, 81, 0.05);
}

.btn-primary {
    background: var(--clr-emerald);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 102, 81, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 102, 81, 0.3);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--clr-emerald);
    border: 1px solid rgba(56, 102, 81, 0.1);
}

.btn-outline:hover {
    background: var(--clr-bg);
    border-color: var(--clr-emerald);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

/* =========================================
   Navbar (Glassmorphism)
   ========================================= */
.navbar {
    background: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 2rem 0;
}

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

.brand img {
    height: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--clr-text-muted);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--clr-emerald);
}

.nav-links a.active {
    color: var(--clr-text);
    font-weight: 700;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* =========================================
   Hero Section (Premium Clean)
   ========================================= */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(129, 168, 145, 0.15) 0%, rgba(248, 249, 245, 0) 50%),
        radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.05) 0%, rgba(248, 249, 245, 0) 40%),
        var(--clr-bg);
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 99px;
    background: rgba(56, 102, 81, 0.1);
    border: none;
    color: var(--clr-emerald);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.2;
    color: var(--clr-emerald-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--clr-emerald-light);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Hero Art (Elegant Graphic) */
.hero-art {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* =========================================
   Bento Grid Section (Ultra Premium)
   ========================================= */
.bento-section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: var(--clr-emerald);
    margin-bottom: 1rem;
}

.section-heading h2 span {
    color: var(--clr-sage);
}

.section-heading p {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    transition: 0.8s ease-in-out;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(27, 67, 50, 0.12);
    border-color: rgba(212, 175, 55, 0.5);
}

.bento-card:hover::after {
    left: 150%;
}

.icon-box {
    width: 55px;
    height: 55px;
    background: var(--clr-bg);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-emerald);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(110, 156, 130, 0.1);
    transition: var(--transition);
}

.bento-card:hover .icon-box {
    background: var(--clr-emerald);
    color: var(--clr-gold-light);
    transform: scale(1.1) rotate(5deg);
}

.icon-box i {
    width: 28px;
    height: 28px;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--clr-emerald);
    transition: var(--transition);
}

.bento-card:hover h3 {
    color: var(--clr-gold);
}

.card-large:hover h3 {
    color: var(--clr-gold-light);
}

.bento-card p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Bento Sizing */
.card-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, var(--clr-emerald), var(--clr-emerald-light));
    color: white;
    border: none;
}

.card-large .icon-box {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
}

.card-large h3,
.card-large p {
    color: white;
}

.card-medium {
    /* Auto placement */
}

.card-wide {
    grid-column: 2 / 4;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

/* Large Card Specifics */
.card-tags {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-tags span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-gold-light);
    font-weight: 500;
    font-size: 1.05rem;
}

.card-tags i {
    width: 18px;
    height: 18px;
}

.card-illustration {
    position: absolute;
    bottom: -10%;
    left: -10%;
    opacity: 0.1;
}

.huge-icon {
    width: 300px;
    height: 300px;
    color: white;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
}

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

.footer-links-group {
    display: flex;
    gap: 2rem;
}

.footer-links-group a {
    color: var(--clr-text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: var(--clr-emerald);
}

.footer-bottom {
    text-align: center;
    color: var(--clr-text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* =========================================
   Authentication Pages
   ========================================= */
.auth-body {
    background-color: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-wrapper {
    display: flex;
    background: var(--clr-surface);
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-form-side {
    flex: 1;
    padding: 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-text-muted);
    font-weight: 500;
    transition: var(--transition);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.auth-back-link:hover {
    color: var(--clr-emerald);
}

.auth-form-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

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

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

.auth-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--clr-emerald);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--clr-text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-emerald);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 15px;
    color: var(--clr-text-muted);
    width: 20px;
    height: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    padding-right: 3rem;
    border: 1px solid rgba(110, 156, 130, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--clr-bg);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--clr-emerald);
    box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.1);
    background: white;
}

.input-wrapper input:focus+.input-icon {
    color: var(--clr-emerald);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-text-muted);
    cursor: pointer;
}

.forgot-password {
    color: var(--clr-emerald);
    font-weight: 600;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--clr-text-muted);
}

.auth-footer a {
    color: var(--clr-emerald);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Auth Image Side */
.auth-image-side {
    flex: 1;
    background-image: url('hero_art.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.85), rgba(110, 156, 130, 0.85));
}

.auth-quote {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 400px;
}

.quote-icon {
    width: 40px;
    height: 40px;
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.auth-quote h3 {
    color: var(--clr-gold-light);
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.auth-quote p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* =========================================
   Learning LMS Section (التأهيل)
   ========================================= */
.internal-hero {
    background: linear-gradient(135deg, var(--clr-emerald-dark), var(--clr-emerald));
    padding: 10rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.internal-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.internal-hero .page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--clr-gold-light);
}

.internal-hero .page-title span {
    color: white;
}

.internal-hero .page-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-arch-bg {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.learning-section {
    padding: 4rem 0;
    background: var(--clr-bg);
}

.learning-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar Filters */
.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
    border: 1px solid rgba(110, 156, 130, 0.1);
}

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

.filter-title {
    font-size: 1.1rem;
    color: var(--clr-emerald);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.filter-list li {
    margin-bottom: 0.8rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(110, 156, 130, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-checkbox input:checked+.checkmark {
    background: var(--clr-emerald);
    border-color: var(--clr-emerald);
}

.custom-checkbox input:checked+.checkmark::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    display: block;
}

.custom-checkbox input:checked~span {
    color: var(--clr-emerald);
    font-weight: 600;
}

.filter-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    appearance: none;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(110, 156, 130, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    color: var(--clr-text);
    background: var(--clr-bg);
    cursor: pointer;
}

.select-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    color: var(--clr-text-muted);
    pointer-events: none;
}

/* Courses Main Area */
.courses-main {
    flex: 1;
}

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

.courses-header h2 {
    color: var(--clr-emerald);
    font-size: 1.8rem;
}

.courses-header h2 span {
    color: var(--clr-text-muted);
    font-size: 1.2rem;
    font-weight: 400;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i,
.search-box svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    width: 18px;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    padding-right: 2.8rem;
    border: 1px solid rgba(110, 156, 130, 0.2);
    border-radius: 50px;
    background: white;
    font-family: var(--font-main);
}

.search-box input:focus {
    outline: none;
    border-color: var(--clr-emerald);
}

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

/* Course Card */
.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(110, 156, 130, 0.05);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glass);
    border-color: rgba(212, 175, 55, 0.4);
}

.course-cover {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    overflow: hidden;
}

.course-cover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l5 15 15 5-15 5-5 15-5-15-15-5 15-5z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
}

.course-cover i {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.bg-emerald {
    background: linear-gradient(135deg, var(--clr-emerald), var(--clr-emerald-dark));
}

.bg-gold {
    background: linear-gradient(135deg, #d4af37, #b8860b);
}

.bg-sage {
    background: linear-gradient(135deg, var(--clr-sage), #8ab69e);
}

.bg-emerald-light {
    background: linear-gradient(135deg, #4da881, var(--clr-emerald));
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.badge-free {
    background: rgba(255, 255, 255, 0.9);
    color: var(--clr-emerald);
}

.badge-req {
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.badge-lock {
    background: #e74c3c;
    color: white;
}

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

.course-category {
    font-size: 0.85rem;
    color: var(--clr-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 1.2rem;
    color: var(--clr-emerald);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.course-desc {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.course-meta i {
    width: 16px;
}

.cert-tag {
    color: var(--clr-gold);
    font-weight: 600;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* =========================================
   Course Player (LMS) Section
   ========================================= */
.course-player-section {
    background: radial-gradient(circle at top right, rgba(110, 156, 130, 0.15) 0%, rgba(252, 251, 248, 1) 40%),
        radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.1) 0%, rgba(252, 251, 248, 1) 40%);
    padding: 8rem 0 4rem;
    min-height: calc(100vh - 80px);
}

.course-player-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Main Video Area */
.player-main {
    flex: 1;
}

.video-wrapper {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid rgba(110, 156, 130, 0.1);
    background-image: url('hero_art.png');
    background-size: cover;
    background-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.video-placeholder {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.video-placeholder .play-icon {
    width: 80px;
    height: 80px;
    color: var(--clr-gold);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-placeholder .play-icon:hover {
    transform: scale(1.1);
    color: var(--clr-gold-light);
}

.video-placeholder p {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.course-info-tabs {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(110, 156, 130, 0.1);
}

.tabs-header {
    display: flex;
    gap: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    padding-bottom: 1rem;
    position: relative;
    font-weight: 600;
}

.tab-btn.active {
    color: var(--clr-emerald);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--clr-emerald);
    border-radius: 3px 3px 0 0;
}

.tab-content h3 {
    color: var(--clr-emerald-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tab-content p {
    color: var(--clr-text-muted);
    line-height: 1.8;
}

/* Curriculum Sidebar */
.curriculum-sidebar {
    width: 380px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(110, 156, 130, 0.1);
    overflow: hidden;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.curriculum-header {
    padding: 1.5rem;
    background: var(--clr-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.curriculum-header h3 {
    color: var(--clr-emerald-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.progress-container {
    margin-top: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(110, 156, 130, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-sage), var(--clr-emerald));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-weight: 700;
}

.curriculum-list {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.curriculum-list::-webkit-scrollbar {
    width: 6px;
}

.curriculum-list::-webkit-scrollbar-track {
    background: transparent;
}

.curriculum-list::-webkit-scrollbar-thumb {
    background: rgba(110, 156, 130, 0.2);
    border-radius: 10px;
}

.curriculum-unit {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.unit-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.unit-header:hover {
    background: rgba(110, 156, 130, 0.02);
}

.unit-header h4 {
    font-size: 1rem;
    color: var(--clr-emerald-dark);
    font-weight: 700;
    margin: 0;
}

.unit-header i {
    width: 20px;
    color: var(--clr-text-muted);
    transition: transform 0.3s;
}

.curriculum-unit.active .unit-header i {
    transform: rotate(180deg);
}

.unit-lessons {
    display: none;
    padding: 0.5rem 0;
    background: var(--clr-bg);
}

.curriculum-unit.active .unit-lessons {
    display: block;
}

.lesson-item {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.lesson-item:hover {
    background: rgba(110, 156, 130, 0.05);
}

.lesson-item.active-lesson {
    background: rgba(212, 175, 55, 0.05);
    color: var(--clr-emerald-dark);
    font-weight: 600;
    border-right: 3px solid var(--clr-gold);
}

.lesson-item i {
    width: 18px;
    color: var(--clr-emerald-light);
    flex-shrink: 0;
}

.lesson-item i.completed-icon {
    color: var(--clr-emerald);
}

.lesson-time {
    margin-right: auto;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* =========================================
   Mobile Menu Styles (Hidden by default)
   ========================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1002;
    padding: 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-sidebar.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--clr-emerald);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: auto;
}

.mobile-nav-links a {
    color: var(--clr-text);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    display: block;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--clr-emerald);
    padding-right: 0.5rem;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

.mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
}

/* =========================================
   Global Responsive (Mobile & Tablet)
   ========================================= */
@media (max-width: 1024px) {

    .nav-links,
    .auth-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .card-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .card-wide {
        grid-column: 1 / -1;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-art {
        margin-top: 3rem;
    }

    .course-player-layout {
        flex-direction: column;
    }

    .curriculum-sidebar {
        width: 100%;
        position: static;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
    }

    .learning-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-wide {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 1rem;
    }

    .quote-card {
        padding: 3rem 1.5rem;
    }

    .auth-wrapper {
        flex-direction: column;
    }

    .auth-image-side {
        display: none;
    }

    .auth-form-side {
        padding: 2rem;
    }

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

    .search-box {
        width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.3;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}