




        body {
            background-color: #f4f4f4 !important;
        }
        header.main-header {
            background-color: #f4f4f4;
        }
        header.main-header.scrolled {
            background-color: black;
        }
        /* Blog Section Styles */
        .blog-section {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 850px 1fr;
            gap: 30px;
            position: relative;
            background-color: #f4f4f4;
        }


        /* Filter Sidebar */
        .sidebar {
            width: 300px;
            border-radius: 15px;
            height: fit-content;
            position: sticky;
            top: 120px;
            background-color: #f4f4f4;
            padding: 0 40px;
            display:none;
        }
        header.scrolled .nav-links a,
        header.scrolled i,
        header.scrolled .icons img {
            filter: invert(0);
            color: white;
        }
        .filter-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
            border-bottom: 2px solid #ff6b6b;
            padding-bottom: 10px;
        }

        .filter-group {
            margin-bottom: 25px;
        }

        .filter-group h4 {
            font-size: 16px;
            color: #555;
            margin-bottom: 12px;
            font-weight: 600;
        }

        .filter-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            cursor: pointer;
            padding: 5px;
            border-radius: 5px;
            transition: background-color 0.2s;
        }

        .filter-item:hover {
            background-color: #f8f9fa;
        }

        .filter-item input {
            margin-left: 8px;
            accent-color: #ff6b6b;
        }

        .filter-item label {
            cursor: pointer;
            font-size: 14px;
            color: #666;
        }

        /* Mobile Filter Toggle */
        .filter-toggle {
            display: none;
            position: fixed;
            top: 140px;
            right: 20px;
            background: #ff6b6b;
            color: white;
            border: none;
            border-radius: 50px;
            width: 45px;
            height: 45px;
            font-size: 18px;
            cursor: cell;
            z-index: 1001;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            transition: transform 0.3s;
        }

        .filter-toggle:hover {
            transform: scale(1.1);
        }

        /* Blog Grid */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr); /* 4 أعمدة بالضبط */
            gap: 15px;
            max-width: 1200px;
            margin: auto;
        }

        /* Blog Card */
        .blog-card {
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

        .blog-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s;
            margin-bottom: -30px;
        }

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

        .blog-content {
            padding: 20px;
        }

        .blog-category {
            display: inline-block;
            background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 10px;
            text-transform: uppercase;
        }

        .blog-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
            line-height: 1.4;
        }

        .blog-excerpt {
            color: #666;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 15px;
        }



        .blog .date { 
    background: rgba(34, 37, 41, 1); 
    color: #ffffffa6; 
    padding: 1px 10px; 
    font-size: 12px; 
    position: relative; 
    top: -195px; 
    left: 10px; 
    display: inline-block; 
    text-align: center;
    font-weight: 200;
}
.blog .date h3 {
    color: white;
}

        .blog h2 {
    color: rgba(34, 37, 41, 1);
    font-size: 16px;
}
.blog p {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.555);
    margin-top: 10px;
    line-height: 1.8;
    margin-bottom: 50px;
}



        .blog-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #999;
            font-size: 12px;
        }

        .blog-author {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .author-avatar {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            object-fit: cover;
        }

        .blog-date {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Mobile Filter Overlay */
        .filter-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
        }

        .filter-overlay.active {
            display: block;
        }


        
.filter-sidebar .post {
    display: flex;
    margin-bottom: 30px;
}
.filter-sidebar img {
    width: 70px;
    height: 50px;
    margin-right: 6px;
}
.filter-sidebar h6 {
    font-weight: 600;
    font-size: 11px;
    line-height: 1.3;
}
.filter-sidebar small {
    color: rgba(0, 0, 0, 0.589);
    font-size: 11px;
}
.filter-sidebar h3, .filter-sidebar h4 { 
    margin-top: 20px; 
    color: rgba(49, 49, 49, 1);
    font-size: 15px;
    margin-bottom: 20px;
}
.category, .tag { 
    cursor: pointer; 
    color: blue; 
    margin-bottom: 5px; 
    display: 
    block; }
.category {
    display: block;
    padding: 10px 15px ;
    margin-bottom: 8px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}
.tag {
    background-color: rgba(34, 37, 41, 1);
    display: inline;
    color: white;
    font-size: 12px;
    border-radius: 20px;
    padding: 4px 10px;
    transition: .3s;
    -webkit-border-radius:;
    -moz-border-radius:;
    -ms-border-radius:;
    -o-border-radius:;
}
      .tag:hover {
            background: #ff6b6b;
            color: white;
        }



        .category:hover,
        .category.active {
            background: #ff6b6b;
            color: white;
        }
         .header i {
                color: black;
            }

        /* Mobile Styles */
        @media (max-width: 768px) {
            .header i {
                color: black;
            }
             .header.scrolled i,
                .header.scrolled img{
                color: white;
                filter: invert(0);
            }
            .blog-section {
                grid-template-columns: 1fr;
                gap: 20px;
            }

             .sidebar {
                position: fixed;
                top: 0;
                right: -300px;
                width: 280px;
                height: 100vh;
                overflow-y: auto;
                z-index: 9999999999999999;
                transition: right 0.3s ease;
                border-radius: 0;
                    background-color: white; /* أضف هذا */
    box-shadow: -2px 0 10px rgba(0,0,0,0.1); /* اختياري للظل */
            }

            .mobile-menu {
                z-index: 99999999999999999999;

            }
            .sidebar.active {
                right: 0;
            }

            .filter-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .filter-close {
                display: block !important;
                position: absolute;
                top: 22px !important;
                left: 15px;
                background: none;
                border: none;
                font-size: 20px;
                color: #666;
                cursor: pointer;
            }

            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .nav-links {
                display: none;
            }
                    /* Filter Sidebar */
        .sidebar {

            padding: 0 20px;
        }
        .sidebar h3 {
            margin-left: 25px;
        }
        }
        
        .filter-close {
            display: block;
            position: absolute;
            top: 15px;
            left: 15px;
            background: none;
            border: none;
            font-size: 20px;
            color: #666;
            cursor: pointer;
        }

        @media (max-width: 480px) {
            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .blog .date {
                top: -156px;
            }
            * {
                 cursor: default ;
            }
        }

        /* Filter close button (hidden by default) */
        .filter-close {
            display: none;
        }