/* The wrapper gives the scroll space */
.se-52-wrapper {
    position: relative;
    width: 100%;
    min-height: 200vh; /* Plenty of scroll room */
}

/* The container stays fixed while scrolling through the wrapper */
.se-52-sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* The card that expands */
.se-52-card {
    position: relative;
    width: 60%;
    height: 60vh;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: scale(0.9);
    /* Transform and styles will be updated by JS */
    will-change: width, height, border-radius, transform;
}

.se-52-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 39, 69, 0.4); /* Primary color with opacity */
    z-index: 1;
}

.se-52-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: #ffffff;
}

.se-52-heading {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.se-52-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #61CE70; /* Accent color */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, background 0.3s ease;
    font-family: var(--e-global-typography-accent-font-family, inherit);
}

.se-52-btn:hover {
    background: #4ab858;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Ensure Elementor doesn't mess with our sticky layout */
.elementor-widget-scroll_expand_52 {
    width: 100%;
}
