/*
 * INSV industry-application entry cards.
 *
 * Shared by the industry applications page and product-detail bottom slots.
 * Archive context owns the visible page title; product context renders only the
 * two image CTA cards.
 */

.ia-page,
.insv-product-ia-hero-slot {
    --ia-container: var(--insv-ds-container-wide, 1360px);
    --ia-page-width: 90%;
    --ia-radius: var(--insv-ds-radius-md, 8px);
    --ia-card-radius: var(--insv-ds-radius-lg, 10px);
    --ia-accent: var(--insv-ds-color-brand, #183883);
    --ia-accent-hover: var(--insv-ds-color-brand-dark, #102b69);
    --ia-ink: var(--insv-ds-color-text, #1d1d1f);
    --ia-muted: var(--insv-ds-color-text-muted, #6b7280);
    --ia-divider: var(--insv-ds-color-border, #ededed);
    --ia-bg: var(--insv-ds-color-surface, #fff);
    --ia-tint: var(--insv-ds-color-surface-soft, #f5f7fb);
}

.ia-hero-block {
    width: var(--ia-page-width);
    max-width: var(--ia-container);
    padding: 32px 0 20px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
    background: transparent;
}

.ia-hero-intro {
    margin: 0 0 20px;
}

.ia-hero-intro__title {
    margin: 0;
    color: var(--insv-type-color-heading, var(--ia-ink));
    font-size: var(--insv-type-size-detail-title, 34px);
    font-weight: 800;
    line-height: var(--insv-type-line-heading, 1.28);
    letter-spacing: 0;
}

.ia-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ia-hero-card {
    position: relative;
    display: block;
    min-height: 110px;
    max-height: 140px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    aspect-ratio: 16 / 3;
    background: #1a2436;
    border-radius: var(--ia-card-radius);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ia-hero-card:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.ia-hero-card__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transition: transform .5s ease;
}

.ia-hero-card__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ia-hero-card:hover .ia-hero-card__bg {
    transform: scale(1.03);
}

.ia-hero-card::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(100deg, rgba(10, 18, 35, .72) 0%, rgba(10, 18, 35, .48) 55%, rgba(10, 18, 35, .3) 100%);
    transition: background .3s ease;
}

.ia-hero-card:hover::before {
    background: linear-gradient(100deg, rgba(10, 18, 35, .78) 0%, rgba(10, 18, 35, .52) 55%, rgba(10, 18, 35, .34) 100%);
}

.ia-hero-card__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    padding: 12px 22px;
}

.ia-hero-card__title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.ia-hero-card__lede {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.insv-product-ia-hero-slot {
    width: var(--insv-shell-main-width, 90%) !important;
    max-width: var(--insv-shell-main-max, 1360px) !important;
    margin: 0 auto 30px !important;
    box-sizing: border-box !important;
}

.insv-product-ia-hero-slot .ia-hero-block {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .ia-page .ia-hero-block {
        --ia-page-width: 94%;
    }
}

@media (max-width: 900px) {
    .ia-hero-block {
        padding: 28px 0 14px;
    }

    .ia-hero-intro {
        margin-bottom: 18px;
    }

    .ia-hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ia-hero-card {
        min-height: 100px;
        max-height: 130px;
        aspect-ratio: 16 / 4;
    }

    .ia-hero-card__inner {
        max-width: 100%;
        padding: 10px 18px;
    }

    .ia-hero-card__title {
        font-size: 20px;
    }

    .ia-hero-card__lede {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .insv-product-ia-hero-slot {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 640px) {
    .ia-hero-block {
        padding: 24px 0 10px;
    }

    .ia-hero-intro {
        margin-bottom: 16px;
    }

    .ia-hero-intro__title {
        font-size: var(--insv-type-size-detail-title-mobile, 26px);
    }

    .ia-hero-card {
        min-height: 90px;
        max-height: 120px;
        aspect-ratio: 16 / 5;
        border-radius: var(--ia-radius);
    }

    .ia-hero-card__inner {
        max-width: 100%;
        padding: 10px 16px;
    }

    .ia-hero-card__title {
        margin-bottom: 2px;
        font-size: 18px;
    }

    .ia-hero-card__lede {
        font-size: 12px;
    }
}
