/* css/style.css */
/* الأنماط العامة للموقع */

/* المتغيرات العامة */
:root {
    --primary: #1e3c72;
    --primary-dark: #162b56;
    --primary-light: #2a5298;
    --secondary: #4dabf7;
    --accent: #ff6b6b;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* متغيرات إضافية للصفحة الرئيسية */
    --card-shadow: 0 8px 25px rgba(30, 60, 114, 0.12);
    --button-red: #e74c3c;
    --button-red-hover: #c0392b;
    --light-text: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ✅ التعديل الرئيسي: خلفية بيضاء فقط */
body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - الأنماط العامة */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.8rem;
    color: var(--secondary);
}

/* القائمة الجديدة */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    top: 100%;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--border);
}

.dropdown-content a {
    color: var(--dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover > a {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .close-menu {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
        justify-content: flex-start;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.1);
        display: none;
    }

    .dropdown-content a {
        color: white;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 30px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* الأزرار */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.6);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-outline {
    background: transparent;
    color: var(--gray);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background: var(--light);
    border-color: var(--gray);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.9) 100%),
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Filters Section */
.filters-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.filters-header {
    text-align: center;
    margin-bottom: 2rem;
}

.filters-header h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.filters-header p {
    color: var(--gray);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.form-control {
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Teachers Section */
.teachers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

.sort-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.sort-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.teachers-count {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* شبكة المعلمين - محسنة */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.teacher-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.teacher-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(30, 60, 114, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.teacher-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.teacher-name {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.teacher-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.teacher-qualification {
    background: var(--light);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
}

.teacher-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.subject-tag {
    background: linear-gradient(135deg, var(--secondary) 0%, #339af0 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.teacher-bio {
    color: var(--gray);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    flex-grow: 1;
}

.teacher-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.stars {
    color: var(--warning);
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
}

.teacher-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 🔹 تحسين تنسيق زر اختيار المعلم */
.teacher-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.select-teacher-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
    min-height: 44px;
}

.select-teacher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.6);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-results i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.no-results p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ============================================= */
/* الأنماط الخاصة بالصفحة الرئيسية فقط */
/* ============================================= */

.home-page {
    padding-top: 75px; /* مساحة للشريط الثابت */
}

/* الشريط العلوي المخصص للصفحة الرئيسية */
.homepage-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* القسم الرئيسي - النص على اليمين */
.homepage-hero {
    display: flex;
    min-height: 80vh;
    position: relative;
    background: url('../images/students.webp') center/cover no-repeat;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.homepage-hero .hero-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: transparent;
    color: white;
    position: relative;
    z-index: 2;
    margin-right: auto;
}

.homepage-hero .hero-content h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.homepage-hero .hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.homepage-hero .hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.homepage-hero .hero-buttons .btn-primary {
    background: linear-gradient(to right, #ffffff, #f0f4ff);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.homepage-hero .hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(to right, var(--button-red), var(--button-red-hover));
    color: white;
}

.homepage-hero .hero-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.homepage-hero .hero-buttons .btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

/* قسم نظرة عامة - مقسوم إلى نصفين */
.overview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    align-items: stretch;
    overflow: hidden;
    min-height: 450px;
}

.overview-content {
    padding: 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border);
}

.overview-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-title {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    font-weight: 700;
}

.info-content {
    color: var(--light-text);
    line-height: 1.7;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.1), rgba(30, 60, 114, 0.1));
    border-right: 4px solid var(--secondary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-content ul {
    margin-right: 20px;
    margin-top: 15px;
    list-style: none;
}

.info-content li {
    margin-bottom: 10px;
    padding-right: 10px;
    position: relative;
}

.info-content li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    position: absolute;
    right: -20px;
    font-size: 1.2rem;
}

/* كيفية استخدام المنصة */
.how-to-use-section {
    padding: 80px 0;
    background-color: var(--light);
}

.how-to-use-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.how-to-use-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: right;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    margin-left: 15px;
    flex-shrink: 0;
}

.step-icon {
    font-size: 40px;
    color: var(--primary);
    margin-left: 15px;
}

.step-title {
    font-size: 1.3rem;
    color: var(--primary-light);
    font-weight: 700;
    flex-grow: 1;
}

.step-description {
    color: var(--light-text);
    line-height: 1.7;
    margin-top: 15px;
}

/* Steps Cards من الصفحة الثانية */
.steps-container-alt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.step-card-alt {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    height: 100%;
}

.step-card-alt:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-number-alt {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(30, 60, 114, 0.3);
}

.step-icon-alt {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title-alt {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 15px;
    font-weight: 700;
}

.step-description-alt {
    color: var(--light-text);
    line-height: 1.7;
}

/* Requirements Section */
.requirements-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    align-items: stretch;
    overflow: hidden;
    min-height: 500px;
}

.requirements-content {
    padding: 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* مميزات النظام (القديمة) */
.features {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #5a6c7d;
    line-height: 1.7;
}

/* قسم الإحصائيات الجديد - دوائر شفافة */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(42, 82, 152, 0.05) 100%);
    margin: 60px 0;
    text-align: center;
}

.stats-title {
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.stats-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(30, 60, 114, 0.1);
    border: 8px solid rgba(42, 82, 152, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-circle:hover {
    transform: scale(1.05);
    background: rgba(30, 60, 114, 0.15);
    border-color: rgba(42, 82, 152, 0.25);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.2);
}

.stat-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.2) 0%, 
        rgba(42, 82, 152, 0.2) 50%, 
        rgba(77, 171, 247, 0.2) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-circle:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--primary-light);
    font-weight: 600;
    max-width: 120px;
    line-height: 1.4;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* تحسينات للقائمة المنسدلة في الصفحة الرئيسية */
.home-page .dropdown-content {
    text-align: right;
}

/* تحسينات للاستجابة */
@media (max-width: 992px) {
    .overview-section,
    .requirements-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .overview-content,
    .requirements-content {
        order: 1;
        padding: 30px;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }
    
    .overview-image,
    .requirements-image {
        order: 2;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        flex-direction: column;
        background-position: center;
    }
    
    .homepage-hero .hero-content {
        width: 100%;
        padding: 30px 20px;
        min-height: 60vh;
        text-align: center;
        margin-right: 0;
    }
    
    .homepage-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .homepage-hero .hero-content p {
        font-size: 1.1rem;
    }
    
    .homepage-hero .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .teachers-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .how-to-use-section .section-title {
        font-size: 1.8rem;
    }
    
    .stats-title {
        font-size: 1.8rem;
    }
    
    .overview-content,
    .requirements-content {
        padding: 25px;
    }
    
    .overview-image,
    .requirements-image {
        height: 350px;
    }
    
    .steps-container,
    .steps-container-alt,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        gap: 20px;
    }
    
    .stat-circle {
        width: 140px;
        height: 140px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .filters-card {
        padding: 1.5rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-circle {
        width: 160px;
        height: 160px;
    }
}