/* ===========================================================================
   Block: serm-hero — block-specific styles
   قيَم مش موجودة في main.css (Tailwind compiled) بنكتبها هنا كـ plain CSS —
   نفس المنهج المتبع في service-hero.css.
   =========================================================================== */

/* ── Section background — mint → teal → light-grey gradient ───────────── */
.voctos-serm-hero {
    background: linear-gradient(180deg, rgba(22, 255, 171, 1) 15%, rgba(118, 255, 214, 1) 65%, rgba(239, 240, 244, 1) 100%);
}

.voctos-serm-hero .smh-z1 {
    position: relative;
    z-index: 1;
}

/* ── Illustration (thumbs-up + stars PNG) ──────────────────────────────
 * Mobile: bled off the left edge + rotated for a dynamic hero shot.
 * Desktop (lg+): straightened, nudged left to overlap the copy column.
 */
.smh-illustration-wrap {
    margin-left: -25px;
    margin-right: -25px;
}
.smh-illustration {
    transform: rotate(32deg) translateX(-31%);
}
@media (min-width: 640px) {
    .smh-illustration {
        transform: rotate(32deg) translateX(-35%);
    }
}
@media (min-width: 1024px) {
    .smh-illustration-wrap {
        margin-left: 0;
        margin-right: 0;
    }
    .smh-illustration {
        transform: translateX(-15%) translateY(2%);
    }
}

/* ── Heading ────────────────────────────────────────────────────────── */
.smh-heading {
    line-height: 1.42;
}

/* ── Hero grid — pull the whole row up a touch on mobile (matches original) */
.smh-hero-grid {
    transform: translateY(-10px);
}
@media (min-width: 1024px) {
    .smh-hero-grid {
        transform: none;
    }
}

/* ── Feature cards row ──────────────────────────────────────────────── */
.smh-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    z-index: 2;
}
@media (min-width: 640px) {
    .smh-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .smh-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.smh-feat {
    padding: 28px 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: max-content;
    column-gap: 12px;
    row-gap: 14px;
}
.smh-feat-icon {
    grid-column: span 1 / span 1;
    width: 44px;
    height: 44px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.smh-feat-title {
    grid-column: span 4 / span 4;
    align-self: center;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: #0D172D;
    text-align: left;
}
.smh-feat-bullets {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}
.smh-feat-bullets li {
    font-size: 12px;
    line-height: 16px;
    color: #0D172D;
    display: flex;
    gap: 4px;
}
.smh-feat-bullets li::before {
    content: "\2013";
    color: #a7a7a7;
}

/* ── Mobile / tablet only (<1024px) ──────────────────────────────────────
   1) nudge the thumbs-up illustration down a bit (independent of the
      grid's own -10px pull-up, which still applies to the whole row)
   2) turn the cards into a single swipeable row instead of a stacked list */
@media (max-width: 1023px) {
    .smh-illustration-wrap {
        margin-top: 40px;
    }

    .smh-features {
        margin-top: 28px;
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 4px;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }
    .smh-features::-webkit-scrollbar { height: 6px; }
    .smh-features::-webkit-scrollbar-thumb {
        background: rgba(13, 23, 45, .22);
        border-radius: 9999px;
    }
    .smh-feat {
        flex: 0 0 auto;
        width: clamp(240px, 82vw, 320px);
        scroll-snap-align: center;
    }
}

/* ── Breadcrumb bar under the cards ────────────────────────────────── */
.voctos-serm-hero .smh-breadcrumb ul::-webkit-scrollbar { height: 0; background: transparent; }
