/* Sekcja home/hero – przeniesione z inline <style> w top_search_3.php dla walidacji HTML5 */
#home .container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

#home .bg-slider {
    position: relative;
    width: 100%;
    min-height: 420px;
    padding-top: 40px;
    padding-bottom: 40px;
}

#home .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

#home [class*="col-"] {
    position: relative;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

#home .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    #home .col-md-1 { flex: 0 0 8.333%; max-width: 8.333%; }
    #home .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    #home .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
}

@media (min-width: 992px) {
    #home .col-lg-1 { flex: 0 0 8.333%; max-width: 8.333%; }
    #home .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    #home .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    #home .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
}

#home .d-flex { display: flex !important; }
#home .flex-column { flex-direction: column !important; }
#home .justify-content-around { justify-content: space-around !important; }
#home .align-items-center { align-items: center !important; }
#home .w-100 { width: 100% !important; }
#home .h-100 { min-height: 100%; }
#home .mt-3 { margin-top: 1rem !important; }

#home .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
}

#home .btn.btn-secondary {
    background: #0e3c6e;
    border: none;
    color: #fff;
    transition: background 0.2s ease;
}

#home .btn.btn-secondary:hover,
#home .btn.btn-secondary:focus-visible {
    background: #14508f;
    color: #fff;
}

#home .text-blue-light { color: #cde2ff; }
#home .font-weight-500 { font-weight: 500; }

#home .lcp-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #0b0f1d;
    background-image: var(--hero-image-url, linear-gradient(180deg, #0f1e3a 0%, #0b0f1d 100%));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity .4s ease-out;
    overflow: hidden;
    contain: paint;
    will-change: opacity;
}

#home .lcp-hero-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: -40%;
    width: 100%;
    height: 40%;
    background-image: var(--hero-image-url, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    transform: scaleY(-1);
    opacity: 0;
    filter: blur(1px);
    pointer-events: none;
    transition: opacity .4s ease-out;
}

#home .lcp-hero-image.is-loaded {
    opacity: 1;
}

#home .lcp-hero-image.is-loaded::before {
    opacity: .4;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
    will-change: opacity;
}

#home .search-title-wrapper {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    padding: 0 30px;
    margin-top: -80px;
    margin-bottom: 60px;
}

#home .search-title-wrapper h1,
#home .search-title-wrapper h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 1140px);
    min-width: min(100%, 280px);
    padding: clamp(12px, 2vw, 18px) clamp(16px, 4vw, 32px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.36);
    color: #1f4d8a;
    text-shadow: none;
    box-shadow: 0 18px 40px rgba(6, 16, 38, 0.2);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    text-align: center;
    line-height: 1.35;
    word-break: break-word;
}

#home .search-form-wrapper {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 1400px) {
    #home .search-form-wrapper {
        max-width: calc(100% - 500px);
    }
}

@media (max-width: 1200px) {
    #home .search-form-wrapper {
        max-width: calc(100% - 300px);
    }
}

@media (max-width: 991px) {
    #home .search-form-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
}

#home .search-form-wrapper .select-fallback {
    position: relative;
}

#home .search-form-wrapper select:not(.select2-hidden-accessible) {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 40px;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.18);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#home .search-form-wrapper select:not(.select2-hidden-accessible):focus {
    outline: none;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.35);
}

#home .search-form-wrapper select:not(.select2-hidden-accessible) option {
    color: #0b1d3a;
}

#home .search-form-wrapper .select-fallback-arrow {
    display: none;
}
#home .search-form-wrapper .select2-container {
    width: 100% !important;
}

#home .search-form-wrapper .select2-container .select2-selection--single {
    height: 40px;
    border: 0;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    padding: 0 16px;
    line-height: 40px;
    transition: box-shadow 0.2s ease;
}

#home .search-form-wrapper .select2-container .select2-selection__rendered {
    padding: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    width: 100%;
    min-width: 0;
}

#home .search-form-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.75);
}

#home .search-form-wrapper .select2-container .select2-selection__arrow {
    display: none;
}

#home .search-form-wrapper .btn {
    height: 40px;
    border-radius: 4px;
}
