/* =============================================
   Projects Slider — Frontend Styles v1.1
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ---- Container ---- */
.psl-hero-slider {
    position: relative !important;
    width: 100% !important;
    height: 90vh !important;
    min-height: 480px !important;
    overflow: hidden !important;
    background: #111;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Slide backgrounds (full-bleed, stacked) ---- */
.psl-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    z-index: 0;
}

.psl-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Dark gradient overlay on every slide */
.psl-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.38) 48%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

/* ==============================================
   BOTTOM BAR — sits ABOVE all slides (z-index 10)
   Left side: text content | Right side: arrows
   ============================================== */
.psl-bottom-bar {
    position: absolute;
    bottom: 54px;
    left: 60px;
    right: 52px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

/* ---- Content panels (one per slide, crossfade) ---- */
.psl-contents {
    position: relative;
    flex: 1;
    min-width: 0;
    /* height matches tallest panel */
    min-height: 140px;
}

.psl-content-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 580px;
    width: 100%;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.psl-content-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* "FEATURED — 1/4" */
.psl-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 13px;
}

/* Project title */
.psl-title {
    font-size: clamp(28px, 4.2vw, 58px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 9px;
}

/* Location · Type · Year */
.psl-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.04em;
    margin: 0 0 24px;
}

/* VIEW PROJECT button */
.psl-btn {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.60);
    padding: 10px 22px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.psl-btn:hover {
    background: #c22b35;
    border-color: #c22b35;
    color: #fff;
    text-decoration: none;
}

/* ---- Arrow group — right side of bottom bar, same row ---- */
.psl-arrow-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

/* Base arrow */
.psl-arrow {
    width: 44px;
    height: 44px;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-size: 22px;
    font-family: inherit;
    transition: background 0.2s ease;
    flex-shrink: 0;
    outline: none;
}

/* Both arrows: same neutral gray by default, red only on hover */
.psl-prev,
.psl-next { background: rgba(90, 90, 90, 0.70); }

.psl-prev:hover,
.psl-next:hover { background: #c22b35; }

/* ---- Dot indicators ---- */
.psl-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.psl-dot {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.32);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease;
}

.psl-dot.active {
    background: #c22b35;
    width: 36px;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .psl-bottom-bar {
        left: 24px;
        right: 16px;
        bottom: 70px;
        gap: 12px;
    }

    .psl-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}
