/**
 * EstateSite Blog Posts Widget Styles
 * @since 1.4.0
 */

/* Entrance Animations - Animate.css compatibility */
.estatesite-blog-post.animate__animated {
    animation-fill-mode: both;
}

/* Animation duration modifiers */
.estatesite-blog-post.animate__slow {
    animation-duration: 2s;
}

.estatesite-blog-post.animate__normal {
    animation-duration: 1s;
}

.estatesite-blog-post.animate__fast {
    animation-duration: 500ms;
}

/* Top Bar - Layout Toggle & Filter */
.estatesite-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Layout Toggle Buttons */
.estatesite-layout-toggle {
    display: flex;
    gap: 12px;
}

/* Filter Container */
.estatesite-filter {
    display: flex;
}

.estatesite-toggle-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666666;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.estatesite-toggle-btn:hover {
    color: #333333;
}

.estatesite-toggle-btn.active {
    color: #0073AA;
}

.estatesite-toggle-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Pagination */
.estatesite-pagination {
    margin-top: 40px;
    text-align: center;
}

.estatesite-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.estatesite-pagination .page-numbers li {
    display: inline-block;
}

.estatesite-pagination .page-numbers a,
.estatesite-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 15px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.estatesite-pagination .page-numbers a:hover {
    background: #0073AA;
    color: #fff;
}

.estatesite-pagination .page-numbers .current {
    background: #0073AA;
    color: #fff;
}

