/* Blog Specific Styles */
.blog-section {
    padding: 85px 0;
}

.blog-details-section {
    padding: 85px 0;
}

/* Performance Optimizations */
.post-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-featured-thumb:hover img {
    transform: scale(1.02);
}

/* Improved Typography for SEO */
.post-details-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-details-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--header);
    margin: 35px 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.post-details-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--theme-color);
}

.post-details-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--header);
    margin: 30px 0 15px 0;
}

.post-details-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-details-content ul,
.post-details-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.post-details-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Equal height rows for blog grid */
.blog-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.blog-section .row > div {
    display: flex;

}

/* Blog Post Cards */
.single-blog-post {
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 53, 102, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.single-blog-post:hover {
    box-shadow: 10px 8px 34px 16px rgba(10, 3, 46, 0.03);
}

.single-blog-post.featured-post {
    border: 2px solid var(--theme-color);
}

.single-blog-post .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.single-blog-post .post-content h2 {
    flex: 1;
}

.single-blog-post .post-featured-thumb {
    position: relative;
    height: fit-content;
    overflow: hidden;
}

.single-blog-post .post-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-blog-post .post-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--theme-color);
    padding: 15px 20px;
    text-align: center;
    border-radius: 8px;
}

.single-blog-post .post-date h4 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.single-blog-post .post-date span {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    display: block;
}

.single-blog-post .post-content {
    padding: 30px;
}

.single-blog-post .post-cat {
    margin-bottom: 15px;
}

.single-blog-post .post-cat a {
    background: var(--theme-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.single-blog-post .post-cat a:hover {
    background: var(--header);
    color: #fff;
}

.single-blog-post .post-content h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.single-blog-post .post-content h2 a {
    color: var(--header);
    transition: color 0.3s ease;
}

.single-blog-post .post-content h2 a:hover {
    color: var(--theme-color);
}

.single-blog-post .post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.single-blog-post .post-meta span {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-blog-post .post-meta i {
    color: var(--theme-color);
}

.single-blog-post .post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.single-blog-post .post-link {
    margin-top: 25px;
}

.single-blog-post .post-link a {
    color: var(--theme-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.single-blog-post .post-link a:hover {
    color: var(--header);
}

.single-blog-post .post-link i {
    transition: transform 0.3s ease;
}

.single-blog-post .post-link a:hover i {
    transform: translateX(3px);
}

/* Blog Sidebar */
.main-sidebar .single-sidebar-widget {
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 53, 102, 0.12);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 10px 8px 34px 16px rgba(10, 3, 46, 0.03);
}

.main-sidebar .wid-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.main-sidebar .wid-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 2px;
    background: var(--theme-color);
}

.main-sidebar .wid-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--header);
    margin: 0;
}

/* Search Widget */
.search_widget form {
    position: relative;
}

.search_widget input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search_widget input:focus {
    outline: none;
    border-color: var(--theme-color);
}

.search_widget button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--theme-color);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.search_widget button:hover {
    background: var(--header);
}

/* Categories Widget */
.widget_categories ul li {
    margin-bottom: 10px;
}

.widget_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--header);
    font-weight: 500;
    transition: all 0.3s ease;
}

.widget_categories ul li a:hover {
    background: var(--theme-color);
    color: #fff;
}

.widget_categories ul li a span {
    background: var(--theme-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Popular Posts Widget */
.popular-posts .single-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.popular-posts .single-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts .thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-posts .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-posts .post-content h5 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.popular-posts .post-content h5 a {
    color: var(--header);
    transition: color 0.3s ease;
}

.popular-posts .post-content h5 a:hover {
    color: var(--theme-color);
}

.popular-posts .post-date {
    color: #666;
    font-size: 13px;
}

/* Tags Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tagcloud a {
    padding: 8px 16px;
    background: #f8f9fa;
    color: var(--header);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tagcloud a:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-input-4 {
    position: relative;
}

.footer-input-4 input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.footer-input-4 input:focus {
    outline: none;
    border-color: var(--theme-color);
}

.footer-input-4 .submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--theme-color);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.footer-input-4 .submit-btn:hover {
    background: var(--header);
}


/* Blog Details */
.post-details-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-details-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--header);
    margin: 40px 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.post-details-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--theme-color);
}

