/* =====================================================
   Divine Services Slider — slider.css  v1.3.2
   ===================================================== */

/* ---------- Outer wrapper (positions nav buttons) ---------- */
.dss-slider-wrap {
    position: relative;
    width: 100%;
    padding: 0 48px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ---------- Clip layer — hides slides outside the 3-card viewport ----------
   Extra padding top/bottom lets the hover-lift shadow breathe without being
   clipped, while overflow:hidden still cuts off the 4th card horizontally.   */
.dss-track-wrap {
    overflow: hidden;
    border-radius: 14px;
    padding: 20px 0;
    margin: -20px 0;
}

/* ---------- Track ---------- */
.dss-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* ---------- Slides ---------- */
.dss-slide {
    /* Exactly 1/3 of the track width so 3 always fill the viewport */
    min-width: calc(100% / 3);
    width: calc(100% / 3);
    flex: 0 0 calc(100% / 3);
    padding: 0 8px;
    box-sizing: border-box;
}

/* ---------- Card ---------- */
.dss-card {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dss-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

/* non-linked card — no hover lift */
div.dss-card {
    cursor: default;
}
div.dss-card:hover {
    transform: none;
    box-shadow: none;
}

/* ---------- Card image ---------- */
.dss-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.dss-card__img--placeholder {
    background: #2a2a2a;
}

/* ---------- Dark gradient overlay ---------- */
.dss-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.42) 0%,
        rgba(0,0,0,0.08) 40%,
        rgba(0,0,0,0.08) 60%,
        rgba(0,0,0,0.52) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ---------- Service name label ---------- */
.dss-card__label {
    position: absolute;
    z-index: 2;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    pointer-events: none;
    opacity: 1;
}

/* ---------- Dashed circle SVG ---------- */
.dss-circle {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    transform: rotate(0deg);
}

.dss-card:hover .dss-circle circle {
    animation: dss-spin 18s linear infinite;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

@keyframes dss-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .dss-card:hover .dss-circle circle { animation: none; }
    .dss-card:hover { transform: none; box-shadow: none; }
}

/* ---------- Nav buttons ---------- */
.dss-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 0;
}

.dss-nav:hover {
    background: #111;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.dss-nav svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dss-nav--prev { left: 0; }
.dss-nav--next { right: 0; }

.dss-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.dss-nav:disabled:hover {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* ---------- Dots ---------- */
.dss-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}

.dss-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, width 0.25s;
}

.dss-dot--active {
    background: #333;
    width: 22px;
    border-radius: 4px;
}

/* ---------- Empty state ---------- */
.dss-empty {
    padding: 2rem;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .dss-slide {
        min-width: 50%;
        width: 50%;
        flex: 0 0 50%;
    }
}

@media (max-width: 560px) {
    .dss-slider-wrap {
        padding: 0 34px;
    }
    .dss-slide {
        min-width: 100%;
        width: 100%;
        flex: 0 0 100%;
        padding: 0 4px;
    }
    .dss-nav {
        width: 30px;
        height: 30px;
    }
    .dss-nav svg {
        width: 14px;
        height: 14px;
    }
}
