/* =============================================
   Hero News Slider — hero-news-slider.css
   ============================================= */

/* ── Wrapper ── */
.hns-slider {
    position: relative;
    width: 100%;
    overflow: visible;
    background: #1a1a1a;
    /* Height is driven by the slide itself */
}

/* ── Slide track (full-width background image area) ── */
.hns-slides-track {
    position: relative;
    width: 100%;
}

/* ── Individual slide ── */
.hns-slide {
    display: none;
    position: relative;
    width: 100%;
    min-height: 750px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    animation-name: fadeIn;
    transition: 500ms;
    animation-duration: 1s;
    animation-fill-mode: both;
    /* Slight dark overlay on image area */
}

.hns-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.hns-slide.active {
    display: flex;
    align-items: flex-end;   /* text box sits at the bottom-right */
    justify-content: flex-end;
}

/* ── White text box — overlapping the image ── */
.hns-text-box {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 60%;
    margin: 0 0 0 auto;      /* push to right */
    padding: 80px 280px 48px 50px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    /* sits half over the image, half below — via negative bottom margin */
    margin-bottom: -135px;

    /* Animation — starts hidden */
    opacity: 0;
    transform: translateY(36px);
    transition: none;        /* JS adds the transition after slide is shown */
}

/* Animate-in state (added by JS) */
.hns-text-box.hns-animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    animation-name: fadeInUp; 
    animation-duration: 3s;
    animation-fill-mode: both;
    backface-visibility: visible !important;            
}

/* ── Typography inside text box ── */
.hns-title {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.25;
    color: #2d2929;
    margin: 0 0 18px 0;
    padding: 0;
    letter-spacing: -0.3px;
}

.hns-desc {
    font-size: 16px;
    line-height: 1.65;
    color:#000000;
    margin: 0 0 30px 0;
    padding: 0;
}

/* ── CTA button ── */
.hns-btn {
    display: inline-block;
    background: #00a7dc;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 50px;
    letter-spacing: 0.4px;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
}

.hns-btn:hover {
    background: #2d2929;
    transform: translateY(-1px);
}

/* ── Prev / Next navigation buttons ── */
.hns-nav {
    position: absolute;
    right: 125px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    background: #ffffff;
    color: #9c9da5;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 0;
}

.hns-nav:hover {
    background: #00a7dc;
    border-color: #00a7dc;
    color: #fff;
    box-shadow: 0 4px 14px rgba(232,0,61,0.22);
}

/* Position: next button slightly above center, prev below it */
.hns-next {
    top: 95%;
    transform: translateY(calc(-50% - 28px));
}

.hns-prev {
    top: 100%;
    transform: translateY(calc(-50% + 28px));
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hns-slide {
        min-height: 380px;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .hns-text-box {
        width: 90%;
        max-width: 100%;
        min-width: unset;
        padding: 28px 24px 30px;
        margin: 0 auto;
        margin-bottom: -135px;
        margin-left: 20px
    }

    .hns-title {
        font-size: 22px;
    }

    .hns-nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
        right: 10px;
    }
    .hns-nav {
    display: none;
}
}

@media (max-width: 480px) {
    .hns-slide {
        min-height: 300px;
    }
    .hns-text-box {
        width: 100%;
        padding: 22px 18px 24px;
        margin-bottom: -135px;
        margin-left: 20px
    }
    .hns-title {
        font-size: 19px;
    }
    .hns-nav {
    display: none;
}
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {

0% {
    opacity: 0;
}
100% {
    opacity: 1;

 }
}