.blog {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.blog a {
    text-decoration: none;
}
.blog li {
    list-style: none;
}
.blog img {
    width: 100%;
}
.blog-base-box {
    max-width: 1068px;
    margin: auto;
    width: 100%;
}
.blog-home {
    width: 100%;
    min-height: 440px;
    display: grid;
    place-items: center;
    background: var(--color1401);
}
.blog-home-text {
    direction: rtl;
    color: var(--color1402);
    text-align: center;
}
.blog-home-title {
    font-family: Sahel-Bold;
    font-size: 42px;
}
.blog-home-title span {
    font-family: Sahel-Bold;
    display: inline-block;
    direction: ltr;
}
.blog-home-subtitle {
    font-family: Sahel-Light;
    font-size: 15px;
}
.blog-post-filter {
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem!important;
}
.filter-item {
    font-family: Sahel-SemiBold;
    font-size: 14px;
    cursor: pointer;
}
.active-filter{
    background: var(--color1401);
    color: var(--color1402);
    padding: 4px 10px;
    border-radius: 4px;
}
.blog-post{
    margin: auto;
    max-width: 900px;
    padding: 3rem 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 1.5rem;
}
.blog-post-box {
    direction: rtl;
    background: var(--color1402);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color1401) 10%, transparent);
    padding: 15px;
    border-radius: 0.5rem;
}
.blog-post-box-image {
    object-fit: cover;
    border-radius: 0.5rem;
}
.blog-post-box a {
    font-family: Sahel-SemiBold;
    font-size: 18px;
    padding: 10px 5px 0;
    color: var(--color1401);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-post-box-span {
    font-size: 13px;
    margin-top: 4px;
}
.blog-post-box p {
    font-size: 14px;
    line-height: 1.5rem;
    text-align: justify;
    margin: 5px 0 10px;
    padding: 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-profile {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-profile span {
    color: var(--color1401);
    font-family: Sahel;
    font-size: 13px;
}
.blog-post-header {
    width: 100%;
    padding-bottom: 200px;
    background: var(--color1401);
}
.blog-post-base-box {
    max-width: 800px;
    margin: auto;
}
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8rem!important;
}
.header-content a {
    font-family: Sahel-Bold;
    font-size: 14px;
    margin-bottom: 13px;
    background: var(--color1402);
    color: var(--color1401);
    padding: 4px 8px;
    border-radius: 5px;
}
.header-content h1 {
    color: var(--color1402);
    direction: rtl;
    font-family: Sahel-Bold;
    width: 90%;
    font-size: 40px;
    text-align: center;
    margin-bottom: 1.5rem;
}
.blog-post-content {
    direction: rtl;
    text-align: justify;
    line-height: 39px;
    margin: -180px auto 20px;
}
.blog-post-content img{
    border-radius:8px;
}
@media (max-width:1060px){
    .blog-base-box {
        width:95%;
    }
}
@media (max-width:800px){
    .blog-post-base-box {
        width:90%;
    }
}
@media (max-width:600px){
    .header-content h1 {
        font-size:25px;
    }
    .blog-post-content p {
        font-size:15px;
        line-height:34px;
    }
}
@media (max-width:570px) {
    .blog-home {
        min-height:380px;
    }
    .blog-post {
        margin:0 12px;
    }
    .blog-home-title {
        font-size:26px;
    }
    .header-content {
        padding:2rem!important;
    }
}
@media (max-width:396px){
    .blog-home {
        min-height:300px;
    }
    .blog-post-box {
        padding:10px;
    }
    .blog-home-title {
        font-size:24px;
    }
    .blog-home-subtitle {
        font-size:10px;
    }
}
