/* Sentel marketing layout overrides.
 * Loaded LAST so it wins all specificity ties with the ported WP theme CSS.
 */

/* <video> defaults to display:inline; force block-level so it fills its frame
 * cleanly without a baseline gap. Does NOT change sizing. */
.video-frame video,
.element__video-type video,
.element__video-type-inline-autoplay video {
    display: block;
}

/* ---------------------------------------------------------------------------
 * STORY-ROWS BOTTOM IMAGE (Kuwait skyline)
 * ---------------------------------------------------------------------------
 * The .block sections are display:flex / flex-direction:column, so the
 * decorative bottom <img> is a flex item. Default flex-shrink:1 and
 * min-height:auto can collapse it below its declared height when its content
 * is "empty". Lock it to the WP-spec height with !important to bulldoze any
 * cascading rule and any flex shrinkage. Also use a WHITE→TRANSPARENT mask
 * (instead of BLACK→TRANSPARENT) so the mask works identically in Firefox,
 * Safari, and Chromium regardless of mask-mode default. */
.block_type__story-rows > .story-rows__bottom-image,
.block .story-rows__bottom-image {
    flex: 0 0 auto !important;
    height: 70vw !important;
    min-height: 375px !important;
    max-height: 1024px !important;
    width: 100% !important;
    position: relative !important;
    margin-top: -350px !important;
    overflow: hidden !important;
    /* Firefox-safe alpha mask: white = visible, transparent = hidden. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #fff 40%, #fff 100%) !important;
            mask-image: linear-gradient(to bottom, transparent 0%, #fff 40%, #fff 100%) !important;
    -webkit-mask-size: 100% 100% !important;
            mask-size: 100% 100% !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    -webkit-mask-mode: alpha;
            mask-mode: alpha;
}
@media only screen and (max-width: 768px) {
    .block_type__story-rows > .story-rows__bottom-image,
    .block .story-rows__bottom-image {
        height: 90vw !important;
        min-height: 320px !important;
    }
}

/* The inner img-frame must absolutely fill the masked container. */
.story-rows__bottom-image > .img-frame,
.story-rows__bottom-image .img-frame.full-absolute {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* The image inside fills the frame, anchored at bottom (so the city skyline
 * sits at the bottom of the visible area). */
.story-rows__bottom-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center bottom !important;
    margin: 0 !important;
    max-width: none !important;
    display: block !important;
}

/* ---------------------------------------------------------------------------
 * BACKGROUND IMAGE WRAPPERS (.block__bg-img)
 * ---------------------------------------------------------------------------
 * Static <img> in .block__bg-img must always fill 100% of its section. The
 * .content-img defaults (.content-img { width: auto; height: auto }) and the
 * .element__image img max-width:100% rule sometimes win in narrow viewports;
 * restate the rules here with !important so background images always span. */
.block > .block__bg-img,
.block > .element__image.block__bg-img {
    height: 100% !important;
    left: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
}
.block__bg-img > .img-frame {
    height: 100% !important;
    left: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
}
.block__bg-img img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    max-width: none !important;
    display: block !important;
}

/* ---------------------------------------------------------------------------
 * FULL-VIEWPORT WIDTH (matches Gutenberg `align: full` in the WP theme)
 * ---------------------------------------------------------------------------
 * The WP theme declares `align: full` on every block.json so each section
 * spans 100vw regardless of any parent max-width. We remove the body /
 * div.site max-width constraint and the overflow-x clip so sections can
 * span edge to edge of the viewport, then re-center the inner .page_frame
 * so the actual readable content stays at the design width (1315px).
 * Without these overrides, on monitors wider than 2000px the sections appear
 * narrower than the page and on any width the bg images look "boxed in". */
html,
body,
body.page,
div.site {
    max-width: 100% !important;
    overflow-x: visible !important;
}
body,
body.page {
    margin: 0 !important;
    width: 100% !important;
}
div.site {
    margin: 0 !important;
    width: 100% !important;
}

