/* ==========================================
   ABHSM HERO WATER - FULL CORRECT CSS
   ========================================== */

.abhsm-hero-water {
    --hero-height: 80vh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 700px;
    height: var(--hero-height);
    background:
        radial-gradient(circle at 14% 18%, rgba(17, 160, 219, 0.14), transparent 24%),
        radial-gradient(circle at 88% 20%, rgba(37, 98, 172, 0.16), transparent 28%),
        linear-gradient(135deg, #23285c 0%, #1b519d 38%, #2562ac 70%, #11a0db 100%);
}

/* TRACK */
.abhsm-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* SLIDES */
.abhsm-hero-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .75s ease, visibility .75s ease;
}

.abhsm-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* RIGHT IMAGE */
.abhsm-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 51%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.abhsm-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.03);
}

.abhsm-hero-media-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg, rgba(35, 40, 92, 0.05) 0%, rgba(27, 81, 157, 0.15) 50%, rgba(17, 160, 219, 0.08) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.14) 100%);
    pointer-events: none;
}

/* LEFT PANEL */
.abhsm-hero-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 54%;
    height: 100%;
    z-index: 3;
    overflow: hidden;
    background: linear-gradient(180deg, rgb(214 238 246) 0%, rgb(216 239 247) 100%);
}

.abhsm-hero-panel-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: radial-gradient(circle at 1px 1px, rgba(27, 81, 157, 0.10) 1px, transparent 1px);
    background-size: 14px 14px;
    z-index: 1;
}

.abhsm-hero-panel-glow {
    position: absolute;
    left: -90px;
    bottom: -70px;
    width: 340px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 160, 219, 0.20) 0%, rgba(37, 98, 172, 0.10) 42%, transparent 74%);
    filter: blur(20px);
    animation: abhsmPulseGlow 8s ease-in-out infinite;
    z-index: 1;
}

.abhsm-hero-panel-inner {
    position: relative;
    z-index: 5;
    max-width: 670px;
    padding: 84px 110px 96px 64px;
}

.abhsm-hero-kicker {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #1b519d;
}

.abhsm-hero-title {
    margin: 0 0 20px;
    max-width: 610px;
    font-size: clamp(2rem, 3.3vw, 3.8rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #121826;
}

.abhsm-hero-text {
    margin: 0 0 30px;
    max-width: 560px;
    font-size: clamp(0.98rem, 1.05vw, 1.12rem);
    line-height: 1.72;
    color: #4c5c6b;
}

.abhsm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.abhsm-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 13px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 700;
    transition: all .28s ease;
}

.abhsm-hero-btn-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #23285c 0%, #1b519d 42%, #2562ac 74%, #11a0db 100%);
    box-shadow: 0 16px 35px rgba(27, 81, 157, 0.20);
}

.abhsm-hero-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(17, 160, 219, 0.22);
}

.abhsm-hero-btn-outline {
    color: #1b519d;
    border: 1.5px solid #1b519d;
    background: rgba(255, 255, 255, 0.55);
}

.abhsm-hero-btn-outline:hover {
    color: #fff;
    background: #1b519d;
    transform: translateY(-2px);
}

/* DIVIDER */
.abhsm-hero-divider {
    position: absolute;
    top: -2%;
    left: 59%;
    width: 210px;
    height: 104%;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
}

.abhsm-divider-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.abhsm-divider-base path {
    fill: #eef7fa;
    filter: drop-shadow(10px 0 24px rgba(17, 160, 219, 0.09));
}

.abhsm-divider-aqua {
    opacity: 0.52;
    filter: blur(1.2px);
}

.abhsm-divider-aqua path {
    fill: rgba(17, 160, 219, 0.16);
}

.abhsm-divider-line path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 2.4;
    stroke-linecap: round;
    filter: drop-shadow(4px 0 10px rgba(17, 160, 219, 0.20));
}

.abhsm-divider-base {
    animation: abhsmDividerBase 8s ease-in-out infinite;
}

.abhsm-divider-aqua {
    animation: abhsmDividerAqua 5.5s ease-in-out infinite reverse;
}

