﻿:root {
    --bg-core: #0f172a;
    --bg-card: #1e293b;
    --primary: #6366f1;
    --accent: #ec4899;
    --cyan: #06b6d4;
    --text-main: #f1f5f9;
    --text-sec: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
}
 

.dropdown-item:hover {
    background: none;
}
* {
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-core);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

    a:hover {
        color: var(--cyan);
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 7px 0;
    border-bottom: 1px solid var(--border-glass);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
}

    .logo span {
        color: var(--accent);
    }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

    .nav-links a {
        font-weight: 500;
        padding: 5px 0;
        position: relative;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--cyan);
            transition: width 0.3s ease-in-out;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}
 
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background: var(--bg-core);
    z-index: 2000;
    transition: 0.3s;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

    .mobile-menu.active {
        right: 0;
    }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

    .mobile-links a {
        font-size: 1.2rem;
        padding: 10px;
        border-bottom: 1px solid var(--border-glass);
    }

.btn-glow {
    padding: 10px 25px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.logout {
    background: linear-gradient(90deg, #d43f27, #d23957);  
    padding: 10px 25px;
    color: white;
    border-radius: 50px;  
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

    .btn-glow:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
        color: white;
    }

.btn-outline-glow {
    padding: 10px 25px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
}

    .btn-outline-glow:hover {
        border-color: var(--cyan);
        color: var(--cyan);
    }

.btn-glow-sm {
    padding: 8px 20px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 15px;
}

    .btn-glow-sm:hover {
        opacity: 0.9;
        color: white;
    }

.footer {
    padding: 60px 0 20px;
    background: var(--bg-core);
    border-top: 1px solid var(--border-glass);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about p {
    color: var(--text-sec);
    margin-top: 20px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

    .footer-links ul li {
        margin-bottom: 10px;
    }

        .footer-links ul li a {
            color: var(--text-sec);
            font-size: 0.95rem;
        }

.social-icons a {
    font-size: 1.5rem;
    margin-left: 20px;
    color: var(--text-sec);
    transition: 0.3s;
}

    .social-icons a:hover {
        color: var(--primary);
    }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-sec);
    font-size: 0.9rem;
}

.hero {
    min-height: 89vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: linear-gradient(45deg, var(--primary), var(--accent));
        border-radius: 50%;
        top: -100px;
        left: -100px;
        filter: blur(150px);
        opacity: 0.4;
        z-index: 0;
        animation: pulse 10s infinite alternate;
    }

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-tag {
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-sec);
    margin-bottom: 40px;
    line-height: 1.8;
    border-right: 3px solid var(--accent);
    padding-right: 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-card-floating {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: 20px;
    transform: rotate(-5deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

    .hero-card-floating img {
        width: 100%;
        border-radius: 15px;
    }

.loading-bar-container {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .loading-bar-container span {
        color: var(--cyan);
        font-weight: bold;
    }

.loading-bar {
    width: 100px;
    height: 5px;
    background: #334155;
    border-radius: 10px;
}

.progress {
    width: 70%;
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
}

.features {
    padding: 60px 0;
    position: relative;
}
 
.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
 
.section-head span {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--glass);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

    .feature-box:hover {
        transform: translateY(-10px);
        background: var(--bg-card);
    }

.stats {
  
    padding: 30px 0;
    background: linear-gradient(90deg, rgba(99,102,241,0.1), rgba(236,72,153,0.1));
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    display: block;
}

.stat-lbl {
    color: var(--accent);
    font-size: 1.1rem;
}

.stages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 50px 0;
}

.stage-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 10px;
    position: relative;
    transition: 0.4s;
    border: 1px solid var(--border-glass);
}

    .stage-card:hover {
        border-color: var(--primary);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    }

.stage-img-wrapper {
    height: 200px;
    background: var(--bg-core);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .stage-img-wrapper i {
        font-size: 5rem;
        color: rgba(255,255,255,0.1);
        transition: 0.4s;
    }

.stage-card:hover .stage-img-wrapper i {
    transform: scale(1.2);
    color: var(--primary);
}

.stage-info {
    padding: 20px;
}

    .stage-info h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

.stage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(255,255,255,0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--cyan);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.subject-pill {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

    .subject-pill:hover {
        background: var(--primary);
        transform: scale(1.05);
        border-color: var(--primary);
    }

    .subject-pill i {
        font-size: 2rem;
        margin-bottom: 10px;
        display: block;
    }

.teacher-cta {
    background: linear-gradient(135deg, var(--bg-card), #000);
    border-radius: 30px;
    padding: 60px;
    margin: 100px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

    .teacher-cta::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 300px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(236,72,153,0.1));
    }

    .teacher-cta h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .teacher-cta p {
        color: var(--text-sec);
        font-size: 1.1rem;
        margin-bottom: 30px;
        max-width: 600px;
    }

.cta-icon {
    font-size: 8rem;
    color: rgba(255,255,255,0.05);
    z-index: 1;
}

.course-card-dark {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

    .course-card-dark:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }

.course-img-box {
    position: relative;
    height: 200px;
}

    .course-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }



.course-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .course-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--text-main);
    }

.instructor {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-sec);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
}

.teacher-box {
    text-align: center;
}
 
.teacher-img {
    width: 160px; /* ⬅ تم التكبير */
    height: 135px; /* ⬅ تم التكبير */
    border-radius: 50%;
    background: var(--bg-core);
    margin: 0 auto 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary); /* سماكة أفضل */
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25); /* ظل أنيق */
    transition: transform .25s ease, box-shadow .25s ease;
}

