/**
 * Hero Banner Widget Styles - Swiper Integration
 *
 * @format
 */

.cpd-hero-banner-widget {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cpd-hero-banner-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    height: 100svh;
}

.cpd-hero-banner-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 100%;
    border-radius: 8px;
}

.cpd-hero-banner-slider.swiper {
    overflow: visible;
}

.swiper-wrapper {
    height: 100%;
}

.cpd-hero-banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Explicit fade effect support */
.cpd-hero-banner-slider.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.cpd-hero-banner-slider.swiper-fade .swiper-slide-active {
    pointer-events: auto;
    z-index: 10;
}

.cpd-hero-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;

}

.cpd-hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, rgba(0, 0, 0, 0.75) 30.3%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.cpd-hero-banner-content {
    position: absolute;
    z-index: 3;
    /*top: 65%;*/
    transform: translateY(-50%);
    max-width: 85%;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.cpd-hero-banner-content h1 {
    font-weight: 600;
    font-size: 50px;
    line-height: 125%;
    color: #FFFFFF;
    width: 70%;
    margin-bottom: 20px;
}

.cpd-hero-banner-content p {
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0;
    color: #FFFFFF;
}

/* Filter Bar - Below Slider */
.cpd-hero-banner-filter-bar {
    background: white;
    padding: 40px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: calc(85% - 30px);
    width: calc(85% - 30px);
}

@media (max-width: 1024px) {
    .cpd-hero-banner-filter-bar {
        padding: 30px !important;
    }

    .filter-group {
        flex: 0 0 calc(50% - 15px) !important;
        margin: 0 !important;
    }
}

@media(max-width: 767px){
    .cpd-hero-banner-filter-bar{
        width: calc(100% - 30px);
    }
    .filter-group {
        flex: 0 0 calc(100% - 15px) !important;
        margin: 0 !important;
    }
}

.cpd-hero-banner-filters {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.filter-group {
    flex: 0 0 calc(25% - 24px);
    margin: 0 !important;
}


.filter-group.button-group {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.cpd-hero-banner-filters select,
.cpd-hero-banner-filters input[type='text'] {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #126B9F;
    border-radius: 12px;
    background: white;
    color: #000000;
    transition: border-color 0.3s ease;
}

.cpd-hero-banner-filters input[type='text']::placeholder {
    color: #000000;
}

.cpd-hero-banner-filters select:focus,
.cpd-hero-banner-filters input[type='text']:focus {
    outline: none;
    border-color: #0093CA;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.cpd-hero-banner-filters select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 35px;
}

/* Buttons */
.btn-search,
.cpd-glossary-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search {
    background: #0093CA;
    color: white;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-search:hover {
    background: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cpd-glossary-btn {
    background: white;
    color: #0093CA;
    border: 2px solid #0093CA;
    padding: 10px 22px;
}

.cpd-glossary-btn:hover {
    background: #f0f5ff;
}

.nagivation-custom {
    position: absolute;
    right: 10%;
    bottom: 12rem;
    z-index: 20;
    display: flex;
    gap: 15px;

}

.slider-nav {
    cursor: pointer;
}

/* Responsive Design */

/* Tablets - 1024px and below */
@media (max-width: 1024px) {
    .cpd-hero-banner-slider {
        min-height: 400px;
    }

    .cpd-hero-banner-content {
        padding: 0 30px;
    }

    .cpd-hero-banner-content h1 {
        font-size: 36px;
    }

    .cpd-hero-banner-content p {
        font-size: 16px;
    }

    .cpd-hero-banner-filter-bar {
        padding: 20px;
    }


    .filter-group.button-group {
        margin-left: 0;
        width: 100%;
    }

    .btn-search,
    .cpd-glossary-btn {
        flex: 1;
    }
}

/* Mobile Landscape - 768px and below */
@media (max-width: 768px) {
    .cpd-hero-banner-slider {
        min-height: 300px;
    }

    .cpd-hero-banner-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .cpd-hero-banner-content p {
        font-size: 14px;
    }

    .cpd-hero-banner-content {
        padding: 0 20px;
    }

    .cpd-hero-banner-filter-bar {
        padding: 15px;
    }

    .cpd-hero-banner-filters {
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 100%;
    }

    .filter-group.button-group {
        width: 100%;
    }

    .btn-search,
    .cpd-glossary-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 13px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 20px !important;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}


.filter-bar-title {
    color: #126B9F;
    font-weight: 500;
    font-size: 14px;
    line-height: 125%;
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    .cpd-hero-banner-slider {
        min-height: 220px;
        border-radius: 4px;
    }

    .cpd-hero-banner-content h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }


    .cpd-hero-banner-content {
        padding: 0 15px;
    }


    .cpd-hero-banner-filters {
        gap: 8px;
    }

    .filter-group {
        flex: 1 1 100%;
        min-width: unset;
    }

    .cpd-hero-banner-filters select,
    .cpd-hero-banner-filters input[type='text'] {
        padding: 10px 12px;
        font-size: 13px;
    }

    .filter-group.button-group {
        width: 100%;
    }

    .btn-search,
    .cpd-glossary-btn {
        flex: 1;
        padding: 9px 12px;
        font-size: 12px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 35px;
        height: 35px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 18px !important;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }
}
@media(max-width: 767px){
    .filter-search-btn{
        height: auto;
    }
}