.ast-container {
    max-width: 100% !important;
}
.first-post-container .img-container a img,
.blog-thumb a img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
/*.first-post-container .img-container a img{
    aspect-ratio: 4 / 3;

}*/
.first-post-container{
    margin-top:30px;
}

.first-post-container .post-categories {
        display: block;
        width: 100%;
        position: relative;
        margin: 0 0 10px 0;
        padding: 0;
    }
.top-meta .post-categories{
    display: block;
    width: 100%;
    position: relative;
    margin-bottom:0 !important;
}
.top-meta .post-categories li,
.first-post-container .post-categories li {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;

}

.first-post-container .post-categories li a{
    text-transform: uppercase;
}
.top-meta .post-categories li a{
    text-transform: uppercase !important;
    background:transparent !important;
    border:none !important;
    padding:0 !important;
    margin:0 !important;
    color:#c4931d !important;
    border-radius:0 !important;
    font-weight:600 !important;
    font-size:14px !important;
}
.top-meta .post-categories li a:hover,
.top-meta .post-categories li a:active,
.top-meta .post-categories li a:focus{
    background:transparent !important;
    border:none !important;
    color:#816113;
}
.first-post-container .blog-post-content h2 a{
    color: #363636;
}
.blog-post-item .post-content .post-date{
    color:#8093a6;
    font-weight:500;
}
.blog-posts-wrap{
    margin-top:30px;
}
@media (min-width: 1450px) {
    .blog-post-container {
        max-width: 1500px !important;
    }
}

/* AJAX Blog Filter Styles */
#loading-indicator {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#loading-indicator p {
    margin: 0;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.filter-row .form-control {
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.filter-row .form-control:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 186, 0.25);
    outline: none;
}

.filter-row .form-control:hover {
    border-color: #bbb;
}

#reset-filters {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#reset-filters:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#reset-filters:active {
    transform: translateY(0);
}

/* Animation for new content */
.blog-posts-wrap {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination styling improvements */
.pagination-row .page-numbers {
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000000;
}

.pagination-row .page-numbers:hover {
    color: #000000;
    transform: translateY(-1px);
}

.pagination-row .page-numbers.current {
    background-color: #ffd451;
    border-radius: 4px;
    padding: 8px 12px;
}

/* Loading state for filters */
.filter-loading .form-control {
    opacity: 0.6;
    pointer-events: none;
}

/* No results message styling */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.no-results-message h3 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Lazy Loading & Image Loading Animations */
.image-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    min-height: 185px; /* Ensure adequate space for loading animation */
}

/* Different min-heights for different contexts */
.first-post-container .image-container {
    min-height: 300px; /* Larger for featured post */
}

