
/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #777;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ef394e;
}

.breadcrumb span {
    margin: 0 8px;
}

/* Blog Base */
body {
    background: #f7f8fa;
    font-family: IRANSans, sans-serif;
}

.blog-container {
    max-width: 1320px;
    margin: auto;
    padding: 40px 20px;
}

/* Header */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.9;
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Card */
.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    transition: transform .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

/* Image */
.blog-card img {
    width: 100%;
    
    object-fit: cover;
    display: block;
}

/* Content */
.blog-card-content {
    padding: 24px;
}

/* Category */
.blog-category {
    display: inline-block;
    background: #ef394e;
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Title */
.blog-card h2 {
    font-size: 24px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-card h2 a {
    color: #222;
    text-decoration: none;
}

/* Excerpt */
.blog-card p {
    font-size: 15px;
    line-height: 2;
    color: #666;
    margin-bottom: 20px;
}

/* Meta */
.blog-meta {
    color: #999;
    font-size: 13px;
}

/* Tablet */
@media (max-width: 992px) {
    .blog-grid {
        gap: 20px;
    }

    .blog-card img {
        height: 240px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-container {
        padding: 25px 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 28px;
    }

    .blog-card img {
        height: 220px;
    }

    .blog-card-content {
        padding: 18px;
    }

    .blog-card h2 {
        font-size: 20px;
    }
}

/* Single Post */
.single-post-container {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

.single-header {
    text-align: center;
    margin-bottom: 35px;
}

.single-category {
    display: inline-block;
    background: #ef394e;
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 20px;
}

.single-header h1 {
    font-size: 40px;
    line-height: 1.8;
    color: #222;
    margin-bottom: 18px;
}

.single-meta {
    color: #888;
    font-size: 14px;
}

.single-featured-image {
    margin-bottom: 40px;
}

.single-featured-image img {
    width: 100%;
    height: fit-content;
    border-radius: 18px;
    display: block;
}

/* Content */
.single-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

/* Typography */
.single-content p {
    font-size: 17px;
    line-height: 2.3;
    color: #333;
    margin-bottom: 24px;
}

.single-content h2 {
    font-size: 30px;
    margin: 40px 0 20px;
    color: #222;
}

.single-content h3 {
    font-size: 24px;
    margin: 35px 0 18px;
}

.single-content ul,
.single-content ol {
    padding-right: 28px;
    margin: 25px 0;
}

.single-content li {
    margin-bottom: 12px;
    line-height: 2.2;
    color: #333;
}

.single-content li {
    line-height: 2.2;
    margin-bottom: 10px;
}

.single-content blockquote {
    border-right: 4px solid #ef394e;
    background: #fafafa;
    padding: 20px;
    margin: 30px 0;
    border-radius: 12px;
}

.single-content a {
    color: #ef394e;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .single-post-container {
        padding: 25px 15px;
    }

    .single-header h1 {
        font-size: 28px;
    }

    .single-content {
        padding: 22px;
    }

    .single-content p {
        font-size: 15px;
        line-height: 2.1;
    }

    .single-content h2 {
        font-size: 24px;
    }

    .single-content h3 {
        font-size: 20px;
    }
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #222;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
    transition: transform .25s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 18px;
}

.related-content h4 {
    font-size: 16px;
    line-height: 1.9;
    color: #222;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: #444;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: .2s;
}

.blog-pagination .page-numbers:hover {
    background: #ef394e;
    color: #fff;
}

.blog-pagination .current {
    background: #ef394e;
    color: #fff;
}

/* Tables */
.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid #dcdcdc;
    table-layout: auto;
}

.single-content th,
.single-content td {
    border: 1px solid #dcdcdc;
    padding: 16px;
    text-align: right;
    vertical-align: middle;
}

.single-content th {
    background: #ef394e;
    color: #fff;
    font-weight: 700;
}

.single-content tr:nth-child(even) {
    background: #f7f7f7;
}

.single-content tr:nth-child(odd) {
    background: #fff;
}

/* Content Images */
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 35px auto;
}
.single-content figure {
    margin: 35px 0;
}

.single-content figcaption {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}
.single-content strong,
.single-content b {
    color: #222;
    font-weight: 700;
}

.single-content hr {
    border: none;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

.single-content code {
    background: #f4f4f4;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
}

.single-content pre {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 25px 0;
}

/* Blog Search */
.blog-search {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.blog-search input {
    width: 420px;
    max-width: 100%;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0 16px;
    font-family: inherit;
}

.blog-search button {
    height: 48px;
    border: none;
    background: #ef394e;
    color: #fff;
    padding: 0 22px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 768px) {
    .blog-search {
        flex-direction: column;
    }

    .blog-search input,
    .blog-search button {
        width: 100%;
    }
}

