.ehss-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.ehss-track {
    display: flex;
    gap: 28px;
    align-items: center;
}

.ehss-card {
    position: relative;
    width: 440px;
    height: 235px;
    flex-shrink: 0;

    border-radius: 18px;
    overflow: hidden;

    background: #000;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* FULL BACKGROUND IMAGE */
.ehss-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* .elementor-element-c435bc5>.e-con-inner {
    max-width: 1400px!important;
}
.elementor-element-b988259>.e-con-inner {
    max-width: 1400px !important;
} */
.e-con-inner:has([data-widget_type="ehss_horizontal_scroll.default"]) {
    max-width: 1728px !important;
        --padding-inline-start: 0!important; 
        --padding-inline-end: 0!important;
}

/* DARK OVERLAY */
.ehss-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

/* TITLE at bottom-left */
.ehss-card .ehss-title {
    position: absolute;
    bottom: 18px;
    left: 20px;
    z-index: 3;

    color: #fff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;

    pointer-events: none;
}

/* DESCRIPTION PANEL HIDDEN BY DEFAULT */
.ehss-card .ehss-desc {
    position: absolute;
    left: 0;
    bottom: -80px;
    width: 100%;
    padding: 18px 20px;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);

    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;

    opacity: 0;
    transition: all 0.35s ease;
    z-index: 4;
}

/* SHOW DESCRIPTION ON HOVER */
.ehss-card:hover .ehss-desc {
    bottom: 0;
    opacity: 1;
}

/* Lift title slightly when description appears */
.ehss-card:hover .ehss-title {
    transform: translateY(-10px);
    transition: 0.35s ease;
}

/* Hover zoom */
.ehss-card:hover img {
    transform: scale(1.06);
    transition: 0.5s ease;
}

.ehss-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* WRAPPER */
.ehss-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* TRACK */
.ehss-track {
    display: flex;
    gap: 28px;
    align-items: center;
}

/* CARD */
.ehss-card {
    position: relative;
    width: var(--ehss-card-width, 440px);
    height: var(--ehss-card-height, 235px);
    flex-shrink: 0;

    border-radius: 18px;
    overflow: hidden;

    background: #000;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ehss-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* REMOVE DARK OVERLAY ON HOVER */
.ehss-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* default overlay */
    z-index: 2;
    transition: 0.3s ease;
}

.ehss-card:hover::before {
    background: rgba(0, 0, 0, 0.35);
    /* <- stays SAME (no dimming) */
}

/* TITLE */
.ehss-title {
    position: absolute;
    left: 50%;
    top: calc(100% - 60px);
    z-index: 3;

    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-align: left;

    pointer-events: none;
    transition: 0.4s ease;
}

/* LIFT TITLE TO UPPER-CENTER */
.ehss-card:hover .ehss-title {
    top: 35%;
}

/* DESCRIPTION (Slide-Up Panel) */
.ehss-desc {
    position: absolute;
    left: 0;
    bottom: -100px;
    width: 100%;
    padding: 18px 20px;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);

    color: #fff;
    opacity: 0;
    z-index: 4;

    transition: all 0.35s ease;
}

/* SHOW DESCRIPTION */
.ehss-card:hover .ehss-desc {
    bottom: 0;
    opacity: 1;
}