/* ═══════════════════════════════════════════════
   Career Slider — v2.0  (clean build)
   ═══════════════════════════════════════════════ */

/* Root wrapper — sits inside whatever Elementor column
   gives it. We just make sure it fills that space.     */
.cs-root {
    position: relative;
    width: 100%;
}

/* ── Track: defines the visible slide area ─────────── */
.cs-track {
    position: relative;
    width: 100%;
    overflow: hidden;   /* clips non-active slides      */
    border-radius: inherit;
}

/* ── Every slide ───────────────────────────────────── */
.cs-slide {
    /* Stack slides on top of each other */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 420px;      /* overridden by Elementor control */
    overflow: hidden;
    border-radius: 8px; /* overridden by Elementor control */

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    cursor: pointer;
}

/* Active slide is in normal flow so the track gets height */
.cs-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* ── Slide image ───────────────────────────────────── */
.cs-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-slide:hover .cs-img {
    transform: scale(1.04);
}

/* ── Bottom label (always visible) ────────────────── */
.cs-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 56px 20px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, transparent 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cs-job-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: #fff;
}

.cs-gender {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin-top: 3px;
}

/* ── Hover overlay ─────────────────────────────────── */
.cs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,20,20,0.82); /* overridden by Elementor control */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 28px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(2px);
}

.cs-overlay p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    color: #fff;
}

/* Show overlay, hide label on hover */
.cs-slide:hover .cs-overlay  { opacity: 1; }
.cs-slide:hover .cs-label    { opacity: 0; }

/* ── Button inside overlay ─────────────────────────── */
.cs-btn {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
}

.cs-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ── Arrows — positioned relative to .cs-root ─────── */
.cs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    user-select: none;
}

.cs-arrow i,
.cs-arrow svg {
    display: block;
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #1a1a1a;
    fill: #1a1a1a;
    transition: color 0.2s, fill 0.2s;
}

.cs-prev { left: 12px; }
.cs-next { right: 12px; }

/* ── Dots — below the track ────────────────────────── */
.cs-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.cs-dot {
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.cs-dot.active {
    background: #1a1a1a;
}

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 600px) {
    .cs-slide { height: 280px !important; }
}
