.blog-page {
    padding: 40px 0;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.sidebar-widget h5 {
    margin-bottom: 20px;
    font-weight: 700;
}

.sidebar-widget a {
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    color: #374151;
}

.sidebar-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.sidebar-title {
    font-weight: 700;
    margin-bottom: 20px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-link {
    text-decoration: none;
    color: #374151;
    padding: 10px 15px;
    border-radius: 10px;
    background: #f5f7fa;
    transition: .3s;
}

.category-link:hover {
    background: var(--gold);
    color: #fff;
}

.blog-card {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .06);
    transition: .3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image-wrapper {
    flex: 0 0 320px;
}

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

.blog-content h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);

}

.blog-content {
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.9; 
}

.blog-content p {
    margin-bottom: 0.5rem !important;
    font-family: var(--font-body);
}

.blog-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.blog-post-title {
    font-family: var(--font-display);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-post-title a {
    text-decoration: none;
    color: #111827;
}

.blog-post-title a:hover {
    color: var(--gold);
}

.blog-summary {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.empty-state {
    padding: 40px;
    border-radius: 15px;
    background: #fff3cd;
    color: #856404;
}

@media (max-width: 991px) {

    .blog-card {
        flex-direction: column;
    }

    .blog-image-wrapper {
        flex: auto;
    }

    .blog-image {
        height: 240px;
    }


    .blog-post-title {
        font-size: 22px;
    }

    .blog-sidebar {
        position: relative;
        top: auto;
    }

    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {

    .blog-page {
        padding: 20px 0;
    }

    .blog-title {
        font-size: 30px;
    }

    .blog-subtitle {
        font-size: 14px;
    }

    .blog-image {
        height: 200px;
    }

    .blog-post-title {
        font-size: 20px;
    }

    .blog-summary {
        font-size: 14px;
    }

    .read-more-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        border-radius: 10px;
        background: var(--green);
        color: white;
    }
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    margin-top: 30px;
}

.blog-single-page {
    padding: 50px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 900px;
    margin: auto;
}

.article-tags {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    background: #f3f4f6;
    color: #374151;
    transition: .3s;
}

.tag-pill:hover {
    background: #111827;
    color: white;
}


.article-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .06);
}

/* Content Styling */

.blog-content h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
}

.blog-content img {
    width: 100%;
    border-radius: 16px;
    margin: 25px 0;
}

.blog-content iframe {
    width: 100%;
    border-radius: 16px;
}

.blog-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
}

.blog-content pre {
    overflow-x: auto;
    border-radius: 12px;
    padding: 20px;
    background: #111827;
    color: white;
}

.blog-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 20px;
    margin: 25px 0;
    color: #6b7280;
}

.ad-widget {
    background: linear-gradient(135deg,
            #eff6ff,
            #ffffff);
}

.ad-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.related-section {
    margin-top: 60px;
}

.related-title {
    margin-bottom: 25px;
    font-weight: 700;
}

.related-card {
    background: white;
    padding: 24px;
    border-radius: 18px;
    height: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
    transition: .3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.related-card a {
    color: #111827;
    text-decoration: none;
}

.related-card a:hover {
    color: #2563eb;
}

.related-date {
    color: #6b7280;
    font-size: 14px;
}

.blog-not-found {
    padding: 20px;
    border-radius: 12px;
    background: #fff3cd;
    color: #856404;
}

@media (max-width: 991px) {

    .blog-sidebar {
        position: relative;
        top: auto;
    }

    .article-card {
        padding: 25px;
    }

    .article-title {
        font-size: 2.2rem;
    }

    .blog-content {
        font-size: 16px;
    }
}

@media (max-width: 576px) {

    .blog-single-page {
        padding: 25px 0;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-tags {
        justify-content: flex-start;
    }

    .article-card {
        padding: 20px;
        border-radius: 16px;
    }

    .blog-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
}