/* Blog Posts Carousel - CSS adapted from text-carousel with blog-specific styles */

/* Main container */
.wb-blog-posts { 
    position: relative; 
    width: 100%; 
}

/* Viewport with right-only bleed: keep left aligned to container, extend to page right edge */
.wb-blog-posts__viewport {
    overflow: hidden;
    width: calc(100% + (50vw - 50%));
    max-width: none;
    margin-left: 0;
    margin-right: calc(50% - 50vw);
}

/* Track with flex gap for precise spacing between slides */
.wb-blog-posts__track { 
    display: flex; 
    will-change: transform; 
    touch-action: pan-y; 
    gap: 16px; 
}

/* Each slide */
.wb-blog-posts__slide { 
    flex: 0 0 auto; 
}

/* Ensure inner component is positioning context for arrows/dots if needed */
.blog67_component { 
    position: relative; 
}

/* Arrow positioning for blog posts carousel - same as text-carousel */
.wb-blog-posts .blog67_component {
    position: relative;
}

.wb-blog-posts .blog67_group {
    position: relative;
}

/* Arrows inherit positioning from geniova.css - positioned relative to .blog67_group */
.wb-blog-posts .slider-arrow {
    position: absolute;
    z-index: 10;
}

.wb-blog-posts .slider-arrow.is-bottom-previous {
    inset: auto 4rem 0% auto;
}

.wb-blog-posts .slider-arrow.is-bottom-next {
    inset: auto 0% 0% auto;
}

/* Post item styles */
.blog67_item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog67_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog67_item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image container */
.blog67_image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog67_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog67_item:hover .blog67_image {
    transform: scale(1.05);
}

/* Content area */
.blog67_item-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.blog67_item-content-top {
    flex: 1;
}

/* Category tag */
.tag.is-text {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f1f3f4;
    color: #5f6368;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Post title */
.blog67_item h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.blog67_item:hover h3 {
    color: #0066cc;
}

/* Post excerpt */
.blog67_item .text-size-regular {
    color: #666666;
    line-height: 1.6;
}

/* Author section */
.blog67_author-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.blog67_author-image-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.blog67_author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog67_author-text {
    flex: 1;
    min-width: 0;
}

.blog67_author-text .text-size-small {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.blog67_author-text .text-size-small:first-child {
    font-weight: 600;
    color: #1a1a1a;
}

/* Date wrapper */
.blog67_date-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
}

.blog67_text-divider {
    color: #cccccc;
    font-weight: normal;
}

/* No posts message */
.wb-blog-posts__no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.wb-blog-posts__no-posts p {
    margin: 0;
    font-size: 1.125rem;
}

/* Header styles for centralized content */
.wb-blog-posts__tagline {
    /* Styled by centralized typography controls */
}

.wb-blog-posts__title {
    /* Styled by centralized typography controls */
}

.wb-blog-posts__description {
    /* Styled by centralized typography controls */
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .blog67_image-wrapper {
        height: 180px;
    }
    
    .blog67_item-content {
        padding: 20px;
        height: calc(100% - 180px);
    }
}

@media (max-width: 767px) {
    .blog67_image-wrapper {
        height: 160px;
    }
    
    .blog67_item-content {
        padding: 16px;
        height: calc(100% - 160px);
    }
    
    .blog67_item h3 {
        font-size: 1.125rem;
    }
    
    .blog67_author-wrapper {
        gap: 10px;
    }
    
    .blog67_author-image-wrapper {
        width: 36px;
        height: 36px;
    }
}

/* Ensure slides maintain equal height */
.wb-blog-posts__track .wb-blog-posts__slide {
    display: flex;
}

.wb-blog-posts__track .blog67_item {
    width: 100%;
} 