.abhsm-divider-line {
    animation: abhsmDividerLine 4.4s ease-in-out infinite;
}

/* NAV */
.abhsm-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.abhsm-hero-nav:hover {
    background: #f5a93f;
    border-color: #f5a93f;
      /* transform: scale(1.09); */
}

.abhsm-hero-prev {
    left: 18px;
}

.abhsm-hero-next {
    right: 18px;
}

.abhsm-hero-dots {
    position: absolute;
    left: 64px;
    bottom: 30px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 10px;
}

.abhsm-hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(35, 40, 92, 0.22);
    cursor: pointer;
    transition: all .3s ease;
}

.abhsm-hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, #23285c 0%, #1b519d 44%, #11a0db 100%);
}

/* TEXT ANIMATION */
.abhsm-hero-slide.is-active .abhsm-hero-kicker,
.abhsm-hero-slide.is-active .abhsm-hero-title,
.abhsm-hero-slide.is-active .abhsm-hero-text,
.abhsm-hero-slide.is-active .abhsm-hero-actions {
    animation: abhsmFadeUp .8s ease both;
}

.abhsm-hero-slide.is-active .abhsm-hero-title {
    animation-delay: .08s;
}

.abhsm-hero-slide.is-active .abhsm-hero-text {
    animation-delay: .16s;
}

.abhsm-hero-slide.is-active .abhsm-hero-actions {
    animation-delay: .24s;
}

/* KEYFRAMES */
@keyframes abhsmFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes abhsmDividerBase {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(10px) scaleY(1.01);
    }
}

@keyframes abhsmDividerAqua {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.40;
    }
    50% {
        transform: translateX(14px);
        opacity: 0.68;
    }
}

@keyframes abhsmDividerLine {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.74;
    }
    50% {
        transform: translateX(7px);
        opacity: 1;
    }
}

@keyframes abhsmPulseGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translateY(-8px) scale(1.03);
        opacity: 1;
    }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1400px) {
    .abhsm-hero-panel {
        width: 56%;
    }

    .abhsm-hero-media {
        width: 50%;
    }

    .abhsm-hero-divider {
        left: 61.2%;
        width: 200px;
    }

    .abhsm-hero-panel-inner {
        max-width: 620px;
        padding: 78px 90px 88px 50px;
    }

    .abhsm-hero-title {
        font-size: clamp(1.9rem, 3vw, 3.4rem);
    }
}

@media (max-width: 1199.98px) {
    .abhsm-hero-water {
        --hero-height: 680px;
        min-height: 680px;
        height: var(--hero-height);
    }

    .abhsm-hero-panel {
        width: 58%;
    }

    .abhsm-hero-media {
        width: 48%;
    }

    .abhsm-hero-divider {
        left: 54%;
        width: 180px;
    }

    .abhsm-hero-panel-inner {
        max-width: 560px;
        padding: 66px 70px 84px 36px;
    }

    .abhsm-hero-title {
        font-size: clamp(1.85rem, 2.8vw, 3rem);
        max-width: 500px;
    }

    .abhsm-hero-text {
        max-width: 480px;
    }
}

