/* =============================================================
   Nejat Scroll Stack Treatment Cards Widget
   ============================================================= */

/* ── Section header wrapper ─────────────────────────────────── */
.nejat-scroll-stack__header-wrap {
    padding-top: var(--nejat-section-pad-v);
    padding-bottom: var(--nejat-gap-md);
}

.nejat-scroll-stack__header-inner {
    max-width: var(--nejat-max-width);
    margin: 0 auto;
    padding-left: var(--nejat-gutter);
    padding-right: var(--nejat-gutter);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--nejat-gap-md);
}

.nejat-scroll-stack__header-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nejat-scroll-stack__eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    color: #4ab3c8;
    margin: 0;
}

.nejat-scroll-stack__headline {
    font-size: clamp(22px, 2.6vw, 36px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.15;
}

.nejat-scroll-stack__all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #4ab3c8;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap 0.2s ease;
}

.nejat-scroll-stack__all-link:hover {
    gap: 10px;
    color: #4ab3c8;
    text-decoration: none;
}

.nejat-scroll-stack__all-link-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Stack container ─────────────────────────────────────────── */
.nejat-scroll-stack__stack {
    /* Bottom padding = one card-height so the last card can fully enter view */
    padding-bottom: var(--nejat-section-pad-v);
}

/* ── Individual card ─────────────────────────────────────────── */
.nejat-scroll-stack__card {
    /* Full-bleed background — default gradient: white → light cool gray */
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #eaeef3 100%);

    /* Sticky scroll-over effect */
    position: sticky;
    top: 0;

    /* Cards stack on top of each other; z-index set inline per card */

    /* Gap between cards — covered/hidden once the next card stacks over */
    margin-bottom: var(--nejat-gap-lg);
}

.nejat-scroll-stack__card:last-child {
    margin-bottom: 0;
}

.nejat-scroll-stack__card-inner {
    max-width: var(--nejat-max-width);
    margin: 0 auto;
    padding: var(--nejat-section-pad-v) var(--nejat-gutter);
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: var(--nejat-gap-lg);
    align-items: start;
}

/* ── Left column (title + subtitle + tags + description + CTA) ─ */
.nejat-scroll-stack__card-left {
    display: flex;
    flex-direction: column;
    gap: 14px;

    /* Teal vertical spine on the left edge of this column */
    border-left: 3px solid #4ab3c8;
    padding-left: 20px;
}

.nejat-scroll-stack__card-title {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    color: #4ab3c8;
    margin: 0;
    line-height: 1.2;
}

.nejat-scroll-stack__card-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

/* ── Treatment tags ──────────────────────────────────────────── */
.nejat-scroll-stack__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.nejat-scroll-stack__tag {
    display: inline;
    padding: 0 0 1px;
    background: none;
    border-radius: 0;
    border: none;
    border-bottom: 1px dashed rgba(74, 179, 200, 0.50);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.6;
    color: #888888;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a.nejat-scroll-stack__tag:hover {
    color: #4ab3c8;
    border-bottom-color: #4ab3c8;
}

/* ── CTA button (radial hover — matches nav & doctor) ────────── */
.nejat-scroll-stack__cta {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translateZ(0);
    align-self: flex-start;
}

/* Dark background layer */
.nejat-scroll-stack__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    border-radius: inherit;
    z-index: -1;
}

/* Teal radial circle */
.nejat-scroll-stack__cta::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 400px;
    height: 400px;
    background: #4ab3c8;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.55s ease;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.nejat-scroll-stack__cta:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.nejat-scroll-stack__cta:hover {
    color: #ffffff;
    text-decoration: none;
}

.nejat-scroll-stack__card-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
}

.nejat-scroll-stack__card-description p {
    margin: 0 0 12px;
}

.nejat-scroll-stack__card-description p:last-child {
    margin-bottom: 0;
}

/* ── Right column (image) ───────────────────────────────────── */
.nejat-scroll-stack__card-right {
    border-radius: var(--nejat-radius);
    overflow: hidden;
    line-height: 0;
}

.nejat-scroll-stack__card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: var(--nejat-radius);
}

/* ── Responsive — tablet ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .nejat-scroll-stack__card-inner {
        grid-template-columns: 340px 1fr;
        gap: var(--nejat-gap-md);
    }
}

/* ── Responsive — mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
    /* Disable sticky stacking on mobile — too cramped */
    .nejat-scroll-stack__card {
        position: relative;
        top: auto;
        margin-bottom: var(--nejat-gap-md);
    }

    .nejat-scroll-stack__card-inner {
        grid-template-columns: 1fr;
        gap: var(--nejat-gap-sm);
    }

    .nejat-scroll-stack__card-img {
        height: 240px;
    }

    .nejat-scroll-stack__header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nejat-scroll-stack__stack {
        padding-bottom: 0;
    }
}
