/* Custom Search Box style to match Investors Clinic */
.search-box-style-6 {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

.search-box-style-6 .search-box-heading {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.search-box-style-6 .hero-heading {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .search-box-style-6 .hero-heading {
        font-size: 2rem;
    }
}

.search-box-style-6 .search-input-wrapper {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    align-items: stretch;
}

.search-box-style-6 .search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 1rem;
    outline: none;
    color: #333;
    background: #fff;
}

.search-box-style-6 .search-input-wrapper input::placeholder {
    color: #999;
    font-size: 1rem;
}

.search-box-style-6 .search-input-wrapper button[type="submit"] {
    background: rgb(5, 54, 110);
    color: #fff;
    border: none;
    padding: 18px 45px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-box-style-6 .search-input-wrapper button[type="submit"]:hover {
    background: rgb(132, 216, 254);
    color: rgb(5, 54, 110);
}

.search-box-style-6 .search-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-box-style-6 .tab-btn {
    background: rgb(5, 54, 110);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 130px;
}

.search-box-style-6 .tab-btn:hover {
    background: rgb(132, 216, 254);
    color: rgb(5, 54, 110);
}

.search-box-style-6 .tab-btn.active {
    background: #fff;
    color: rgb(5, 54, 110);
    box-shadow: 0 2px 8px rgba(5, 54, 110, 0.3);
    border: 2px solid rgb(5, 54, 110);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .search-box-style-6 {
        padding: 15px;
    }

    .search-box-style-6 .search-box-heading {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .search-box-style-6 .search-input-wrapper {
        flex-direction: row;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .search-box-style-6 .search-input-wrapper input {
        flex: 1;
        padding: 12px 15px;
        font-size: 0.9rem;
        border: none;
        background: #fff;
    }

    .search-box-style-6 .search-input-wrapper input::placeholder {
        font-size: 0.85rem;
    }

    .search-box-style-6 .search-input-wrapper button[type="submit"] {
        padding: 12px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
        border-radius: 0;
    }

    .search-box-style-6 .search-tabs {
        gap: 8px;
    }

    .search-box-style-6 .tab-btn {
        flex: 1;
        font-size: 0.9rem;
        padding: 10px 15px;
        min-width: 90px;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    .search-box-style-6 .search-input-wrapper input {
        padding: 16px 20px;
    }

    .search-box-style-6 .search-input-wrapper button[type="submit"] {
        padding: 16px 35px;
    }

    .search-box-style-6 .tab-btn {
        padding: 11px 25px;
        min-width: 120px;
    }
}

/* Heading and Overlay refinements */
.hero-banner-slider .slider-content .heading h1 {
    font-size: 4rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    color: #fff !important;
    text-transform: capitalize;
}

.hero-banner-slider .overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

.hero-banner-slider .slider-content {
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (max-width: 768px) {
    .hero-banner-slider .slider-content .heading h1 {
        font-size: 2.5rem !important;
    }
}

/* Hero Banner Video Background */
.hero-banner-slider.has-video-background {
    position: relative;
    overflow: hidden;
}

.hero-banner-slider .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-banner-slider .video-background video,
.hero-banner-slider .video-background iframe,
.hero-banner-slider .video-background #hero-youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-banner-slider .video-background iframe,
.hero-banner-slider .video-background #hero-youtube-player {
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio */
}

.hero-banner-slider.has-video-background .container {
    position: relative;
    z-index: 2;
}

.hero-banner-slider.has-video-background .overlay {
    z-index: 1;
}

/* Ensure content is above video */
.hero-banner-slider .slider-content {
    position: relative;
    z-index: 3;
}