/* Blog Styles for PartsTrader Theme
   Used in blog page, category archives, and search results
   ========================================================== */

/* Featured post styles */
.featured-post {
    position: relative;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.featured-post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}
.featured-post:hover img {
    transform: scale(1.05);
}
.featured-post .post-info {
    padding: 20px;
    background: #fff;
}
.featured-post .date {
    color: #9ecdfa;
    font-weight: 500;
}
.featured-post h2 {
    margin: 10px 0 15px;
    font-size: 22px;
    font-weight: 600;
}
.featured-post h2 a {
    color: #002662;
    transition: color 0.3s ease;
}
.featured-post h2 a:hover {
    color: #9ecdfa;
    text-decoration: none;
}
.featured-post .bottom-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Regular post grid styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin-bottom: 40px;
}
.post-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.post-card .post-thumb {
    position: relative;
    overflow: hidden;
}
.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.5s ease;
}
.post-card:hover img {
    transform: scale(1.05);
}
.post-card .post-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.post-card .date {
    color: #9ecdfa;
    font-size: 12px;
    font-weight: 500;
}
.post-card h2 {
    margin: 8px 0 12px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}
.post-card h2 a {
    color: #002662;
    transition: color 0.3s ease;
}
.post-card h2 a:hover {
    color: #9ecdfa;
    text-decoration: none;
}
.post-card .bottom-item {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
}
.post-card .cat {
    color: #777;
}
.post-card .cat a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}
.post-card .cat a:hover {
    color: #9ecdfa;
}

/* Pagination styles */
.blog-pagination,
.ajax-pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.blog-pagination::-webkit-scrollbar,
.ajax-pagination::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.blog-pagination .page-numbers,
.ajax-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover,
.ajax-pagination .page-numbers.current,
.ajax-pagination .page-numbers:hover {
    background: #9ecdfa;
    color: #fff;
    text-decoration: none;
}

/* Category header */
.category-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.category-header h1 {
    font-size: 32px;
    color: #002662;
    font-weight: 700;
    margin-bottom: 10px;
}
.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #9ecdfa;
    font-weight: 500;
    transition: all 0.3s ease;
}
.back-link:hover {
    color: #002662;
    text-decoration: none;
    transform: translateX(-5px);
}
.category-header .category-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
}