/* Sections (every .block) span the full width of the body, edge to edge. */
main .block,
main > .block {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* The inner .page_frame stays centered at its design max-width so text and
 * content are still readable while the section background spans full width. */
main .block > .page_frame {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: var(--pageFrame, 1315px);
}

/* ---------------------------------------------------------------------------
 * HERO BACKGROUND VIDEO
 * ---------------------------------------------------------------------------
 * Force the hero bg video container chain to fill the section so the
 * AdobeStock video shows behind the text at full size. */
.block_type__featured-hero > .element__video-type.block__bg-img,
.block_type__featured-hero > .element__video-type.block__bg-img > .video-frame {
    height: 100% !important;
    left: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
}
.block_type__featured-hero .element__video-type video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* ---------------------------------------------------------------------------
 * CLIENT LOGOS SLIDER (pure-CSS marquee)
 * ---------------------------------------------------------------------------
 * Implementation notes:
 *   - The Blade component renders the logos array TWICE inside .__track.
 *   - The keyframe animation translates the track from 0 to -50%, landing
 *     the second copy where the first started — seamless infinite loop.
 *   - Runs on the GPU compositor (transform), so it is smooth even with many
 *     slides and doesn't reflow.
 *   - Pause on hover for users actually trying to read a logo.
 *   - Respects prefers-reduced-motion for accessibility. */
.client-logos-slider .client-logos-slider__text {
    text-align: center;
    margin-bottom: 24px;
}
.client-logos-slider .client-logos-slider__text h2,
.client-logos-slider .client-logos-slider__text h3,
.client-logos-slider .client-logos-slider__text p {
    margin-bottom: 0;
}

/* Outer viewport: clips the off-screen halves and adds the soft edge fade
 * so logos drift into / out of view rather than popping. */
.client-logos-slider__viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #fff 80px,
        #fff calc(100% - 80px),
        transparent 100%
    );
            mask-image: linear-gradient(
        to right,
        transparent 0,
        #fff 80px,
        #fff calc(100% - 80px),
        transparent 100%
    );
}

/* Inner track: wide enough to hold every slide on one row. The animation
 * (declared inline per-instance in the component) handles the motion. */
.client-logos-slider__track {
    display: flex;
    align-items: center;
    width: max-content;       /* don't wrap — track is twice as wide as needed */
    will-change: transform;   /* hint the compositor */
}

/* Pause the marquee while the user is hovering OR has keyboard focus inside
 * — lets them actually read a logo. */
.client-logos-slider__viewport:hover .client-logos-slider__track,
.client-logos-slider__viewport:focus-within .client-logos-slider__track {
    animation-play-state: paused;
}

/* Accessibility: users who request reduced motion get a static row. */
@media (prefers-reduced-motion: reduce) {
    .client-logos-slider__track {
        animation: none !important;
        transform: none !important;
    }
}

.client-logos-slider__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;           /* fixed-size column; never shrink/grow */
    height: 60px;
    padding: 0 16px;
    box-sizing: border-box;
}
.client-logos-slider__image {
    display: block;
    max-height: 40px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0;
    /* Greyscale by default so different brand palettes don't compete with
     * the page. Hover restores full colour. */
    -webkit-filter: grayscale(100%) brightness(1.05);
            filter: grayscale(100%) brightness(1.05);
    opacity: 0.85;
    transition: filter 250ms ease, opacity 250ms ease;
}
.client-logos-slider__image:hover {
    -webkit-filter: none;
            filter: none;
    opacity: 1;
}
@media only screen and (min-width: 768px) {
    .client-logos-slider__item {
        height: 72px;
        padding: 0 24px;
    }
    .client-logos-slider__image {
        max-height: 50px;
        max-width: 160px;
    }
}
@media only screen and (min-width: 1024px) {
    .client-logos-slider__item {
        height: 80px;
        padding: 0 28px;
    }
    .client-logos-slider__image {
        max-height: 56px;
        max-width: 180px;
    }
}

/* Per-logo size tweaks — bump only the GNDC mark which renders smaller than
 * the others at the shared base size. Also bump the parent slot height so
 * the larger image isn't clipped by the slide row height. */
.client-logos-slider__item:has(.client-logos-slider__image[src*="gndc.png"]) {
    height: 96px;
}
.client-logos-slider__image[src*="gndc.png"] {
    max-height: 84px;
    max-width: 240px;
}
@media only screen and (min-width: 768px) {
    .client-logos-slider__item:has(.client-logos-slider__image[src*="gndc.png"]) {
        height: 120px;
    }
    .client-logos-slider__image[src*="gndc.png"] {
        max-height: 104px;
        max-width: 280px;
    }
}
@media only screen and (min-width: 1024px) {
    .client-logos-slider__item:has(.client-logos-slider__image[src*="gndc.png"]) {
        height: 140px;
    }
    .client-logos-slider__image[src*="gndc.png"] {
        max-height: 120px;
        max-width: 320px;
    }
}