@media (max-width: 991.98px) {
    .abhsm-hero-water {
        min-height: 0;
        height: auto;
    }

    .abhsm-hero-slides {
        height: 700px;
        min-height: 700px;
    }

    .abhsm-hero-slide {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 700px;
        height: 100%;
    }

    .abhsm-hero-media {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        height: 40%;
        min-height: 250px;
    }

    .abhsm-hero-panel {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        height: 60%;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        margin-top: -18px;
        box-shadow: 0 -16px 34px rgba(35, 40, 92, 0.14);
    }

    .abhsm-hero-divider {
        display: none;
    }

    .abhsm-hero-panel-glow {
        width: 240px;
        height: 170px;
        left: -55px;
        bottom: -35px;
    }

    .abhsm-hero-panel-inner {
        max-width: 100%;
        padding: 30px 24px 84px;
    }

    .abhsm-hero-kicker {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: .08em;
    }

    .abhsm-hero-title {
        max-width: 100%;
        margin: 0 0 14px;
        font-size: clamp(1.7rem, 5vw, 2.5rem);
        line-height: 1.1;
    }

    .abhsm-hero-text {
        max-width: 100%;
        margin: 0 0 22px;
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .abhsm-hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .abhsm-hero-btn {
        width: 100%;
        min-height: 50px;
        padding: 12px 18px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .abhsm-hero-nav {
        top: 20%;
        transform: translateY(-50%);
        width: 46px;
        height: 46px;
        font-size: 20px;
        background: rgba(35, 40, 92, 0.24);
        border-color: rgba(255, 255, 255, 0.55);
        z-index: 30;
    }

    .abhsm-hero-prev {
        left: 12px;
    }

    .abhsm-hero-next {
        right: 12px;
    }

    .abhsm-hero-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 14px;
        gap: 8px;
    }

    .abhsm-hero-dot {
        width: 10px;
        height: 10px;
    }

    .abhsm-hero-dot.is-active {
        width: 28px;
    }
}

@media (max-width: 767.98px) {
    .abhsm-hero-slides {
        height: 620px;
        min-height: 620px;
    }

    .abhsm-hero-slide {
        min-height: 620px;
    }

    .abhsm-hero-media {
        height: 34%;
        min-height: 190px;
    }

    .abhsm-hero-panel {
        height: 66%;
        margin-top: -14px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    .abhsm-hero-panel-inner {
        padding: 24px 18px 72px;
    }

    .abhsm-hero-kicker {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .abhsm-hero-title {
        font-size: clamp(1.32rem, 7vw, 1.95rem);
        line-height: 1.08;
        margin-bottom: 12px;
    }

    .abhsm-hero-text {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .abhsm-hero-btn {
        min-height: 46px;
        padding: 11px 16px;
        font-size: 0.92rem;
    }

    .abhsm-hero-nav {
        top: 17%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .abhsm-hero-slides {
        height: 570px;
        min-height: 570px;
    }

    .abhsm-hero-slide {
        min-height: 570px;
    }

    .abhsm-hero-media {
        height: 31%;
        min-height: 170px;
    }

    .abhsm-hero-panel {
        height: 72%;
        margin-top: -12px;
    }

    .abhsm-hero-panel-inner {
        padding: 20px 15px 66px;
    }

    .abhsm-hero-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .abhsm-hero-text {
        font-size: 0.87rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .abhsm-hero-btn {
        min-height: 44px;
        font-size: 0.89rem;
    }

    .abhsm-hero-nav {
        top: 15.5%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
}



.abhsm-hero-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/zellig.png');
    background-repeat: repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0.1;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 360px) {
    .abhsm-hero-slides {
        height: 540px;
        min-height: 540px;
    }

    .abhsm-hero-slide {
        min-height: 540px;
    }

    .abhsm-hero-panel-inner {
        padding: 18px 14px 62px;
    }

    .abhsm-hero-title {
        font-size: 1.1rem;
    }

    .abhsm-hero-text {
        font-size: 0.84rem;
    }

    .abhsm-hero-nav {
        top: 15%;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abhsm-hero-slide,
    .abhsm-divider-base,
    .abhsm-divider-aqua,
    .abhsm-divider-line,
    .abhsm-hero-panel-glow,
    .abhsm-hero-slide.is-active .abhsm-hero-kicker,
    .abhsm-hero-slide.is-active .abhsm-hero-title,
    .abhsm-hero-slide.is-active .abhsm-hero-text,
    .abhsm-hero-slide.is-active .abhsm-hero-actions {
        animation: none !important;
        transition: none !important;
    }
}


.abhsm-divider-zellij {
    z-index: 2;
    opacity: 0.1;
    mix-blend-mode: multiply;
    animation: abhsmDividerZellij 6s ease-in-out infinite;
}

.abhsm-divider-zellij image {
    width: 100%;
    height: 65%;
}

@keyframes abhsmDividerZellij {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.14;
    }
    50% {
        transform: translateX(8px);
        opacity: 0.22;
    }
}