        :root {
            --primary-color: #0c1933;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #0c1933;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo img {
            height: 61px;
            width: 187px;
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 8px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .whatsapp-btn {
            background-color: #25D366;
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: #0c1933;
            padding: 15px 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: space-around;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 20px;
        }

        .main-nav a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Hero Section */
        .hero {
            padding: 40px 0;
            text-align: center;
        }

        .video-container {
            max-width: 800px;
            margin: 0 auto;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .video-placeholder {
            background-color: #333;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }

        /* Categories Section */
        .categories {
            padding: 40px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 30px;
            color: var(--primary-color);
            font-size: 28px;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .category-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }

        .category-card:hover {
            transform: translateY(-5px);
        }

        .category-icon {
            font-size: 40px;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .category-card h3 {
            margin-bottom: 10px;
        }

        /* News Ticker */
        .news-ticker {
            background-color: var(--primary-color);
            color: white;
            padding: 15px 0;
            margin: 40px 0;
            overflow: hidden;
            position: relative;
        }

        .ticker-container {
            display: flex;
            animation: ticker 30s linear infinite;
        }

        .ticker-item {
            padding: 0 30px;
            white-space: nowrap;
        }

        @keyframes ticker {
            0% {
                transform: translateX(100%);
            }
            100% {
                transform: translateX(-100%);
            }
        }

        /* 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(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
        }

        .footer-column a:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 88px;
            left: 3px;
            background-color: var(--primary-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .video-placeholder {
                height: 250px;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 8px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .whatsapp-btn {
            background-color: #25D366;
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 15px 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: space-around;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 20px;
        }

        .main-nav a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1200x400');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 80px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Breadcrumb */
        .breadcrumb {
            padding: 15px 0;
            background-color: var(--card-bg);
            margin-bottom: 30px;
        }

        .breadcrumb ul {
            display: flex;
            list-style: none;
            gap: 10px;
        }

        .breadcrumb a {
            color: var(--text-color);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            color: var(--primary-color);
        }

        .breadcrumb li:not(:last-child)::after {
            content: "/";
            margin-left: 10px;
            color: var(--text-color);
        }

        /* Filters Section */
        .filters {
            background-color: var(--card-bg);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
        }

        .filter-row {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }

        .filter-group {
            flex: 1;
            min-width: 200px;
        }

        .filter-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .filter-group select, .filter-group input {
            width: 100%;
            padding: 10px;
            border-radius: 25px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
        }

        .search-box {
            display: flex;
            margin-top: 10px;
        }

        .search-box input {
            flex: 1;
            border-radius: 25px 0 0 25px;
            padding: 10px 15px;
            border: 1px solid var(--border-color);
            border-right: none;
        }

        .search-box button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 0 25px 25px 0;
            padding: 0 20px;
            cursor: pointer;
        }

        /* Materials Grid */
        .materials-section {
            padding: 20px 0 40px;
        }

        .section-title {
            text-align: center;
            margin-bottom: 30px;
            color: var(--primary-color);
            font-size: 28px;
        }

        .materials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }

        .material-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }

        .material-card:hover {
            transform: translateY(-5px);
        }

        .material-image {
            height: 180px;
            background-color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            position: relative;
        }

        .material-level {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: var(--primary-color);
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
        }

        .material-info {
            padding: 20px;
        }

        .material-info h3 {
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .material-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: #666;
        }

        .material-description {
            margin-bottom: 15px;
            font-size: 0.95rem;
        }

        .material-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }

        .btn-small {
            padding: 6px 15px;
            font-size: 0.9rem;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 40px;
            gap: 10px;
        }

        .pagination a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--card-bg);
            color: var(--text-color);
            text-decoration: none;
        }

        .pagination a.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* 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(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
        }

        .footer-column a:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background-color: var(--primary-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .filter-row {
                flex-direction: column;
            }
            
            .material-card {
                margin-bottom: 20px;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 8px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .whatsapp-btn {
            background-color: #25D366;
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 15px 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: space-around;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 20px;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 80px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Breadcrumb */
        .breadcrumb {
            padding: 15px 0;
            background-color: var(--card-bg);
            margin-bottom: 30px;
        }

        .breadcrumb ul {
            display: flex;
            list-style: none;
            gap: 10px;
        }

        .breadcrumb a {
            color: var(--text-color);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            color: var(--primary-color);
        }

        .breadcrumb li:not(:last-child)::after {
            content: "/";
            margin-left: 10px;
            color: var(--text-color);
        }

        /* Filters Section */
        .filters {
            background-color: var(--card-bg);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
        }

        .filter-row {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }

        .filter-group {
            flex: 1;
            min-width: 200px;
        }

        .filter-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .filter-group select, .filter-group input {
            width: 100%;
            padding: 10px;
            border-radius: 25px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
        }

        .search-box {
            display: flex;
            margin-top: 10px;
        }

        .search-box input {
            flex: 1;
            border-radius: 25px 0 0 25px;
            padding: 10px 15px;
            border: 1px solid var(--border-color);
            border-right: none;
        }

        .search-box button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 0 25px 25px 0;
            padding: 0 20px;
            cursor: pointer;
        }

        /* Teachers Grid */
        .teachers-section {
            padding: 20px 0 40px;
        }

        .section-title {
            text-align: center;
            margin-bottom: 30px;
            color: var(--primary-color);
            font-size: 28px;
        }

        .teachers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }

        .teacher-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
            text-align: center;
        }

        .teacher-card:hover {
            transform: translateY(-5px);
        }

        .teacher-header {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            padding: 20px;
            color: white;
        }

        .teacher-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 4px solid white;
            margin: 0 auto 15px;
            background-color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: var(--primary-color);
        }

        .teacher-name {
            font-size: 1.4rem;
            margin-bottom: 5px;
        }

        .teacher-title {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .teacher-info {
            padding: 20px;
        }

        .teacher-specialties {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 15px 0;
            justify-content: center;
        }

        .specialty-tag {
            background-color: var(--primary-color);
            color: white;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
        }

        .teacher-stats {
            display: flex;
            justify-content: space-around;
            margin: 15px 0;
            padding: 10px 0;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .stat {
            text-align: center;
        }

        .stat-value {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--text-color);
        }

        .teacher-description {
            margin-bottom: 15px;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .teacher-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .btn-small {
            padding: 6px 15px;
            font-size: 0.9rem;
        }

        .btn-full {
            flex: 1;
        }

        /* Featured Teachers */
        .featured-teachers {
            background-color: var(--card-bg);
            padding: 40px 0;
            margin: 40px 0;
        }

        .featured-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .featured-card {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .featured-card .teacher-avatar {
            width: 80px;
            height: 80px;
            margin-bottom: 15px;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 40px;
            gap: 10px;
        }

        .pagination a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--card-bg);
            color: var(--text-color);
            text-decoration: none;
        }

        .pagination a.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* 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(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
        }

        .footer-column a:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background-color: var(--primary-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .filter-row {
                flex-direction: column;
            }
            
            .teacher-card {
                margin-bottom: 20px;
            }
            
            .teacher-actions {
                flex-direction: column;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 8px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .whatsapp-btn {
            background-color: #25D366;
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 15px 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: space-around;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 20px;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 80px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Breadcrumb */
        .breadcrumb {
            padding: 15px 0;
            background-color: var(--card-bg);
            margin-bottom: 30px;
        }

        .breadcrumb ul {
            display: flex;
            list-style: none;
            gap: 10px;
        }

        .breadcrumb a {
            color: var(--text-color);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            color: var(--primary-color);
        }

        .breadcrumb li:not(:last-child)::after {
            content: "/";
            margin-left: 10px;
            color: var(--text-color);
        }

        /* Subject Info */
        .subject-info {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 40px;
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .subject-icon {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 40px;
        }

        .subject-details {
            flex: 1;
        }

        .subject-title {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .subject-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #666;
        }

        .subject-description {
            margin-bottom: 20px;
            line-height: 1.8;
        }

        .subject-progress {
            margin-top: 20px;
        }

        .progress-bar {
            background-color: var(--border-color);
            border-radius: 10px;
            height: 8px;
            margin: 10px 0;
            overflow: hidden;
        }

        .progress-fill {
            background-color: var(--primary-color);
            height: 100%;
            border-radius: 10px;
            width: 65%;
        }

        /* Lectures Layout */
        .lectures-layout {
            display: grid;
            grid-template-columns: 250px 1fr;
            gap: 30px;
            margin-bottom: 40px;
        }

        /* Chapters Sidebar */
        .chapters-sidebar {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 20px;
            height: fit-content;
        }

        .chapters-list {
            list-style: none;
        }

        .chapter-item {
            margin-bottom: 10px;
        }

        .chapter-link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background-color: var(--bg-color);
            border-radius: 10px;
            text-decoration: none;
            color: var(--text-color);
            transition: all 0.3s;
        }

        .chapter-link:hover, .chapter-link.active {
            background-color: var(--primary-color);
            color: white;
        }

        .chapter-lectures {
            font-size: 0.8rem;
            background-color: rgba(255, 255, 255, 0.2);
            padding: 2px 8px;
            border-radius: 10px;
        }

        /* Lectures Content */
        .lectures-content {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
        }

        .chapter-header {
            display: flex;
            justify-content: between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border-color);
        }

        .chapter-title {
            font-size: 1.5rem;
            color: var(--primary-color);
        }

        .lectures-list {
            list-style: none;
        }

        .lecture-item {
            background-color: var(--bg-color);
            border-radius: 10px;
            margin-bottom: 15px;
            overflow: hidden;
            transition: transform 0.3s;
        }

        .lecture-item:hover {
            transform: translateX(-5px);
        }

        .lecture-link {
            display: flex;
            align-items: center;
            padding: 20px;
            text-decoration: none;
            color: var(--text-color);
            gap: 15px;
        }

        .lecture-number {
            width: 40px;
            height: 40px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .lecture-details {
            flex: 1;
        }

        .lecture-title {
            font-size: 1.1rem;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

        .lecture-meta {
            display: flex;
            gap: 15px;
            font-size: 0.9rem;
            color: #666;
        }

        .lecture-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .btn-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .progress-indicator {
            width: 100px;
            height: 6px;
            background-color: var(--border-color);
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-completed {
            height: 100%;
            background-color: var(--primary-color);
        }

        /* Resources Section */
        .resources-section {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            margin: 40px 0;
        }

        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .resource-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: transform 0.3s;
        }

        .resource-card:hover {
            transform: translateY(-5px);
        }

        .resource-icon {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        /* Instructor Section */
        .instructor-section {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            margin: 40px 0;
        }

        .instructor-profile {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .instructor-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
        }

        .instructor-details {
            flex: 1;
        }

        .instructor-name {
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .instructor-bio {
            line-height: 1.8;
            margin-bottom: 15px;
        }

        .instructor-stats {
            display: flex;
            gap: 20px;
        }

        .stat {
            text-align: center;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .stat-label {
            font-size: 0.9rem;
            color: #666;
        }

        /* 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(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
        }

        .footer-column a:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background-color: var(--primary-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .subject-info {
                flex-direction: column;
                text-align: center;
            }
            
            .subject-meta {
                justify-content: center;
            }
            
            .lectures-layout {
                grid-template-columns: 1fr;
            }
            
            .lecture-link {
                flex-direction: column;
                text-align: center;
            }
            
            .instructor-profile {
                flex-direction: column;
                text-align: center;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 12px 25px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #b30000;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-success {
            background-color: #28a745;
            color: white;
        }

        .btn-success:hover {
            background-color: #218838;
        }

        .btn-secondary {
            background-color: #6c757d;
            color: white;
        }

        .whatsapp-btn {
            background-color: #25D366;
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 15px 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: space-around;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 20px;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Breadcrumb */
        .breadcrumb {
            padding: 15px 0;
            background-color: var(--card-bg);
            margin-bottom: 30px;
        }

        .breadcrumb ul {
            display: flex;
            list-style: none;
            gap: 10px;
        }

        .breadcrumb a {
            color: var(--text-color);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            color: var(--primary-color);
        }

        .breadcrumb li:not(:last-child)::after {
            content: "/";
            margin-left: 10px;
            color: var(--text-color);
        }

        /* Lecture Details Layout */
        .lecture-details-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 50px;
        }

        /* Main Content */
        .lecture-main-content {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
        }

        .lecture-header {
            margin-bottom: 30px;
        }

        .lecture-title {
            font-size: 2.2rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .lecture-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #666;
        }

        .lecture-description {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 25px;
        }

        /* Video Player */
        .video-section {
            margin-bottom: 30px;
        }

        .video-player {
            background-color: #000;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .video-placeholder {
            text-align: center;
        }

        .video-placeholder i {
            font-size: 80px;
            margin-bottom: 20px;
            color: var(--primary-color);
        }

        /* Resources Section */
        .resources-section {
            margin-top: 40px;
        }

        .section-title {
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-color);
        }

        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .resource-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: transform 0.3s;
            border: 1px solid var(--border-color);
        }

        .resource-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .resource-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .resource-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .resource-actions {
            margin-top: 15px;
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .btn-small {
            padding: 8px 15px;
            font-size: 0.9rem;
        }

        /* Sidebar */
        .lecture-sidebar {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            height: fit-content;
        }

        .pricing-card {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            margin-bottom: 25px;
        }

        .price {
            font-size: 2.5rem;
            font-weight: bold;
            margin: 15px 0;
        }

        .price-period {
            font-size: 1rem;
            opacity: 0.9;
        }

        .features-list {
            list-style: none;
            margin: 20px 0;
        }

        .features-list li {
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .features-list li:last-child {
            border-bottom: none;
        }

        .instructor-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            margin-bottom: 25px;
        }

        .instructor-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin: 0 auto 15px;
        }

        .instructor-name {
            font-size: 1.3rem;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .instructor-rating {
            color: #ffc107;
            margin-bottom: 10px;
        }

        /* Related Lectures */
        .related-lectures {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            margin: 40px 0;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .related-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            padding: 20px;
            border: 1px solid var(--border-color);
            transition: transform 0.3s;
        }

        .related-card:hover {
            transform: translateY(-3px);
        }

        .related-card h4 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        /* 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(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
        }

        .footer-column a:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background-color: var(--primary-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: var(--bg-color);
            border-radius: 15px;
            padding: 30px;
            width: 90%;
            max-width: 500px;
            text-align: center;
        }

        .modal h3 {
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            left: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-color);
            cursor: pointer;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .lecture-details-layout {
                grid-template-columns: 1fr;
            }
            
            .video-player {
                height: 250px;
            }
            
            .resources-grid {
                grid-template-columns: 1fr;
            }
            
            .related-grid {
                grid-template-columns: 1fr;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
            --sidebar-bg: #f8f9fa;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
            --sidebar-bg: #1a1a1a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
            font-size: 1.3rem;
        }

        .lecture-title-header {
            flex: 1;
            text-align: center;
            margin: 0 15px;
        }

        .lecture-title-header h2 {
            color: var(--primary-color);
            font-size: 1.1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--primary-color);
            font-size: 1.2rem;
            cursor: pointer;
        }

        .auth-buttons {
            display: flex;
            gap: 8px;
        }

        .btn {
            padding: 8px 16px;
            border-radius: 20px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-size: 0.85rem;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #b30000;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Main Content Layout */
        .main-content {
            display: flex;
            min-height: calc(100vh - 70px);
        }

        /* Video and Content Section */
        .video-content-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background-color: var(--bg-color);
        }

        /* Video Player Section */
        .video-section {
            background-color: #000;
            position: relative;
        }

        .video-container {
            width: 100%;
            position: relative;
            background: #000;
        }

        .video-player {
            width: 100%;
            aspect-ratio: 16/9;
            background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            position: relative;
        }

        .video-controls {
            background-color: rgba(0, 0, 0, 0.9);
            padding: 12px 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-top: 1px solid #333;
        }

        .control-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.1rem;
            cursor: pointer;
            padding: 5px;
            transition: color 0.3s;
        }

        .control-btn:hover {
            color: var(--primary-color);
        }

        .progress-bar {
            flex: 1;
            height: 5px;
            background-color: #555;
            border-radius: 3px;
            position: relative;
            cursor: pointer;
        }

        .progress {
            position: absolute;
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 3px;
            width: 35%;
        }

        .time-display {
            color: white;
            font-size: 0.85rem;
            min-width: 90px;
        }

        .video-info {
            padding: 20px;
            background-color: var(--bg-color);
            border-bottom: 1px solid var(--border-color);
        }

        .video-info h1 {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 1.4rem;
        }

        .lecture-meta {
            display: flex;
            gap: 20px;
            color: #666;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }

        /* Content Tabs */
        .content-tabs {
            background-color: var(--card-bg);
            border-bottom: 1px solid var(--border-color);
        }

        .tab-buttons {
            display: flex;
            overflow-x: auto;
            padding: 0 15px;
        }

        .tab-btn {
            background: none;
            border: none;
            padding: 15px 20px;
            color: var(--text-color);
            font-size: 0.9rem;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            white-space: nowrap;
            transition: all 0.3s;
        }

        .tab-btn.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            background-color: rgba(204, 0, 0, 0.05);
        }

        .tab-btn:hover {
            color: var(--primary-color);
            background-color: rgba(204, 0, 0, 0.05);
        }

        /* Tab Content */
        .tab-content {
            display: none;
            padding: 25px;
            background-color: var(--bg-color);
            min-height: 400px;
        }

        .tab-content.active {
            display: block;
        }

        /* Sections Grid */
        .sections-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }

        .section-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 25px;
            transition: all 0.3s;
        }

        .section-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .section-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }

        .section-title {
            color: var(--primary-color);
            font-size: 1.3rem;
            margin-bottom: 5px;
        }

        .section-subtitle {
            color: #666;
            font-size: 0.9rem;
        }

        .section-content {
            margin-bottom: 20px;
        }

        .section-meta {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            color: #666;
            font-size: 0.9rem;
        }

        .section-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        /* Homework Status */
        .homework-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .status-pending {
            background-color: #fff3cd;
            color: #856404;
            border: 1px solid #ffeaa7;
        }

        .status-completed {
            background-color: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }

        .status-available {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        /* Progress Section */
        .progress-section {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
            border: 1px solid var(--border-color);
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .progress-bar-large {
            height: 8px;
            background-color: var(--border-color);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), #ff3333);
            border-radius: 4px;
            width: 65%;
        }

        .progress-stats {
            display: flex;
            justify-content: space-between;
            color: #666;
            font-size: 0.9rem;
        }

        /* Sidebar */
        .sidebar {
            width: 350px;
            background-color: var(--sidebar-bg);
            border-left: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            height: 100vh;
            position: sticky;
            top: 0;
            overflow-y: auto;
        }

        .sidebar-header {
            padding: 20px;
            background-color: #0c1933;
            color: white;
            text-align: center;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
            padding: 0;
        }

        /* Chapters List */
        .chapters-list {
            list-style: none;
        }

        .chapter-item {
            border-bottom: 1px solid var(--border-color);
        }

        .chapter-header {
            padding: 16px 20px;
            background-color: var(--card-bg);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.3s;
        }

        .chapter-header:hover {
            background-color: rgba(204, 0, 0, 0.05);
        }

        .chapter-header h3 {
            color: var(--primary-color);
            font-size: 1rem;
        }

        .chapter-lectures {
            background-color: rgba(204, 0, 0, 0.1);
            color: var(--primary-color);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
        }

        .lectures-list {
            list-style: none;
            background-color: var(--bg-color);
            display: none;
        }

        .chapter-item.active .lectures-list {
            display: block;
        }

        .lecture-item {
            padding: 14px 20px 14px 35px;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .lecture-item:hover {
            background-color: var(--card-bg);
        }

        .lecture-item.active {
            background-color: var(--primary-color);
            color: white;
        }

        .lecture-item.active .lecture-title {
            color: white;
        }

        .lecture-number {
            width: 28px;
            height: 28px;
            background-color: var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
            flex-shrink: 0;
        }

        .lecture-item.active .lecture-number {
            background-color: white;
            color: var(--primary-color);
        }

        .lecture-details {
            flex: 1;
        }

        .lecture-title {
            font-size: 0.9rem;
            margin-bottom: 5px;
            color: var(--text-color);
        }

        .lecture-duration {
            font-size: 0.8rem;
            color: #666;
        }

        .lecture-item.active .lecture-duration {
            color: rgba(255, 255, 255, 0.8);
        }

        .lecture-status {
            font-size: 0.8rem;
        }

        .status-completed {
            color: #28a745;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background-color: var(--primary-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .sidebar {
                width: 300px;
            }
            
            .sections-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                height: auto;
                position: static;
                display: none;
            }
            
            .sidebar.mobile-visible {
                display: flex;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .lecture-title-header {
                display: none;
            }
            
            .auth-buttons {
                display: none;
            }
            
            .tab-buttons {
                padding: 0 10px;
            }
            
            .tab-btn {
                padding: 12px 15px;
                font-size: 0.8rem;
            }
            
            .tab-content {
                padding: 20px 15px;
            }
        }

        /* Video Player Enhancements */
        .play-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.5);
            cursor: pointer;
        }

        .play-btn {
            width: 80px;
            height: 80px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            transition: transform 0.3s;
        }

        .play-btn:hover {
            transform: scale(1.1);
        }

        .fullscreen-btn {
            margin-left: auto;
        }

        .volume-control {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .volume-slider {
            width: 80px;
            height: 4px;
            background-color: #555;
            border-radius: 2px;
            position: relative;
            cursor: pointer;
        }

        .volume-level {
            position: absolute;
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 2px;
            width: 70%;
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.8;
            text-align: right;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
            font-size: 1.8rem;
            font-weight: 800;
        }

        .auth-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #b30000;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .main-nav li {
            margin: 0;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 18px 25px;
            display: block;
            transition: all 0.3s;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        .main-nav li:last-child a {
            border-left: none;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.15);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            padding: 60px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px 0 40px;
        }

        /* Teacher Profile Layout */
        .teacher-profile-layout {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 30px;
            margin-bottom: 50px;
        }

        /* Teacher Sidebar */
        .teacher-sidebar {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            height: fit-content;
            position: sticky;
            top: 100px;
        }

        .teacher-avatar {
            text-align: center;
            margin-bottom: 25px;
        }

        .avatar-img {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3.5rem;
            border: 5px solid white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }
        
        .avatar-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 10;
        }
        
        .avatar-img.has-image img {
            display: block;
        }
        
        .avatar-img.has-image i {
            display: none !important;
        }
        
        .avatar-img:not(.has-image) img {
            display: none !important;
        }
        
        .avatar-img i {
            position: relative;
            z-index: 1;
        }

        .teacher-name {
            font-size: 1.6rem;
            color: white;
            margin-bottom: 5px;
            font-weight: 700;
        }

        .teacher-title {
            color: #666;
            font-size: 1rem;
            margin-bottom: 20px;
        }

        .teacher-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 25px;
        }

        .stat-item {
            text-align: center;
            padding: 15px;
            background-color: var(--bg-color);
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.85rem;
            color: #666;
        }

        .teacher-contact {
            margin-top: 25px;
        }

        .contact-btn {
            width: 100%;
            margin-bottom: 10px;
            justify-content: center;
        }

        /* Teacher Main Content */
        .teacher-main {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        /* About Section */
        .about-section {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .section-title {
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-color);
            font-weight: 700;
        }

        .about-content {
            line-height: 1.8;
            color: #666;
        }

        /* Skills Section */
        .skills-section {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .skill-tag {
            background-color: var(--bg-color);
            color: var(--text-color);
            padding: 10px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            text-align: center;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }

        .skill-tag:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        /* Courses Section */
        .courses-section {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .course-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s;
            border: 1px solid var(--border-color);
        }

        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .course-image {
            height: 160px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2.5rem;
        }

        .course-content {
            padding: 20px;
        }

        .course-title {
            font-size: 1.1rem;
            color: var(--primary-color);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            color: #666;
            font-size: 0.85rem;
            margin-bottom: 15px;
        }

        .course-description {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .course-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .course-price {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.1rem;
        }

        /* Reviews Section */
        .reviews-section {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .review-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
        }

        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .reviewer {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .reviewer-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            position: relative;
            overflow: hidden;
        }
        
        .reviewer-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
        }
        
        .reviewer-avatar i {
            position: relative;
            z-index: 1;
        }

        .reviewer-name {
            font-weight: 600;
        }

        .review-rating {
            color: #ffc107;
        }

        .review-date {
            color: #666;
            font-size: 0.85rem;
        }

        .review-content {
            color: #666;
            line-height: 1.6;
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 50px 0 20px;
            margin-top: auto;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 25px;
            font-size: 1.4rem;
            font-weight: 700;
        }

        .footer-column p {
            line-height: 1.8;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
            transition: all 0.3s;
            opacity: 0.9;
        }

        .footer-column a:hover {
            color: white;
            opacity: 1;
            padding-right: 5px;
        }

        .contact-info li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
            opacity: 0.9;
        }

        .contact-info i {
            width: 20px;
            color: var(--primary-color);
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s;
            text-decoration: none;
        }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 25px;
            left: 25px;
            background-color: var(--primary-color);
            color: white;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s;
            border: none;
            font-size: 1.2rem;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .teacher-profile-layout {
                grid-template-columns: 300px 1fr;
            }
        }

        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                gap: 0;
            }
            
            .main-nav a {
                border-left: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                text-align: center;
            }
            
            .teacher-profile-layout {
                grid-template-columns: 1fr;
            }
            
            .teacher-sidebar {
                position: static;
            }
            
            .courses-grid {
                grid-template-columns: 1fr;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .page-header p {
                font-size: 1.1rem;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 30px;
            }
            
            .contact-info li {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }
            
            .auth-buttons .btn {
                width: 100%;
            }
            
            .teacher-stats {
                grid-template-columns: 1fr;
            }
            
            .skills-grid {
                grid-template-columns: 1fr;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.8;
            text-align: right;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
            font-size: 1.8rem;
            font-weight: 800;
        }

        .auth-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #b30000;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .main-nav li {
            margin: 0;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 18px 25px;
            display: block;
            transition: all 0.3s;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        .main-nav li:last-child a {
            border-left: none;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.15);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            padding: 80px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: 2.8rem;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .page-header p {
            font-size: 1.3rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px 0 40px;
        }

        /* Blog Content */
        .blog-content {
            padding: 20px 0;
        }

        .blog-grid {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-bottom: 50px;
        }

        .blog-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
        }

        .blog-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .blog-image {
            height: 220px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3.5rem;
            position: relative;
            overflow: hidden;
        }

        .blog-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.2);
        }

        .blog-image i {
            position: relative;
            z-index: 2;
        }

        .blog-content-card {
            padding: 30px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .blog-category {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-bottom: 20px;
            font-weight: 600;
            align-self: flex-start;
        }

        .blog-title {
            font-size: 1.5rem;
            color: var(--text-color);
            margin-bottom: 15px;
            line-height: 1.4;
            font-weight: 700;
        }

        .blog-excerpt {
            color: #666;
            margin-bottom: 25px;
            line-height: 1.8;
            font-size: 1rem;
            flex: 1;
        }

        .blog-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            margin-top: auto;
        }

        .blog-date {
            color: #666;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .read-more {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .read-more:hover {
            color: #b30000;
            gap: 12px;
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 50px 0 20px;
            margin-top: auto;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 25px;
            font-size: 1.4rem;
            font-weight: 700;
        }

        .footer-column p {
            line-height: 1.8;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
            transition: all 0.3s;
            opacity: 0.9;
        }

        .footer-column a:hover {
            color: white;
            opacity: 1;
            padding-right: 5px;
        }

        .contact-info li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
            opacity: 0.9;
        }

        .contact-info i {
            width: 20px;
            color: var(--primary-color);
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s;
            text-decoration: none;
        }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 25px;
            left: 25px;
            background-color: var(--primary-color);
            color: white;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s;
            border: none;
            font-size: 1.2rem;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                gap: 0;
            }
            
            .main-nav a {
                border-left: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                text-align: center;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .page-header p {
                font-size: 1.1rem;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 30px;
            }
            
            .contact-info li {
                justify-content: center;
            }
            
            .blog-meta {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
        }

        @media (max-width: 480px) {
            .blog-content-card {
                padding: 20px;
            }
            
            .blog-title {
                font-size: 1.3rem;
            }
            
            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }
            
            .auth-buttons .btn {
                width: 100%;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.8;
            text-align: right;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
            font-size: 1.8rem;
            font-weight: 800;
        }

        .auth-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #b30000;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .main-nav li {
            margin: 0;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 18px 25px;
            display: block;
            transition: all 0.3s;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        .main-nav li:last-child a {
            border-left: none;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.15);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            padding: 80px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: 2.8rem;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .page-header p {
            font-size: 1.3rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px 0 40px;
        }

        /* Blog Layout */
        .blog-layout {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 40px;
            margin-bottom: 50px;
        }

        /* Blog Content */
        .blog-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .blog-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }

        .blog-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .blog-image {
            height: 280px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3.5rem;
            position: relative;
            overflow: hidden;
        }

        .blog-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .blog-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.2);
        }

        .blog-category {
            position: absolute;
            top: 20px;
            right: 20px;
            background-color: var(--primary-color);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            z-index: 2;
        }

        .blog-content-card {
            padding: 30px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .blog-title {
            font-size: 1.6rem;
            color: var(--text-color);
            margin-bottom: 15px;
            line-height: 1.4;
            font-weight: 700;
        }

        .blog-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            color: #666;
            font-size: 0.9rem;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .blog-excerpt {
            color: #666;
            margin-bottom: 25px;
            line-height: 1.8;
            font-size: 1rem;
            flex: 1;
        }

        .blog-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }

        .read-more {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .read-more:hover {
            color: #b30000;
            gap: 12px;
        }

        .blog-stats {
            display: flex;
            gap: 20px;
            color: #666;
            font-size: 0.9rem;
        }

        .stat {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Featured Article */
        .featured-article {
            grid-column: 1 / -1;
            margin-bottom: 20px;
        }

        .featured-article .blog-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .featured-article .blog-image {
            height: 100%;
        }

        .featured-article .blog-content-card {
            padding: 40px;
        }

        .featured-article .blog-title {
            font-size: 2rem;
        }

        /* Sidebar */
        .blog-sidebar {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .sidebar-widget {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .widget-title {
            font-size: 1.3rem;
            color: var(--primary-color);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-color);
            font-weight: 700;
        }

        /* Search Widget */
        .search-widget {
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 12px 50px 12px 15px;
            border-radius: 25px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 1rem;
        }

        .search-btn {
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
        }

        /* Categories Widget */
        .categories-list {
            list-style: none;
        }

        .category-item {
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .category-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .category-link {
            color: var(--text-color);
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }

        .category-link:hover {
            color: var(--primary-color);
        }

        .category-count {
            background-color: var(--primary-color);
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
        }

        /* Popular Posts Widget */
        .popular-posts {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .popular-post {
            display: flex;
            gap: 15px;
            padding: 15px;
            background-color: var(--bg-color);
            border-radius: 10px;
            transition: all 0.3s;
        }

        .popular-post:hover {
            transform: translateX(-5px);
        }

        .popular-post-image {
            width: 80px;
            height: 80px;
            border-radius: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .popular-post-content {
            flex: 1;
        }

        .popular-post-title {
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 5px;
            font-weight: 600;
            line-height: 1.4;
        }

        .popular-post-date {
            color: #666;
            font-size: 0.8rem;
        }

        /* Tags Widget */
        .tags-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .tag {
            background-color: var(--bg-color);
            color: var(--text-color);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            text-decoration: none;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }

        .tag:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 50px;
        }

        .pagination a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background-color: var(--card-bg);
            color: var(--text-color);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            border: 1px solid var(--border-color);
        }

        .pagination a:hover, .pagination a.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        /* Newsletter Widget */
        .newsletter-widget {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            text-align: center;
        }

        .newsletter-widget .widget-title {
            color: white;
            border-bottom-color: rgba(255, 255, 255, 0.3);
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .newsletter-input {
            width: 100%;
            padding: 12px 15px;
            border-radius: 25px;
            border: none;
            background-color: rgba(255, 255, 255, 0.9);
        }

        .newsletter-btn {
            background-color: white;
            color: var(--primary-color);
            border: none;
            padding: 12px;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .newsletter-btn:hover {
            background-color: #f8f9fa;
            transform: translateY(-2px);
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 50px 0 20px;
            margin-top: auto;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 25px;
            font-size: 1.4rem;
            font-weight: 700;
        }

        .footer-column p {
            line-height: 1.8;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
            transition: all 0.3s;
            opacity: 0.9;
        }

        .footer-column a:hover {
            color: white;
            opacity: 1;
            padding-right: 5px;
        }

        .contact-info li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
            opacity: 0.9;
        }

        .contact-info i {
            width: 20px;
            color: var(--primary-color);
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s;
            text-decoration: none;
        }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 25px;
            left: 25px;
            background-color: var(--primary-color);
            color: white;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s;
            border: none;
            font-size: 1.2rem;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .blog-layout {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .blog-sidebar {
                order: -1;
            }
        }

        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                gap: 0;
            }
            
            .main-nav a {
                border-left: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                text-align: center;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .page-header p {
                font-size: 1.1rem;
            }
            
            .featured-article .blog-card {
                grid-template-columns: 1fr;
            }
            
            .blog-meta {
                flex-direction: column;
                gap: 10px;
            }
            
            .blog-actions {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 30px;
            }
            
            .contact-info li {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }
            
            .auth-buttons .btn {
                width: 100%;
            }
            
            .blog-content-card {
                padding: 20px;
            }
            
            .blog-title {
                font-size: 1.3rem;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.8;
            text-align: right;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
            font-size: 1.8rem;
            font-weight: 800;
        }

        .auth-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #b30000;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .main-nav li {
            margin: 0;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 18px 25px;
            display: block;
            transition: all 0.3s;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        .main-nav li:last-child a {
            border-left: none;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.15);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            padding: 60px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px 0 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Login Section */
        .login-section {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
        }

        .login-card {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border-color);
        }

        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .login-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 2rem;
        }

        .login-title {
            font-size: 1.8rem;
            color: var(--primary-color);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .login-subtitle {
            color: #666;
            font-size: 1rem;
        }

        /* User Type Selector */
        .user-type-selector {
            display: flex;
            background-color: var(--bg-color);
            border-radius: 15px;
            padding: 5px;
            margin-bottom: 25px;
            border: 1px solid var(--border-color);
        }

        .user-type-btn {
            flex: 1;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            border-radius: 12px;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .user-type-btn.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* Login Form */
        .login-form {
            display: none;
        }

        .login-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-color);
        }

        .form-control {
            width: 100%;
            padding: 15px 20px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
        }

        .input-with-icon {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
        }

        .input-with-icon .form-control {
            padding-left: 50px;
        }

        /* Remember Me & Forgot Password */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-check-input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary-color);
        }

        .form-check-label {
            font-size: 0.9rem;
            color: #666;
        }

        .forgot-password {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        /* Submit Button */
        .submit-btn {
            width: 100%;
            padding: 15px;
            font-size: 1.1rem;
            margin-bottom: 20px;
        }

        .submit-btn i {
            margin-right: 8px;
        }

        /* Divider */
        .divider {
            text-align: center;
            margin: 25px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            right: 0;
            left: 0;
            height: 1px;
            background-color: var(--border-color);
        }

        .divider-text {
            background-color: var(--card-bg);
            padding: 0 15px;
            color: #666;
            font-size: 0.9rem;
            position: relative;
            display: inline-block;
        }

        /* Social Login */
        .social-login {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }

        .social-btn {
            flex: 1;
            padding: 12px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .social-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .social-btn.google {
            border-color: #DB4437;
            color: #DB4437;
        }

        .social-btn.google:hover {
            background-color: #DB4437;
            color: white;
        }

        .social-btn.microsoft {
            border-color: #0078D4;
            color: #0078D4;
        }

        .social-btn.microsoft:hover {
            background-color: #0078D4;
            color: white;
        }

        /* Register Link */
        .register-link {
            text-align: center;
            margin-top: 25px;
            color: #666;
        }

        .register-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .register-link a:hover {
            text-decoration: underline;
        }

        /* Features Section */
        .features-section {
            margin-top: 40px;
            text-align: center;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .feature-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            border: 1px solid var(--border-color);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: white;
            font-size: 1.5rem;
        }

        .feature-title {
            font-size: 1.1rem;
            color: var(--primary-color);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .feature-description {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 50px 0 20px;
            margin-top: auto;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 25px;
            font-size: 1.4rem;
            font-weight: 700;
        }

        .footer-column p {
            line-height: 1.8;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
            transition: all 0.3s;
            opacity: 0.9;
        }

        .footer-column a:hover {
            color: white;
            opacity: 1;
            padding-right: 5px;
        }

        .contact-info li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
            opacity: 0.9;
        }

        .contact-info i {
            width: 20px;
            color: var(--primary-color);
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s;
            text-decoration: none;
        }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 25px;
            left: 25px;
            background-color: var(--primary-color);
            color: white;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s;
            border: none;
            font-size: 1.2rem;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                gap: 0;
            }
            
            .main-nav a {
                border-left: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                text-align: center;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .page-header p {
                font-size: 1.1rem;
            }
            
            .login-card {
                padding: 30px 25px;
            }
            
            .social-login {
                flex-direction: column;
            }
            
            .form-options {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 30px;
            }
            
            .contact-info li {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }
            
            .auth-buttons .btn {
                width: 100%;
            }
            
            .user-type-selector {
                flex-direction: column;
                gap: 5px;
            }
        }
                :root {
            --primary-color: #cc0000;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.8;
            text-align: right;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Header Styles */
        .top-header {
            background-color: var(--header-bg);
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
            font-size: 1.8rem;
            font-weight: 800;
        }

        .auth-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #b30000;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: var(--primary-color);
            padding: 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .main-nav li {
            margin: 0;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 18px 25px;
            display: block;
            transition: all 0.3s;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        .main-nav li:last-child a {
            border-left: none;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.15);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            padding: 60px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px 0 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Login Section */
        .login-section {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
        }

        .login-card {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border-color);
        }

        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .login-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 2rem;
        }

        .login-title {
            font-size: 1.8rem;
            color: var(--primary-color);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .login-subtitle {
            color: #666;
            font-size: 1rem;
        }

        /* User Type Selector */
        .user-type-selector {
            display: flex;
            background-color: var(--bg-color);
            border-radius: 15px;
            padding: 5px;
            margin-bottom: 25px;
            border: 1px solid var(--border-color);
        }

        .user-type-btn {
            flex: 1;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            border-radius: 12px;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .user-type-btn.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* Login Form */
        .login-form {
            display: none;
        }

        .login-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-color);
        }

        .form-control {
            width: 100%;
            padding: 15px 20px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
        }

        .input-with-icon {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
        }

        .input-with-icon .form-control {
            padding-left: 50px;
        }

        /* Remember Me & Forgot Password */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-check-input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary-color);
        }

        .form-check-label {
            font-size: 0.9rem;
            color: #666;
        }

        .forgot-password {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        /* Submit Button */
        .submit-btn {
            width: 100%;
            padding: 15px;
            font-size: 1.1rem;
            margin-bottom: 20px;
        }

        .submit-btn i {
            margin-right: 8px;
        }

        /* Divider */
        .divider {
            text-align: center;
            margin: 25px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            right: 0;
            left: 0;
            height: 1px;
            background-color: var(--border-color);
        }

        .divider-text {
            background-color: var(--card-bg);
            padding: 0 15px;
            color: #666;
            font-size: 0.9rem;
            position: relative;
            display: inline-block;
        }

        /* Social Login */
        .social-login {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }

        .social-btn {
            flex: 1;
            padding: 12px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .social-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .social-btn.google {
            border-color: #DB4437;
            color: #DB4437;
        }

        .social-btn.google:hover {
            background-color: #DB4437;
            color: white;
        }

        .social-btn.microsoft {
            border-color: #0078D4;
            color: #0078D4;
        }

        .social-btn.microsoft:hover {
            background-color: #0078D4;
            color: white;
        }

        /* Register Link */
        .register-link {
            text-align: center;
            margin-top: 25px;
            color: #666;
        }

        .register-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .register-link a:hover {
            text-decoration: underline;
        }

        /* Features Section */
        .features-section {
            margin-top: 40px;
            text-align: center;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .feature-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            border: 1px solid var(--border-color);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: white;
            font-size: 1.5rem;
        }

        .feature-title {
            font-size: 1.1rem;
            color: var(--primary-color);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .feature-description {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 50px 0 20px;
            margin-top: auto;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 25px;
            font-size: 1.4rem;
            font-weight: 700;
        }

        .footer-column p {
            line-height: 1.8;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
            transition: all 0.3s;
            opacity: 0.9;
        }

        .footer-column a:hover {
            color: white;
            opacity: 1;
            padding-right: 5px;
        }

        .contact-info li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
            opacity: 0.9;
        }

        .contact-info i {
            width: 20px;
            color: var(--primary-color);
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s;
            text-decoration: none;
        }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 25px;
            left: 25px;
            background-color: var(--primary-color);
            color: white;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s;
            border: none;
            font-size: 1.2rem;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                gap: 0;
            }
            
            .main-nav a {
                border-left: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                text-align: center;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .page-header p {
                font-size: 1.1rem;
            }
            
            .login-card {
                padding: 30px 25px;
            }
            
            .social-login {
                flex-direction: column;
            }
            
            .form-options {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 30px;
            }
            
            .contact-info li {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }
            
            .auth-buttons .btn {
                width: 100%;
            }
            
            .user-type-selector {
                flex-direction: column;
                gap: 5px;
            }
        }
                :root {
            --primary-color: #1b236b;
            --second-color:#0c1933;
            --text-color: #333;
            --bg-color: #fff;
            --header-bg: #f8f9fa;
            --footer-bg: #222;
            --footer-text: #ddd;
            --card-bg: #f5f5f5;
            --border-color: #ddd;
             /* ألوان الأيقونات المتطايرة */
            --icon-color-1: #FFD700; /* ذهبي */
            --icon-color-2: #B0E0E6; /* أزرق فاتح */
            --icon-color-3: #90EE90; /* أخضر فاتح */
            --icon-color-4: #FF69B4; /* وردي */
        }

        .dark-mode {
            --primary-color: #ff3333;
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --header-bg: #1e1e1e;
            --footer-bg: #000;
            --footer-text: #bbb;
            --card-bg: #2d2d2d;
            --border-color: #444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.8;
            text-align: right;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container {
            width: 100%;
            max-width: 2000px;
            margin: 0 auto;
            padding: 0 0px;
        }

        /* Header Styles */
        .top-header {
            background-color: #1b236b;
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo h1 {
            color: var(--primary-color);
            font-size: 1.8rem;
            font-weight: 800;
        }

        .auth-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 25px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--second-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #b30000;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: #0c1933;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Navigation */
        .main-nav {
            background-color: #0c1933;
            padding: 0;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .main-nav li {
            margin: 0;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 18px 25px;
            display: block;
            transition: all 0.3s;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        .main-nav li:last-child a {
            border-left: none;
        }

        .main-nav a:hover, .main-nav a.active {
            background-color: rgba(255, 255, 255, 0.15);
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            padding: 80px 0;
            text-align: center;
            margin-bottom: 60px;
        }

        .page-header h1 {
            font-size: 2.8rem;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .page-header p {
            font-size: 1.3rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px 0 60px;
        }

        /* Contact Layout */
        .contact-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            margin-bottom: 60px;
        }

        /* Contact Info */
        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .contact-card {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border-color);
        }

        .section-title {
            font-size: 1.8rem;
            color:white;
            margin-bottom: 30px;
            font-weight: 700;
            text-align: right;
        }

        .contact-methods {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .contact-method {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            padding: 20px;
            background-color: var(--bg-color);
            border-radius: 15px;
            transition: all 0.3s;
            border: 1px solid var(--border-color);
        }

        .contact-method:hover {
            transform: translateX(-10px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .method-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), #667eea);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .method-content {
            flex: 1;
        }

        .method-title {
            font-size: 1.2rem;
            color: var(--primary-color);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .method-description {
            color: #666;
            margin-bottom: 10px;
            line-height: 1.6;
        }

        .method-link {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .method-link:hover {
            gap: 12px;
        }

        /* Contact Form */
        .contact-form-card {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border-color);
            height: fit-content;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--text-color);
        }

        .form-control {
            width: 100%;
            padding: 15px 20px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 120px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .submit-btn {
            width: 100%;
            padding: 16px;
            font-size: 1.1rem;
            margin-top: 10px;
        }

        /* FAQ Section */
        .faq-section {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 50px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border-color);
            margin-bottom: 50px;
        }

        .faq-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        .faq-item {
            background-color: var(--bg-color);
            border-radius: 15px;
            padding: 25px;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }

        .faq-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .faq-question {
            font-size: 1.2rem;
            color: var(--primary-color);
            margin-bottom: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .faq-question i {
            color: var(--primary-color);
        }

        .faq-answer {
            color: #666;
            line-height: 1.7;
        }

        /* Map Section */
        .map-section {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border-color);
            margin-bottom: 50px;
        }

        .map-placeholder {
            height: 400px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
        }

        .map-placeholder i {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        .map-placeholder h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        /* Support Hours */
        .support-hours {
            background: linear-gradient(135deg, var(--primary-color), #ff3333);
            color: white;
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            margin-bottom: 50px;
        }

        .support-hours .section-title {
            color: white;
            text-align: center;
        }

        .hours-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .hour-item {
            background-color: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
        }

        .day {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .time {
            font-size: 1rem;
            opacity: 0.9;
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 50px 0 20px;
            margin-top: auto;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            color: white;
            margin-bottom: 25px;
            font-size: 1.4rem;
            font-weight: 700;
        }

        .footer-column p {
            line-height: 1.8;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column a {
            color: var(--footer-text);
            text-decoration: none;
            transition: all 0.3s;
            opacity: 0.9;
        }

        .footer-column a:hover {
            color: white;
            opacity: 1;
            padding-right: 5px;
        }

        .contact-info li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
            opacity: 0.9;
        }

        .contact-info i {
            width: 20px;
            color: #ffffff;
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s;
            text-decoration: none;
        }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 88px;
            left: 3px;
            background-color: var(--primary-color);
            color: white;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s;
            border: none;
            font-size: 1.2rem;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .contact-layout {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .faq-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .top-header .container {
                flex-direction: column;
                gap: 15px;
            }
            
            .main-nav ul {
                flex-direction: column;
                gap: 0;
            }
            
            .main-nav a {
                border-left: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                text-align: center;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .page-header p {
                font-size: 1.1rem;
            }
            
            .contact-card,
            .contact-form-card,
            .faq-section,
            .map-section,
            .support-hours {
                padding: 30px;
            }
            
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .contact-method {
                flex-direction: column;
                text-align: center;
            }
            
            .method-icon {
                align-self: center;
            }
            
            .hours-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 30px;
            }
            
            .contact-info li {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }
            
            .auth-buttons .btn {
                width: 100%;
            }
            
            .contact-card,
            .contact-form-card,
            .faq-section,
            .map-section,
            .support-hours {
                padding: 20px;
            }
            
            .section-title {
                font-size: 1.5rem;
            }
        }

        .hero {
    position: relative;
    padding: 60px 0;
    background: var(--header-bg);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hero-video.playing + .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    background: none;
    border: none;
    color: white;
    font-size: 60px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.video-overlay p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.categories {
    padding: 80px 0;
    background: var(--header-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.category-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2c3e50;
}

.category-content {
    padding: 25px;
    text-align: center;
}

.category-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.category-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}


.categories {
    padding: 80px 0;
    background: var(--header-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    width: 80%;
}

.category-card {
    background: var(--header-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 350px;
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 64%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%) !important;
}

.category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    z-index: 2;
    color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-title {
    padding-bottom: 30px;
}

.category-title h3 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-title p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.category-card:hover .category-title p {
    max-height: 100px;
    opacity: 0.9;
}

/* تأثيرات إضافية للجاذبية */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .category-card {
        height: 300px;
    }
    
    .category-title {
        padding: 20px 15px;
    }
    
    .category-title h3 {
        font-size: 1.3rem;
    }
}



        .page-header {
    background-image: url(BG.jpg), linear-gradient(365deg, var(--second-color), #0f285a);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: shine 4s infinite;
    z-index: 1;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* علشان النص يفضل فوق الإضاءة */
.page-header .container {
    position: relative;
    z-index: 2;
}

        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px 0 40px;
        }

        /* Registration Section */
        .registration-section {
            max-width: 900px;
            margin: 0 auto;
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
.section-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    width: 100%;
    background: linear-gradient(184deg, rgba(78, 94, 153, 0.85) 44%, rgba(255, 255, 255, 0.9) 167%), url(76ef21e9-ffe2-411f-95a4-af63bbbaeca8.jpg) center/cover no-repeat;
    background-size: cover;
    height: 90px;
    line-height: 90px;
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

        .user-type-selector {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            gap: 20px;
        }

        .user-type-btn {
            padding: 15px 30px;
            background-color: var(--bg-color);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            width: 180px;
        }

        .user-type-btn i {
            font-size: 2rem;
            color: var(--primary-color);
        }

        .user-type-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .user-type-btn.active i {
            color: white;
        }

        .registration-form {
            display: none;
        }

        .registration-form.active {
            display: block;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-color);
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
        }

        .form-check {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 20px;
        }

        .form-check-input {
            margin-top: 5px;
        }

        .form-check-label {
            font-size: 0.9rem;
            color: #666;
        }

        .form-check-label a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .form-check-label a:hover {
            text-decoration: underline;
        }

        .submit-btn {
            width: 100%;
            padding: 15px;
            font-size: 1.1rem;
            margin-top: 10px;
        }

        .login-link {
            text-align: center;
            margin-top: 25px;
            color: #666;
        }

        .login-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .login-link a:hover {
            text-decoration: underline;
        }

         /* Responsive Design */
        @media (max-width: 768px) {
           
            

            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .page-header p {
                font-size: 1.1rem;
            }
            
            .user-type-selector {
                flex-direction: column;
                align-items: center;
            }
            
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .registration-section {
                padding: 25px;
            }
            
           
            
            
        }

        @media (max-width: 480px) {
            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }
            
            .auth-buttons .btn {
                width: 100%;
            }
            
            .user-type-btn {
                width: 100%;
            }
        }


        /* تنسيقات كروت المعلمين العصرية مع صورة الكفر */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.teacher-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.05),
        0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f8f9fa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.12),
        0 4px 15px rgba(0, 0, 0, 0.06);
}

.teacher-header {
    padding: 60px 30px 25px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.teacher-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 1;
}

.teacher-header.has-cover::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.teacher-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.teacher-card:hover .teacher-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-avatar i {
    font-size: 40px;
    color: #666;
    line-height: 92px;
}

.teacher-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.teacher-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.teacher-info {
    padding: 0 30px 30px;
}

.teacher-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.specialty-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.specialty-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.teacher-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #f1f3f4;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.9rem;
    padding: 0 10px;
}

.teacher-actions {
    display: flex;
    gap: 10px;
}

.btn-full {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: #0c1933;
    border: 2px solid #e2e8f0;
    color: white;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* كروت المميزين */
.featured-card {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.featured-card .teacher-header::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* تأثيرات responsive */
@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .teacher-card {
        margin: 0 10px;
    }
    
    .teacher-header {
        padding: 50px 20px 20px;
    }
    
    .teacher-info {
        padding: 0 20px 20px;
    }
}




