/* --- General Layout --- */
.banner-area {
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 100vh;
}
.banner-area .box-table {
    display: table;
    width: 100%;
    height: 100%;
}
.banner-area .box-cell {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: auto;
}
.bg-cover {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* --- Carousel Fade (Fixes Stacking) --- */
.carousel-fade .carousel-inner .item {
    -webkit-transition-property: opacity;
    transition-property: opacity;
    height: 100%;
}
.carousel-fade .carousel-inner .item, 
.carousel-fade .carousel-inner .active.left, 
.carousel-fade .carousel-inner .active.right {
    opacity: 0;
    display: block;
}
.carousel-fade .carousel-inner .active, 
.carousel-fade .carousel-inner .next.left, 
.carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}
.carousel-fade .carousel-inner .next, 
.carousel-fade .carousel-inner .prev, 
.carousel-fade .carousel-inner .active.left, 
.carousel-fade .carousel-inner .active.right {
    left: 0;
    transform: translate3d(0, 0, 0);
}
.carousel-inner {
    height: 100vh;
}
.carousel-item, .item {
    height: 100%;
    width: 100%;
}

/* --- Zoom Effect --- */
@keyframes zoom {
    from { transform: scale(1, 1); }
    to { transform: scale(1.2, 1.2); }
}
.carousel-inner.carousel-zoom .carousel-item > .slider-thumb,
.carousel-inner.carousel-zoom .item > .slider-thumb {
    animation: zoom 20s;
    height: 100%;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* --- Content Typography & Layout --- */
.banner-area .content {
    position: relative;
    z-index: 9;
}
.banner-area.text-light h1, 
.banner-area.text-light h2, 
.banner-area.text-light h3, 
.banner-area.text-light h4, 
.banner-area.text-light p, 
.banner-area.text-light a {
    color: #ffffff;
}

/* Style 1 Specifics */
.banner-area.default .content h2 {
    text-transform: capitalize;
    font-weight: 600;
    font-size: 66px;
    margin-bottom: 25px;
    line-height: 1.2;
}
.banner-area.default .content p {
    font-size: 20px;
    margin-bottom: 30px;
    padding-right: 20%;
}

/* Style 2 Specifics */
.banner-area.text-large .content h2 {
    font-size: 80px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1;
    text-transform: capitalize;
    color: #232323;
}
.banner-area.text-large .content h3 {
    text-transform: uppercase;
    font-size: 20px;
    color: #666;
    font-weight: 600;
    margin-bottom: 25px;
}
.banner-area.text-large .content .shape {
    position: absolute;
    left: -80px;
    top: -20%;
    content: "";
    height: 140%;
    width: 80%;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
    backdrop-filter: blur(7px);
    clip-path: polygon(50% 0%, 100% 100%, 0 100%, 0 0);
}

/* Style 3 Specifics */
.banner-area.text-default h2 {
    font-size: 65px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    color: #232323;
}
.banner-area.text-default h3 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 26px;
    color: #232323;
}
.banner-area.top-pad-90 {
    padding-top: 0;
}
.banner-area.top-pad-90 .content {
    padding-top: 100px;
}
.banner-area .right-thumb {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    width: 48%;
    background-position: center center;
    top: 0;
    right: 0;
}

/* --- Buttons --- */
.btn-theme {
    background-color: #FF5E14;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 15px 40px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    border: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-theme:hover {
    background-color: #00235a;
    color: #ffffff;
}
.btn-theme::after {
    position: absolute;
    left: 0;
    bottom: 0;
    content: "";
    height: 0;
    width: 0;
    transition: all 0.25s ease-in-out;
    background: #00235a;
    z-index: -1;
}
.btn-theme:hover::after {
    width: 100%;
    height: 100%;
}

/* --- Controls (Arrows) --- */
.banner-area .carousel-control {
    width: 50px;
    height: 50px;
    background: transparent;
    line-height: 50px;
    font-size: 30px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
}
.banner-area .carousel-control.theme { color: #FF5E14; }
.banner-area .carousel-control.left { left: 20px; }
.banner-area .carousel-control.right { right: 20px; }

/* --- Indicators --- */
.banner-area .carousel-indicators {
    right: auto;
    left: 50px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    display: block;
    margin: 0;
    width: auto;
}
.banner-area .carousel-indicators li {
    display: block;
    width: 15px;
    height: 15px;
    margin: 10px 0;
    border: 2px solid #FF5E14;
    border-radius: 50%;
    background: transparent;
    opacity: 1;
}
.banner-area .carousel-indicators li.active {
    background: #FF5E14;
}

/* --- Responsive Fixes --- */
@media (max-width: 991px) {
    /* Reset Heights to allow content to flow */
    .banner-area,
    .carousel-inner,
    .carousel-item,
    .item {
        height: auto !important;
        min-height: 600px;
    }

    /* Add padding so text doesn't touch edges */
    .banner-area .box-cell {
        padding: 50px 15px;
        display: block;
    }
    
    .banner-area .content {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fix font sizes for mobile */
    .banner-area.default .content h2,
    .banner-area.text-large .content h2,
    .banner-area.text-default h2 {
        font-size: 40px;
    }
    .banner-area.default .content p {
        padding-right: 0;
    }

    /* Fix Style 3 Split Layout */
    .banner-area .right-thumb {
        position: relative;
        width: 100%;
        height: 300px;
        display: block;
        margin-bottom: 30px;
    }
    .banner-area.top-pad-90 .content {
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    /* Hide shapes on very small screens to save space if needed */
    .banner-area.text-large .content .shape {
        left: -20px;
        width: 100%;
    }
}