.wp-singular.post-template-default.single-post .main-nav .current_page_parent a{
    background: var(--header-link-hover-color);
    color: var(--header-link-hover-text-color);
}
.blog_header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    position: relative;
    text-align: center;
}
.blog_header .blog_search_custom {
    position: relative;
    display: flex;
    width: 100%;
     justify-content: center;
    align-items: center;
    max-width: 600px;
}
.blog_header .blog_search_custom .blog-live-search-container, .blog_header .blog_search_custom form{
    width: 100%;position: relative;
}
.blog_header .blog-live-search-container .search-field {
    background: #FAFAFA;
    border: #D1D1D1 solid 1px;
    border-radius: 16px;
    padding: 8px 16px;
    padding-left: 35px;
    font-size: var(--primary-text-size);
    line-height: 1;
    outline: none;
    width: 100%;
    max-width: 600px;
}
.blog_header .blog-live-search-container .search-submit {
    position: absolute;
    width: 35px;
    height: 100%;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
    top:0;
}
.blog_header .blog_search_custom .search-icon {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 15px;
}
.blog_header .blog_search_custom label{
    width: 100%;
    display: flex;
}
.blog-live-search-dropdown{
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    border-radius: 10px;
    min-width: 320px;
    width: 100%;
}
.blog-live-search-dropdown .blog-live-search-results {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    position: relative;
    overflow: auto;
    border-radius: 10px;
    flex-direction: row;
    gap: 0;
}
.blog-live-search-results li{
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: left;
}
.blog-live-search-results li a{
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}
.search-result-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}
.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-result-content {
    flex: 1;
    min-width: 0;
}
.search-result-title {
    font-size: var(--secondary-text-size);
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--global-text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Posts Shortcode Styles */
/* Save this as css/blog-posts-style.css in your theme directory */

.blog-posts-container { 
    margin: 0 auto; 
    width: 100%;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px; 
    width: 100%;
}

.blog-post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
    max-width: 268px;
}
.blog-post-card::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(0,0,0,.3);
    z-index: 1;
}
.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.read-time,
.post-date { 
    color: #fff;  
    font-size: 12px;
    font-weight: 500; 
}

.read-time {
    background: rgba(255, 255, 255, 0.9);
    color: #fff;
}
.single .custom-description{
    margin: 15px 0 0;
}
.single .nav-links {
    display: flex;
    gap: 20px;
    margin: 30px 0 0;
}
.single .nav-links a{
    color: var(--global-text-color);
}
.single .nav-links a:hover{
    color: var(--button-bg-color);
}

.post-content {
    padding:15px;
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
}

.blog-post-left .post-title {
    margin: 0 0 0px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.blog-post-left .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-left .post-title a:hover { 
    color: #fff; 
}

.post-excerpt {
    margin: 5px 0 0px 0;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center; 
}
.post-read-time{
   color: #fff; 
}
.post-author {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.read-more { 
    color: var(--button-bg-color); 
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
   color: var(--button-bg-color); 
}

/* Pagination Styles */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.pagination-item {
    display: flex;
}

.pagination-item a,
.pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #f8f9fa;
    color: var(--button-bg-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
}

.pagination-item a:hover {
   background: var(--button-bg-color);
    color: var(--button-hover-text-color);
    transform: translateY(-2px);
}

.pagination-item.active a,
.pagination-item.active span {
   background: var(--button-bg-color);
    color: var(--button-hover-text-color);
}

.pagination-item .prev,
.pagination-item .next {
    padding: 12px 20px;
    min-width: auto;
}

/* Loading Styles */
.blog-posts-loading {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--button-bg-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    font-size: 18px;
    grid-column: 1 / -1;
}

.blog-post-wrapper{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; 
    gap: 20px;
}
.blog-post-left {
    width: 70%; 
}
.blog-post-right{ 
   width: 27%;
   margin: 0 0 0 auto;
}
.blog-post-right .blog-post-card{
        max-width: 100%;
 }
.blog-post-right h2{
        margin: -45px 0 15px;
 }
 .whole-post-link{
    position: absolute;
    height: 100%;
    width:100%;
    left: 0;
    top: 0;
    z-index: 3;
 }
.blog-post-right .post-content{
    position: relative;
}
.blog-post-right .blog-post-card::before{
    display: none;
}
.blog-post-left .post-thumbnail,
.related-blogs-section .blog-post-card .post-thumbnail{
    height: 100%;
}
.blog-post-left .blog-post-card,
.related-blogs-section .blog-post-card{
    min-height: 335px;
}
.blog-post-right .post-thumbnail::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(0,0,0,.3);
    z-index: 1;
}
.blog-post-right .post-title, 
.blog-post-right .read-time,
.blog-post-right .post-date,
.blog-post-right .post-author,
.blog-post-right .post-read-time,
.blog-post-right .post-excerpt,
.single .post-title{
color: var(--global-text-color);
}
.blog-post-right .post-title a:hover,
.single .post-title a{
    color: var(--global-text-color);
}
.related-blogs-section {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin: 30px 0 0;
}
.related-blogs-section h2{
    width: 100%;
}
.related-blogs-section .post-content h3,
.related-blogs-section .post-content h3 a{
    color: #fff;
}
/* Responsive Design */
@media(max-width:1200px){
     .blog-post-card{
        max-width: 100%;
    }
     .blog-post-right .blog-posts-grid { 
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    }
}
@media(max-width:991px){
     .blog-post-right h2{
        margin: 0 0 15px;
     }
     .blog-post-right, .blog-post-left{
        width: 100%;
    }
     .blog-post-left{
        order: 2;
     }
}
@media (max-width: 768px) {
    .blog-posts-grid { 
        gap: 20px; 
    }
    .blog-post-card{
        max-width: 100%;
    }
   
    .blog-posts-container {
        padding: 0;
    }
   
    .post-content {
        padding: 15px;
    }
    
    .blog-post-left .post-title {
        font-size: 18px;
    }
    
    .pagination-item a,
    .pagination-item span {
        padding: 10px 12px;
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .pagination-item .prev,
    .pagination-item .next {
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .blog-posts-grid {
        gap: 15px;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-overlay {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .pagination-list {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pagination-item a,
    .pagination-item span {
        padding: 8px 10px;
        min-width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .blog-post-card {
        background: #1a1a1a;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .blog-post-left .post-title {
        color: #fff;
    }
    
    .post-excerpt {
        color: #fff;
    }
    
    .post-author {
        color: #fff;
    }
    
    .post-meta {
        border-top-color: #fff;
    }
    
    .pagination-item a,
    .pagination-item span {
        background: var(--button-bg-color);
    color: var(--button-hover-text-color);
    }
    
    .pagination-item a:hover {
        background: var(--button-bg-color);
    color: var(--button-hover-text-color); 
    }
}

/* Animation for loading new posts */
.blog-post-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for pagination */
.pagination-wrapper::-webkit-scrollbar {
    height: 4px;
}

.pagination-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.pagination-wrapper::-webkit-scrollbar-thumb {
    background: var(--button-bg-color); 
    border-radius: 2px;
}

.pagination-wrapper::-webkit-scrollbar-thumb:hover {
   background: var(--button-bg-color);
    color: var(--button-hover-text-color);
}