.base-blog-grid {
    background-color: var(--color1001);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    margin: 60px 0;
}
.blog-grid-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}
.blog-header {
    text-align: center;
    margin-bottom: 40px;
    direction: rtl;
}
.blog-header-tag {
    display: inline-block;
    background: var(--color1002);
    color: var(--color1003);
    font-family: Sahel-SemiBold;
    font-size: 12px;
    padding: 3px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.blog-header h4 {
    font-family: Sahel-Black;
    font-size: 30px;
    color: var(--color1002);
    margin: 0 0 8px;
}
.blog-header p {
    font-family: Sahel;
    font-size: 15px;
    color: var(--color1002);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    direction: rtl;
}
.blog-card {
    text-decoration: none;
    background: var(--color1003);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--color1002) 10%, transparent);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--color1002) 20%, transparent);
}
.blog-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-body h5 {
    font-family: Sahel-Bold;
    font-size: 16px;
    color: var(--color1002);
    margin: 0 0 10px;
    direction: rtl;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-body p {
    font-family: Sahel;
    font-size: 13px;
    line-height: 1.7;
    color: color-mix(in srgb, var(--color1002) 60%, transparent);
    direction: rtl;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 14px;
}
.blog-card-link {
    font-family: Sahel-SemiBold;
    font-size: 13px;
    color: var(--color1002);
    align-self: flex-start;
    border-bottom: 2px solid color-mix(in srgb, var(--color1002) 30%, transparent);
    transition: border-color .3s;
}
.blog-card:hover .blog-card-link {
    border-color: var(--color1002);
}
.all-posts { text-align: center; margin-top: 36px; }
.all-posts a {
    font-family: Sahel-SemiBold;
    text-decoration: none;
    color: var(--color1003);
    background: var(--color1002);
    padding: 10px 44px;
    border-radius: 50px;
    transition: opacity .3s;
}
.all-posts a:hover { opacity: .85; }
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}
