/* ===========================================
   Blog Single Post Styles 
   =========================================== */
.site-content .blog-single-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    margin: 40px 0;
    width: 100%;
}

.blog-single-content {
    flex: 1;
    min-width: 0;
    order: 1;
}

.blog-single-sidebar {
    width: 300px;
    flex-shrink: 0;
    order: 2;
    position: relative;
}

/* Sidebar Box Styling */
.site-content .blog-sidebar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
}

/* Sidebar Widgets */
.site-content .widget {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.site-content .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.site-content .widget-title {
    font-size: 1.25rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #2c3e50;
    position: relative;
}

.site-content .widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--text-accent);
}

/* Search Widget */
.site-content .widget_search .search-form {
    position: relative;
}

.site-content .widget_search .search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.site-content .widget_search .search-field:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
    outline: none;
}

/* Widget Lists */
.site-content .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-content .widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f0f0f0;
}

.site-content .widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.site-content .widget a {
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.site-content .widget a:hover {
    color: var(--text-accent);
    padding-left: 5px;
}

/* Categories and Archives Widgets */
.site-content .widget_categories .children,
.site-content .widget_pages .children {
    margin-left: 15px;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid #f0f0f0;
}

/* Tag Cloud */
.site-content .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-content .tag-cloud-link {
    display: inline-block;
    background: #f5f7fa;
    color: #4a5568;
    font-size: 0.8rem !important;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-content .tag-cloud-link:hover {
    background: var(--text-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Recent Posts Widget */
.site-content .widget_recent_entries .post-date {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 3px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .site-content .blog-sidebar {
        width: 100%;
        margin-top: 40px;
    }
}

/* Article Styles */
.site-content .blog-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.site-content .entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.2rem;
    margin: 0 0 15px;
    color: #2c3e50;
    line-height: 1.3;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-meta i {
    margin-right: 5px;
    color: #3498db;
}

.entry-meta a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #3498db;
}

.post-thumbnail {
    margin: 0 -40px 30px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.8em 0 1em;
    color: #2c3e50;
}

.entry-content a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.tags-links a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 50px 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-description h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.author-description p {
    margin: 0 0 10px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

.nav-previous a,
.nav-next a {
    display: block;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #3498db;
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 600;
    line-height: 1.4;
}

/* Comments */
.comments-area {
    margin-top: 60px;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.comments-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

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

.comment-body {
    position: relative;
    padding-left: 90px;
}

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

.avatar {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.fn {
    font-weight: 600;
    font-style: normal;
    color: #2c3e50;
}

.comment-meta {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

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

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-respond {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.comment-reply-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.comment-reply-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent,
.form-submit {
    grid-column: 1 / -1;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    grid-column: span 1;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

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

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

.submit {
    display: inline-block;
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.submit:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0 20px;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f8f9fa;
    color: #3498db;
}

/* ===========================================
   Blog List Page Layout 
   =========================================== */
.blog-page-wrapper {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.blog-page-content {
    flex: 1;
    min-width: 0;
}

.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Blog Post Card */
.blog-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.post-categories {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.post-categories a {
    display: inline-block;
    background: rgba(52, 152, 219, 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 3px;
    margin-right: 5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 30px;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 1.6rem;
    margin: 0 0 15px;
    line-height: 1.4;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #3498db;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.entry-meta i {
    margin-right: 5px;
    color: #3498db;
}

.entry-meta a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #3498db;
}

.entry-summary {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .blog-page-wrapper,
    .blog-single-wrapper {
        flex-direction: column;
    }
    
    .blog-sidebar,
    .blog-single-sidebar {
        width: 100%;
        margin-top: 40px;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .blog-article {
        padding: 30px;
    }
    
    .post-thumbnail {
        margin: -30px -30px 25px;
    }
}

@media (max-width: 767px) {
    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        grid-column: 1 / -1;
    }
    
    .entry-title {
        font-size: 1.4rem;
    }
    
    .blog-article {
        padding: 25px 20px;
    }
    
    .post-thumbnail {
        margin: -25px -20px 20px;
    }
    
    .comment-body {
        padding-left: 0;
        padding-top: 70px;
    }
    
    .avatar {
        top: -50px;
        left: 0;
    }
}

@media (max-width: 480px) {
    .entry-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
.blog-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
}

.blog-page-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Blog Post Styles */
.blog-post {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

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

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 1.8rem;
    margin: 0 0 10px;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #3498db;
}

.entry-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.entry-meta a {
    color: #3498db;
    text-decoration: none;
}

.entry-meta .sep {
    margin: 0 8px;
    color: #ddd;
}

.entry-summary {
    color: #555;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0 20px;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f8f9fa;
    color: #3498db;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .blog-page-wrapper {
        flex-direction: column;
    }
    
    .blog-sidebar {
        width: 100%;
        margin-top: 40px;
    }
    
    .entry-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 575px) {
    .entry-title {
        font-size: 1.4rem;
    }
    
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
