.select2-container {
    box-sizing: border-box;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #aaa;
    padding: 8px 3px;
    min-height: 35px;
    margin-bottom: 15px;
}

.select2-container--default .select2-selection--single {
    padding: 8px 3px;
    min-height: 45px;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #e0f2f8;
}

button.select2-selection__choice__remove {
    width: 20px !important;
    height: 25px;
}

.select2-search__field {
    float: none !important;
    margin-bottom: 0 !important;
}

.search-container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-heading {
    color: #014274;
    font-size: clamp(1.5rem, 6vw, 2.7rem);
    line-height: 1.2;
}

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 400;
    color: #014274;
}

#hero-search-btn {
    background: linear-gradient(rgba(1, 58, 99, 1), rgba(1, 73, 124, 1));
    color: #fff;
    border-radius: 15px;
    border: none;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    transition:
        background 0.4s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#hero-search-btn:hover {
    background: linear-gradient(rgba(1, 73, 124, 0.9), rgba(1, 79, 134, 0.9));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(1, 42, 74, 0.4);
}

.form-group {
    width: 75%;
    margin-top: 1rem;
}

/* General select2 style alignment */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 1rem !important;
    box-shadow: none;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    font-weight: 400;
    font-size: 1rem;
    color: #6c757d;
}

/* Dropdown arrow */
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

/* Selected option appearance */
.select2-container--default .select2-results__option--selected {
    background-color: #e0f2f8;
}

.select2-container--default .select2-selection__placeholder {
    font-size: 1rem !important;
}

/* Ensure inputs and selects have same look */
.form-control {
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-size: 1rem !important;
}

.select2-container--default.select2-container--focus
    .select2-selection--multiple {
    border: none;
    /* outline: 0; */
}

.select2-container--default .select2-selection--multiple {
    margin-bottom: 0px;
}

@media (max-width: 912px) {
    .search-container {
        padding: 2rem 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .select2-container--default .select2-selection--multiple {
        padding: 6px 4px;
    }

    #hero-search-btn {
        /* width: 100%; */
        width: 50%;
        padding: 0.75rem;
        font-size: 1.1rem;
    }

    .hero-heading,
    .hero-desc {
        /* padding-left: 1rem !important;
            padding-right: 1rem !important; */
        padding: 0 !important;
        /* padding-top: 1rem; */
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-heading {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .form-group {
        width: 100%;
        margin-bottom: 0px;
    }

    #hero-search-btn {
        /* width: 100%; */
        width: 75%;
    }
}

.search-container .container {
    /* padding-top: 4rem; */
}

.hero-heading {
    padding: 0;
}

.hero-heading {
    margin-bottom: 1.5rem;
}

.form-section {
    padding: 0px !important;
}

.bg-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/health/health_search_bg.webp") no-repeat center top;
    background-size: cover;
    z-index: 0;
}

.select2-dropdown {
    z-index: 6;
}

main > .container {
    padding-top: 2rem !important;
}

/* advertisement slider style start */
/* Static ads layout (no swiper) */
.myAdSwiper.static {
    display: flex;
    justify-content: center;
}

.myAdSwiper.static .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.myAdSwiper.static .swiper-slide {
    flex: 0 0 auto;
    width: 240px;
    aspect-ratio: 4 / 3;
}

.ad-slider-container {
    min-height: 30vh;
}

@media (min-width: 576px) {
    .myAdSwiper.static .swiper-slide {
        width: 280px;
    }

    .ad-slider-container {
        min-height: 20vh;
    }
}

@media (min-width: 1025px) {
    .myAdSwiper.static .swiper-slide {
        width: 320px;
    }
}

@media (min-width: 1200px) {
    .myAdSwiper.static .swiper-slide {
        width: 360px;
    }
}

.slider-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or 'contain' if you prefer no cropping */
    display: block;
}

/* Navigation arrows */
.myAdSwiper .swiper-button-next,
.myAdSwiper .swiper-button-prev {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    color: #2c7da0;
    border: 1px solid rgba(44, 125, 160, 0.15);
    box-shadow: 0 4px 10px rgba(44, 125, 160, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease-in-out;
}

/* Arrow icon */
.myAdSwiper .swiper-button-next::after,
.myAdSwiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Hover effect */
.myAdSwiper .swiper-button-next:hover,
.myAdSwiper .swiper-button-prev:hover {
    background: #2c7da0;
    color: #ffffff;
    border-color: #2c7da0;
    transform: scale(1.1);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Hover lift effect */
.swiper-slide:hover {
    transform: translateY(-6px);
}

.section-title {
    font-weight: 500;
    letter-spacing: 0.4px;
    color: #2c7da0;
    font-size: 2rem;
}

.section-title span {
    font-weight: 400;
    color: #555;
}

/* advertisement slider style end */

/* top advertisement style start */
.topAdSwiper .swiper-pagination {
    position: relative !important;
    margin-top: 10px !important;
}
/* top advertisement style end */

/* home-blogs-section style start */

.inner-div {
    height: 80%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.child {
    box-sizing: border-box;
    flex: 1 1 300px;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    box-shadow: 2px 2px 10px rgb(116, 195, 221);
    min-height: 300px;
    border-radius: 0.6rem;
    border: 1px solid #ddd;
    padding: 2rem;
}

.video-card,
.blog-card {
    width: 100%;
    margin-top: 20px;
    box-shadow: 2px 2px 10px #bbb;
    border-radius: 0.6rem;
    overflow: hidden;
}

.video-frame,
.blog-thumbnail {
    width: 100%;
    height: 312px;
    border-radius: 10px;
}

.title {
    font-size: x-large;
    font-weight: 600;
    color: rgb(116, 195, 221);
    padding: 10px 0;
}

.card-body {
    padding: 10px;
    background-color: #f8f9fa;
}

.video-title,
.blog-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.video-description,
.blog-description {
    font-size: 14px;
    color: #666;
    height: 45px;
    overflow: hidden;
}

@media (max-width: 992px) {
    .child {
        max-width: 100%;
        max-height: 57%;
    }

    .video-frame,
    .blog-thumbnail {
        height: 178px;
    }

    .home-blog-container {
        margin-top: 0 !important;
    }
}

.youtube-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.youtube-thumbnail img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* PLAY BUTTON */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 26px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
    transition: all 0.2s ease-in-out;
}

/* Hover effect */
.youtube-thumbnail:hover .play-button {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 767px) {
    .child {
        max-width: 100%;
        max-height: 40%;
    }

    .video-frame,
    .blog-thumbnail {
        height: 178px;
    }

    .home-blog-container {
        margin-top: 0 !important;
    }
}

.card img {
    border: 1px solid rgba(128, 128, 128, 0.356);
    padding: 0.6rem;
}

/* home-blogs-section style end */
