﻿/* ================= BASE ================= */


body {
    background: #f6f7fb;
    color: #111;
}

/* ================= CONTAINER ================= */
.container1 {
    max-width: 1350px;
    margin: auto;
    padding: 22px;
}

/* ================= TOP HEADER ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-direction: row;
    text-align: right;
    direction: rtl;
    flex-wrap: wrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    width: 58px;
    height: 58px;
    background: #0f172a;
    border-radius: 14px;
}

.title h1 {
    font-size: 20px;
    font-weight: 800;
}

.title p {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.breadcrumb {
    font-size: 12px;
    color: #888;
}

/* ================= FILTERS ================= */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 22px;
    align-items: baseline;
    justify-content: center;
    direction: rtl;
}

    .filters div {
        padding: 8px 14px;
        border-radius: 10px;
        background: #fff;
        border: 1px solid #eee;
        font-size: 13px;
        cursor: pointer;
    }

    .filters .active {
        background: #0f172a;
        color: #fff;
    }

/* ================= MAIN LAYOUT ================= */
.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
}

/* ================= POSTS GRID ================= */
.posts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    direction: rtl;
}

/* ================= CARD ================= */
.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    direction:rtl
}

    .card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

/* badge */
.badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.green {
    background: #dcfce7;
    color: #166534;
}

.orange {
    background: #ffedd5;
    color: #c2410c;
}

.purple {
    background: #ede9fe;
    color: #6d28d9;
}

.card-body {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.8;
}

.card-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.7;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 10px;
}

/* ================= SIDEBAR ================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;direction:rtl
}

/* search */
.search {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #eee;
}

    .search input {
        width: 100%;
        border: none;
        outline: none;
        font-size: 13px;
    }

/* box */
.box {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #eee;
}

.box-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* categories */
.cat {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
}

/* popular */
.popular {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .popular-item img {
        width: 52px;
        height: 52px;
        border-radius: 10px;
        object-fit: cover;
    }

    .popular-item p {
        font-size: 12px;
        font-weight: 700;
    }

    .popular-item span {
        font-size: 11px;
        color: #888;
    }

/* newsletter */
.news {
    background: #0f172a;
    color: #fff;
    border-radius: 16px;
    padding: 14px;
}

    .news input {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
        border-radius: 8px;
        border: none;
    }

    .news button {
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        background: #fbbf24;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        font-family: shabnam;
    }

/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
}

    .pagination div {
        background: #fff;
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 12px;
        border: 1px solid #eee;
        cursor: pointer;
    }

    .pagination .active {
        padding: 7px;
        background: #f59e0b;
        color: #fff;
        border: none;
        width: 35px;
        height: 35px;
    }

/* ================= RESPONSIVE ================= */
@media(max-width:1024px) {
    .posts {
        grid-template-columns: repeat(2,1fr);
    }

    .layout {
        grid-template-columns: 1fr;
    }
}

@media(max-width:600px) {
    .posts {
        grid-template-columns: 1fr;
    }
}

a {
    color:black
}

.btnn {
    background-color: rgb(245 158 11) !important;
}
.blg {
 margin-right: 12%;
    width: 64%;
    margin-top: 20%;
}

.search-box {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
}

    .search-box input {
        width: 100%;
        border: none;
        outline: none;
        font-size: 13px;
        padding-right: 28px; /* space for icon */
        background: transparent;
    }

.search-icon {
    width: 18px;
    height: 18px;
    color: #888;
    margin-left: 8px;
    flex-shrink: 0;
}