.estatesite-pagination .page-numbers svg {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

.estatesite-load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0073AA;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.estatesite-load-more-btn:hover {
    background: #005A87;
}

.estatesite-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.estatesite-load-more-spinner {
    margin-left: 8px;
}

.estatesite-infinite-scroll-trigger {
    height: 1px;
    margin: 40px 0;
}

.estatesite-infinite-scroll-loading {
    text-align: center;
    padding: 20px;
    font-size: 24px;
    color: #0073AA;
}

/* Container */
.estatesite-blog-posts {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 20px;
    justify-content: center;
}

/* Grid Layout */
.estatesite-layout-grid .estatesite-blog-post,
.estatesite-layout-masonry .estatesite-blog-post {
    /* Gap controlled by flex gap properties */
}

.estatesite-layout-grid .estatesite-col-2,
.estatesite-layout-masonry .estatesite-col-2 {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.estatesite-layout-grid .estatesite-col-3,
.estatesite-layout-masonry .estatesite-col-3 {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

.estatesite-layout-grid .estatesite-col-4,
.estatesite-layout-masonry .estatesite-col-4 {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

/* List Layout */
.estatesite-layout-list {
    flex-direction: column;
}

.estatesite-layout-list .estatesite-blog-post {
    display: flex;
    width: 100%;
    /* Gap controlled by flex gap properties */
}

.estatesite-layout-list .estatesite-blog-post-image {
    flex: 0 0 35%;
    max-width: 35%;
}

.estatesite-layout-list .estatesite-blog-post-content {
    flex: 1;
    padding-left: 30px;
}

/* Blog Post Card */
.estatesite-blog-post {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Full Card Link */
.estatesite-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.estatesite-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.estatesite-card-link-enabled .estatesite-blog-post-title {
    color: inherit;
}

.estatesite-card-link-enabled .estatesite-blog-post-category span {
    cursor: default;
}

/* Featured Image */
.estatesite-blog-post-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.estatesite-blog-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Default hover effect - can be overridden by widget controls */
.estatesite-blog-post:hover .estatesite-blog-post-image img {
    /* Hover effects controlled by widget settings */
}

/* Content */
.estatesite-blog-post-content {
    padding: 20px;
}

/* Category */
.estatesite-blog-post-category {
    margin-bottom: 10px;
}

.estatesite-blog-post-category a {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.estatesite-blog-post-category a:hover {
    background: #333;
    color: #fff;
}

/* Title */
.estatesite-blog-post-title {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

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

.estatesite-blog-post-title a:hover {
    color: #0073aa;
}

/* Meta */
.estatesite-blog-post-meta {
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.estatesite-blog-post-meta span {
    margin-right: 15px;
}

.estatesite-blog-post-meta span:last-child {
    margin-right: 0;
}

.estatesite-blog-post-meta i {
    margin-right: 5px;
}

.estatesite-blog-post-meta a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.estatesite-blog-post-meta a:hover {
    color: #333;
}

/* Excerpt */
.estatesite-blog-post-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* Read More Button */
.estatesite-blog-post-readmore .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.estatesite-blog-post-readmore .btn-primary {
    background: #0073aa;
    color: #fff;
    border: none;
}

.estatesite-blog-post-readmore .btn-primary:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 991px) {
    .estatesite-layout-grid .estatesite-col-3,
    .estatesite-layout-masonry .estatesite-col-3,
    .estatesite-layout-grid .estatesite-col-4,
    .estatesite-layout-masonry .estatesite-col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .estatesite-layout-grid .estatesite-blog-post,
    .estatesite-layout-masonry .estatesite-blog-post {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .estatesite-layout-list .estatesite-blog-post {
        flex-direction: column;
    }

    .estatesite-layout-list .estatesite-blog-post-image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .estatesite-layout-list .estatesite-blog-post-content {
        padding-left: 0;
        padding-top: 20px;
    }
}

/* Frontend Filter - alignment controlled by Elementor */
.estatesite-filter {
    display: flex;
    align-items: center;
    /* justify-content controlled by Elementor alignment control */
}

/* Filter Buttons */
.estatesite-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.estatesite-filter-buttons-wrap {
    display: flex;
}

.estatesite-filter-dropdown-wrap {
    display: flex;
}

.estatesite-filter-btn {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.estatesite-filter-btn:hover {
    border-color: #0073AA;
    color: #0073AA;
    background: #f5f9fc;
}

.estatesite-filter-btn.active {
    background: #0073AA;
    border-color: #0073AA;
    color: #fff;
}

.estatesite-filter-btn.active:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Filter Carousel */
.estatesite-filter-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.estatesite-carousel-wrapper {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden;
    position: relative;
}

.estatesite-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex-wrap: nowrap; /* Prevent wrapping */
}

.estatesite-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.estatesite-carousel-nav {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.estatesite-carousel-nav:hover {
    border-color: #0073AA;
    color: #0073AA;
    background: #f5f9fc;
}

.estatesite-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.estatesite-carousel-nav svg {
    width: 20px;
    height: 20px;
}

/* Filter Dropdown */
.estatesite-filter-dropdown {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.estatesite-filter-dropdown:hover {
    border-color: #999;
}

.estatesite-filter-dropdown:focus {
    outline: none;
    border-color: #0073AA;
    box-shadow: 0 0 0 1px #0073AA;
}

/* Loading state */
.estatesite-blog-posts.estatesite-loading {
    position: relative;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

/* Style 1 - Classic (Default) */
.estatesite-style-1 .estatesite-blog-post {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.estatesite-style-1 .estatesite-blog-post:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.estatesite-style-1 .estatesite-blog-post-image {
    position: relative;
    overflow: hidden;
}

.estatesite-style-1 .estatesite-blog-post-image img {
    transition: transform 0.5s ease;
}

.estatesite-style-1 .estatesite-blog-post:hover .estatesite-blog-post-image img {
    transform: scale(1.05);
}

.estatesite-style-1 .estatesite-blog-post-content {
    padding: 25px;
}

.estatesite-style-1 .estatesite-blog-post-category {
    margin-bottom: 10px;
}

.estatesite-style-1 .estatesite-blog-post-category a,
.estatesite-style-1 .estatesite-blog-post-category span {
    color: #0073AA;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.estatesite-style-1 .estatesite-blog-post-title {
    margin: 0 0 15px;
    font-size: 22px;
    line-height: 1.4;
}

.estatesite-style-1 .estatesite-blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.estatesite-style-1 .estatesite-blog-post-title a:hover {
    color: #0073AA;
}

.estatesite-style-1 .estatesite-blog-post-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.estatesite-style-1 .estatesite-blog-post-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.estatesite-style-1 .estatesite-blog-post-read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #0073AA;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.estatesite-style-1 .estatesite-blog-post-read-more:hover {
    background: #005a87;
}

/* Style 2 - Modern */
.estatesite-style-2 .estatesite-blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.estatesite-style-2 .estatesite-blog-post:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transform: translateY(-6px);
}

.estatesite-style-2 .estatesite-blog-post-image {
    position: relative;
    overflow: hidden;
}

.estatesite-style-2 .estatesite-blog-post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.estatesite-style-2 .estatesite-blog-post:hover .estatesite-blog-post-image::after {
    opacity: 1;
}

.estatesite-style-2 .estatesite-blog-post-content {
    padding: 30px;
}

.estatesite-style-2 .estatesite-blog-post-category {
    display: inline-block;
    margin-bottom: 15px;
}

.estatesite-style-2 .estatesite-blog-post-category a,
.estatesite-style-2 .estatesite-blog-post-category span {
    display: inline-block;
    padding: 6px 12px;
    background: #0073AA;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
}

.estatesite-style-2 .estatesite-blog-post-title {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.estatesite-style-2 .estatesite-blog-post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.estatesite-style-2 .estatesite-blog-post-title a:hover {
    color: #0073AA;
}

.estatesite-style-2 .estatesite-blog-post-meta {
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.estatesite-style-2 .estatesite-blog-post-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.estatesite-style-2 .estatesite-blog-post-read-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #0073AA;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.estatesite-style-2 .estatesite-blog-post-read-more:hover {
    background: #005a87;
    padding-right: 30px;
}

/* Style 3 - Minimal */
.estatesite-style-3 .estatesite-blog-post {
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.estatesite-style-3 .estatesite-blog-post:hover {
    border-bottom-color: #0073AA;
}

.estatesite-style-3 .estatesite-blog-post-image {
    margin-bottom: 20px;
    border-radius: 0;
}

.estatesite-style-3 .estatesite-blog-post-content {
    padding: 0;
}

.estatesite-style-3 .estatesite-blog-post-category {
    margin-bottom: 12px;
}

.estatesite-style-3 .estatesite-blog-post-category a,
.estatesite-style-3 .estatesite-blog-post-category span {
    color: #0073AA;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.estatesite-style-3 .estatesite-blog-post-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
}

.estatesite-style-3 .estatesite-blog-post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.estatesite-style-3 .estatesite-blog-post-title a:hover {
    color: #0073AA;
}

.estatesite-style-3 .estatesite-blog-post-meta {
    margin-bottom: 18px;
    font-size: 13px;
    color: #aaa;
    font-weight: 300;
}

.estatesite-style-3 .estatesite-blog-post-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    font-weight: 300;
}

.estatesite-style-3 .estatesite-blog-post-read-more {
    display: inline-block;
    color: #0073AA;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.estatesite-style-3 .estatesite-blog-post-read-more::after {
    content: '→';
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.estatesite-style-3 .estatesite-blog-post-read-more:hover::after {
    margin-left: 12px;
}

/* Style 4 - Magazine */
.estatesite-style-4 .estatesite-blog-post {
    background: #fff;
    border: 2px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.estatesite-style-4 .estatesite-blog-post:hover {
    border-color: #0073AA;
}

.estatesite-style-4 .estatesite-blog-post-image {
    position: relative;
}

.estatesite-style-4 .estatesite-blog-post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    margin: 0;
}

.estatesite-style-4 .estatesite-blog-post-category a,
.estatesite-style-4 .estatesite-blog-post-category span {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #0073AA;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.estatesite-style-4 .estatesite-blog-post-content {
    padding: 30px;
    background: #fff;
}

.estatesite-style-4 .estatesite-blog-post-title {
    margin: 0 0 15px;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.estatesite-style-4 .estatesite-blog-post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.estatesite-style-4 .estatesite-blog-post-title a:hover {
    color: #0073AA;
}

.estatesite-style-4 .estatesite-blog-post-meta {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estatesite-style-4 .estatesite-blog-post-excerpt {
    margin-bottom: 25px;
    color: #444;
    line-height: 1.7;
    font-size: 15px;
}

.estatesite-style-4 .estatesite-blog-post-read-more {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.estatesite-style-4 .estatesite-blog-post-read-more:hover {
    background: #0073AA;
}

/* ==========================================================================
   Card Style 5 - Bold Overlay
   ========================================================================== */

.estatesite-style-5 .estatesite-blog-post {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.estatesite-style-5 .estatesite-blog-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.estatesite-style-5 .estatesite-blog-post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    transition: all 0.4s ease;
}

.estatesite-style-5 .estatesite-blog-post:hover .estatesite-blog-post-image::after {
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.4) 100%);
}

.estatesite-style-5 .estatesite-blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.estatesite-style-5 .estatesite-blog-post:hover .estatesite-blog-post-image img {
    transform: scale(1.08);
}

.estatesite-style-5 .estatesite-blog-post-category {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 3;
    margin: 0;
}

.estatesite-style-5 .estatesite-blog-post-category a,
.estatesite-style-5 .estatesite-blog-post-category span {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.95);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.estatesite-style-5 .estatesite-blog-post:hover .estatesite-blog-post-category a,
.estatesite-style-5 .estatesite-blog-post:hover .estatesite-blog-post-category span {
    background: #0073AA;
    color: #fff;
}

.estatesite-style-5 .estatesite-blog-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

.estatesite-style-5 .estatesite-blog-post-title {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.estatesite-style-5 .estatesite-blog-post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.estatesite-style-5 .estatesite-blog-post-title a:hover {
    color: #0073AA;
}

.estatesite-style-5 .estatesite-blog-post-meta {
    margin-bottom: 15px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.estatesite-style-5 .estatesite-blog-post-excerpt {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.estatesite-style-5 .estatesite-blog-post:hover .estatesite-blog-post-excerpt {
    opacity: 1;
    transform: translateY(0);
}

.estatesite-style-5 .estatesite-blog-post-read-more {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.estatesite-style-5 .estatesite-blog-post:hover .estatesite-blog-post-read-more {
    opacity: 1;
    transform: translateY(0);
}

.estatesite-style-5 .estatesite-blog-post-read-more:hover {
    background: #0073AA;
    color: #fff;
}

/* ==========================================================================
   Card Style 6 - Side Border Accent
   ========================================================================== */

.estatesite-style-6 .estatesite-blog-post {
    border-radius: 0;
    border-left: 5px solid #0073AA;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.estatesite-style-6 .estatesite-blog-post:hover {
    transform: translateX(8px);
    border-left-width: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.estatesite-style-6 .estatesite-blog-post-content {
    padding: 35px;
}

.estatesite-style-6 .estatesite-blog-post-category {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.estatesite-style-6 .estatesite-blog-post-category::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #0073AA;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.estatesite-style-6 .estatesite-blog-post:hover .estatesite-blog-post-category::before {
    width: 12px;
    height: 12px;
}

.estatesite-style-6 .estatesite-blog-post-category a,
.estatesite-style-6 .estatesite-blog-post-category span {
    color: #0073AA;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.estatesite-style-6 .estatesite-blog-post:hover .estatesite-blog-post-category a {
    color: #005a87;
}

.estatesite-style-6 .estatesite-blog-post-title {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.estatesite-style-6 .estatesite-blog-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.estatesite-style-6 .estatesite-blog-post-title a:hover {
    color: #0073AA;
}

.estatesite-style-6 .estatesite-blog-post-meta {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.estatesite-style-6 .estatesite-blog-post-meta span {
    position: relative;
    padding-right: 15px;
    margin-right: 15px;
}

.estatesite-style-6 .estatesite-blog-post-meta span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: 0;
    color: #ccc;
}

.estatesite-style-6 .estatesite-blog-post-excerpt {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
}

.estatesite-style-6 .estatesite-blog-post-read-more {
    display: inline-flex;
    align-items: center;
    color: #0073AA;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.estatesite-style-6 .estatesite-blog-post-read-more::after {
    content: '→';
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.estatesite-style-6 .estatesite-blog-post-read-more:hover {
    color: #005a87;
}

.estatesite-style-6 .estatesite-blog-post-read-more:hover::after {
    transform: translateX(5px);
}

/* Style 6 - Image styling */
.estatesite-style-6 .estatesite-blog-post-image {
    overflow: hidden;
    margin: -1px -1px 25px -1px; /* Negative margin to account for border */
}

.estatesite-style-6 .estatesite-blog-post-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.estatesite-style-6 .estatesite-blog-post:hover .estatesite-blog-post-image img {
    transform: scale(1.05);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    /* Top bar stacking on mobile */
    .estatesite-top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .estatesite-layout-toggle {
        justify-content: center;
        margin-bottom: 15px;
    }

    .estatesite-filter {
        width: 100%;
    }

    .estatesite-filter-buttons {
        justify-content: center;
    }

    .estatesite-filter-dropdown {
        width: 100%;
    }
}
