.shc-4039-container {
    position: relative;
    width: 100%;
    min-height: 75vh;
    overflow: hidden;
}

.shc-4039-global-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shc-4039-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.shc-4039-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shc-4039-cards-wrapper {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shc-4039-card {
    flex: 1;
    position: relative;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    cursor: pointer;
    overflow: hidden;
    /* Transparent background to show global bg */
    background: transparent;
}

.shc-4039-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    transition: background 0.3s ease;
    z-index: 1;
}

.shc-4039-card:hover {
    flex: 2.5; /* Expands on hover */
}

.shc-4039-card:hover::before {
    background: rgba(0,0,0,0.1);
}

.shc-4039-content {
    position: relative;
    z-index: 2;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    transform: translateY(0);
}

/* On hover, content box background turns solid */
.shc-4039-card:hover .shc-4039-content {
    background: #ffffff;
    border-color: #ffffff;
    backdrop-filter: none;
}

.shc-4039-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.shc-4039-card:hover .shc-4039-subtitle {
    color: #666666;
}

.shc-4039-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
}

.shc-4039-card:hover .shc-4039-title {
    color: #000000;
}

/* Hidden content initially collapsed */
.shc-4039-hidden-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 0;
}

.shc-4039-card:hover .shc-4039-hidden-content {
    max-height: 300px; /* arbitrary max-height to allow animation */
    opacity: 1;
    margin-top: 20px;
}

.shc-4039-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 25px;
}

.shc-4039-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #1C244B;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.shc-4039-btn i, .shc-4039-btn svg {
    margin-left: 8px;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.shc-4039-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .shc-4039-cards-wrapper {
        flex-direction: column;
        position: relative;
    }
    
    .shc-4039-card {
        min-height: 300px;
        flex: auto !important;
    }
    
    .shc-4039-hidden-content {
        max-height: none;
        opacity: 1;
        margin-top: 20px;
    }
    
    .shc-4039-content {
        background: #ffffff;
    }
    
    .shc-4039-title { color: #000000 !important; }
    .shc-4039-subtitle { color: #666666 !important; }
}