/* ===========================================================================
 * SITE FOOTER (multi-column)
 * ===========================================================================
 * Overrides the centered, single-column footer styling from style.css with a
 * proper 4-column grid: brand / solutions / company / contact. Stacks on
 * mobile. The bottom "deep footer" strip holds copyright + LinkedIn icon. */

/* Reset the inherited centered flex from style.css so our grid can take
 * over. We override .footer__frame too in case any other view still uses it. */
#footer.site-footer .footer__top,
.site-footer .footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding: 4rem 0 3rem;
    align-items: start;
}

#footer.site-footer:before {
    /* Keep the 1px hairline divider at the top of the footer. */
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 1px;
    background-color: #fff;
    opacity: 0.16;
}
#footer.site-footer { position: relative; }

/* --- Brand column -------------------------------------------------------- */
.site-footer .footer__col {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.55;
}
.site-footer .footer__col--brand .footer__logo-link {
    display: inline-block;
    margin-bottom: 18px;
}
.site-footer .footer__logo-img {
    max-width: 180px;
    height: auto;
    display: block;
}
.site-footer .footer__tagline {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

/* --- Column titles (Solutions / Company / Get in Touch) ----------------- */
.site-footer .footer__col-title {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 18px;
    padding: 0;
}

/* --- Link lists --------------------------------------------------------- */
.site-footer .footer__links,
.site-footer .footer__contact-list,
.site-footer .footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .footer__links li,
.site-footer .footer__contact-list li {
    margin: 0 0 10px;
}
/* Override style.css's all-caps + extra padding for a cleaner footer link. */
#footer.site-footer .footer__link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    padding: 0;
    line-height: 1.5;
    transition: color 200ms ease, transform 200ms ease;
    display: inline-block;
}
#footer.site-footer .footer__link:hover,
#footer.site-footer .footer__link:focus {
    color: rgb(var(--teal, 36 193 216));
    transform: translateX(2px);
    outline: none;
}

/* --- Contact column ----------------------------------------------------- */
.site-footer .footer__address {
    font-style: normal;
    margin: 0 0 14px;
    line-height: 1.6;
    font-size: 0.92rem;
}
#footer.site-footer .footer__address-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 200ms ease;
}
#footer.site-footer .footer__address-link:hover,
#footer.site-footer .footer__address-link:focus {
    color: rgb(var(--teal, 36 193 216));
    outline: none;
}

/* --- Mini map ----------------------------------------------------------- */
.site-footer .footer__map-wrap {
    margin: 0 0 18px;
    width: 100%;
    max-width: 320px;
}
.site-footer .footer__map {
    width: 100%;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: block;
    /* Slight desaturation + brightness drop so the map blends with the dark
     * footer palette. Removed on hover so the user sees the real map colors. */
    -webkit-filter: grayscale(0.25) brightness(0.9) contrast(1.05);
            filter: grayscale(0.25) brightness(0.9) contrast(1.05);
    transition: filter 250ms ease, border-color 250ms ease;
}
.site-footer .footer__map-wrap:hover .footer__map,
.site-footer .footer__map-wrap:focus-within .footer__map {
    -webkit-filter: none;
            filter: none;
    border-color: rgba(36, 193, 216, 0.4);
}
#footer.site-footer .footer__map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 200ms ease;
}
#footer.site-footer .footer__map-link:hover,
#footer.site-footer .footer__map-link:focus {
    color: rgb(var(--teal, 36 193 216));
    outline: none;
}
.site-footer .footer__map-link svg {
    width: 12px;
    height: 12px;
    display: block;
}

