/* Programs Content Slider for Elementor — v1.8.0 */

.pse-section {
    background-color: #0a0a0a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
}

.pse-section *,
.pse-section *::before,
.pse-section *::after {
    box-sizing: border-box;
}

.pse-inner {
    padding-left: 50px;
    padding-right: 50px;
}

.pse-top-label {
    font-size: 11px;
    color: #e8ff6b;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 24px;
}

.pse-header-row {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 40px;
}

.pse-header-col-1 { flex: 2; min-width: 0; }
.pse-header-col-2 { flex: 1.5; min-width: 0; display: flex; align-items: flex-start; }
.pse-header-col-3 { flex: 0.5; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; }

.pse-heading {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
}

.pse-description {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    padding-top: 6px;
    margin: 0;
}

.pse-nav-arrows {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-end;
}

.pse-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e8ff6b;
    background: #e8ff6b;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
    opacity: 1;
}

.pse-arrow-btn:hover { background-color: #d4eb50; border-color: #d4eb50; color: #000; }

.pse-arrow-btn.pse-disabled {
    background: transparent;
    border-color: #444;
    color: #666;
    opacity: 0.5 !important;
    cursor: default;
    display: inline-flex !important;
    visibility: visible !important;
}

.pse-arrow-btn.pse-disabled:hover {
    background: rgba(255,255,255,0.05);
    border-color: #555;
    color: #888;
    opacity: 0.65 !important;
}

.pse-arrow-btn > i,
.pse-arrow-btn > svg,
.pse-arrow-btn > span {
    display: block;
    width: 13px;
    height: 13px;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
    pointer-events: none;
    color: inherit;
}

.pse-arrow-btn > i {
    width: auto; height: auto;
    display: flex; align-items: center; justify-content: center;
}

.pse-arrow-btn i::before { color: inherit; }

/* ── Slider Wrapper ── */
.pse-slider-wrapper {
    overflow: hidden;
    padding-left: 50px;
    cursor: grab;
    user-select: none;
}
.pse-slider-wrapper:active { cursor: grabbing; }

/* ── Cards Track ── */
.pse-cards-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Card ── */
.pse-card {
    flex-shrink: 0;
    background-color: #111;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.pse-card:hover { background-color: #161616; }

.pse-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.pse-card-tag {
    font-size: 10.5px;
    color: #e8ff6b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.pse-card-icon-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    background-color: #1e1e1e;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e8ff6b;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.pse-card-icon-btn > i  { font-size: 11px; line-height: 1; color: inherit; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.pse-card-icon-btn > svg { width: 11px; height: 11px; flex-shrink: 0; pointer-events: none; color: inherit; }

.pse-card-image {
    position: absolute;
    top: 44px; left: 0; right: 0;
    height: 110px;
    overflow: hidden;
    z-index: 1;
}

.pse-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: saturate(0.6);
    display: block;
}

.pse-card-bottom {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding-top: 120px;
}

/* ── Card Bottom Overlay ── */
.pse-card-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, #000000 0%, #000000 30%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* Always mode — always visible */
.pse-overlay-always .pse-card-bottom-overlay {
    opacity: 1;
}

/* Hover mode — hidden by default, show on hover */
.pse-overlay-hover .pse-card-bottom-overlay {
    opacity: 0;
}

.pse-overlay-hover.pse-card:hover .pse-card-bottom-overlay,
.pse-overlay-hover:hover .pse-card-bottom-overlay {
    opacity: 1;
}

.pse-card-title { font-size: 14px; font-weight: 500; color: #fff; line-height: 1.3; margin-bottom: 6px; margin-top: 0; }
.pse-card-desc  { font-size: 11.5px; color: #666; line-height: 1.55; margin: 0; }

.pse-divider { width: 100%; height: 1px; background-color: #222; margin-top: 32px; }

/* ══════════════════════════════════════════════════════════
   HOVER BACKGROUND MEDIA (image / video / iframe)
   Shows only on card hover. Normally the card bg color shows.
   The media is absolutely positioned and covers the full card.
══════════════════════════════════════════════════════════ */

/* The wrap sits just above background (z-index 1) so it covers
   the card bg color, but card content (z-index 3+) sits on top */
.pse-hover-media-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pse-card.pse-has-hover-media:hover .pse-hover-media-wrap {
    opacity: 1;
}

/* Image — simple background-size:cover */
.pse-hover-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Native <video> — object-fit:cover fills the card */
.pse-hover-media-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    pointer-events: none;
}

/* iframe — same approach as Elementor background video:
   anchored at 50%/50% + translate(-50%,-50%) so the iframe is
   always centred regardless of its computed size.
   JS sets width + height to cover the card at the video's aspect ratio. */
.pse-hover-media-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    border: none;
    pointer-events: none;
    display: block;
    /* JS sets: width, height only — centering is done by CSS transform */
}

/* Semi-transparent dark overlay — sits above the media */
.pse-hover-media-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 2;
    pointer-events: none;
}

/* Card content must sit above the hover media wrap (z-index 1)
   and its overlay (z-index 2), so we use z-index 3 */
.pse-card.pse-has-hover-media .pse-card-top,
.pse-card.pse-has-hover-media .pse-card-icon-btn,
.pse-card.pse-has-hover-media .pse-card-image,
.pse-card.pse-has-hover-media .pse-card-bottom {
    position: relative;
    z-index: 3;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   Card widths are always fluid — JS recalculates on every
   resize from wrapper.clientWidth so they work at every pixel.
   CSS only adjusts padding, gaps, fonts and header layout.
══════════════════════════════════════════════════════════ */

/* ── Tablet  769px – 1024px ──
   Wrapper keeps padding-left (JS reads clientWidth correctly).
   overflow: visible on wrapper + overflow: hidden on section
   gives the right-side peek bleed at every tablet width.     */
@media (min-width: 768px) and (max-width: 1024px) {

    .pse-section { overflow: hidden; }

    .pse-inner {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .pse-slider-wrapper {
        padding-left: 32px !important;
        overflow: visible;
    }

    .pse-heading { font-size: 24px; }
    .pse-header-row { gap: 24px; }
    .pse-arrow-btn { width: 34px; height: 34px; }
}

/* ── Mobile  0px – 767px ──
   Same fluid approach: padding-left stays on wrapper so JS
   clientWidth is accurate. overflow: visible + section clip
   gives peek bleed at every phone width from 0 to 767px.    */
@media (max-width: 767px) {

    .pse-section { overflow: hidden; }

    .pse-inner {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .pse-slider-wrapper {
        padding-left: 20px !important;
        overflow: visible;
    }

    /* ── Header: stack vertically ── */
    .pse-header-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
        align-items: flex-start;
    }

    .pse-header-col-1,
    .pse-header-col-2,
    .pse-header-col-3 {
        flex: none !important;
        width: 100%;
        max-width: 100% !important;
        min-width: 0;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    /* ── Arrows: always in-header, right-aligned on mobile ── */
    .pse-arrows-in-header { display: flex !important; }
    .pse-section > .pse-nav-arrows { display: none !important; }

    .pse-header-col-3 { flex-direction: row; align-items: center; justify-content: flex-end !important; }
    .pse-nav-arrows   { justify-content: flex-end; margin-top: 0; gap: 8px; width: 100%; }

    .pse-arrow-btn       { width: 36px; height: 36px; font-size: 14px; }
    .pse-arrow-btn > i   { font-size: 14px; }
    .pse-arrow-btn > svg { width: 14px; height: 14px; }

    /* ── Typography ── */
    .pse-top-label  { font-size: 10px; margin-bottom: 16px; letter-spacing: 0.1em; }
    .pse-heading    { font-size: 22px; line-height: 1.2; word-break: break-word; }
    .pse-description { font-size: 13px; padding-top: 0; }

    /* ── Cards ── */
    .pse-cards-track { gap: 14px; transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
    .pse-card        { min-height: 300px; padding: 18px; border-radius: 12px; }
    .pse-card-image  { height: 120px; top: 40px; }
    .pse-card-bottom { padding-top: 130px; }
    .pse-card-title  { font-size: 15px; line-height: 1.3; margin-bottom: 8px; }
    .pse-card-desc   { font-size: 12px; line-height: 1.6; color: #777; }
    .pse-card-tag    { font-size: 10px; letter-spacing: 0.08em; }

    .pse-card-icon-btn       { width: 32px; height: 32px; }
    .pse-card-icon-btn > i   { font-size: 12px; }
    .pse-card-icon-btn > svg { width: 12px; height: 12px; }

    .pse-divider { margin-top: 24px; }
}

/* ── Very small phones  ≤ 380px ── */
@media (max-width: 380px) {
    .pse-inner          { padding-left: 16px !important; padding-right: 16px !important; }
    .pse-slider-wrapper { padding-left: 16px !important; }
    .pse-heading        { font-size: 20px; }
    .pse-card           { min-height: 280px; padding: 16px; }
    .pse-card-title     { font-size: 14px; }
}
