body {
    margin: 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 30%);
    color: #0f172a;
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

.blog-page {
    min-height: 100vh;
}

.blog-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e2e8f0;
}

.blog-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    text-decoration: none;
    color: #08b274;
    font-size: 30px;
    font-weight: 900;
}

.blog-nav {
    display: flex;
    gap: 18px;
}

.blog-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 160ms ease, color 160ms ease;
}

.blog-nav a.is-active,
.blog-nav a:hover {
    color: #047857;
    background: #ecfdf5;
}

.blog-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 16px 64px;
}

/* ===== HERO ===== */
.blog-hero {
    text-align: center;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ffffff 100%);
    border: 1px solid #d1fae5;
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08);
}

.blog-hero__eyebrow {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.blog-hero h1 {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    color: #0f172a;
}

.blog-hero p {
    margin: 10px auto 0;
    color: #475569;
    line-height: 1.9;
    max-width: 640px;
}

.blog-hero__search {
    margin: 22px auto 0;
    max-width: 560px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.blog-hero__search:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.blog-hero__search-icon {
    color: #94a3b8;
    display: inline-flex;
}

.blog-hero__search input {
    flex: 1;
    border: 0;
    outline: 0;
    font: inherit;
    padding: 10px 4px;
    background: transparent;
    color: #0f172a;
}

/* ===== FEATURED ===== */
.blog-featured {
    margin-top: 26px;
    border: 1px solid #d1fae5;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.10);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
}

.blog-featured.is-hidden {
    display: none;
}

.blog-featured__media {
    position: relative;
    min-height: 240px;
    background: #ecfdf5;
}

.blog-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-featured__tag {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: rgba(16, 185, 129, 0.96);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}

.blog-featured__body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-featured__title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.5;
}

.blog-featured__meta {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-featured__excerpt {
    margin: 0;
    color: #475569;
    line-height: 1.95;
}

.blog-featured__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-featured__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.blog-featured__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.blog-featured__btn--primary {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* ===== LIST ===== */
.blog-list-section {
    margin-top: 32px;
}

.blog-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-list-head h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 900;
}

.blog-count {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 999px;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.blog-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: #a7f3d0;
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.10);
}

.blog-card-image {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
    background: #ecfdf5;
}

.blog-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.blog-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.55;
}

.blog-card-meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-excerpt {
    color: #475569;
    margin: 0;
    line-height: 1.9;
    font-size: 14px;
}

.blog-card-link {
    margin-top: auto;
    text-decoration: none;
    color: #047857;
    font-weight: 800;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    transition: color 160ms ease, gap 160ms ease;
}

.blog-card-link:hover {
    color: #0f172a;
    gap: 10px;
}

.blog-empty {
    margin-top: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    color: #64748b;
    background: #fff;
    text-align: center;
}

.blog-empty.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .blog-header-inner {
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-nav {
        width: 100%;
        justify-content: space-between;
    }

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

    .blog-featured__media {
        min-height: 200px;
        max-height: 260px;
    }
}
