@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

/* ─── SECTION ─── */
.work-slider-section {
    background-color: #FDE8ED;
    padding: 72px 0 80px 40px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Polka dot — left */
.work-slider-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 120px; height: 100%;
    background-image: radial-gradient(circle, #f0aabe 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

/* Polka dot — right */
.work-slider-section::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 100%;
    background-image: radial-gradient(circle, #f0aabe 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

/* ─── TITLE ─── */
.work-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(28px, 3vw, 46px) !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 48px 0 !important;
    padding-right: 40px;
    text-align: center !important;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

/* ─── WRAPPER ─── */
.work-slider-wrapper {
    position: relative;
    z-index: 1;
}

/* ─── SLIDER ─── */
.work-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-right: 40px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.work-slider::-webkit-scrollbar { display: none; }
.work-slider:active { cursor: grabbing; }

/* ─── CARD ─── */
.work-card {
    flex: 0 0 clamp(240px, calc(24vw - 4px), 338px);
    height: clamp(340px, 32vw, 440px);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #1a1a1a;
    cursor: pointer;
}

/* ─── VIDEO ─── */
.card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

/* ─── GRADIENT OVERLAY ─── */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.80) 0%,
        rgba(0, 0, 0, 0.45) 28%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.00) 68%
    );
}

/* ─── PLAY BUTTON ─── */
/* Reset <button> native styles */
/* ─── PLAY BUTTON — plain white icon, no circle ─── */
.play-button {
    all: unset;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.95;
}
.play-button:hover {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
}
/* The SVG itself carries circle + arrow — no CSS background needed */

/* ─── CARD CONTENT ─── */
.card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 4;
    text-align: left;
}

/* Force white — override Astra / Elementor heading defaults */
.card-content h3,
.work-card .card-content h3 {
    font-size: clamp(14px, 1.15vw, 18px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    font-family: inherit !important;
}

.card-content p,
.work-card .card-content p {
    font-size: clamp(11px, 0.85vw, 13px) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .work-card {
        flex: 0 0 clamp(240px, 44vw, 320px);
        height: 360px;
    }
}
@media (max-width: 768px) {
    .work-slider-section {
        padding: 48px 0 56px 20px;
    }
    .work-title {
        font-size: 26px !important;
        padding-right: 20px;
        margin-bottom: 32px !important;
    }
    .work-card {
        flex: 0 0 72vw;
        height: 300px;
    }
    .work-slider {
        gap: 12px;
        padding-right: 20px;
    }
}
@media (max-width: 480px) {
    .work-card {
        flex: 0 0 82vw;
        height: 280px;
    }
}