.site-footer .footer__contact-label {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* --- Social icons ------------------------------------------------------- */
.site-footer .footer__social {
    display: flex;
    gap: 10px;
}
.site-footer .footer__social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.site-footer .footer__social-link:hover,
.site-footer .footer__social-link:focus {
    background: rgb(var(--teal, 36 193 216));
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}
.site-footer .footer__social-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* --- Deep footer (centred copyright strip) ------------------------------ */
.site-footer .deep-footer {
    background-color: #000;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer .deep-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.site-footer .deep-footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: none;
    font-weight: 400;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
    #footer.site-footer .footer__top,
    .site-footer .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
        padding: 3rem 0 2rem;
    }
    .site-footer .footer__col--brand,
    .site-footer .footer__col--contact {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    #footer.site-footer .footer__top,
    .site-footer .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .site-footer .footer__col--brand,
    .site-footer .footer__col--contact {
        grid-column: auto;
    }
}

/* ----------------------------------------------------------------------------
 * MOBILE NAVIGATION (≤1023px)
 *
 * The original WP theme hides .nav--mobile with `display: none` and relies on
 * jQuery's slideToggle() to flip it to display:block. Combined with the panel
 * being position:absolute with no positioned ancestor on mobile (the WP CSS
 * deliberately sets .header__frame to position:static at this breakpoint),
 * the menu would slide open into a region of the page that wasn't visible.
 *
 * We rewrote the toggle JS (public/marketing/js/nav.js) to add an `is-open`
 * class on #header__nav--mobile. These rules drive the entire visibility +
 * layout from that single class, with no inline styles.
 * --------------------------------------------------------------------------*/
@media (max-width: 1023px) {
    /* Make sure the hamburger button is actually visible at this breakpoint —
       style.css ships `.header__mobile-nav-toggle { display: none }` with no
       mobile re-show rule, which would otherwise make the trigger invisible. */
    .header .header__mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 12px;
        margin-right: -8px;
        background: transparent;
        border: 0;
        cursor: pointer;
        position: relative;
        z-index: 1002; /* sit above the open panel + backdrop */
    }
    .header .header__mobile-nav-toggle .hamburger-inner,
    .header .header__mobile-nav-toggle .hamburger-inner::before,
    .header .header__mobile-nav-toggle .hamburger-inner::after {
        background-color: #ffffff;
    }

    /* The wrapper itself just needs to be in the DOM flow — the panel inside
       it is what we slide in. */
    .header #header__nav--mobile {
        display: block;
        position: static;
    }

    /* Hide the panel by default at this breakpoint and reposition as a fixed
       full-width slide-down drawer below the header. */
    .header #header__nav--mobile .nav--mobile {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 96px 24px 32px 24px;
        background-color: #0b1220; /* dark, matches site palette */
        background-color: var(--dark, #0b1220);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        z-index: 1001;

        /* Hidden state: slide off the top and disable interaction. */
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
            opacity 200ms ease,
            visibility 0s linear 280ms;

        /* Allow scrolling within the panel when there are many links. */
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Open state: slide in. */
    .header #header__nav--mobile.is-open .nav--mobile {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
            opacity 200ms ease,
            visibility 0s linear 0s;
    }

    /* Backdrop behind the panel — created by the open state on the wrapper. */
    .header #header__nav--mobile::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 200ms ease, visibility 0s linear 200ms;
        z-index: 1000;
    }
    .header #header__nav--mobile.is-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 200ms ease, visibility 0s linear 0s;
    }

    /* Each list item: full-width row, comfortable tap target. */
    .header #header__nav--mobile .nav--mobile .nav__li {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .header #header__nav--mobile .nav--mobile .nav__li:last-child {
        border-bottom: 0;
    }

    .header #header__nav--mobile .nav--mobile .nav__a {
        display: block;
        width: 100%;
        padding: 16px 4px;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .header #header__nav--mobile .nav--mobile .nav__a:hover,
    .header #header__nav--mobile .nav--mobile .nav__a:focus-visible {
        color: var(--links, #24c1d8);
    }

    /* The "Get A Demo" pill button at the bottom of the mobile drawer. */
    .header #header__nav--mobile .nav--mobile .nav__li.menu-item:last-child {
        margin-top: 16px;
        border-bottom: 0;
    }
    .header #header__nav--mobile .nav--mobile .nav__a.button {
        display: inline-block;
        width: auto;
        padding: 14px 28px;
        background-color: var(--links, #24c1d8);
        color: #0b1220;
        border-radius: 999px;
        text-align: center;
    }

    /* Stop body scroll while the drawer is open. */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* On desktop, make sure the hamburger stays hidden even with our overrides. */
@media (min-width: 1024px) {
    .header .header__mobile-nav-toggle {
        display: none !important;
    }
    .header #header__nav--mobile {
        display: none !important;
    }
}

/* ---------------------------------------------------------------------------
 * MODULE SLIDER (Platform pages)
 * ---------------------------------------------------------------------------
 * The slider lives on the dark marketing background, so the default Slick
 * arrows (white SVG on transparent) disappear in some browsers because the
 * theme CSS only defines the background-image, not a fallback colour. We
 * give them an explicit hover state and ensure they sit beside the title on
 * desktop, stacked under it on mobile. Also fix two small WP quirks:
 *   - the EXPLORE button gets pinned to the bottom of each card so cards
 *     of differing description lengths still line up nicely;
 *   - long descriptions are clamped to 4 lines so the slider stays a
 *     single row of equal-height cards on the platform overview.
 */
