/* =============================================================
   Student Life Slider — assets/css/student-life-slider.css
   ============================================================= */

.sls-slider-root {
    position: relative;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.sls-viewport {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}
.sls-viewport.is-dragging {
}

.sls-track {
    display: flex;
    gap: 16px;
    align-items: flex-start; /* was stretch — stretch fights aspect-ratio and causes gap */
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.sls-track.no-transition {
    transition: none;
}

/* ── Card ── */
.sls-card {
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #e8edf0;
    position: relative;
    aspect-ratio: 3 / 4;
    align-self: flex-start; /* prevent flex from overriding aspect-ratio height */
    /* width set by JS */
}
.sls-card-inner img {
/* 	margin-top: 8px; */
}
/* inner link fills card fully */
.sls-card-inner {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Image fills 100% of card ── */
.sls-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Placeholder when no image */
.sls-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blue tint over image */
.sls-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
/*     background: rgba(30, 90, 160, 0.35); */
    z-index: 1;
    pointer-events: none;
}

/* ── Solid bar at bottom of card ── */
.sls-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 14px;
    height: 52px;
    background: #2a6fad;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background 0.25s ease;
    z-index: 2;
}

.sls-card-inner:hover .sls-card-overlay {
    background: #3a8fd4;
}

.sls-card-text {
    display: flex;
    align-items: center;
    min-width: 0;
}

.sls-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow circle */
.sls-card-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.sls-card-arrow svg {
    width: 13px;
    height: 13px;
}
.sls-card-inner:hover .sls-card-arrow {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* ── Nav row ── */
.sls-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.sls-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}
.sls-btn:hover { background: #f5f5f5; border-color: #999; }
.sls-btn:active { transform: scale(0.95); }
.sls-btn svg { width: 16px; height: 16px; color: #333; }
.sls-btn:disabled { opacity: 0.35; cursor: default; }

/* ── Dots ── */
.sls-dots {
    display: flex;
    gap: 6px;
    flex: 1;
}
.sls-dot {
    flex: 1;
    height: 3px;
    border: none;
    border-radius: 2px;
    background: #ddd;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s;
}
.sls-dot.active { background: #2a6fad; }

.sls-no-posts { color: #888; font-style: italic; }

/* ── Responsive ── */

@media (max-width: 1024px) {
    .sls-track { gap: 14px; }
    .sls-card { aspect-ratio: 3 / 4; }
    .sls-card-overlay { height: 48px; }
}

@media (max-width: 768px) {
    @media (max-width: 768px) {
    /* Kill the slider mechanics */
    .sls-viewport {
        overflow: visible;
        cursor: default;
        touch-action: auto;
    }

    .sls-track {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        transform: none !important;
        width: 100% !important;
        transition: none !important;
    }

    .sls-card {
        width: 100% !important;
        aspect-ratio: 3 / 4;
    }

    .sls-card-overlay { height: 46px; padding: 0 10px; }
    .sls-card-label { font-size: 10px; }
    .sls-card-arrow { width: 24px; height: 24px; }
    .sls-card-arrow svg { width: 11px; height: 11px; }

    /* Hide slider nav/dots on mobile since there's nothing to slide */
    .sls-nav { display: none; }
}
}

@media (max-width: 480px) {
    .sls-track { gap: 10px; }
    .sls-card { aspect-ratio: 3 / 4; }
    .sls-card-overlay { height: 42px; padding: 0 8px; }
    .sls-card-label { font-size: 9px; letter-spacing: 0.04em; }
    .sls-card-arrow { width: 20px; height: 20px; }
    .sls-card-arrow svg { width: 10px; height: 10px; }
    .sls-nav { margin-top: 10px; }
    .sls-btn { width: 28px; height: 28px; }
    .sls-btn svg { width: 12px; height: 12px; }
    .sls-dot { height: 2px; }
}