/* Search results header */
.search-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.search-header h1 {
    font-size: 32px;
    color: #002662;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Category filter styling */
.category-filter {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-top: 6px solid #9ecdfa;
    border-radius: 0 0 4px 4px;
}
.category-filter h4 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #9ecdfa;
    font-weight: 700;
    border-bottom: 1px solid #ccc;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    line-height: 40px;
    padding: 0 0 0 15px;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    margin: 0 0 10px;
    padding: 0;
}
.category-list li:last-child {
    margin-bottom: 0;
}
.category-list a {
    color: #333;
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.category-list a.active {
    background: #002662;
    color: #fff;
    font-weight: 700;
}
.category-list a:hover {
    background: #9ecdfa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}
.cat-count {
    background: rgba(0,0,0,0.1);
    color: inherit;
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;
    min-width: 22px;
    text-align: center;
    float: right;
}
.category-list a.active .cat-count {
    background: #fff;
    color: #002662;
}
.category-list a:hover .cat-count {
    background: #fff;
    color: #9ecdfa;
}

/* No results */
.no-results {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}
.no-results h2 {
    color: #002662;
    margin-bottom: 15px;
}
.no-results p {
    margin-bottom: 20px;
    color: #666;
}

/* Scope general styles to only affect blog content and not interfere with header/footer */
.blog-page {
    padding-top: 50px;
}

/* Target only the blog content containers with higher specificity */
body.blog .blog-page .container .row,
body.single-post .blog-page .container .row,
body.archive .blog-page .container .row,
body.search .blog-page .container .row,
body.page-template-page-blog .blog-page .container .row,
body.page-template-page-news_updates .blog-page .container .row {
    display: flex;
    align-items: flex-start;
}

/* Ensure other site elements retain proper responsive behavior */
header .container .row,
footer .container .row,
.site-header .container .row,
.site-footer .container .row,
#header .container .row,
#footer .container .row {
    display: flex;
    flex-wrap: wrap;
}

/* Remove the generic container selector that could affect all containers */
/* .container .row {
    display: block;
} */

/* Remove any general styles that could affect site-wide layout */
@media (max-width: 991px) {
    /* Scope row direction changes strictly to blog content */
    .blog-page .row {
        flex-direction: column-reverse;
    }
    
    /* Ensure we don't affect other rows in the site */
    .site-header .row,
    .site-footer .row,
    #footer .row,
    header .row,
    footer .row {
        flex-direction: row !important;
    }
    
    /* Make both columns full width but scope to blog content */
    .blog-page .col-md-8,
    .blog-page .col-md-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Ensure footer and header retain proper styling */
@media (max-width: 767px) {
    /* Target the exact row structure I see in the screenshot */
    .row.footer-top, .row.footer-bottom,
    div[class*="footer-top"], div[class*="footer-bottom"],
    div[class*="col-md"] {
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Target the simple-banner specifically */
    .simple-banner, .simple-banner-text {
        text-align: center !important;
    }
    
    /* Adjust footer column spacing */
    footer .col-md-3, footer .col-md-4, footer .col-md-6, footer .col-md-12,
    #footer .col-md-3, #footer .col-md-4, #footer .col-md-6, #footer .col-md-12,
    .site-footer .col-md-3, .site-footer .col-md-4, .site-footer .col-md-6, .site-footer .col-md-12 {
        float: none !important;
        display: block !important;
        max-width: 100% !important;
        margin: 0 auto 15px !important;
        text-align: center !important;
    }
    
    /* Ensure all widths are full width */
    div[class*="col-"] {
        min-width: 100% !important;
        text-align: center !important;
    }
    
    /* Ensure we don't override footer or header styles */
    #footer .col-md-4,
    .site-footer .col-md-4,
    footer .col-md-4,
    #header .col-md-4,
    .site-header .col-md-4,
    header .col-md-4 {
        width: auto !important;
        max-width: none !important;
        flex: 1 !important;
    }
    
    /* Reset any changes to bootstrap column ordering */
    #footer [class*="col-"],
    .site-footer [class*="col-"],
    footer [class*="col-"],
    #header [class*="col-"],
    .site-header [class*="col-"],
    header [class*="col-"] {
        order: initial !important;
    }
    
    /* Center footer elements on mobile */
    footer, #footer, .site-footer, 
    footer .container, #footer .container, .site-footer .container,
    footer .row, #footer .row, .site-footer .row {
        text-align: center !important;
    }
    
    /* Center social icons */
    footer .social-icons, 
    #footer .social-icons, 
    .site-footer .social-icons,
    footer .social-media, 
    #footer .social-media,
    .site-footer .social-media {
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto 15px !important;
    }
    
    /* Center footer menu/links */
    footer ul, footer ol, footer .menu, 
    #footer ul, #footer ol, #footer .menu, 
    .site-footer ul, .site-footer ol, .site-footer .menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding-left: 0 !important;
    }
    
    /* Center copyright text */
    footer .copyright, 
    #footer .copyright, 
    .site-footer .copyright,
    footer .footer-bottom, 
    #footer .footer-bottom, 
    .site-footer .footer-bottom {
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Target the specific footer from screenshot */
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Footer navigation links */
    .footer-nav, .footer-nav a, 
    #menu-bottom-footer-menu, #menu-bottom-footer-menu a {
        display: block;
        text-align: center;
        margin: 5px auto;
    }
    
    /* Specific footer link container */
    #sidebar-9 {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Social media icons */
    .facebook, .linkedin, .twitter, 
    .social-icon, .social-link {
        display: inline-flex !important;
        margin: 0 10px !important;
        float: none !important;
        justify-content: center !important;
    }
    
    /* Year and copyright text */
    .year, .copyright-text {
        display: block;
        width: 100%;
        text-align: center;
        margin: 5px auto;
    }
    
    /* Container elements */
    .container-footer, .footer-container, .container.footer {
        text-align: center;
    }
}

/* Ensure proper spacing for content and sidebar alignment */
#blog-content {
    padding-top: 0;
}

/* Ensure sidebar and content are aligned */
.sidebar {
    padding-top: 0;
}

/* Container alignment fixes */
.container .row {
    display: flex;
    align-items: flex-start;
}

/* AJAX loading indicator */
.ajax-loading {
    text-align: center;
    padding: 30px 0;
}
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 38, 98, 0.1);
    border-radius: 50%;
    border-top-color: #002662;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade animation for post refresh */
.fade-in {
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add spacing between featured post and Latest Articles heading */
#posts-heading {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #002662;
}

