/*------------------------------------------------------------
 * DAV Cases Carousel — Frontend styles
 * Centered slide + side-blur effect
 *------------------------------------------------------------*/

.dav-cc-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.dav-cc-wrapper *,
.dav-cc-wrapper *::before,
.dav-cc-wrapper *::after {
    box-sizing: border-box;
}

/* Carousel container -------------------------------------- */
.dav-cc-carousel-container {
    position: relative;
    width: 100%;
}

/* Swiper viewport — wide enough to let side slides peek out */
.dav-cc-swiper {
    width: 100%;
    /* Give breathing room so blurred side slides aren't clipped at the wrapper edge */
    padding: 24px 0;
    overflow: hidden;
}

.dav-cc-swiper .swiper-wrapper {
    align-items: stretch;
}

.dav-cc-swiper .swiper-slide {
    /* Side slides: blurred + slightly transparent. Override in Elementor controls. */
    filter: blur(10px);
    opacity: 0.9;
    transition: filter .45s ease, opacity .45s ease, transform .45s ease;
    will-change: filter, opacity, transform;
    /* Sit visually under the active slide */
    z-index: 1;
    height: auto;
}

.dav-cc-swiper .swiper-slide-active {
    filter: blur(0);
    opacity: 1;
    z-index: 3;
}

/* Card ----------------------------------------------------- */
.dav-cc-card {
    position: relative;
    display: block;
    width: 100%;
    /* Wide cinematic aspect by default — overridden by Elementor control */
    aspect-ratio: 2.3 / 1;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background-color: #e9eef4;
    box-shadow: 0 10px 28px rgba(10, 58, 107, 0.10);
}

.dav-cc-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Soft gradient near the title only — keeps the bright sky visible */
.dav-cc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
    z-index: 1;
    pointer-events: none;
}

.dav-cc-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 28px 26px;
    z-index: 2;
}

.dav-cc-card-title {
    display: block;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Active card subtle elevation cue */
.dav-cc-swiper .swiper-slide-active .dav-cc-card {
    box-shadow: 0 18px 40px rgba(10, 58, 107, 0.18);
}

/* Navigation arrows --------------------------------------- */
.dav-cc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background-color .25s ease, opacity .25s ease, transform .25s ease;
}

.dav-cc-arrow:hover {
    background: #fafafa;
    transform: translateY(-50%) scale(1.06);
}

.dav-cc-arrow:focus-visible {
    outline: 2px solid #0a3a6b;
    outline-offset: 2px;
}

.dav-cc-arrow svg {
    fill: #e30613;
    pointer-events: none;
    display: block;
}

.dav-cc-arrow.swiper-button-disabled {
    opacity: .35;
    cursor: not-allowed;
}

.dav-cc-arrow-prev { left: 15%; }
.dav-cc-arrow-next { right: 15%; }

/* Pagination ----------------------------------------------- */
.dav-cc-pagination {
    position: relative !important;
    margin-top: 18px;
    text-align: center;
}

.dav-cc-pagination .swiper-pagination-bullet {
    background: #c5cfdb;
    opacity: 1;
    transition: background-color .25s ease, transform .25s ease;
}

.dav-cc-pagination .swiper-pagination-bullet-active {
    background: #0a3a6b;
    transform: scale(1.15);
}

/* Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
    .dav-cc-arrow-prev { left: 5%; }
    .dav-cc-arrow-next { right: 5%; }
}

@media (max-width: 768px) {
    .dav-cc-card-title { font-size: 18px; }
    .dav-cc-card-content { padding: 18px 20px 20px; }
    .dav-cc-swiper { padding: 12px 0; }
    .dav-cc-arrow {
        width: 42px;
        height: 42px;
    }
    .dav-cc-arrow-prev { left: 8px; }
    .dav-cc-arrow-next { right: 8px; }
}

@media (max-width: 600px) {
    .dav-cc-card-title { font-size: 16px; }
    /* On mobile, single-slide layout — no need for blur */
    .dav-cc-swiper .swiper-slide {
        filter: blur(0) !important;
        opacity: 1 !important;
    }
}
