/* =========================================================
   HERO SECTION
   template-parts/homepage/hero-section.php
========================================================= */

.hero-section{
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
}


/* =========================================================
   CAROUSEL WRAPPER
========================================================= */

.hero-section .carousel{
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-section .carousel-inner{
    border-radius: var(--radius-md);
    overflow: hidden;
}


/* =========================================================
   CAROUSEL ITEM
========================================================= */

.hero-section .carousel-item{
    position: relative;
    overflow: hidden;
}


/* =========================================================
   OVERLAY
========================================================= */

.hero-section .carousel-item::before{
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(15,23,42,0.85) 10%,
        rgba(15,23,42,0.35) 50%,
        rgba(15,23,42,0.10) 100%
    );

    z-index: 1;
}


/* =========================================================
   SLIDER IMAGE
========================================================= */

.slider-image{
    width: 100%;
    height: 650px;

    object-fit: cover;
    object-position: center;

    display: block;

    transition: transform 0.6s ease;
}

.hero-section .carousel-item:hover .slider-image{
    transform: scale(1.03);
}


/* =========================================================
   CAPTION
========================================================= */

.hero-section .carousel-caption{
    position: absolute;

    left: 50%;
    bottom: 70px;

    transform: translateX(-50%);

    width: 100%;
    max-width: 900px;

    padding: 0 20px;

    z-index: 5;

    text-align: center;
}

.hero-section .carousel-caption h2{
    color: var(--white-color);

    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;

    margin-bottom: 0;

    text-shadow: 0 4px 15px rgba(0,0,0,0.35);
}


/* =========================================================
   INDICATORS
========================================================= */

.hero-section .carousel-indicators{
    margin-bottom: 25px;
    z-index: 10;
}

.hero-section .carousel-indicators button{
    width: 30px;
    height: 6px;

    border: 0;
    border-radius: 50px;

    margin: 0 5px !important;

    background: rgba(255,255,255,0.6) !important;

    opacity: 1;

    transition: var(--transition);
}

.hero-section .carousel-indicators button.active{
    width: 45px;
    background: var(--accent-color) !important;
}


/* =========================================================
   CAROUSEL CONTROL
========================================================= */

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next{
    width: 8%;
    opacity: 1;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon{
    width: 50px;
    height: 50px;

    border-radius: 50%;

    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);

    background-size: 18px;

    transition: var(--transition);
}

.hero-section .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-section .carousel-control-next:hover .carousel-control-next-icon{
    background-color: var(--accent-color);
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1400px){

    .slider-image{
        height: 760px;
    }

    .hero-section .carousel-caption h2{
        font-size: 64px;
    }

}


/* =========================================================
   DESKTOP
========================================================= */

@media (max-width: 1399px){

    .slider-image{
        height: 620px;
    }

    .hero-section .carousel-caption h2{
        font-size: 50px;
    }

}


/* =========================================================
   LAPTOP DEVICE
========================================================= */

@media (max-width: 1199px){

    .slider-image{
        height: 520px;
    }

    .hero-section .carousel-caption{
        bottom: 60px;
    }

    .hero-section .carousel-caption h2{
        font-size: 42px;
    }

}


/* =========================================================
   TABLET DEVICE
========================================================= */

@media (max-width: 991px){

    .slider-image{
        height: 420px;
    }

    .hero-section .carousel-caption{
        bottom: 50px;
        padding: 0 25px;
    }

    .hero-section .carousel-caption h2{
        font-size: 34px;
    }

    .hero-section .carousel-control-prev-icon,
    .hero-section .carousel-control-next-icon{
        width: 42px;
        height: 42px;
    }

}


/* =========================================================
   MOBILE DEVICE
========================================================= */

@media (max-width: 767px){

    .hero-section{
        margin-bottom: 30px;
    }

    .slider-image{
        height: 320px;
    }

    .hero-section .carousel,
    .hero-section .carousel-inner{
        border-radius: var(--radius-sm);
    }

    .hero-section .carousel-caption{
        bottom: 40px;
        padding: 0 18px;
    }

    .hero-section .carousel-caption h2{
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next{
        display: none;
    }

    .hero-section .carousel-indicators{
        margin-bottom: 15px;
    }

}


/* =========================================================
   SMALL MOBILE DEVICE
========================================================= */

@media (max-width: 575px){

    .slider-image{
        height: 240px;
    }

    .hero-section .carousel-caption{
        bottom: 28px;
        padding: 0 14px;
    }

    .hero-section .carousel-caption h2{
        font-size: 20px;
        line-height: 1.4;
    }

    .hero-section .carousel-indicators button{
        width: 22px;
        height: 5px;
    }

    .hero-section .carousel-indicators button.active{
        width: 35px;
    }

}