
        /* CSS Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s;
            

        }

        :root {
            --primary-color: #4a6fa5;
            --secondary-color: #166088;
            --text-color: #333;
            --bg-color: #f9f9f9;
            --card-bg: #fff;
            --header-bg: #fff;
            --footer-bg: #2d2d2d;
            --footer-text: #f1f1f1;
            --sidebar-bg: #f5f5f5;
            --border-color: #e0e0e0;
            --link-color: #166088;
            --link-hover: #4a6fa5;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .dark-mode {
            --primary-color: #6d9dc5;
            --secondary-color: #4a6fa5;
            --text-color: #f1f1f1;
            --bg-color: #1a1a1a;
            --card-bg: #2d2d2d;
            --header-bg: #222;
            --footer-bg: #111;
            --footer-text: #ddd;
            --sidebar-bg: #252525;
            --border-color: #444;
            --link-color: #6d9dc5;
            --link-hover: #4a6fa5;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        }

        body {
            font-family: 'Tajawal', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--bg-color);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Header Styles */
        header {
            background-color: var(--header-bg);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--primary-color);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-right: 1.5rem;
        }

        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 0;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
            left: 0;
        }

        .theme-toggle {
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-toggle:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .dark-mode .theme-toggle:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Main Content */
        .main-container {
            display: flex;
            flex: 1;
            max-width: 1500px;
            margin: 0 auto;
            width: 100%;
            padding: 1rem 1.5rem;
        }

        .content {
            flex: 3;
            padding: 1rem;
        }

        .sidebar {
            flex: 1;
            padding: 1rem;
        }

        /* Sections */
        .section {
            background-color: var(--card-bg);
            border-radius: 8px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-color);
        }

        .section-title {
            font-size: 1.5rem;
            color: var(--primary-color);
        }

        .section-content {
            line-height: 1.8;
        }

        /* Featured Section */
        .featured-section {
            position: relative;
            overflow: hidden;
            height: 400px;
            border-radius: 8px;
            margin-bottom: 2rem;
        }

        .featured-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .featured-content {
            position: absolute;
            bottom: 0;
            right: 0;
            left: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            color: white;
            padding: 2rem;
        }

        .featured-title {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .featured-description {
            margin-bottom: 1rem;
        }

        .featured-btn {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            padding: 0.7rem 1.5rem;
            border-radius: 4px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s;
        }

        .featured-btn:hover {
            background-color: var(--secondary-color);
        }

        /* Articles Grid */
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .article-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            transition: transform 0.3s;
        }

        .article-card:hover {
            transform: translateY(-5px);
        }

        .article-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .article-content {
            padding: 1.2rem;
        }

        .article-category {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-bottom: 0.8rem;
        }

        .article-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .article-title a {
            color: var(--text-color);
            text-decoration: none;
        }

        .article-title a:hover {
            color: var(--primary-color);
        }

        .article-excerpt {
            color: var(--text-color);
            opacity: 0.8;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-color);
            opacity: 0.7;
        }

        /* Health Section Style */
        .health-section {
            background-color: #edf1f6;   /* اللون */
            border-left: 5px solid #4a6fa5;
        }

        .dark-mode .health-section {
            background-color: #1a2e22;
            border-left-color: #4a6fa5;
        }

        .health-section .section-title {
            color: #4a6fa5;
        }

        .dark-mode .health-section .section-title {
            color: #4a6fa5;
        }

        /* Tech Section Style */
        .tech-section {
            background-color: #eef2f7;
            border-left: 5px solid #3f51b5;
        }

        .dark-mode .tech-section {
            background-color: #1a1a2e;
            border-left-color: #5c6bc0;
        }

        .tech-section .section-title {
            color: #3f51b5;
        }

        .dark-mode .tech-section .section-title {
            color: #5c6bc0;
        }

        /* Sports Section Style */
        .sports-section {
            background-color: #edf1f6; /* اللون */
            border-left: 5px solid #ff9800;
        }

        .dark-mode .sports-section {
            background-color: #2e1a1a;
            border-left-color: #ffa726;
        }

        .sports-section .section-title {
            color: #ff9800;
        }

        .dark-mode .sports-section .section-title {
            color: #ffa726;
        }

        /* Horizontal Articles */
        .horizontal-articles {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .horizontal-article {
            display: flex;
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .horizontal-article-image {
            width: 120px;
            height: 120px;
            object-fit: cover;
        }

        .horizontal-article-content {
            padding: 1rem;
            flex: 1;
        }

        /* Sidebar Styles */
        .sidebar-widget {
            background-color: var(--card-bg);
            border-radius: 8px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border-color);
        }

        .widget-title {
            font-size: 1.2rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-color);
        }

        .category-list {
            list-style: none;
        }

        .category-list li {
            margin-bottom: 0.5rem;
        }

        .category-list a {
            color: var(--text-color);
            text-decoration: none;
            display: block;
            padding: 0.5rem;
            border-radius: 4px;
        }

        .category-list a:hover {
            background-color: rgba(0, 0, 0, 0.05);
            color: var(--primary-color);
        }

        .dark-mode .category-list a:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .tag {
            display: inline-block;
            background-color: var(--sidebar-bg);
            color: var(--text-color);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            text-decoration: none;
        }

        .tag:hover {
            background-color: var(--primary-color);
            color: white;
        }

        .popular-posts {
            list-style: none;
        }

        .popular-post {
            display: flex;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

        .popular-post:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .popular-post-image {
            width: 80px;
            height: 60px;
            object-fit: cover;
            border-radius: 4px;
            margin-left: 0.8rem;
        }

        .popular-post-title {
            font-size: 0.9rem;
        }

        .popular-post-title a {
            color: var(--text-color);
            text-decoration: none;
        }

        .popular-post-title a:hover {
            color: var(--primary-color);
        }

        .popular-post-date {
            font-size: 0.7rem;
            color: var(--text-color);
            opacity: 0.7;
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 3rem 1.5rem 1.5rem;
            margin-top: 2rem;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-widget {
            margin-bottom: 1.5rem;
        }

        .footer-title {
            font-size: 1.2rem;
            margin-bottom: 1.2rem;
            color: white;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 2px;
            background-color: var(--primary-color);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.7rem;
        }

        .footer-links a {
            color: var(--footer-text);
            text-decoration: none;
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        .footer-links a:hover {
            opacity: 1;
            color: var(--primary-color);
        }

        .footer-about p {
            opacity: 0.8;
            margin-bottom: 1rem;
            line-height: 1.7;
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            text-decoration: none;
            transition: background-color 0.3s;
        }

        .social-link:hover {
            background-color: var(--primary-color);
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
            font-size: 0.9rem;
        }

        /* Responsive Styles */
        @media (max-width: 1200px) {
            .articles-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 992px) {
            .main-container {
                flex-direction: column;
            }

            .sidebar {
                order: -1;
                margin-bottom: 2rem;
            }

            .featured-title {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 1rem;
            }

            .nav-links {
                position: fixed;
                top: 70px;
                right: -100%;
                width: 80%;
                height: calc(100vh - 70px);
                background-color: var(--header-bg);
                flex-direction: column;
                align-items: center;
                padding-top: 2rem;
                transition: right 0.3s;
                box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
            }

            .nav-links.active {
                right: 0;
            }

            .nav-links li {
                margin: 0 0 1.5rem 0;
            }

            .mobile-menu-btn {
                display: block;
            }

            .featured-section {
                height: 350px;
            }

            .featured-content {
                padding: 1.5rem;
            }

            .featured-title {
                font-size: 1.3rem;
            }

            .articles-grid {
                grid-template-columns: 1fr;
            }

            .horizontal-article {
                flex-direction: column;
            }

            .horizontal-article-image {
                width: 100%;
                height: 180px;
            }
        }

        @media (max-width: 576px) {
            .featured-section {
                height: 300px;
            }

            .footer-container {
                grid-template-columns: 1fr;
            }
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .section {
            animation: fadeIn 0.5s ease-out;
        }

        .article-card:nth-child(1) { animation-delay: 0.1s; }
        .article-card:nth-child(2) { animation-delay: 0.2s; }
        .article-card:nth-child(3) { animation-delay: 0.3s; }
        .article-card:nth-child(4) { animation-delay: 0.4s; }
