/* Blog Page Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Single Post Header */
.single-post-header .post-header-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.single-post-header .meta-category a {
    color: #007bff;
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
}

.single-post-header .post-author-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    font-size: 14px;
}

/* Blog Section */
.blog-section {
    background: #f8f9fa;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
}

.blog-card-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.blog-card-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

/* Blog Card Content */
.blog-card-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.blog-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta a {
    color: #666;
    text-decoration: none;
}

.blog-meta a:hover {
    color: #007bff;
}

.blog-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #007bff;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: #0056b3;
    color: #fff;
    gap: 12px;
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 40px;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.no-posts i {
    color: #dee2e6;
}

/* Single Post Content */
.single-post-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content {
    line-height: 1.8;
    color: #333;
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

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

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding: 20px 30px;
    background: #f8f9fa;
    margin: 30px 0;
    font-style: italic;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 2px solid #dee2e6;
}

.post-tags i {
    color: #007bff;
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: #007bff;
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

.nav-post {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-post:hover {
    background: #007bff;
    color: #fff;
}

.nav-post .nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-post:hover .nav-label {
    color: #fff;
}

.nav-post .nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.nav-post:hover .nav-title {
    color: #fff;
}

.next-post {
    text-align: right;
    margin-left: auto;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 40px 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #007bff;
}

.author-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.author-social a:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

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

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
}

/* Search Widget */
.search-widget .input-group {
    display: flex;
}

.search-widget .form-control {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.search-widget .btn {
    border-radius: 0 4px 4px 0;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #007bff;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumb {
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-content h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.recent-post-content a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-content a:hover {
    color: #007bff;
}

.recent-post-date {
    font-size: 12px;
    color: #666;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #007bff;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .single-post-content {
        padding: 25px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .blog-card-image img {
        height: 250px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .next-post {
        text-align: left;
        margin-left: 0;
    }
}

/* Comments Section */
.comments-area {
    margin-top: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

/* Comment Body */
.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid #dee2e6;
}

.comment-content-wrapper {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author .fn {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    font-style: normal;
}

.comment-metadata {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.comment-metadata a {
    color: #666;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #007bff;
}

.comment-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.comment-reply-link:hover {
    background: #007bff;
    color: #fff;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin-left: 60px;
    padding-left: 0;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 2px solid #dee2e6;
}

.comment-navigation a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.comment-navigation a:hover {
    color: #0056b3;
}

/* No Comments */
.no-comments {
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    color: #666;
    font-style: italic;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #dee2e6;
}

.comment-reply-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-reply-title small {
    font-size: 14px;
    margin-left: 10px;
}

.comment-reply-title small a {
    color: #dc3545;
    text-decoration: none;
}

.comment-form .comment-notes {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

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

.comment-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.comment-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

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

.btn-submit-comment {
    padding: 12px 40px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-comment:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.form-submit {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 767px) {
    .comments-area {
        padding: 25px 20px;
    }
    
    .comment-body {
        flex-direction: column;
    }
    
    .comment-list .children {
        margin-left: 20px;
    }
    
    .comment-navigation {
        flex-direction: column;
        gap: 10px;
    }
}