/* ============================================
   sgn-hero-carousel — Full-Screen Image Carousel
   All classes prefixed with sgn-hero-carousel-
   ============================================ */

/* --- Main Container --- */
.sgn-hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

/* --- Slide --- */
.sgn-hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.sgn-hero-carousel-slide.sgn-hero-carousel-active {
    opacity: 1;
    z-index: 2;
}

/* --- Background Image with Ken Burns --- */
.sgn-hero-carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    animation: sgn-hero-carousel-kenburns 12s ease-in-out infinite alternate;
}

.sgn-hero-carousel-slide:nth-child(1) .sgn-hero-carousel-bg {
    animation-delay: 0s;
}

.sgn-hero-carousel-slide:nth-child(2) .sgn-hero-carousel-bg {
    animation-delay: -4s;
    animation-direction: alternate-reverse;
}

.sgn-hero-carousel-slide:nth-child(3) .sgn-hero-carousel-bg {
    animation-delay: -8s;
}

@keyframes sgn-hero-carousel-kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.12) translate(-1.5%, -1%);
    }
}

/* --- Dark Overlay --- */
.sgn-hero-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.55) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* --- Slide Content --- */
.sgn-hero-carousel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Title --- */
.sgn-hero-carousel-title {
    font-size: clamp(22px, 3.5vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.sgn-hero-carousel-active .sgn-hero-carousel-title {
    opacity: 1;
    transform: translateY(0);
}

/* Green accent */
.sgn-hero-carousel-title span {
    color: #82ae46;
}

/* --- Divider bar --- */
.sgn-hero-carousel-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #82ae46, #a4d65e);
    border-radius: 2px;
    margin-bottom: 20px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.sgn-hero-carousel-active .sgn-hero-carousel-divider {
    opacity: 1;
    transform: scaleX(1);
}

/* --- Subtitle --- */
.sgn-hero-carousel-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 650px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.sgn-hero-carousel-active .sgn-hero-carousel-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* --- CTA Button --- */
.sgn-hero-carousel-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #82ae46, #6a9a2e);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(130, 174, 70, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s,
        box-shadow 0.3s ease;
}

.sgn-hero-carousel-active .sgn-hero-carousel-cta {
    opacity: 1;
    transform: translateY(0);
}

.sgn-hero-carousel-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(130, 174, 70, 0.45);
    color: #fff;
    text-decoration: none;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */
.sgn-hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.sgn-hero-carousel-arrow:hover {
    background: rgba(130, 174, 70, 0.6);
    border-color: #82ae46;
    transform: translateY(-50%) scale(1.1);
}

.sgn-hero-carousel-arrow:focus-visible {
    outline: 2px solid #82ae46;
    outline-offset: 3px;
}

.sgn-hero-carousel-arrow-left {
    left: 28px;
}

.sgn-hero-carousel-arrow-right {
    right: 28px;
}

.sgn-hero-carousel-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   INDICATOR DOTS
   ============================================ */
.sgn-hero-carousel-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.sgn-hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    outline: none;
    padding: 0;
}

.sgn-hero-carousel-dot:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.3);
}

.sgn-hero-carousel-dot.sgn-hero-carousel-dot-active {
    background: #82ae46;
    border-color: #82ae46;
    transform: scale(1.25);
    box-shadow: 0 0 12px rgba(130, 174, 70, 0.5);
}

.sgn-hero-carousel-dot:focus-visible {
    outline: 2px solid #82ae46;
    outline-offset: 3px;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.sgn-hero-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #82ae46, #a4d65e);
    z-index: 10;
    transition: width 0.1s linear;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .sgn-hero-carousel {
        height: 75vh;
        min-height: 420px;
    }

    .sgn-hero-carousel-arrow {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .sgn-hero-carousel-arrow-left {
        left: 16px;
    }

    .sgn-hero-carousel-arrow-right {
        right: 16px;
    }

    .sgn-hero-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 575.98px) {
    .sgn-hero-carousel {
        height: 65vh;
        min-height: 360px;
    }

    .sgn-hero-carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .sgn-hero-carousel-arrow-left {
        left: 10px;
    }

    .sgn-hero-carousel-arrow-right {
        right: 10px;
    }

    .sgn-hero-carousel-dots {
        bottom: 24px;
        gap: 10px;
    }

    .sgn-hero-carousel-dot {
        width: 10px;
        height: 10px;
    }

    .sgn-hero-carousel-cta {
        padding: 12px 30px;
        font-size: 12px;
    }

    .sgn-hero-carousel-divider {
        width: 40px;
        height: 3px;
    }
}