.teacher-card:hover .teacher-img {
    transform: scale(1.05); /* تكبير بسيط في الـ hover */
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .teacher-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .teacher-img i {
        font-size: 2.5rem;
        color: var(--text-sec);
    }

.subject-name {
    color: var(--cyan);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.teacher-stats-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-sec);
    margin-top: 15px;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        border: none;
        padding: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: span 2;
    }

    .hero-card-floating {
        transform: rotate(0deg);
        display: none;
    }

    .teacher-cta {
        flex-direction: column;
        text-align: center;
    }

    .cta-icon {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}



.features {
    padding: 60px 0;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

    .section-head h2 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .section-head span {
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.9rem;
        font-weight: bold;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--glass);
    padding: 5px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

    .feature-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--primary), var(--cyan));
        transform: scaleX(0);
        transform-origin: right;
        transition: 0.4s;
    }

    .feature-box:hover {
        transform: translateY(-10px);
        background: var(--bg-card);
    }

        .feature-box:hover::before {
            transform: scaleX(1);
        }

.f-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--cyan), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Profile Menu - Desktop */
.profile-menu-wrapper {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 15px;
    min-width: 250px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.95rem;
}

.profile-dropdown .dropdown-item:last-of-type {
    border-bottom: none;
}

.profile-dropdown .dropdown-item i {
    font-size: 1.1rem;
    color: var(--primary);
    min-width: 20px;
}

.profile-dropdown .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--cyan);
}

.profile-dropdown .dropdown-item:hover i {
    color: var(--cyan);
}

.profile-dropdown .dropdown-divider {
    margin: 8px 0;
    border-color: var(--border-glass);
}

.profile-dropdown .logout-btn {
    color: #ff6b6b;
}

.profile-dropdown .logout-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8787;
}

.profile-dropdown .logout-btn i {
    color: #ff6b6b;
}

/* Mobile Profile Menu */
.mobile-profile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background: var(--bg-core);
    z-index: 2500;
    transition: 0.3s;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-profile-menu.active {
    right: 0;
}

.mobile-profile-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.mobile-profile-item:last-of-type {
    border-bottom: none;
}

.mobile-profile-item i {
    font-size: 1.3rem;
    color: var(--primary);
    min-width: 25px;
}

.mobile-profile-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--cyan);
    border-radius: 10px;
}

.mobile-profile-item:hover i {
    color: var(--cyan);
}

.mobile-profile-item.logout-btn {
    color: #ff6b6b;
}

.mobile-profile-item.logout-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8787;
}

.mobile-profile-item.logout-btn i {
    color: #ff6b6b;
}

/* Show profile dropdown only on large screens */
@media (max-width: 768px) {
    .profile-dropdown {
        display: none;
    }

    .profile-trigger {
        display: none;
    }

    .mobile-profile-trigger {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .mobile-profile-menu {
        display: none !important;
    }

    .mobile-profile-trigger {
        display: none;
    }

    .profile-trigger {
        display: inline-block;
    }
}
/* Mobile Navigation Links */
.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 1.05rem;
    font-weight: 500;
}

    .mobile-nav-link i {
        font-size: 1.3rem;
        color: var(--primary);
        min-width: 24px;
        transition: all 0.3s ease;
    }

    .mobile-nav-link span {
        flex: 1;
    }

    .mobile-nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
        border-color: var(--border-glass);
        color: var(--cyan);
    }

        .mobile-nav-link:hover i {
            color: var(--cyan);
            transform: translateX(-4px);
        }

    .mobile-nav-link:active {
        background: rgba(99, 102, 241, 0.15);
        border-color: var(--primary);
    }

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-glass);
}
.subjects-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* الموبايل: خليه عمودين */
@media (max-width: 576px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subject-pill {
        padding: 10px;
        font-size: 0.9rem;
    }
}



teacher-img


.teacher-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
  
 
 