/**
 * Blog Featured Post Carousel Styles
 */

/* Target the list created by Query Loop */
.featured-posts-slider .wp-block-post-template {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Ensure items take up full width of container */
.featured-posts-slider .wp-block-post-template li {
    width: 100%;
    margin: 0;
}

/* Featured Card Styling Updates for Pill Shape */
.featured-post-card {
    border-radius: 50px !important; /* Force pill shape */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15); /* Gold glow on hover */
}

/* Ensure the Featured Image respects the pill shape on the left */
.featured-post-card .wp-block-column:first-child .wp-block-post-featured-image,
.featured-post-card .wp-block-column:first-child .wp-block-post-featured-image img {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    height: 100%;
    object-fit: cover;
}

/* Fix mobile responsiveness for pill card */
@media (max-width: 781px) {
    .featured-post-card {
        border-radius: 30px !important;
        flex-direction: column !important;
    }
    
    .featured-post-card .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .featured-post-card .wp-block-column:first-child .wp-block-post-featured-image,
    .featured-post-card .wp-block-column:first-child .wp-block-post-featured-image img {
        border-radius: 30px 30px 0 0;
        min-height: 250px;
    }
}