.blog-thumb .image-container {
    min-height: 185px; /* Standard for blog grid */
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: inherit; /* Use the same min-height as container */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #e8e9ea 25%, #f5f5f5 50%, #e8e9ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.image-loading::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-loading.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

/* Featured image should load immediately */
.featured-image {
    opacity: 1 !important; /* Featured images show immediately */
}

/* Hide loading animation for featured images */
.first-post-container .image-loading {
    display: none;
}

/* Enhanced image hover effects */
.blog-thumb a,
.first-post-container .img-container a {
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-thumb a:hover,
.first-post-container .img-container a:hover {
    transform: scale(1.02);
}

.blog-thumb a img,
.first-post-container .img-container a img {
    transition: transform 0.5s ease;
}

.blog-thumb a:hover img,
.first-post-container .img-container a:hover img {
    transform: scale(1.05);
}

/* Loading skeleton for content */
.content-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 20px;
    margin-bottom: 10px;
}

.content-loading.title {
    height: 24px;
    width: 80%;
}

.content-loading.excerpt {
    height: 16px;
    width: 100%;
}

.content-loading.excerpt:nth-child(2) {
    width: 90%;
}

.content-loading.excerpt:nth-child(3) {
    width: 75%;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .filter-row > div {
        margin-bottom: 20px;
    }
    
    .first-post-container {
        margin-top: 20px;
    }
    
    .first-post-container .col-md-6 {
        margin-bottom: 20px;
    }
    
    #reset-filters {
        width: 100%;
        margin-top: 10px;
    }
    
    .image-loading::before {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .image-container {
        min-height: 180px; /* Slightly smaller on mobile */
    }
    
    .first-post-container .image-container {
        min-height: 250px; /* Adjust featured post for mobile */
    }
    
    .blog-thumb .image-container {
        min-height: 180px; /* Standard for mobile blog grid */
    }
}
.single-post .breadcrumb-container{
    margin-bottom:70px;
    .container{
        max-width:1800px;
        margin-left:auto;
        margin-right:auto;
    }
}
.single-post .featured-img img{
    max-width:none;
    width:100%;
}
.single-post
{

    /*THIS IS HIDING THE FIRST IMAGE IN BLOG POSTS THAT WAS ADDED MANUALLY BY SEO TEAM */
    .post-content > p:first-child + .wp-block-image,
    .post-content > .wp-block-image:first-child:has(+ p),
    .post-content > .wp-block-image:first-child:has(+ h2){
        display: none;
    }
    h2.uagb-heading-text{
        margin-bottom:30px !important;
    }
    .uagb-toc__wrap{
        padding: 0 !important;
    }
  .uagb-toc__list{
      margin-left: 0 !important;
  }
    .uagb-toc-link__trigger{
        text-decoration: none !important;
        font-weight:400;
    }
    .a2a_kit a span {
        border-radius: 16px !important;
        padding: 4px;
    }
    .widget_block:has(.uagb_table-of-contents-placeholder) {
        display: none;
    }
}

/* Related Posts Section Styling */
.related-posts {
    background-color: #edecea;
    padding: 60px 0;
    margin-top: 60px;
    margin-bottom:0 !important;
}

.related-posts-section h3 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px !important;
    position: relative;
}


.related-posts-grid {
    margin-top: 30px;
}

/* Ensure related posts use the same styling as blog posts */
.related-post-item .blog-thumb a img,
.related-post-item .blog-thumb .image-container {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.related-post-item .blog-thumb .image-container{
    margin-bottom:15px;
}
.related-post-item .post-categories {
    display: block;
    width: 100%;
    position: relative;
    margin: 0 0 10px 0;
    padding: 0;
}

.related-post-item .post-categories li {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.related-post-item .post-categories li a {
    display: block;
    font-size: 14px;
    margin-bottom:0;
    width: 100%;
    color: #c4931d;
    font-weight: 600;
    background-color: transparent;
    border: none;
    padding: 0 !important;
    text-transform: uppercase;
    text-decoration: none;
}

.related-post-item .post-categories li a:hover {
    color: #816113;
}
.related-post-item .post-content{
    display: block;
    width: 100%;
    position: relative;
    padding: 10px;
    font-size: 14px;
}
.related-post-item .post-content h2{
    font-size: 23px;
    font-family: "HCo Gotham SSm", sans-serif;
    font-weight: 400;
    line-height: 1 !important;
}
.related-post-item .post-content h2 a {
    color: #363636;
    text-decoration: none;
    font-size: 23px;
    font-family: "HCo Gotham SSm", sans-serif;
    font-weight: 400;
    line-height: 1 !important;
}

.related-post-item .post-content h2 a:hover {
    color: #363636;
    text-decoration: underline;
}

.related-post-item .post-content .post-date {
    color: #8093a6;
    font-weight: 500;
    font-size: 14px;
    margin-top: 10px;
}

.related-post-item .post-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

/* Container max width for related posts */
.related-posts .container {
    max-width: 1500px;
}

/* Responsive adjustments for related posts */
@media (max-width: 768px) {
    .related-posts {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .related-posts-section h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .related-post-item {
        margin-bottom: 30px;
    }
    
    .related-post-item .post-content h2 a {
        font-size: 16px;
    }
}

