/* [hdm_doctor_videos] - doctor / speciality video slider */

.hdm-dv-section {
    padding: 20px 0 10px;
}

.hdm-dv-title {
    margin: 0 0 24px;
    text-align: center;
    color: #006EB7;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.hdm-dv-slider {
    margin: 0 -12px;
}

/* Theme Additional CSS sets ".slick-slider { min-height: 400px }" (250px on mobile),
   which leaves a big empty gap under this slider - let it size to its cards instead. */
.hdm-dv-slider.slick-slider,
.hdm-dv-slider.slick-initialized {
    min-height: 0;
}

/* Before Slick initialises: show the first slides side by side, no layout jump */
.hdm-dv-slider:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
}

.hdm-dv-slider:not(.slick-initialized) .hdm-dv-slide {
    flex: 0 0 calc(100% / var(--hdm-dv-cols, 3));
}

@media (max-width: 1024px) {
    .hdm-dv-slider:not(.slick-initialized) .hdm-dv-slide {
        flex-basis: 50%;
    }
}

.hdm-dv-slide {
    padding: 12px 12px 30px;
}

.hdm-dv-card {
    background: #fff;
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.hdm-dv-player {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    text-decoration: none;
}

.hdm-dv-player:hover,
.hdm-dv-player:focus {
    background: #000;
}

.hdm-dv-player img,
.hdm-dv-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.hdm-dv-video-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 16px 28px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(rgba(0, 0, 0, 0.65), transparent);
}

.hdm-dv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 0;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hdm-dv-player:hover .hdm-dv-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}

/* Dots: blue active pill, orange inactive */
.hdm-dv-slider .slick-dots {
    position: static;
    display: flex !important;
    justify-content: center;
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.hdm-dv-slider .slick-dots li {
    width: 34px;
    height: 7px;
    margin: 0;
}

.hdm-dv-slider .slick-dots li button {
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: 0;
    border: 0;
    border-radius: 10px;
    background: #E6AC3F;
    cursor: pointer;
}

.hdm-dv-slider .slick-dots li button:before {
    display: none;
}

.hdm-dv-slider .slick-dots li.slick-active button {
    background: #006EB7;
}

.hdm-dv-btn-wrap {
    margin-top: 24px;
    text-align: center;
}

.hdm-dv-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    background: #006EB7;
    color: #fff !important;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hdm-dv-btn:hover {
    background: #0A2A5E;
}

@media (max-width: 767px) {
    .hdm-dv-title {
        font-size: 26px;
    }

    .hdm-dv-slider:not(.slick-initialized) .hdm-dv-slide {
        flex-basis: 100%;
    }

    .hdm-dv-video-title {
        font-size: 14px;
    }

    .hdm-dv-play svg {
        width: 52px;
        height: 37px;
    }
}
