/* InnovationHub.bd Premium Full Width Slider V2 */

body:has(.ih3-slider) {
    overflow-x: clip;
}

.ih3-slider {
    position: relative;
    isolation: isolate;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 35px;
    border-radius: 0;
    background: #0b233b;
    color: #fff;
    overflow: hidden;
}

.ih3-slider .ih3-slide {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 540px;
    padding: 85px max(8%, calc((100vw - 1200px)/2));
    padding-bottom: 115px;
    overflow: hidden;
    background: #0b233b;
}

.ih3-slider .ih3-slide[hidden] {
    display: none !important;
}

.ih3-slide .ih3-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    z-index: -2;
}

.ih3-slider .ih3-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(7,25,43,.95) 0%,
        rgba(7,25,43,.80) 35%,
        rgba(7,25,43,.42) 70%,
        rgba(7,25,43,.18) 100%
    );
    pointer-events: none;
}

.ih3-slide > div:not(:has(.ih3-banner-image)) {
    position: relative;
    max-width: 780px;
    z-index: 1;
}

.ih3-slider .ih3-slide h1,
.ih3-slider .ih3-slide h2 {
    font-size: clamp(36px, 4.8vw, 66px);
    line-height: 1.1;
    font-weight: 850;
    color: #fff;
    margin: 20px 0;
    max-width: 800px;
    overflow-wrap: anywhere;
}

.ih3-slider .ih3-slide small {
    color: #6ee7b7;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
}

.ih3-slider .ih3-slide p {
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 25px;
}

.ih3-slider .ih3-slide .cta {
    background: #07876f;
    color: white;
    padding: 15px 26px;
    border-radius: 8px;
    font-weight: 700;
}

.ih3-slider .ih3-controls {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px;
    z-index: 10;
}

.ih3-slider .ih3-controls button {
    min-height: 42px;
    min-width: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 30px;
    background: rgba(11,35,59,.75);
    color: white;
    font-size: 13px;
}

.ih3-slider .ih3-controls button:hover {
    background: #07876f;
}

.ih3-slider .ih3-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ih3-slider .ih3-controls .ih3-dot {
    width: 24px;
    height: 28px;
    min-width: 24px;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
}

.ih3-dot::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 10px;
    background: #cbd5e1;
}

.ih3-dot.active::after {
    width: 22px;
    background: #6ee7b7;
}

@media (max-width: 1024px) {
    .ih3-slider .ih3-slide {
        min-height: 460px;
        padding: 65px 7% 100px;
    }
}

@media (max-width: 768px) {
    .ih3-slider .ih3-slide {
        min-height: 410px;
        padding: 40px 24px 110px;
    }

    .ih3-slider .ih3-slide h1,
    .ih3-slider .ih3-slide h2 {
        font-size: clamp(30px, 7vw, 40px);
    }

    .ih3-slider .ih3-slide p {
        font-size: 15px;
    }

    .ih3-slider .ih3-slide::before {
        background: rgba(7,25,43,.75);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ih3-slider .ih3-slide:not([hidden]) {
        animation: ihPremiumFade .65s ease-out;
    }

    @keyframes ihPremiumFade {
        from {opacity: .35}
        to {opacity: 1}
    }
}

/* Premium Slider Compact Height Update */

.ih3-slider .ih3-slide {
    min-height: 350px;
    padding-top: 35px;
    padding-bottom: 75px;
}

.ih3-slider .ih3-slide h1,
.ih3-slider .ih3-slide h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 14px 0;
}

.ih3-slider .ih3-slide p {
    font-size: 16px;
    margin-bottom: 15px;
}

.ih3-slider .ih3-banner-image {
    object-position: center 35%;
}

/* Hide visible Pause Button */

.ih3-slider [data-pause]:not(:focus-visible) {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

/* Compact Navigation */

.ih3-slider .ih3-controls {
    bottom: 12px;
    gap: 8px;
}

.ih3-slider .ih3-controls button:not([data-pause]) {
    min-height: 34px;
    min-width: 34px;
    padding: 6px 10px;
}

.ih3-slider {
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .ih3-slider .ih3-slide {
        min-height: 320px;
        padding: 30px 7% 65px;
    }
}

@media (max-width: 768px) {
    .ih3-slider .ih3-slide {
        min-height: 280px;
        padding: 25px 20px 65px;
    }

    .ih3-slider .ih3-slide h1,
    .ih3-slider .ih3-slide h2 {
        font-size: 30px;
    }

    .ih3-slider .ih3-slide p {
        font-size: 14px;
    }
}


/* Premium Banner - Clean Layout */

main:has(.ih-premium-slider),
main:has(.ih3-slider) {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.ih-premium-slider,
.ih3-slider {
    margin-top: 0 !important;
    border-radius: 0 !important;
}

/* Hide Slider Navigation */

.ih-premium-slider .ih3-controls,
.ih3-slider .ih3-controls {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%);
}

.ih-premium-slider .ih3-controls:focus-within,
.ih3-slider .ih3-controls:focus-within {
    width: auto !important;
    height: auto !important;
    clip-path: none;
    overflow: visible !important;
    z-index: 20;
}

/* Remove Extra Bottom Space */

.ih-premium-slide,
.ih3-slider .ih3-slide {
    padding-bottom: 35px !important;
}

