/* PRESS — section #9
   Each card built as HTML:
   - Article screenshot (top half = preview, white bg from publication site)
   - Dark gradient overlay (bottom half)
   - White publication logo pill (centered)
   - Hebrew title text in dark area at bottom
   Desktop: 4 cards in row, no arrows.
   Mobile: ONLY 1 card visible (no peek) + arrows on slider sides. */

.press {
    width: 100%;
    background: #fff;
    padding: 60px 24px 60px;
}

.press__inner {
    max-width: 1380px;
    margin: 0 auto;
}

.press__title {
    font-family: var(--ff-he);
    font-weight: 400;
    font-size: 42px;
    line-height: 1.15;
    color: var(--c-blk);
    text-align: center;
    margin: 0 0 40px;
}

.press__slider-wrap {
    position: relative;
    width: 100%;
}

.press__slider {
    display: flex;
    gap: 14px;
    width: 100%;
}

/* ===== Card structure (HTML, not baked image) ===== */
.press__card {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    display: block;
    text-decoration: none;
    aspect-ratio: 321 / 432;            /* matches Figma 321x432 card dimensions */
    overflow: hidden;
    /* background removed per client — was solid #1c1c1c, didn't sit well */
    transition: transform 0.2s var(--ease);
}
.press__card:hover {
    transform: translateY(-4px);
}

/* Top: article preview screenshot */
.press__card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;                        /* top portion = article preview */
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* .press__card-darkbg — REMOVED per client request (was solid bottom 50%) */

/* Gradient transition — full bottom-to-top fade (covers ~65% of card) */
.press__card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(
        to top,
        #1c1c1c 0%,
        rgba(28, 28, 28, 0.95) 25%,
        rgba(28, 28, 28, 0.65) 55%,
        rgba(28, 28, 28, 0.2) 85%,
        rgba(28, 28, 28, 0) 100%
    );
    pointer-events: none;
}

/* Publication logo pill — centered ON the divider line (was 52%, now 67%).
   Soft dark halo dissolves the white pill into the surrounding dark bg
   so it reads as "sitting on the line, fading into black". */
.press__card-logo {
    position: absolute;
    top: 67%;                              /* center exactly on divider */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 65px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Outer dark halo — dissolves the pill edges into the dark bg/gradient
       (the "fading" effect the brief asks for). */
    box-shadow:
        0 0 28px 6px rgba(28, 28, 28, 0.6),
        0 2px 12px rgba(0, 0, 0, 0.35);
    z-index: 3;
}
.press__card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Thin separator line above title */
.press__card-divider {
    position: absolute;
    top: 67%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 2;
}

/* Title text (Hebrew, white, centered) — at bottom of dark area */
.press__card-title {
    position: absolute;
    bottom: 24px;
    left: 16px;
    right: 16px;
    font-family: var(--ff-he);
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
    color: #fff;
    text-align: center;
    margin: 0;
    direction: rtl;
    z-index: 3;
}

/* Nav arrows on the slider — hidden on desktop */
.press__nav {
    display: none;
}

.press__cta-wrap {
    text-align: center;
    margin-top: 40px;
}
.press__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 22px;
    background: var(--c-gold-flat);
    color: #fff;
    font-family: var(--ff-he);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s var(--ease);
}
.press__cta:hover {
    background: #8d6c37;
}
.press__cta-arrow svg {
    width: 22px;
    height: 14px;
}

/* ===== MOBILE: ONLY 1 card visible, FULL width, NO peek of neighbors ===== */
@media (max-width: 1024px) {
    .press {
        padding: 40px 0 50px;
    }
    .press__inner {
        padding: 0 16px;
    }
    .press__title {
        font-size: 24px;
        margin: 0 0 24px;
    }
    .press__slider-wrap {
        position: relative;
        padding: 0;
        overflow: hidden;                   /* clip neighbors completely — no peek */
    }
    .press__slider {
        overflow-x: auto;
        gap: 0;
        padding: 0;
        scroll-snap-type: x mandatory;
        scroll-padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .press__slider::-webkit-scrollbar {
        display: none;
    }
    .press__card {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
        scroll-snap-align: start;
        aspect-ratio: 288 / 388;
    }
    .press__card-logo {
        width: 115px;
        height: 58px;
    }
    .press__card-title {
        font-size: 17px;
        line-height: 23px;
        bottom: 18px;
    }
    /* Arrows on slider */
    .press__nav {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
        border: 0;
        align-items: center;
        justify-content: center;
        z-index: 4;
        cursor: pointer;
        color: var(--c-gold-flat);
        padding: 0;
    }
    .press__nav--prev {
        right: 4px;
    }
    .press__nav--next {
        left: 4px;
    }
    .press__nav svg {
        width: 18px;
        height: 18px;
    }
    .press__nav--next svg {
        transform: scaleX(-1);
    }
    .press__cta {
        height: 44px;
        font-size: 16px;
        padding: 0 16px;
    }
}
