/*
 * BizTRAQ Scroll Cards
 * Width mode: Elementor controlled.
 * Card width supports percentage values for large Elementor containers.
 */
.elementor-widget-biztraq-scroll-cards,
.elementor-widget-biztraq-scroll-cards .elementor-widget-container,
.egsc-main-box,
.egsc-main-box * {
    box-sizing: border-box;
}

.elementor-widget-biztraq-scroll-cards {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
}

.elementor-widget-biztraq-scroll-cards .elementor-widget-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
}

.elementor-widget-biztraq-scroll-cards.elementor-widget,
.elementor-widget-biztraq-scroll-cards .egsc-main-box,
.elementor-widget-biztraq-scroll-cards .egsc-sticky-section,
.elementor-widget-biztraq-scroll-cards .egsc-card-section {
    inline-size: 100%;
}

.egsc-main-box {
    --egsc-scroll-height: 300vh;
    --egsc-sticky-offset: 350px;
    --egsc-card-area-height: calc(100vh - var(--egsc-sticky-offset));
    min-height: var(--egsc-scroll-height);
    height: var(--egsc-scroll-height);
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
}

.egsc-sticky-section {
    position: sticky;
    top: var(--egsc-sticky-offset);
    min-height: calc(100vh - var(--egsc-sticky-offset));
    height: calc(100vh - var(--egsc-sticky-offset));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.egsc-card-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: var(--egsc-card-area-height);
    min-height: 360px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.egsc-card {
    --egsc-x: 0px;
    --egsc-y: 0px;
    --egsc-rotation: 0deg;
    --egsc-scale: 0.92;
    --egsc-hover-y: 0px;
    --egsc-hover-scale: 1;
    --egsc-title-color: #1a1a1a;
    --egsc-body-color: #0f172a;
    --egsc-body-bg: #7dd3fc;
    --egsc-body-hover-bg: #67c3f7;
    position: absolute;
    width: 30%;
    height: 420px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    left: 50%;
    top: 50%;
    cursor: pointer;
    will-change: transform, box-shadow;
    transform: translate(-50%, -50%) translate(var(--egsc-x), calc(var(--egsc-y) + var(--egsc-hover-y))) rotate(var(--egsc-rotation)) scale(var(--egsc-scale)) scale(var(--egsc-hover-scale));
    transition:
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.4s ease;
}

.egsc-card-content {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.egsc-card-title {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 30px;
    color: var(--egsc-title-color);
}

.egsc-card-body {
    background: var(--egsc-body-bg);
    color: var(--egsc-body-color);
    padding: 28px 24px;
    border-radius: 16px;
    flex-grow: 1;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        background-color 0.55s ease,
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s ease;
    overflow: auto;
}

.egsc-card-body p:last-child {
    margin-bottom: 0;
}

.egsc-card:hover {
    --egsc-hover-y: calc(var(--egsc-hover-lift, 18) * -1px);
    --egsc-hover-scale: var(--egsc-hover-scale-value, 1.04);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.egsc-card:hover .egsc-card-body {
    background: var(--egsc-body-hover-bg);
    transform: scale(1.03);
}

.egsc-mobile-stacked {
    height: auto !important;
    min-height: auto !important;
}

.egsc-mobile-stacked .egsc-sticky-section {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 40px 0;
}

.egsc-mobile-stacked .egsc-card-section {
    height: auto !important;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.egsc-mobile-stacked .egsc-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 420px;
    height: auto !important;
    min-height: 320px;
    margin-left: auto;
    margin-right: auto;
    transform: none !important;
}

@supports (height: 100svh) {
    
.elementor-widget-biztraq-scroll-cards.elementor-widget,
.elementor-widget-biztraq-scroll-cards .egsc-main-box,
.elementor-widget-biztraq-scroll-cards .egsc-sticky-section,
.elementor-widget-biztraq-scroll-cards .egsc-card-section {
    inline-size: 100%;
}

.egsc-main-box {
        --egsc-card-area-height: calc(100svh - var(--egsc-sticky-offset));
    }

    .egsc-sticky-section {
        min-height: calc(100svh - var(--egsc-sticky-offset));
        height: calc(100svh - var(--egsc-sticky-offset));
    }
}
