.ims-showcase-section {
    padding: 52px 16px 58px;
    font-family: inherit;
}

.ims-showcase-container {
    max-width: 1180px;
    margin: 0 auto;
}

.ims-showcase-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 34px;
}

.ims-showcase-heading h2 {
    margin: 0 0 10px;
    color: #061b3a;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.ims-showcase-heading h2 span {
    color: #1683ff;
}

.ims-showcase-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15.5px;
    line-height: 1.75;
}

.ims-showcase-grid {
    display: grid;
    gap: 24px;
}

.ims-showcase-grid.ims-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ims-showcase-grid.ims-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ims-showcase-grid.ims-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ims-showcase-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #dce8f6;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.075);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ims-showcase-card:hover {
    transform: translateY(-7px);
    border-color: #bdd8ff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
}

.ims-showcase-card.is-featured {
    border-color: rgba(22, 131, 255, 0.35);
}

.ims-showcase-thumb {
    position: relative;
    background: #eef5ff;
    height: var(--ims-thumb-height, 360px);
    overflow: hidden;
    border-bottom: 1px solid #edf1f5;
}

.ims-showcase-browser {
    position: absolute;
    inset: 0 0 auto;
    z-index: 4;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: rgba(6, 27, 58, 0.94);
    backdrop-filter: blur(10px);
}

.ims-showcase-browser span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
}

.ims-showcase-thumb::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.86));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ims-showcase-thumb.ims-can-scroll::after {
    opacity: 1;
}

.ims-showcase-thumb.ims-can-scroll:hover::after,
.ims-showcase-card:hover .ims-showcase-thumb.ims-can-scroll::after {
    opacity: 0;
}

.ims-showcase-thumb img {
    width: 100%;
    height: auto;
    min-height: 100%;
    display: block;
    object-fit: contain;
    object-position: top center;
    transform: translate3d(0, 0, 0);
    transition: transform var(--ims-scroll-speed, 8s) linear;
    will-change: transform;
}

.ims-showcase-card:hover .ims-showcase-thumb.ims-can-scroll img,
.ims-showcase-thumb.ims-can-scroll:hover img {
    transform: translate3d(0, calc(-1 * var(--ims-scroll-distance, 0px)), 0);
}

.ims-showcase-tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0874e6;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13);
}

.ims-showcase-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a96a6;
    font-size: 14px;
    padding-top: 34px;
}

.ims-showcase-body {
    padding: 22px;
}

.ims-showcase-body h3 {
    margin: 0 0 10px;
    color: #061b3a;
    font-size: 21px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.ims-showcase-desc {
    margin: 0;
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.7;
}

.ims-showcase-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5edf7;
}

.ims-showcase-features span {
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
}

.ims-showcase-features span::before {
    content: "✓";
    color: #1683ff;
    margin-right: 5px;
}

.ims-showcase-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.ims-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ims-btn:hover {
    transform: translateY(-2px);
}

.ims-btn-primary {
    background: #1683ff;
    color: #ffffff !important;
    border: 1px solid #1683ff;
    box-shadow: 0 12px 24px rgba(22, 131, 255, 0.22);
}

.ims-btn-primary:hover {
    background: #0874e6;
    border-color: #0874e6;
}

.ims-btn-light {
    background: #ffffff;
    color: #061b3a !important;
    border: 1px solid #d5e2f2;
}

.ims-btn-light:hover {
    border-color: #1683ff;
    color: #1683ff !important;
}

.ims-showcase-empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    color: #667085;
}

@media (max-width: 1024px) {
    .ims-showcase-grid.ims-columns-4,
    .ims-showcase-grid.ims-columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ims-showcase-section {
        padding: 40px 12px 44px;
    }

    .ims-showcase-grid,
    .ims-showcase-grid.ims-columns-4,
    .ims-showcase-grid.ims-columns-3,
    .ims-showcase-grid.ims-columns-2 {
        grid-template-columns: 1fr;
    }

    .ims-showcase-thumb {
        height: min(var(--ims-thumb-height, 360px), 520px);
    }

    .ims-showcase-body h3 {
        font-size: 19px;
    }

    .ims-showcase-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ims-btn {
        width: 100%;
    }
}
