        :root {
            --primary-color: #4361ee;
            --secondary-color: #3a0ca3;
            --accent-color: #f72585;
            --text-color: #333;
            --bg-color: #f8f9fa;
            --card-bg: #ffffff;
            --header-bg: rgba(255, 255, 255, 0.95);
            --footer-bg: #2b2d42;
            --footer-text: #f8f9fa;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
            --first-grade-color: #3a86ff;    
            --second-grade-color: #ff9e00;  
            --third-grade-color: #e63946;    
            --arabic-color: #3a86ff;
            --english-color: #ff9e00;
            --math-color: #e63946;
            --physics-color: #588157;
            --chemistry-color: #f56464;
            --geography-color: #06d6a0;
            --religion-color: #7209b7;
        }

        .dark-mode {
            --primary-color: #4cc9f0;
            --secondary-color: #4895ef;
            --accent-color: #f72585;
            --text-color: #f8f9fa;
            --bg-color: #121212;
            --card-bg: #1e1e1e;
            --header-bg: rgba(30, 30, 30, 0.95);
            --footer-bg: #0b0b0b;
            --footer-text: #f8f9fa;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: var(--transition);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }
    /* منع السكرول أثناء التحميل */
        body.loading {
            overflow: hidden;
            height: 100vh;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
/* Loading Screen Styles */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #233c45 0%, #295383fa 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }

        .loading-screen.fade-out {
            opacity: 0;
            visibility: hidden;
        }

        .loader-container {
            text-align: center;
            color: white;
            max-width: 500px;
            padding: 20px;
        }

        /* Graduation cap inside circle */
        .loader-logo-cap {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .cap-circle-container {
            position: relative;
            width: 150px;
            height: 150px;
            margin-bottom: 25px;
        }

        .outer-circle {
            position: absolute;
            top: 0;
            left: 0;
            width: 130px;
            height: 130px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
        }

        .inner-circle {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 127px;
            height: 127px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .loader-cap {
            font-size: 3.2rem;
            color: white;
            animation: cap-bounce 2s infinite ease-in-out;
        }

        .rotating-circle {
            position: absolute;
            top: 0;
            left: 0;
            width: 130px;
            height: 130px;
            border: 3px solid transparent;
            border-top: 3px solid white;
            border-right: 3px solid white;
            border-radius: 50%;
            animation: spin 1.5s linear infinite;
        }

        .cap-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
        }

        /* Animations */
        @keyframes cap-bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-8px);
            }
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        /* Header Styles */
        header {
            background-color: var(--header-bg);
            box-shadow: var(--shadow);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            padding: 15px 0;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            height: 40px;
        }

        .logo h1 {
            font-size: 1.5rem;
            color: var(--primary-color);
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 25px;
        }

        nav a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            position: relative;
            padding: 5px 0;
        }

        nav a:after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--primary-color);
            transition: var(--transition);
        }

        nav a:hover:after {
            width: 100%;
        }

        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.2rem;
            color: var(--text-color);
        }
        .nav-toggle {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-color);
        }
        /* Hero Section */
        .hero {
            padding: 150px 0 80px;
            text-align: center;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            border-radius: 0 0 20px 20px;
            margin-bottom: 40px;
        }

        .hero h2 {
            font-size: 2.8rem;
            margin-bottom: 20px;
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 30px;
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            margin-top: 15px;
            background-color: var(--accent-color);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: var(--transition);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        /* Sections */
        section {
            padding: 60px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title h2 {
            font-size: 2.2rem;
            color: var(--primary-color);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .section-title h2:after {
            content: '';
            position: absolute;
            width: 60%;
            height: 3px;
            background-color: var(--accent-color);
            bottom: -10px;
            left: 20%;
        }

        /* About Section */
        .about-content {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .about-text {
            flex: 1;
        }

        .about-image {
            flex: 1;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Subjects Section */
        .subjects {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 40px;
            box-shadow: var(--shadow);
        }

        .subjects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .subject-card {
            background-color: var(--bg-color);
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }

        .subject-card:hover {
            transform: translateY(-10px);
        }

        .subject-icon {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .arabic { color: var(--arabic-color); }
        .english { color: var(--english-color); }
        .math { color: var(--math-color); }
        .physics { color: var(--physics-color); }
        .chemistry { color: var(--chemistry-color); }
        .geography { color: var(--geography-color); }
        .religion { color: var(--religion-color); }

        .subject-card h3 {
            margin-bottom: 15px;
        }
        
        /* Grades Section */
        .grades-container {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .grade-card {
            background: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            box-shadow: var(--shadow);
            border-right: 5px solid;
            transition: var(--transition);
            overflow: hidden;
        }

        .grade-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .grade-card.first-grade {
            border-right-color: var(--first-grade-color);
        }

        .grade-card.second-grade {
            border-right-color: var(--second-grade-color);
        }

        .grade-card.third-grade {
            border-right-color: var(--third-grade-color);
        }

        .grade-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(0, 0, 0, 0.1);
        }

        .dark-mode .grade-header {
            border-bottom-color: rgba(255, 255, 255, 0.1);
        }

        .grade-title {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .grade-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            flex-shrink: 0;
        }

        .first-grade .grade-icon {
            background: var(--first-grade-color);
        }

        .second-grade .grade-icon {
            background: var(--second-grade-color);
        }

        .third-grade .grade-icon {
            background: var(--third-grade-color);
        }

        .grade-info h3 {
            font-size: 1.8rem;
            margin-bottom: 5px;
        }

        .grade-info p {
            color: var(--text-color);
            opacity: 0.8;
        }

        .toggle-materials {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
            flex-shrink: 0;
        }

        .toggle-materials:hover {
            transform: scale(1.05);
        }

        .toggle-materials i {
            transition: transform 0.3s ease;
        }

        .toggle-materials.active i {
            transform: rotate(180deg);
        }

        .materials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease;
        }

        .materials-grid.active {
            max-height: none;
            overflow: visible; 
            animation: slideDown 0.5s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .material-card {
            background: var(--bg-color);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: var(--shadow);
            border-top: 4px solid;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            min-height: 200px;
            height: auto;
        }

        .material-card:hover {
            transform: translateY(-5px);
        }

        .material-icon {
            font-size: 2.2rem;
            margin-bottom: 15px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .material-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .material-card h4 {
            font-size: 1.2rem;
            margin-bottom: 10px;
            min-height: 2.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1.3;
        }

        .material-card p {
            color: var(--text-color);
            opacity: 0.8;
            margin-bottom: 15px;
            font-size: 0.85rem;
            line-height: 1.4;
            flex: 1;
        }

        .material-link {
            display: inline-block;
            padding: 8px 16px;
            background: var(--accent-color);
            color: white;
            text-decoration: none;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: var(--transition);
            margin-top: auto;
            width: 60;
            align-self: center;
        }

        .material-link:hover {
            background: var(--primary-color);
            transform: scale(1.05);
        }

        /* تحسينات للعناوين والنصوص */
        .material-card[style*="color: var(--math-color)"] {
            border-top-color: var(--math-color);
        }
        .material-card[style*="color: var(--physics-color)"] {
            border-top-color: var(--physics-color);
        }
        .material-card[style*="color: var(--english-color)"] {
            border-top-color: var(--english-color);
        }
        .material-card[style*="color: var(--arabic-color)"] {
            border-top-color: var(--arabic-color);
        }
        .material-card[style*="color: var(--religion-color)"] {
            border-top-color: var(--religion-color);
        }



        /* Features Section */
        .features {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 40px;
            box-shadow: var(--shadow);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .feature-card {
            background-color: var(--bg-color);
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            box-shadow: var(--shadow);
        }

        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .feature-card h3 {
            margin-bottom: 15px;
            color: var(--secondary-color);
        }

        /* Courses Section */
        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .course-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
        }
        .course-card.hidden {
            display: none;
        }
        .course-image {
            height: 200px;
            overflow: hidden;
        }
        .course-card.visible {
            display: block;
            animation: fadeInUp 0.5s ease;
        }
        .course-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .course-content {
            padding: 20px;
        }

        .course-content h3 {
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            margin-top: 25px;
            color: var(--secondary-color);
            font-weight: 500;
        }
        .course-meta a {
            text-decoration: none;
            color: var(--secondary-color);
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    /* زر عرض المزيد */
    .load-more-container {
        text-align: center;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .dark-mode .load-more-container {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .load-more-btn {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    }

    .load-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    }

    .load-more-btn:active {
        transform: translateY(0);
    }

    .load-more-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .load-more-btn i {
        transition: transform 0.3s ease;
    }

    .load-more-btn.loading i {
        animation: spin 1s linear infinite;
    }

    @keyframes spin {   
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* قسم المراجعات */
    #reviews {
        padding: 80px 0;
        background-color: var(--card-bg);
    }

    #reviews .section-title {
        text-align: center;
        margin-bottom: 50px;
    }

    #reviews .section-title h2 {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

    #reviews .section-title h2::after {
        content: '';
        position: absolute;
        width: 60px;
        height: 3px;
        background-color: var(--accent-color);
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* شبكة المراجعات */
    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
        margin-bottom: 40px;
    }

    /* كارت المراجعة */
    .review-card {
        background: var(--card-bg);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dark-mode .review-card {
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .review-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .dark-mode .review-card:hover {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    }

    /* صورة المراجعة */
    .review-image {
        position: relative;
        height: 200px;
        overflow: hidden;
    }

    .review-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .review-card:hover .review-image img {
        transform: scale(1.05);
    }

    .review-category {
        position: absolute;
        top: 15px;
        right: 15px;
        background-color: var(--primary-color);
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* محتوى المراجعة */
    .review-content {
        padding: 25px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .review-header {
        margin-bottom: 15px;
    }

    .review-header h3 {
        font-size: 1.4rem;
        color: var(--text-color);
        margin-bottom: 10px;
        line-height: 1.4;
    }

    /* قسم معلومات المحتوى (الساعات والفيديوهات) */
    .review-content-info {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }

    .content-type {
        background-color: var(--primary-color);
        color: white;
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .content-stats {
        display: flex;
        gap: 20px;
    }

    .content-stat {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-color);
        opacity: 0.8;
        font-size: 0.95rem;
    }

    .content-stat i {
        color: var(--accent-color);
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

    .stat-value {
        font-weight: 600;
        color: var(--primary-color);
    }

    /* وصف المراجعة */
    .review-description {
        color: var(--text-color);
        opacity: 0.8;
        line-height: 1.6;
        margin-bottom: 20px;
        flex-grow: 1;
        font-size: 0.95rem;
    }

    /* زر مشاهدة المراجعة */
    .review-meta {
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .review-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: var(--secondary-color);
        color: white;
        padding: 12px 24px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        font-size: 1rem;
        flex: 1;
        justify-content: center;
    }

    .review-btn:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
    }

    .review-btn i {
        font-size: 1.2rem;
    }

    /* زر عرض المزيد للمراجعات */
    .load-more-reviews-container {
        text-align: center;
        margin-top: 30px;
    }

    .load-more-reviews-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background-color: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        padding: 14px 32px;
        border-radius: 30px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .load-more-reviews-btn:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
    }

    .load-more-reviews-btn i {
        transition: transform 0.3s ease;
    }

    .load-more-reviews-btn:hover i {
        transform: translateY(3px);
    }
        /* فلتر الصفوف في قسم المراجعات */
    .grade-filter-reviews {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .grade-filter-btn-reviews {
        background-color: var(--bg-color);
        color: var(--text-color);
        border: 2px solid var(--primary-color);
        padding: 12px 25px;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .grade-filter-btn-reviews:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

    .grade-filter-btn-reviews.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    }

    .grade-filter-btn-reviews i {
        font-size: 1.1rem;
    }

    /* ألوان خاصة لكل صف في قسم المراجعات */
    .grade-filter-btn-reviews[data-grade="all"] {
        border-color: var(--primary-color);
    }

    .grade-filter-btn-reviews[data-grade="first"] {
        border-color: var(--first-grade-color);
    }

    .grade-filter-btn-reviews[data-grade="second"] {
        border-color: var(--second-grade-color);
    }

    .grade-filter-btn-reviews[data-grade="third"] {
        border-color: var(--third-grade-color);
    }

    .grade-filter-btn-reviews[data-grade="first"]:hover,
    .grade-filter-btn-reviews[data-grade="first"].active {
        background-color: var(--first-grade-color);
        border-color: var(--first-grade-color);
    }

    .grade-filter-btn-reviews[data-grade="second"]:hover,
    .grade-filter-btn-reviews[data-grade="second"].active {
        background-color: var(--second-grade-color);
        border-color: var(--second-grade-color);
    }

    .grade-filter-btn-reviews[data-grade="third"]:hover,
    .grade-filter-btn-reviews[data-grade="third"].active {
        background-color: var(--third-grade-color);
        border-color: var(--third-grade-color);
    }

    /* رسالة لا يوجد مراجعات */
    .no-reviews {
        text-align: center;
        padding: 60px 20px;
        grid-column: 1 / -1;
        color: var(--text-color);
        opacity: 0.7;
    }

    .no-reviews i {
        font-size: 3rem;
        margin-bottom: 20px;
        color: var(--accent-color);
        opacity: 0.5;
    }

    .no-reviews h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: var(--primary-color);
    }


        /* Contact Section */
        .contact-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }

        .contact-form {
            background-color: var(--card-bg);
            padding: 30px;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background-color: var(--bg-color);
            color: var(--text-color);
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .info-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background-color: var(--card-bg);
            border-radius: 10px;
            box-shadow: var(--shadow);
        }

        .info-icon {
            font-size: 1.5rem;
            color: var(--primary-color);
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 40px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 30px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .footer-logo img {
            height: 40px;
        }

        .footer-logo h2 {
            color: white;
        }

        .footer-links h3 {
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-links h3:after {
            content: '';
            position: absolute;
            width: 40px;
            height: 2px;
            background-color: var(--accent-color);
            bottom: 0;
            left: 0;
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: var(--footer-text);
            text-decoration: none;
        }

        .footer-links a:hover {
            color: var(--accent-color);
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* App Download Section */
#app-download {
    background: #ffffff;
    color: var(--text-color);
    padding: 80px 0;
}

.dark-mode #app-download {
    background: #000000; 
    color: white;
}

#app-download .section-title h2 {
    color: var(--primary-color);
}

.dark-mode #app-download .section-title h2 {
    color: white;
}

#app-download .section-title h2:after {
    background-color: var(--accent-color);
}

.download-content {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.download-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    border: 1px solid #e9ecef;
}

.dark-mode .download-card {
    background: #1a1a1a; 
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.download-card h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.dark-mode .download-card h3 {
    color: #ffffff;
}

.app-version {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.dark-mode .app-version {
    color: #ffffff;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.app-icon i {
    font-size: 2.5rem;
    color: white;
}

.download-btn-2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
    margin: 20px 0;
}

.download-btn-2:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(247, 37, 133, 0.4);
    background: #ff0a78;
}

.download-notes {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .download-notes {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.download-notes p {
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.dark-mode .download-notes p {
    color: #ffffff;
}

.download-notes i {
    color: var(--primary-color);
}

.notes-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
}

.notes-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notes-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.notes-container {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 500px;
    display: none;
    flex-direction: column;
}

.dark-mode .notes-container {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

.notes-container.show {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    flex-shrink: 0;
}

.dark-mode .notes-header {
    background: #2d2d2d;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.notes-header h3 {
    margin: 0;
    color: #4361ee;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-notes {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-notes:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.dark-mode .close-notes:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* التحذيرات */
.notes-alert {
    padding: 10px 15px;
    margin: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    animation: slideDown 0.3s ease;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notes-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.notes-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.notes-alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.dark-mode .notes-alert.error {
    background: #2d1b1f;
    color: #f8d7da;
    border-color: #842029;
}

.dark-mode .notes-alert.success {
    background: #1a2e22;
    color: #d4edda;
    border-color: #0f5132;
}

.dark-mode .notes-alert.info {
    background: #1a2a2e;
    color: #d1ecf1;
    border-color: #055160;
}

.notes-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: none;
}

.empty-notes {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-notes i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #4361ee;
    opacity: 0.5;
}

.empty-notes p {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.empty-notes small {
    font-size: 0.8rem;
    opacity: 0.7;
}

.note-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-right: 4px solid #4361ee;
    position: relative;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.dark-mode .note-item {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.note-item.completed {
    border-right-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.dark-mode .note-item.completed {
    background: rgba(40, 167, 69, 0.1);
}

.note-item.completed .note-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.note-text {
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.5;
    font-size: 0.95rem;
    word-break: break-word;
}

.dark-mode .note-text {
    color: #fff;
}

.note-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.note-checkbox input {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.note-checkbox span {
    font-size: 0.85rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .note-checkbox span {
    color: #ccc;
}

.note-checkbox:hover span {
    color: #4361ee;
}

.delete-note {
    background: none;
    border: none;
    color: #e63946;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-note:hover {
    background: rgba(230, 57, 70, 0.1);
    transform: scale(1.05);
}

/* نموذج إضافة ملاحظة - التعديل الرئيسي هنا */
.add-note-form {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    /* التعديل الجديد: منع التقلص ويضل ثابت */
    flex-shrink: 0;
}

.dark-mode .add-note-form {
    background: #2d2d2d;
    border-top-color: rgba(255, 255, 255, 0.1);
}

#newNote {
    width: 100%;
    height: 80px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: white;
    color: #333;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dark-mode #newNote {
    background: #1a1a1a;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

#newNote:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.add-note-btn {
    width: 100%;
    background: #4361ee;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.add-note-btn:hover:not(:disabled) {
    background: #3a0ca3;
    transform: translateY(-2px);
}

.add-note-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Scrollbar styling - تحسين الشكل */
.notes-list::-webkit-scrollbar {
    width: 8px;
}

.notes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.notes-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.notes-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.dark-mode .notes-list::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.dark-mode .notes-list::-webkit-scrollbar-thumb {
    background: #555;
}

.dark-mode .notes-list::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* WhatsApp Channel Section */
#whatsapp-channel {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 60px 0;
    margin: 40px 0;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.whatsapp-info {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex: 1;
}

.whatsapp-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon i {
    font-size: 2.5rem;
    color: white;
}

.whatsapp-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.whatsapp-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.channel-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.channel-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.channel-features i {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.whatsapp-action {
    text-align: center;
    flex-shrink: 0;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #25D366;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.channel-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

        /* Responsive Design */
        @media (max-width: 992px) {
            .nav-toggle {
                display: block;
                position: absolute;
                left: 20px;
                top: 50%;
                transform: translateY(-50%);
                z-index: 1001;
            }
    
            nav ul {
                position: fixed;
                top: 0;
                right: -250px; 
                width: 200px; 
                height: 100vh;
                background-color: var(--header-bg);
                flex-direction: column;
                padding: 70px 15px 20px; 
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
                transition: right 0.3s ease;
                z-index: 1000;
            }
    
            nav ul.active {
                right: 0;
            }
    
            nav ul li {
                margin-bottom: 15px; 
            }
    
            nav ul li a {
                font-size: 0.9rem;
                padding: 8px 0;
            }
    
            .header-content {
                position: relative;
            }
    

            .header-content {
                justify-content: center;
            }
    
            .theme-toggle {
                position: absolute;
                left: 60px;
                top: 50%;
                transform: translateY(-50%);
            }
            .about-content {
                flex-direction: column;
            }
            
            .about-image {
                order: -1;
            }
            .materials-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 15px;
            }
        }

        @media (max-width: 768px) {
            
            .cap-circle-container {
                width: 120px;
                height: 120px;
            }
            
            .outer-circle {
                width: 120px;
                height: 120px;
            }
            
            .inner-circle {
                width: 90px;
                height: 90px;
                top: 15px;
                left: 15px;
            }
            
            .rotating-circle {
                width: 120px;
                height: 120px;
            }
            
            .loader-cap {
                font-size: 2.5rem;
            }
            
            .cap-title {
                font-size: 1.5rem;
            }
            
            .hero {
                padding: 180px 0 60px;
            }
            
            .hero h2 {
                font-size: 2.2rem;
            }
            
            .section-title h2 {
                font-size: 1.8rem;
            }
            .grade-header {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .grade-title {
                flex-direction: column;
                gap: 10px;
            }

            .grade-info h3 {
                font-size: 1.5rem;
            }

            .materials-grid {
                grid-template-columns: 1fr; 
                gap: 15px;
            }

            .material-card {
                min-height: 180px;
                padding: 15px;
                margin: 0 5px;
            }

            .material-icon {
                font-size: 2rem;
                height: 45px;
                margin-bottom: 12px;
            }

            .material-card h4 {
                font-size: 1.1rem;
                min-height: 2.5rem;
            }

            .material-card p {
                font-size: 0.8rem;
                margin-bottom: 12px;
            }

            .toggle-materials {
                width: 50%;
                justify-content: center;
            }

            .grade-card {
                padding: 20px 15px;
                margin: 0 -5px;
            }
            .download-card {
                padding: 30px 20px;
                margin: 0 15px;
                }
                
            .app-icon {
                width: 70px;
                height: 70px;
            }
                
            .app-icon i {
                font-size: 2rem;
            }
                
            .download-card h3 {
                font-size: 1.5rem;
            }
                
            .download-btn-2 {
                padding: 12px 30px;
                font-size: 1.1rem;
            }

            .whatsapp-content {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            
            .whatsapp-info {
                flex-direction: column;
                align-items: center;
            }
            
            .whatsapp-text h3 {
                font-size: 1.5rem;
            }
            
            .whatsapp-btn {
                padding: 12px 25px;
                font-size: 1rem;
            }
            
            .channel-features {
                text-align: right;
            }
            
            .channel-features li {
                justify-content: center;
            }
            #reviews {
                padding: 60px 0;
            }
            
            #reviews .section-title h2 {
                font-size: 2rem;
            }
            
            .grade-filter-reviews {
                gap: 10px;
                padding: 0 10px;
            }
            
            .grade-filter-btn-reviews {
                padding: 10px 20px;
                font-size: 0.95rem;
                flex: 1;
                min-width: 140px;
                justify-content: center;
            }
            
            .reviews-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }
            
            .review-image {
                height: 180px;
            }
            
            .review-content {
                padding: 20px;
            }
            
            .review-meta {
                flex-direction: column;
                gap: 10px;
            }
            
            .review-btn {
                width: 100%;
            }
            
            .content-stats {
                flex-direction: column;
                gap: 10px;
            }

            .notes-widget {
                bottom: 15px;
                left: 15px;
            }
    
            .notes-toggle {
                width: 55px;
                height: 55px;
                font-size: 1.4rem;
            }
            
            .notes-container {
                width: 300px;
                bottom: 65px;
            }
        }

        @media (max-width: 576px) {
            .logo h1 {
                font-size: 1.2rem;
            }
            .hero h2 {
                font-size: 1.8rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            .grade-card {
                padding: 15px 10px;
                border-radius: 10px;
            }
            
            .grade-info h3 {
                font-size: 1.3rem;
            }

            .grade-icon {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }

            .material-card {
                min-height: 160px;
                padding: 12px;
            }

            .material-card h4 {
                font-size: 1rem;
                min-height: 2.2rem;
            }

            .material-card p {
                font-size: 0.75rem;
            }

            .material-link {
                padding: 6px 12px;
                font-size: 0.8rem;
            }

            .section-title h2 {
                font-size: 1.4rem;
            }

            .toggle-materials {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
            
            .subjects-grid,
            .features-grid,
            .courses-grid {
                grid-template-columns: 1fr;
            }
            
            .contact-content {
                grid-template-columns: 1fr;
            }
            .download-card {
                padding: 25px 15px;
            }
            
            .app-icon {
                width: 60px;
                height: 60px;
            }
            
            .download-card h3 {
                font-size: 1.3rem;
            }
            
            .download-btn-2 {
                padding: 10px 25px;
                font-size: 1rem;
            }
        }
        @media (max-width: 480px) {
            #whatsapp-channel {
                padding: 40px 0;
            }
            
            .whatsapp-icon {
                width: 60px;
                height: 60px;
            }
            
            .whatsapp-icon i {
                font-size: 2rem;
            }
            
            .whatsapp-text h3 {
                font-size: 1.3rem;
            }
            
            .whatsapp-text p {
                font-size: 1rem;
            }
            .grade-filter-btn-reviews {
                min-width: 120px;
                padding: 8px 15px;
                font-size: 0.9rem;
            }
            
            .review-header h3 {
                font-size: 1.3rem;
            }
            
            .content-stats {
                gap: 15px;
            }
            
            .content-stat {
                font-size: 0.9rem;
            }
            
            .load-more-reviews-btn {
                padding: 12px 25px;
                font-size: 1rem;
            }
            .notes-widget {
                bottom: 10px;
                left: 10px;
            }
            
            .notes-toggle {
                width: 50px;
                height: 50px;
                font-size: 1.3rem;
            }
            
            .notes-container {
                width: 280px;
                bottom: 60px;
                left: -10px;
            }
        }
        @media (max-width: 400px) {

            .grade-card {
                padding: 12px 8px;
            }

            .material-card {
                min-height: 150px;
                padding: 10px;
            }

            .material-icon {
                font-size: 1.8rem;
                height: 40px;
            }

            .material-card h4 {
                font-size: 0.95rem;
            }

            .material-card p {
                font-size: 0.7rem;
            }
            .reviews-grid {
                grid-template-columns: 1fr;
            }
            
            .content-stats {
                flex-direction: column;
                gap: 10px;
            }
        }




        /* New Test Platform Section */
.test-platform-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(58, 12, 163, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.test-platform-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.test-platform-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.test-platform-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.test-platform-text {
    flex: 1;
}

.platform-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.test-platform-text h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.dark-mode .test-platform-text h2 {
    color: white;
}

.platform-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.dark-mode .platform-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.platform-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.platform-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .platform-feature-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dark-mode .platform-feature-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-item-text h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3px;
    font-weight: 600;
}

.dark-mode .feature-item-text h4 {
    color: white;
}

.feature-item-text p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.dark-mode .feature-item-text p {
    color: rgba(255, 255, 255, 0.8);
}

.platform-cta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.platform-btn.primary-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff0a78 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.4);
}

.platform-btn.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(247, 37, 133, 0.5);
}

.platform-btn.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.dark-mode .platform-btn.secondary-btn {
    color: white;
    border-color: white;
}

.platform-btn.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.dark-mode .platform-btn.secondary-btn:hover {
    background: white;
    color: var(--primary-color);
}

.platform-image {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.dark-mode .image-badge {
    background: rgba(30, 30, 30, 0.95);
    color: white;
}

.image-badge i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.image-badge span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.dark-mode .image-badge span {
    color: white;
}

/* Responsive styles for new section */
@media (max-width: 992px) {
    .test-platform-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .test-platform-text {
        text-align: center;
    }
    
    .platform-features-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .test-platform-section {
        padding: 60px 0;
    }
    
    .test-platform-text h2 {
        font-size: 2rem;
    }
    
    .platform-subtitle {
        font-size: 1.1rem;
    }
    
    .platform-features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .platform-feature-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .feature-item-icon i {
        font-size: 1.3rem;
    }
    
    .feature-item-text h4 {
        font-size: 1rem;
    }
    
    .feature-item-text p {
        font-size: 0.8rem;
    }
    
    .platform-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .platform-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .platform-features-list {
        grid-template-columns: 1fr; /* في الشاشات الصغيرة جداً، كارت واحد تحت الآخر */
        gap: 15px;
    }
    
    .test-platform-text h2 {
        font-size: 1.8rem;
    }
    
    .platform-subtitle {
        font-size: 1rem;
    }
    
    .platform-feature-item {
        flex-direction: row; /* رجعنا الصف للشاشات الصغيرة عشان يكون أفضل */
        text-align: right;
        padding: 12px 15px;
    }
    
    .feature-item-icon {
        width: 40px;
        height: 40px;
        margin: 0;
    }
    
    .feature-item-icon i {
        font-size: 1.2rem;
    }
    
    .image-badge {
        padding: 8px 15px;
    }
    
    .image-badge i {
        font-size: 1rem;
    }
    
    .image-badge span {
        font-size: 0.85rem;
    }
}