.post-details-content p {
    margin-bottom: 25px;
}

.post-details-content ul,
.post-details-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.post-details-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Author Info Box */
.author-info-box {
    background: #f8f9fa;
    border-left: 4px solid var(--theme-color);
    border-radius: 8px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-details h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 5px;
}

.author-details p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Comments Section */
.comments-heading h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 30px;
}

.single-comment-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.single-comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-comment-item .author-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.single-comment-item .author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-comment .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.author-info-comment .info h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--header);
    margin: 0;
}

.author-info-comment .info span {
    color: #666;
    font-size: 14px;
}

.author-info-comment .theme-btn.minimal-btn {
    background: transparent;
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
    padding: 5px 15px;
    font-size: 12px;
}

.author-info-comment .theme-btn.minimal-btn:hover {
    background: var(--theme-color);
    color: #fff;
}

.comment-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Comment Form */
.comment-form-wrap {
    margin-top: 50px;
}

.comment-form-wrap h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 30px;
}

.comment-form .form-control,
.comment-form .form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.comment-form .form-clt input:focus,
.comment-form .form-clt textarea:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(252, 136, 55, 0.1);
    outline: none;
}

.comment-form .form-clt input,
.comment-form .form-clt textarea {
    border: 1px solid rgba(0, 53, 102, 0.12);
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
    color: var(--header);
}

.comment-form .form-clt textarea {
    resize: vertical;
    min-height: 120px;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-share a {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background: #f8f9fa;
    color: var(--header);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: var(--theme-color);
    color: #fff;
}

/* Tags and Social Share Wrap */
.tag-share-wrap {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
       background: linear-gradient(135deg, #a76a28, #20c997);
}

.tag-share-wrap h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 15px;
}

.tag-share-wrap .row > div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Blog Details Responsive Design */
@media (max-width: 991px) {
    .blog-details-section {
        padding: 60px 0;
    }

    .blog-details-section .col-lg-8 {
        margin-bottom: 40px;
    }

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

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }

    .blog-details-section {
        padding: 60px 0;
    }

    .single-blog-post .post-featured-thumb {
        height: 200px;
    }

    .single-blog-post .post-content {
        padding: 20px;
    }

    .single-blog-post .post-content h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .single-blog-post .post-content h2 {
        font-size: 18px;
    }

    .single-blog-post .post-meta {
        gap: 10px;
        font-size: 12px;
        flex-wrap: wrap;
    }

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

    .post-details-content {
        font-size: 15px;
        line-height: 1.6;
    }

    .post-details-content h3 {
        font-size: 20px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .single-comment-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .author-info-comment .info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .tag-share-wrap .row > div {
        text-align: center !important;
    }

    .internal-links {
        padding: 20px !important;
    }

    .internal-links h2 {
        font-size: 18px !important;
    }
}

@media (max-width: 576px) {
    .single-blog-post .post-featured-thumb {
        height: 180px;
    }

    .single-blog-post .post-content {
        padding: 15px;
    }

    .single-blog-post .post-content h1 {
        font-size: 20px;
    }

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

    .single-blog-post .post-meta {
        font-size: 11px;
        gap: 8px;
    }

    .post-details-content {
        font-size: 14px;
    }

    .post-details-content h3 {
        font-size: 18px;
    }

    .comments-heading h3 {
        font-size: 20px;
    }

    .comment-form-wrap h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .single-blog-post .post-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .tag-share-wrap .row > div {
        text-align: center;
    }

    .social-share {
        justify-content: center;
    }
}