.block_type__module-slider .module-slider__top {
    margin-bottom: 24px;
}
.block_type__module-slider .module-slider__title {
    color: #fff;
}
.block_type__module-slider .module-slider__title h2 {
    margin: 0;
    color: #fff;
}
.block_type__module-slider .module-slider__arrows {
    gap: 12px;
}
.block_type__module-slider .module-slider__arrows .slick-arrow {
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 200ms ease, transform 200ms ease;
    border: 0;
    padding: 0;
}
.block_type__module-slider .module-slider__arrows .slick-arrow:hover,
.block_type__module-slider .module-slider__arrows .slick-arrow:focus-visible {
    opacity: 1;
    transform: scale(1.06);
}
.block_type__module-slider .module-slider__arrows .slick-arrow.slick-disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}
.block_type__module-slider .module-slider__slide {
    position: relative;
    padding-bottom: 90px;          /* leave room for the absolutely-positioned button */
}
.block_type__module-slider .module-slider__slide-content p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.block_type__module-slider .module-slider__slide > a.button {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
}

/* On the per-module detail page the FEATURED-KEYS row needs the same
 * dark-bg treatment that featured-keys-home gets — by default it inherits
 * the page colour and looks washed out. */
.block_type__featured-keys.bg-color__transparent .element__text h2,
.block_type__featured-keys.bg-color__transparent .element__text h3,
.block_type__featured-keys.bg-color__transparent .element__text p {
    color: inherit;
}

/* ---------------------------------------------------------------------------
 * STORY ROW STILL IMAGES (cards)
 * ---------------------------------------------------------------------------
 * When a featured-story-row uses an `image` instead of an inline-autoplay
 * video (e.g. /platform/ai-llm-security uses the Aegis portrait), the raw
 * <img> sits flush against the page with hard right-angle corners. Wrap it
 * visually in a soft card: rounded corners, subtle inset border, depth
 * shadow, and a small 3D lift on hover so it doesn't look like a stock photo
 * dropped into the layout.
 *
 * We scope to .story-rows__image so we don't accidentally restyle the inline
 * video frame (which uses .story-rows__video) or any other image elsewhere
 * on the page.
 */
.block_type__featured-story-row .story-rows__media .story-rows__image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(36, 193, 216, 0.10) 0%,
        rgba(11, 18, 32, 0.55) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 24px 60px -20px rgba(0, 0, 0, 0.55),
        0 8px 24px -12px rgba(36, 193, 216, 0.25);
    transition:
        transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.block_type__featured-story-row .story-rows__media .story-rows__image:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(36, 193, 216, 0.35),
        0 32px 80px -20px rgba(0, 0, 0, 0.65),
        0 12px 32px -10px rgba(36, 193, 216, 0.45);
}
.block_type__featured-story-row .story-rows__media .story-rows__image .img-frame {
    border-radius: 18px;
    overflow: hidden;
    line-height: 0;
}
.block_type__featured-story-row .story-rows__media .story-rows__image .content-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    /* Subtle photo polish so the image reads as part of the dark UI rather
     * than a flat sticker pasted on top of it. */
    filter: contrast(1.04) saturate(1.06);
}
/* Soft inner highlight ring + bottom vignette tying the card into the page
 * background. ::before is the highlight (top), ::after is the vignette. */
.block_type__featured-story-row .story-rows__media .story-rows__image::before,
.block_type__featured-story-row .story-rows__media .story-rows__image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: 18px;
}
.block_type__featured-story-row .story-rows__media .story-rows__image::before {
    top: 0;
    height: 35%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 18px 18px 0 0;
}
.block_type__featured-story-row .story-rows__media .story-rows__image::after {
    bottom: 0;
    height: 45%;
    background: linear-gradient(
        180deg,
        rgba(11, 18, 32, 0) 0%,
        rgba(11, 18, 32, 0.35) 100%
    );
    border-radius: 0 0 18px 18px;
}
@media (prefers-reduced-motion: reduce) {
    .block_type__featured-story-row .story-rows__media .story-rows__image,
    .block_type__featured-story-row .story-rows__media .story-rows__image:hover {
        transition: none;
        transform: none;
    }
}
