/* ===============================
   HERO SLIDER STYLES
================================= */
.hero {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* ---------- TOP HALF ---------- */
.hero-top {
    display: grid;
    grid-template-columns: 3fr 1fr;
    height: 70vh;
    gap: 10px;
    padding: 10px;
}

.hero-left,
.hero-right {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* ---------- SLIDER ---------- */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
}

/* ---------- SLIDE CONTENT (NEW) ---------- */

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 5;
    max-width: 60%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-in-out;

    /* Transparent background */
    background: rgba(0, 0, 0, 0.5);
    /* black with 50% opacity */
    padding: 20px;
    border-radius: 10px;
}


.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.slide-content .btn {
    font-size: 1rem;
    padding: 10px 20px;
}

/* ---------- CONTROLS ---------- */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* ---------- RIGHT IMAGE ---------- */
.hero-right img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
}

/* ---------- BOTTOM HALF ---------- */
.hero-bottom {
    display: flex;
    height: 40vh;
    padding: 0 10px;
    gap: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-bottom img {
    flex: 1 1 0;
    width: 0;
    border-radius: 12px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-bottom img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: 10px;
    }

    .hero-top {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-left,
    .hero-right {
        height: 50vh;
    }

    .hero-right {
        display: block;
    }

    .hero-right img {
        height: 100%;
        width: 100%;
        border-radius: 12px;
    }

    .hero-bottom {
        flex-direction: column;
        height: auto;
    }

    .hero-bottom img {
        width: 100%;
        height: 200px;
    }

    /* Responsive slide content */
    .slide-content {
        bottom: 15%;
        left: 5%;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slide-content .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* ---------- SMALL DEVICES ---------- */
@media (max-width: 576px) {

    .hero-left,
    .hero-right {
        height: 40vh;
    }

    .hero-bottom img {
        height: 160px;
    }

    .prev,
    .next {
        padding: 8px 12px;
    }

    /* Slide content for small devices */
    .slide-content {
        bottom: 10%;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .slide-content .btn {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}