/* AJAX Search Lite custom styles */
/* General input styling */
div.asl_m .probox .proinput input.orig {
    color: #fff !important;
    text-shadow: none !important;
    font-size: 16px !important;
}

/* Placeholder styling */
div.asl_m .probox .proinput input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    font-size: 16px !important;
}

/* Target the active input specifically */
div.asl_m .probox .proinput input,
div.asl_m .probox .proinput input:focus,
div.asl_m .probox .proinput input:hover,
div.asl_m .probox .proinput input.autocomplete,
div#ajaxsearchlite1 .probox .proinput input.orig,
#ajaxsearchlite1 input[type="search"],
input.orig {
    color: #fff !important;
    font-size: 16px !important;
}

/* Add !important to override any inline styles */
.proinput input,
div.asl_w .probox .proinput input {
    color: #fff !important;
    font-size: 16px !important;
}

/* Remove or properly style autocomplete */
div.asl_m .probox .proinput input.autocomplete {
    display: none !important; /* Hide the autocomplete completely */
}

/* Alternative fix if you want to keep autocomplete but style it properly:
div.asl_m .probox .proinput input.autocomplete {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 0.5 !important;
    position: absolute !important;
    z-index: -1 !important; 
    font-size: 16px !important;
}
*/

/* Increase search box height */
div.asl_m .probox, 
div.asl_m .probox .proinput,
div.asl_m .probox .promagnifier,
div.asl_m .probox .prosettings {
    height: 44px !important;
}

