@font-face {
    font-family: 'b-yekann-bold';
    src: url(../font/BYekan+\ Bold.ttf);
    font-weight: normal;
}

:root {
    --primary-color: #0c4d3b;
    --accent-color: #fc94a1;
    --hover-accent: #e2838f;
    --text-dark: #222222;
    --light-bg: #fcf8f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'b-yekann-bold', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: var(--light-bg);
    background-image: url('17236391765906722975.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 2000px rgba(12, 77, 59, 0.15);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* هدر صفحه مقالات */
.blog-header {
    background: white;
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(12, 77, 59, 0.05);
    border-right: 5px solid var(--accent-color);
}

.blog-title h1 {
    color: var(--primary-color);
    font-size: 24px;
}

.blog-title p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.back-home {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.back-home:hover {
    color: var(--accent-color);
}

/* شبکه کارت‌های مقالات */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(12, 77, 59, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(12, 77, 59, 0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    background: #eee;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.read-more:hover {
    color: var(--primary-color);
}

.blog-date {
    color: #aaa;
    font-size: 12px;
}

/* ریسپانسیو */
@media screen and (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .blog-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .blog-title {
        text-align: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}