/* Featured Post Blog Widget CSS */

.botvfx-featured-post-plugin {
    width: 100%;
}

.botvfx-featured-post-plugin a {
    text-decoration: none;
    color: inherit;
}

.botvfx-featured-post-plugin .fb-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 24px;
    grid-row-gap: 30px;
    width: 100%;
    align-items: start;
}

.botvfx-featured-post-plugin .fb-side-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    width: 100%;
    gap: 24px;
}

.botvfx-featured-post-plugin .fb-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

/* .botvfx-featured-post-plugin .fb-box:hover .comm-card-hdn {
    color: var(--red, #DF1F26) !important;
} */

.botvfx-featured-post-plugin .fb-img {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1.68;
    position: relative;
    width: 100%;
}

.botvfx-featured-post-plugin .fb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.botvfx-featured-post-plugin .fb-box:hover .fb-img img {
    transform: scale(1.05);
}

.botvfx-featured-post-plugin .fb1 {
    width: 100%;
}

.botvfx-featured-post-plugin .fb1 .fb-img {
    aspect-ratio: 2.2;
}

/* Fallback for direct children layout */
.botvfx-featured-post-plugin .fb-wrap:not(:has(.fb-side-wrap)) {
    grid-template-rows: repeat(2, 1fr);
}
.botvfx-featured-post-plugin .fb-wrap:not(:has(.fb-side-wrap)) .fb1 {
    grid-area: 1 / 1 / 3 / 2;
}
.botvfx-featured-post-plugin .fb-wrap:not(:has(.fb-side-wrap)) .fb2 {
    grid-area: 1 / 2 / 2 / 3;
}
.botvfx-featured-post-plugin .fb-wrap:not(:has(.fb-side-wrap)) .fb3 {
    grid-area: 2 / 2 / 3 / 3;
}

.botvfx-featured-post-plugin .fb2,
.botvfx-featured-post-plugin .fb3 {
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
}

.botvfx-featured-post-plugin .fb2 .fb-img,
.botvfx-featured-post-plugin .fb3 .fb-img {
    width: 44%;
    max-width: 48%;
    flex: 0 0 44%;
    min-width: 220px;
    flex-shrink: 0;
}

.botvfx-featured-post-plugin .fb2 .blog-cont,
.botvfx-featured-post-plugin .fb3 .blog-cont {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

/* Blog Content */
.botvfx-featured-post-plugin .blog-cont {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.botvfx-featured-post-plugin .blog-cont ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.botvfx-featured-post-plugin .blog-cont ul li {
    font-size: var(--fs16, 16px);
    color: var(--grey, #888);
    position: relative;
    text-transform: none;
    margin: 0;
}

.botvfx-featured-post-plugin .blog-cont ul li:last-child {
    text-transform: uppercase;
}

.botvfx-featured-post-plugin .blog-cont ul li:not(:last-child)::after {
    content: "|";
    color: var(--grey, #888);
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.botvfx-featured-post-plugin .comm-card-hdn {
    color: var(--white, #fff);
    font-family: "Tanker", sans-serif;
    font-size: var(--fs36, 36px);
    line-height: 1.01;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.botvfx-featured-post-plugin .fb1 .comm-card-hdn {
    font-size: var(--fs36, 36px);
}

.botvfx-featured-post-plugin .blog-cont p {
    color: var(--white, #fff);
    font-size: var(--fs20, 20px);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Styles */

/* Widescreen & Extended Displays (1441px and above) */
@media (min-width: 1441px) {
    .botvfx-featured-post-plugin .fb-wrap {
        align-items: start !important;
    }

    .botvfx-featured-post-plugin .fb-side-wrap {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 24px !important;
        height: auto !important;
        width: 100% !important;
    }

    /* Ensure thumbnails scale proportionally on wide/extended displays without big vertical gaps */
    html body .elementor-element.elementor-element .botvfx-featured-post-plugin .fb2 .fb-img,
    html body .elementor-element.elementor-element .botvfx-featured-post-plugin .fb3 .fb-img,
    html body .botvfx-featured-post-plugin .fb-wrap .fb-side-wrap .fb2 .fb-img,
    html body .botvfx-featured-post-plugin .fb-wrap .fb-side-wrap .fb3 .fb-img,
    .botvfx-featured-post-plugin .fb2 .fb-img,
    .botvfx-featured-post-plugin .fb3 .fb-img {
        width: 44% !important;
        max-width: 48% !important;
        flex: 0 0 44% !important;
        min-width: 240px !important;
    }

    .botvfx-featured-post-plugin .fb2 .blog-cont,
    .botvfx-featured-post-plugin .fb3 .blog-cont {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

/* Medium Laptops & Desktops (992px to 1200px) */
@media (max-width: 1200px) and (min-width: 992px) {
    .botvfx-featured-post-plugin .fb2 .comm-card-hdn,
    .botvfx-featured-post-plugin .fb3 .comm-card-hdn {
        font-size: 26px;
    }

    .botvfx-featured-post-plugin .blog-cont p {
        font-size: 15px;
    }
}

/* Tablets & Mobile Devices (991px and down) */
@media (max-width: 991px) {
    .botvfx-featured-post-plugin .fb-wrap {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 30px !important;
    }

    .botvfx-featured-post-plugin .fb-side-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        height: auto !important;
        justify-content: flex-start !important;
        grid-column: 1 !important;
    }

    .botvfx-featured-post-plugin .fb1,
    .botvfx-featured-post-plugin .fb2,
    .botvfx-featured-post-plugin .fb3 {
        grid-area: auto !important;
        width: 100% !important;
    }

    .botvfx-featured-post-plugin .fb2,
    .botvfx-featured-post-plugin .fb3 {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Ensure images on tablet/mobile take full card width, overriding any desktop slider setting */
    html body .elementor-element.elementor-element .botvfx-featured-post-plugin .fb2 .fb-img,
    html body .elementor-element.elementor-element .botvfx-featured-post-plugin .fb3 .fb-img,
    html body .botvfx-featured-post-plugin .fb-wrap .fb-side-wrap .fb2 .fb-img,
    html body .botvfx-featured-post-plugin .fb-wrap .fb-side-wrap .fb3 .fb-img,
    .botvfx-featured-post-plugin .fb2 .fb-img,
    .botvfx-featured-post-plugin .fb3 .fb-img {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    .botvfx-featured-post-plugin .fb1 .fb-img,
    .botvfx-featured-post-plugin .fb2 .fb-img,
    .botvfx-featured-post-plugin .fb3 .fb-img {
        aspect-ratio: 1.68 !important;
    }
}