/* 
*
*
*
*
*   =========================== BLOG POST CSS STYLES ===============================
*
*
*
*
*/

.blog-post {
    margin-bottom: 50px;
}

.blog-post-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    height: 450px;
}

.blog-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-post-img:hover img {
    transform: scale(1.03);
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 0.9375rem;
}

.blog-post-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.blog-post-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.3;
}

.blog-post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--dark);
}

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

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

.blog-post-content h4 {
    font-size: 1.25rem;
}

.blog-post-content blockquote {
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid var(--primary);
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

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

.blog-post-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.blog-post-tags a {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 5px 15px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 50px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.blog-post-tags a:hover {
    background: var(--primary);
    color: #fff;
}

.blog-post-share {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.blog-post-share span {
    margin-right: 15px;
    font-weight: 600;
    color: var(--dark);
}

.blog-post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 50px;
    transition: all 0.3s;
}

.blog-post-share a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.blog-post-share a.facebook:hover {
    background: #3b5998;
}

.blog-post-share a.twitter:hover {
    background: #1da1f2;
}

.blog-post-share a.linkedin:hover {
    background: #0077b5;
}

.blog-post-share a.pinterest:hover {
    background: #bd081c;
}

/* Author Box */
.blog-post-author {
    display: flex;
    padding: 30px;
    margin-bottom: 50px;
    background: #f9f9f9;
    border-radius: 15px;
}

.blog-post-author-img {
    width: 120px;
    height: 120px;
    margin-right: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.blog-post-author h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.blog-post-author p {
    margin-bottom: 15px;
    color: #6c757d;
}

.blog-post-author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    background: #fff;
    color: var(--primary);
    border-radius: 50px;
    transition: all 0.3s;
}

.blog-post-author-social a:hover {
    background: var(--primary);
    color: #fff;
}

/* Comments Section */
.blog-comments {
    margin-bottom: 50px;
}

.blog-comments h3 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.blog-comments h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.blog-comment {
    display: flex;
    margin-bottom: 30px;
}

.blog-comment-img {
    width: 70px;
    height: 70px;
    margin-right: 20px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-comment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-comment-content {
    flex-grow: 1;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    position: relative;
}

.blog-comment-content::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #f9f9f9;
}

.blog-comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.blog-comment-name {
    font-weight: 600;
    color: var(--dark);
}

.blog-comment-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.blog-comment-text {
    color: #555;
    line-height: 1.7;
}

.blog-comment-reply {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s;
}

.blog-comment-reply:hover {
    color: var(--secondary);
}

.blog-comment-reply i {
    margin-right: 5px;
}

.blog-comment-replies {
    margin-left: 90px;
}

/* Comment Form */
.blog-comment-form {
    margin-bottom: 50px;
}

.blog-comment-form h3 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.blog-comment-form h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.blog-comment-form .form-control {
    height: 50px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.blog-comment-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.blog-comment-form textarea.form-control {
    height: 150px;
    padding-top: 15px;
}

.blog-comment-form .form-check {
    margin-bottom: 20px;
}

.blog-comment-form .form-check-input {
    margin-top: 0.3rem;
}

/* Related Posts */
.blog-related {
    margin-bottom: 50px;
    padding: 20px;
}

.blog-related h3 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.blog-related h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.blog-related-item {
    margin-bottom: 30px;
    transition: all 0.3s;
    padding: 20px;
}

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

.blog-related-img {
    height: 200px;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.blog-related-item:hover .blog-related-img img {
    transform: scale(1.05);
}

.blog-related-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.blog-related-title a {
    color: var(--dark);
    transition: all 0.3s;
}

.blog-related-title a:hover {
    color: var(--primary);
}

.blog-related-date {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .blog-post-img {
        height: 350px;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

    .blog-post-author {
        flex-direction: column;
        text-align: center;
    }

    .blog-post-author-img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .blog-comment-replies {
        margin-left: 30px;
    }
}

@media (max-width: 767.98px) {
    .blog-post-img {
        height: 250px;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

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

    .blog-comment-img {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .blog-comment-content::before {
        display: none;
    }

    .blog-comment-replies {
        margin-left: 0;
        padding-left: 20px;
    }
}