    :root {
        --primary-color: #1a365d;
        --secondary-color: #2d6a4f;
        --accent-color: #e9c46a;
        --light-color: #f8f9fa;
        --dark-color: #212529;
        --gray-color: #6c757d;
        --transition: all 0.3s ease;
    }

    /* تحسينات عامة */
    .hero-section {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        padding: 4rem 0;
        text-align: center;
        margin-bottom: 2rem;
        margin-top: 5rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 1.1rem;
        max-width: 700px;
        margin: 0 auto 2rem;
        opacity: 0.9;
        line-height: 1.6;
    }

    .search-box {
        max-width: 600px;
        margin: 0 auto;
        position: relative;
    }

    .search-box input {
        width: 100%;
        padding: 12px 50px 12px 20px;
        border-radius: 50px;
        border: none;
        font-size: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .search-box button {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--accent-color);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-box button:hover {
        background: #d4b152;
    }

    /* قسم المدونة المحسن */
    #blog {
        padding: 2rem 0;
    }

    .blog-container {
        display: flex;
        gap: 2rem;
    }

    .blog-main {
        flex: 3;
    }

    .blog-sidebar {
        flex: 1;
    }

    .blog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .blog-card {
        background-color: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .blog-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .blog-content {
        padding: 1.2rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .blog-meta {
        display: flex;
        align-items: center;
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
        color: var(--gray-color);
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .blog-category {
        background-color: var(--accent-color);
        color: var(--dark-color);
        padding: 0.2rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 500;
    }

    .blog-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        color: var(--primary-color);
        line-height: 1.4;
    }

    .blog-excerpt {
        color: var(--gray-color);
        margin-bottom: 1.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-grow: 1;
        line-height: 1.5;
        font-size: 0.9rem;
    }

    .btn-link {
        color: var(--secondary-color);
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        transition: var(--transition);
        margin-top: auto;
        font-size: 0.9rem;
    }

    .btn-link:hover {
        color: var(--primary-color);
    }

    .btn-link i {
        margin-right: 5px;
        transition: var(--transition);
    }

    .btn-link:hover i {
        transform: translateX(5px);
    }

    /* التصفية المحسنة */
    .blog-filters {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 2rem;
        gap: 0.8rem;
    }

    .filter-btn {
        padding: 0.5rem 1.2rem;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 30px;
        cursor: pointer;
        transition: var(--transition);
        font-weight: 500;
        font-size: 0.9rem;
    }

    .filter-btn.active,
    .filter-btn:hover {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    /* الشريط الجانبي */
    .sidebar-widget {
        background: white;
        border-radius: 8px;
        padding: 1.2rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--accent-color);
        color: var(--primary-color);
    }

    .popular-posts .post-item {
        display: flex;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #eee;
    }

    .popular-posts .post-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .popular-posts .post-image {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        margin-left: 0.8rem;
        flex-shrink: 0;
    }

    .popular-posts .post-content h4 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        line-height: 1.4;
    }

    .popular-posts .post-meta {
        font-size: 0.75rem;
        color: var(--gray-color);
    }

    .categories-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .categories-list li {
        margin-bottom: 0.7rem;
        padding-bottom: 0.7rem;
        border-bottom: 1px solid #eee;
    }

    .categories-list li:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .categories-list a {
        display: flex;
        justify-content: space-between;
        color: var(--dark-color);
        transition: var(--transition);
        text-decoration: none;
    }

    .categories-list a:hover {
        color: var(--primary-color);
    }

    .categories-list .count {
        background: var(--light-color);
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
        font-size: 0.75rem;
    }

    .tags-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tag {
        background: var(--light-color);
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        transition: var(--transition);
        text-decoration: none;
        color: var(--dark-color);
        display: inline-block;
    }

    .tag:hover {
        background: var(--primary-color);
        color: white;
    }

    /* قسم المقالات المميزة */
    .featured-posts {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        text-align: center;
    }

    .section-intro {
        font-size: 1.1rem;
        color: var(--gray-color);
        text-align: center;
        margin-bottom: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .featured-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .featured-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .featured-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .featured-image-container {
        position: relative;
        width: 100%;
        height: 200px;
        overflow: hidden;
    }

    .featured-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .featured-card:hover .featured-image {
        transform: scale(1.05);
    }

    .featured-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: var(--accent-color);
        color: var(--dark-color);
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: bold;
    }

    .featured-content {
        padding: 1.2rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    /* الترقيم */
    .pagination {
        display: flex;
        justify-content: center;
        list-style: none;
        padding: 0;
        margin: 2rem 0;
        gap: 0.5rem;
    }

    .pagination li {
        margin: 0;
    }

    .pagination a,
    .pagination li:not(a) {
        display: inline-block;
        padding: 0.5rem 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        text-decoration: none;
        color: var(--dark-color);
        transition: var(--transition);
    }

    .pagination a:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .pagination li[style*="font-weight:bold"] {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    /* التجاوب */
    @media (max-width: 1200px) {
        .blog-container {
            gap: 1.5rem;
        }
    }

    @media (max-width: 992px) {
        .blog-container {
            flex-direction: column;
        }

        .featured-grid {
            grid-template-columns: 1fr;
        }

        .blog-sidebar {
            order: -1;
        }
    }

    @media (max-width: 768px) {
        .hero-section {
            padding: 3rem 0;
        }

        .hero-section h1 {
            font-size: 2rem;
        }

        .hero-section p {
            font-size: 1rem;
        }

        .section-title {
            font-size: 1.7rem;
        }

        .section-intro {
            font-size: 1rem;
        }

        .blog-grid {
            grid-template-columns: 1fr;
        }

        .blog-filters {
            gap: 0.5rem;
        }

        .filter-btn {
            padding: 0.4rem 1rem;
            font-size: 0.85rem;
        }

        .featured-image-container {
            height: 180px;
        }

        .popular-posts .post-item {
            flex-direction: column;
        }

        .popular-posts .post-image {
            margin-left: 0;
            margin-bottom: 0.8rem;
            width: 100%;
            height: 120px;
        }
    }

    @media (max-width: 576px) {
        .hero-section {
            padding: 2rem 1rem;
        }

        .hero-section h1 {
            font-size: 1.7rem;
        }

        .search-box input {
            padding: 10px 45px 10px 15px;
        }

        .search-box button {
            width: 35px;
            height: 35px;
        }

        .blog-content,
        .featured-content {
            padding: 1rem;
        }

        .blog-title {
            font-size: 1.1rem;
        }

        .featured-image-container {
            height: 160px;
        }

        .sidebar-widget {
            padding: 1rem;
        }

        .pagination {
            flex-wrap: wrap;
        }

        .pagination a,
        .pagination li:not(a) {
            padding: 0.4rem 0.8rem;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        .hero-section h1 {
            font-size: 1.5rem;
        }

        .section-title {
            font-size: 1.5rem;
        }

        .blog-meta {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.3rem;
        }

        .featured-badge {
            top: 8px;
            right: 8px;
            font-size: 0.7rem;
            padding: 0.2rem 0.6rem;
        }
    }