/* Adjust vertical alignment in the taller search box */
div.asl_m .probox .proinput input.orig {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: 100% !important;
    margin-top: 0 !important;
    line-height: 24px !important;
    vertical-align: middle !important;
    width: 100% !important;
    padding-right: 5px !important;
    padding-left: 10px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* Align search icon and input vertically */
div.asl_m .probox .proinput {
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
}

/* Adjust magnifier position */
div.asl_m .probox .promagnifier {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 5px !important;
    width: 20px !important;
}

/* Ensure the search box has enough width */
div.asl_m .probox {
    padding: 0 5px !important;
    box-sizing: border-box !important;
}

div.asl_w .probox .proclose {
    width: 24px !important;
    height: 24px !important;
    margin-top: 2px !important;
}

/* Give more space to the input by reducing space for other elements */
div.asl_m .probox .prosettings {
    margin-left: 5px !important;
    width: 30px !important;
}

div.asl_m .probox .proclose svg {
    background-color: transparent !important;
    margin-top: 0 !important;
    width: 15px !important;
    height: 15px !important;
    border: transparent !important;
}

div.asl_w .probox .proloading {
    margin-top: 10px !important;
}

/* Fix any text overflow issues */
div.asl_m .probox .proinput input.orig::placeholder {
    text-overflow: ellipsis !important;
}

/* Fix Ajax Search Results Container */
div.asl_r.vertical {
    padding: 0 !important;
    background: #002662 !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25) !important;
    width: 100% !important;
    position: absolute !important;
    z-index: 9999 !important;
    max-width: 100% !important;
}

div.asl_r.vertical .results {
    max-height: 360px !important;
    overflow-y: auto !important;
    padding: 0 !important;
    width: 100% !important;
}

div.asl_r .results .item {
    padding: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    transition: background 0.3s ease !important;
}

div.asl_r .results .item:hover {
    background: rgba(13, 170, 215, 0.2) !important;
}

div.asl_r .results .item .asl_content h3, 
div.asl_r .results .item .asl_content h3 a {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

div.asl_r .results .item .asl_content .asl_desc {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

div.asl_r.asl_w.vertical .resdrg {
    padding-right: 0 !important;
}

div.asl_r .results .asl_nores {
    color: #fff !important;
    padding: 15px !important;
    font-size: 14px !important;
}

/* Scrollbar styling for search results */
div.asl_r .results::-webkit-scrollbar {
    width: 8px;
}

div.asl_r .results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

div.asl_r .results::-webkit-scrollbar-thumb {
    background: rgba(13, 170, 215, 0.6);
    border-radius: 10px;
}

div.asl_r .results::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 170, 215, 0.8);
}

/* Fix for fadeIn animation in results */
div.asl_r.asl_w.vertical.asl_an_fadeInDrop {
    animation-duration: 300ms !important;
    opacity: 1 !important;
    visibility: visible !important;
    left: 0 !important;
}

/* Mobile and Tablet Responsive Layout */
@media (max-width: 991px) {
    /* Change the row flex direction to display sidebar first on mobile/tablet */
    .blog-page .row {
        flex-direction: column-reverse;
    }
    
    /* Make both columns full width */
    .blog-page .col-md-8,
    .blog-page .col-md-4 {
        width: 100%;
        flex: 0 0 100%;
    }
    
    /* Add space between sidebar and content */
    #blog-content {
        margin-top: 30px;
    }
    
    /* Ensure the Ajax search is prominently displayed */
    div.asl_w {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Make the category filter more compact */
    .category-filter {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    /* Display categories in a horizontal scrollable row for smaller screens */
    .category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .category-list::-webkit-scrollbar {
        height: 5px;
    }
    
    .category-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .category-list::-webkit-scrollbar-thumb {
        background: #9ecdfa;
        border-radius: 10px;
    }
    
    .category-list li {
        margin-right: 10px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    .category-list a {
        background: #fff;
        padding: 5px 10px;
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .category-list a:hover {
        background: #9ecdfa;
        color: #fff;
        transform: translateY(-2px);
    }
    
    .category-list a.active {
        background: #012663;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(1, 38, 99, 0.3);
    }
    
    .category-list a:hover .cat-count {
        background: #fff;
        color: #9ecdfa;
    }
    
    .category-list a.active .cat-count {
        background: #fff;
        color: #012663;
    }
    
    .category-list .cat-count {
        margin-left: 8px;
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .cat-all {
        padding: 0;
        margin-top: 0;
        border-top: none;
    }
    
    /* Reduce heading sizes */
    .category-header h1,
    .search-header h1 {
        font-size: 24px;
    }
    
    /* Make the featured post smaller on mobile */
    .featured-post img {
        height: 200px;
    }
    
    /* Single column grid on smaller screens */
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reduce padding on blog page */
    .blog-page {
        padding-top: 30px;
    }
}

/* Smaller mobile screens */
@media (max-width: 576px) {
    /* Further reduce element sizes */
    .category-header h1,
    .search-header h1,
    #posts-heading {
        font-size: 20px;
    }
    
    .featured-post h2 {
        font-size: 18px;
    }
    
    .featured-post img {
        height: 160px;
    }
    
    .post-card h2 {
        font-size: 16px;
    }
    
    /* Even more compact category filter */
    .category-filter h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    /* Compact pagination on small screens without wrapping */
    .blog-pagination,
    .ajax-pagination {
        padding: 3px 0;
        justify-content: flex-start; /* Left align for better scrolling on small screens */
        margin-left: -3px; /* Offset the first item's margin */
    }
    
    .blog-pagination .page-numbers,
    .ajax-pagination .page-numbers {
        width: 30px;
        height: 30px;
        min-width: 30px;
        margin: 0 3px;
        font-size: 14px;
    }
}

/* Trends Reports specific styles */
.trends-reports-archive .category-header {
    margin-bottom: 40px;
}

.trends-reports-archive .category-header h1 {
    color: #002662;
    font-size: 36px;
    margin-bottom: 15px;
}

.trends-reports-archive .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.trends-reports-archive .post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trends-reports-archive .post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.trends-reports-archive .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.trends-reports-archive .post-thumb {
    position: relative;
    padding-top: 141%; /* Aspect ratio for portrait (1:1.41) */
    overflow: hidden;
    background: #f5f5f5;
}

.trends-reports-archive .post-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.trends-reports-archive .post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.trends-reports-archive .post-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trends-reports-archive .date {
    color: #9ecdfa;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.trends-reports-archive .post-info h2 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #002662;
    flex-grow: 1;
}

.trends-reports-archive .read-more {
    color: #9ecdfa;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.trends-reports-archive .post-card:hover .read-more {
    color: #002662;
}

.trends-reports-archive .search-reports-section {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.trends-reports-archive .search-reports-section h4 {
    color: #002662;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Mobile adjustments for Trends Reports */
@media (max-width: 991px) {
    .trends-reports-archive .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .trends-reports-archive .category-header h1 {
        font-size: 28px;
    }
    
    /* Stack sidebar below content on tablet */
    .trends-reports-archive #reports-content,
    .trends-reports-archive .sidebar {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .trends-reports-archive .sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .trends-reports-archive .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trends-reports-archive .category-header h1 {
        font-size: 24px;
    }
    
    .trends-reports-archive .post-info h2 {
        font-size: 16px;
    }
    
    .trends-reports-archive .search-reports-section {
        padding: 20px;
    }
}

/* Single Post Hero Styles */
.single-post-hero {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 60px 0;
    margin-bottom: 60px;
}

.single-post-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.8) 50%,
        rgba(0,0,0,0.9) 100%
    );
    z-index: 1;
}

.single-post-hero .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.single-post-hero .back-link {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.single-post-hero .back-link:hover {
    opacity: 1;
}

.single-post-hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.single-post-hero .post-meta {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.single-post-hero .post-meta .separator {
    margin: 0 10px;
}

.single-post-hero .post-meta a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.single-post-hero .post-meta a:hover {
    opacity: 0.8;
}

.single-post-hero .author-meta {
    display: flex;
    align-items: center;
}

.single-post-hero .author-avatar {
    margin-right: 15px;
}

.single-post-hero .author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.single-post-hero .author-info {
    display: flex;
    flex-direction: column;
}

.single-post-hero .author-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.single-post-hero .author-role {
    font-size: 14px;
    opacity: 0.8;
}

/* Single Post Content Styles */
.single-blog-content {
    padding: 0 0 60px;
}

.single-blog-content .content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.single-blog-content .content p {
    margin-bottom: 25px;
}

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

.single-blog-content .tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.single-blog-content .tags span {
    font-weight: 500;
    color: #002662;
    margin-right: 10px;
}

.single-blog-content .tags a {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-blog-content .tags a:hover {
    background: #9ecdfa;
    color: #fff;
}

/* Author Box Styles */
.author-box {
    margin: 60px 0;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
}

.author-box .author-avatar {
    margin-right: 30px;
}

.author-box .author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.author-box .author-info h3 {
    margin: 0 0 15px;
    color: #002662;
    font-size: 24px;
}

.author-box .author-info p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Post Navigation Styles */
.post-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 0 0 48%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 14px;
    color: #9ecdfa;
    margin-bottom: 8px;
}

.post-navigation a {
    color: #002662;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #9ecdfa;
}

/* Mobile adjustments for Trends Reports */
@media (max-width: 991px) {
    .single-post-hero {
        min-height: 500px;
        padding: 40px 0;
    }

    .single-post-hero h1 {
        font-size: 36px;
    }

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

    .author-box .author-avatar {
        margin: 0 0 20px;
    }

    /* Stack sidebar below content on tablet */
    .single-blog-content .row {
        flex-direction: column-reverse;
    }
    
    .single-blog-content .col-lg-8,
    .single-blog-content .col-lg-4 {
        width: 100%;
        flex: 0 0 100%;
    }
    
    .single-blog-content .sidebar {
        margin-bottom: 40px;
    }

    .single-blog-content .category-filter {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .single-post-hero {
        min-height: 400px;
        padding: 30px 0;
    }

    .single-post-hero h1 {
        font-size: 28px;
    }

    .single-post-hero .post-meta {
        font-size: 14px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        flex: 0 0 100%;
        text-align: left;
        margin-bottom: 20px;
    }

    /* Adjust category filter for mobile */
    .single-blog-content .category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        margin: 0 -15px;
        padding: 10px 15px;
    }
    
    .single-blog-content .category-list::-webkit-scrollbar {
        height: 5px;
    }
    
    .single-blog-content .category-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .single-blog-content .category-list::-webkit-scrollbar-thumb {
        background: #9ecdfa;
        border-radius: 10px;
    }
    
    .single-blog-content .category-list li {
        margin-right: 10px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    .single-blog-content .category-list a {
        background: #fff;
        padding: 5px 10px;
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .single-blog-content .category-list a:hover {
        background: #9ecdfa;
        color: #fff;
        transform: translateY(-2px);
    }
    
    .single-blog-content .category-list .cat-count {
        margin-left: 8px;
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* Ensure news_updates page gets the same styles */
.blog-page .sidebar,
.page-template-page-news_updates .sidebar {
    background: #fff;
    padding: 0;
    list-style: none;
}

.page-template-page-news_updates .category-filter {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-top: 6px solid #9ecdfa;
}

.page-template-page-news_updates .category-list li {
    border-bottom: 1px solid #eee;
    margin: 0;
}

.page-template-page-news_updates .category-filter-link {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.page-template-page-news_updates .cat-count {
    background: #e9e9e9;
    border-radius: 20px;
    font-size: 12px;
    line-height: 18px;
    display: inline-block;
    padding: 0 8px;
    min-width: 22px;
    text-align: center;
}

/* All Categories special styling */
.cat-all {
    margin-top: 10px;
    padding-top: 10px !important;
    border-top: 1px dashed #ccc !important;
}

/* Mobile responsive styles for the category filter */
@media (max-width: 991px) {
    /* Display categories in a horizontal scrollable row for smaller screens */
    .category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .category-list::-webkit-scrollbar {
        height: 5px;
    }
    
    .category-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .category-list::-webkit-scrollbar-thumb {
        background: #9ecdfa;
        border-radius: 10px;
    }
    
    .category-list li {
        margin-right: 10px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    .category-list a {
        background: #fff;
        padding: 5px 10px;
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .category-list a:hover {
        background: #9ecdfa;
        color: #fff;
        transform: translateY(-2px);
    }
    
    .category-list a.active {
        background: #012663;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(1, 38, 99, 0.3);
    }
    
    .category-list a:hover .cat-count {
        background: #fff;
        color: #9ecdfa;
    }
    
    .category-list a.active .cat-count {
        background: #fff;
        color: #012663;
    }
    
    .category-list .cat-count {
        margin-left: 8px;
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .cat-all {
        padding: 0;
        margin-top: 0;
        border-top: none;
    }
}

/* All Categories special styling */
.cat-all a {
    border: 1px dashed #ccc;
    background: transparent;
}
.cat-all a.active {
    border-color: #002662;
    background: #002662;
}
.cat-all a:hover {
    border-color: #9ecdfa;
    background: #9ecdfa;
}

/* Mobile responsive styles for the category filter */
@media (max-width: 991px) {
    /* Display categories in a horizontal scrollable row for smaller screens */
    .category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .category-list::-webkit-scrollbar {
        height: 5px;
    }
    
    .category-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .category-list::-webkit-scrollbar-thumb {
        background: #9ecdfa;
        border-radius: 10px;
    }
    
    .category-list li {
        margin-right: 10px;
        margin-bottom: 0;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    .category-list a {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .cat-count {
        margin-left: 5px;
        font-size: 11px;
        padding: 0 6px;
    }
}

div.asl_r.asl_w.vertical .results .item::after {
    display: none !important;
}

div.asl_r.asl_w.vertical .results .asl_spacer {
    display: none !important;
}

div.asl_w.asl_r.vertical .resdrg {
    padding-right: 0 !important;
}

/* Fix overflow-x on blog pages only */
body.blog,
body.single-post,
body.archive,
body.category,
body.tag,
body.search,
body.page-template-page-blog,
body.page-template-page-news_updates {
    overflow-x: hidden;
}

/* Ensure content containers on blog pages don't cause horizontal overflow */
.blog-page,
.blog-page .container,
.page-template-page-blog .container,
.page-template-page-news_updates .container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Fix potential issues with elements causing overflow */

/* Prevent homepage scroll effects from being affected */
body.home {
    overflow-x: visible !important;
}

/* Add additional overflow control specifically for mobile */
@media (max-width: 767px) {
    .blog-page .sidebar,
    .page-template-page-blog .sidebar,
    .page-template-page-news_updates .sidebar {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Prevent content from extending beyond container */
    .blog-page .container .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Fix container positioning and padding */
.blog-page .container,
.page-template-page-blog .container,
.page-template-page-news_updates .container {
    overflow-x: visible;
    max-width: 1170px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure proper content alignment with the header */
body.blog .container,
body.single-post .container,
body.archive .container,
body.category .container,
body.tag .container,
body.search .container,
body.page-template-page-blog .container,
body.page-template-page-news_updates .container {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the container matches the site header/footer width */
@media (min-width: 1200px) {
    .blog-page .container,
    .page-template-page-blog .container,
    .page-template-page-news_updates .container {
        width: 1170px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .blog-page .container,
    .page-template-page-blog .container,
    .page-template-page-news_updates .container {
        width: 970px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .blog-page .container,
    .page-template-page-blog .container,
    .page-template-page-news_updates .container {
        width: 750px;
    }
}

/* Preserve overflow protection while fixing alignment */
.blog-page,
.page-template-page-blog,
.page-template-page-news_updates {
    overflow-x: hidden;
} 