/* hero */

.herosection {
    background-color: var(--medilink-green);
    padding: 100px 0px;
    height: calc(96vh - (44px + 81.67px));
    display: flex;
    align-items: center;
}

.toptitle h5 {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.3rem;
}

.maintitle h3 {
    color: var(--medilink-gold);
    font-weight: 800;
    font-size: 3.2rem;
}

.herosubtitle p {
    color: var(--text-light);
    font-size: 1.3rem;
    line-height: 1.6rem;
    font-weight: 400;
}

.herobtn {
    background: var(--medilink-gold);
    color: #000;
    /* padding: 2px 18px; */
    /* border-radius: 8px; */
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.heroimage {
    margin: 0 auto;
    width: 500px;
}

.heroimage img {
    width: 100%;
    height: auto;
}

.herosection {
    position: relative;
}


/* hero end */


/* request call section */

.consult-banner {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.consult-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.consult-text {
    background: #2b7253;
    /* green box */
    color: #fff;
    padding: 17px 40px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.consult-btn {
    background: #e5c76e;
    /* yellow box */
    color: #000;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* medilink */

.medilink-section {
    /*height: calc(96vh - (44px + 81.67px));*/
        height: inherit;
    display: flex;
    align-items: center;
    /* backckground-color: var(--text-light); */
    padding: 80px 0px;
    position: relative;
}

.medilink-container {
    position: relative;
    overflow: hidden;
}

.medilink-image {
    width: 500px;
    margin: 0 auto;
}

.medilink-image img {
    width: 100%;
    height: auto;
}

.medilink-bg-icon {
    width: 400px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 45%;
    transform: translateX(-50%);
}

.medilink-bg-icon img {
    width: 100%;
    height: auto;
}

.medilink-content {
    width: 80%;
}

.medilink-btn {
    background-color: #1d6b53;
    padding: 10px 22px;
    /* border-radius: 6px; */
    font-size: 17px;
    /* margin-top: 24px !important; */
    width: fit-content;
}

.medilink-btn a {
    color: #fff !important;
}

.medilink-btn:hover {
    background-color: #134c3b;
    color: #fff !important;
}


/* card section */


/* card section */
/* .whyus{
    position: relative;
}
.cardsection_medilogo{
position: absolute;
top: 0;
right: 0;
}
.cardsection_medilogo img{

    width: 500px;
    height: 500px;
} */

.cardsetion_medilogo {
    width: 900px;
    margin: 0 auto;
    position: absolute;
    top: 0px;
    /* right: -106%; */
    left: 99%;
    right: 0;
    transform: translateX(-50%);
    opacity: 0.5;
    z-index: 100 !important;
}

.cardsection {
    background: #b6e7d4;
    font-family: "Poppins", sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: #1b4f3b;
    max-width: 1200px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    padding-bottom: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    height: -webkit-fill-available;
}

.service-card:hover {
    background: #1b4f3b;
    color: #fff;
    transform: translateY(-5px);
    cursor: pointer;
}


/* Arrow Button */

.arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1b4f3b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    font-size: 16px;
    color: #1b4f3b;
    transition: 0.3s;
}

/* .dark .arrow-btn {
    border-color: #fff;
    color: #fff;
} */

/* .arrow-btn:hover {
    background: #1b4f3b;
    color: #fff;
} */

.service-card:hover .arrow-btn {
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}
.service-card:hover h5,
.service-card:hover p {
    color: #ffffff !important;
}


/* Card Image */

.card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px 12px 0px 0px;
    margin-top: 12px;
}


/* Title */

.service-card h5 {
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}


/* Make all cards equal height and push image to bottom */

.service-card {
    display: flex;
    flex-direction: column;
}


/* Make the image stay at the bottom */

.service-card img.card-img {
    margin-top: auto;
}
.cardsection{
    position: relative;
}
.cardsection_medilogo{
    position: absolute;
    top: 0;
}

/* why we choose us */


/* why we choose us */


/* whywechooseus */

.whyus {
    width: fit-content;
    /*height: 95vh;*/
    margin: 100px auto;
    background: #eaf7f4;
    /* background-color: #F1F9F6; */
    border-radius: 25px;
    /* padding: 100px 0px; */
    /*height: calc(96vh - (44px + 81.67px));   */
    height: inherit;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.whyuscontainer {
    /* background: #eaf7f4; */
    padding: 40px;
    border-radius: 40px;
}

.whyustoptext h4 {
    font-size: 40px;
    font-weight: 300;
}

.whyustoptext span {
    font-weight: 650;
}

.whyustoptext {
    margin-bottom: 50px;
}

.whyusimage {
    width: 500px;
    height: 300px;
    margin: 0 auto;
}

.whyusimage img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
}

.why-box {
    background: #eac05d;
    padding: 21px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.why-icon {
    background: #134c42;
    color: white;
    font-size: 26px;
    padding: 18px;
    border-radius: 50%;
    margin-right: 20px;
}

.why-text {
    font-size: 15px;
    color: #134c42;
    line-height: 1.5;
    font-weight: 500;
    text-align: justify !important;
}

.whyusright .why-box:nth-child(2),
.whyusright .why-box:nth-child(4) {
    margin-left: 40px;
    padding-left: 25px;
    text-align: justify !important;
}



/* testimonials */

.testimonial {
    text-align: center;
    padding: 50px 15px;
}

.t-img {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    object-fit: cover;
    margin: 18px 0 10px;
    border: 3px solid #fff;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}


/* Fade animation */

.fade {
    opacity: 0;
    transform: translateY(10px);
    transition: all .45s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}


/* Typography */

h2 {
    font-size: 20px;
    font-weight: 500;
    max-width: 700px;
    margin: auto;
    line-height: 1.5;
    color: #333;
}

h4 {
    margin: 8px 0 5px;
    font-size: 19px;
    font-weight: 600;
    color: #222;
}

p {
    margin: 2px 0 5px;
    font-size: 15px;
   
}


/* Gold stars */

.stars {
    margin: 8px 0 15px;
}

.star {
    width: 22px;
    height: 22px;
    fill: #f5b400;
    /* GOLD */
    margin: 0 2px;
}


/* Dots */

.dots {
    margin-top: 10px;
}

.dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    margin: 4px;
    background: #ccc;
    cursor: pointer;
    transition: .3s;
}

.dots button.active {
    background: #000;
}

#t_text {
    font-size: 34px;
    font-weight: 500;
    max-width: 1300px;
    margin: auto;
    line-height: 1.5;
    color: #333;
}

#t_name {
    margin: 14px 0 12px;
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

#t_role {
    margin: 12px 0 5px;
    font-size: 20px;
    color: #555;
}

#t_star {
    width: 38px;
    height: 38px;
    fill: #f5b400;
    margin: 0 2px;
}

.dots button {
    width: 15px;
    height: 15px;
}


/* textimonials end*/


.herosubtitle p {
    font-size: 1rem;
}


/* end */

/* .text-success {
    font-size: 1.5rem;
} */
.text-success {
    font-size: 2.5rem;
}

/* Default: 1 card per row */

/* .cardsection .col {
    flex: 0 0 100%;
    max-width: 100%;
} */

    .cardsection .col {
        flex: 0 0 20%;
        max-width: 20%;
            z-index: 999 !important;
    }
    .card-img {
        height: 120px;
    }

    /* resposive code */
@media (max-width:1710px) {
    .topright-wrapper::before {
        top: -14px !important;
        left: -4px !important;
        width: 6px !important;
        height: 81px !important;
        background-color: var(--brand-green);
        transform: rotate(32deg) !important;
    }
}


@media(max-width:1670px){
         .email,
        .divider {
            display: none;
        }
}


/* >1440px → 5 cards per row */

@media (max-width: 1600px) {
    .cardsection .col {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .card-img {
        height: 120px;
    }
}


/* ≥1440px → 4 cards per row */

@media (max-width:1440px) {
    .cardsection .col {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .card-img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px 12px 0px 0px;
        margin-top: 12px;
    }

    .cardsection {
    height: auto;
}
.whyuscontainer{
    background: #eaf7f4 !important;
    /*padding: 60px 40px;*/
}
/*.whyus {*/
/*    width: fit-content;*/
/*    height: fit-content;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    text-align: center;*/
/*    justify-content: center;*/
/*}*/
}


@media (max-width: 1399px) {
    .consult-text {
        font-size: 1.1rem;
    }
    .consult-btn {
        padding: 16px 40px;
        font-size: 1rem;
    }
    .text-success {
        font-size: 2.2rem;
    }
        .topright-wrapper::before {
        top: -14px !important;
        left: -3px !important;
        width: 6px !important;
        height: 81px !important;
        transform: rotate(26deg) !important;
    }
}

@media (max-width:1199px) {
    .medilink-image {
        width: fit-content;
        margin: 0 auto;
    }
    .text-success {
        font-size: 2rem;
    }
    .medilink-bg-icon {
        top: -88px;
    }
    /* why we choose us */
    .whyustoptext h4 {
        font-size: 31px;
        font-weight: 300;
    }
.whyus {
    /* margin: 70px auto; */
       margin: 30px auto;
}
.whyusimage {
    width: auto;
    height: 300px;
    margin: 0 auto;
}
.why-box {
    padding: 13px;
}
.whyus{
    height: auto;
}
.whyrow{
    row-gap: 30px;
}
 
        .whyustoptext h4 {
        font-size: 40px;
 
    }
    #t_text {
    font-size: 28px;
    font-weight: 500;
    max-width: 900px;
    }
        .topright-wrapper::before {
        top: -14px !important;
        left: -7px !important;
        width: 6px !important;
        height: 81px !important;
        transform: rotate(25deg) !important;
    }
}
@media (max-width: 1199px) {
    .cardsection .col {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
    .card-img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px 12px 0px 0px;
        margin-top: 12px;
    }
}


/* ≥992px → 3 cards per row */

@media (max-width: 992px) {
    .cardsection .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .card-img {
        height: 300px;
    }
    .section-title {
        font-size: 28px;
    }
}



@media (max-width: 991.5px) {
    .herosection {
        height: fit-content;
    }
    .consult-banner {
        position: static;
        bottom: -167px;
        left: 50%;
        transform: none;
        width: 100% 991.2px;
    }
    .consult-banner {
        position: relative;
        top: -47px;
        bottom: 0px;
        left: 0;
    }
    .consult-text {
        padding: 14px 40px;
    }
    .requestlink {
        text-align: center;
    }
    .consult-text,
    .consult-btn {
        padding: 12px 20px;
        font-size: 15px !important;
    }
    .requestlink {
        text-align: center;
    }
    /* medilink */
    .medilink-image {
        width: fit-content;
        margin: 0 auto;
    }
    .medilink-row {
        row-gap: 30px;
    }
    .medilink-bg-icon {
        width: 400;
        margin: 0 auto;
        position: absolute;
        top: -88px;
        left: 45%;
        transform: translateX(-50%);
    }
    .medilink-content {
        width: 100%;
    }

    /* sdfds */
        .whyusimage {
        width: auto;
        height: fit-content;
        margin: 0 auto;
    }

    .cardsetion_medilogo {
        display: none;
    }
}

@media (max-width: 991px) {
    .herosection {
        padding: 60px 0;
        height: fit-content;
        display: flex;
        /* align-items: center;
                        flex-direction: column;
                        text-align: center; */
    }
    .herorow {
        row-gap: 30px;
    }
    .navbar-nav {
        row-gap: 20px;
    }
    .btnnav {
        width: fit-content;
    }
    /* end */
    .medilink-section {
        height: fit-content;
    }
}


/* 🟢 Responsive for tablets & mobile */

@media (max-width: 768px) {
    .consult-box {
        flex-direction: column;
    }
    .consult-text,
    .consult-btn {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        font-size: 18px;
    }
        #t_text {
        font-size: 21px;
        font-weight: 500;
        max-width: 100%;
    }
        .whyustoptext h4 {
        font-size: 31px;
    }
}


/* ≥576px → 2 cards per row */

@media (max-width: 576px) {
    .cardsection .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .card-img {
        height: 300px;
    }
    .cardsection {
        height: fit-content;
        padding: 50px 0px;
        background: #b6e7d4;
        font-family: "Poppins", sans-serif;
        /* margin: 30px 0px; */
    }
    .cardsection {
        padding: 0px;
    }
}

@media (max-width:575px) {
    .maintitle h3 {
        font-size: 2.5rem;
    }
    .herobtn {
        padding: 17px 22px;
    }
    .herosubtitle p {
        font-size: 1.2rem;
    }
    .heroimage {
        margin: 0 auto;
        width: fit-content;
    }
    .herocontent {
        padding-left: 10px;
    }

    /* end */

    .consult-banner {
        position: relative;
        top: 0;
        bottom: 0px;
        left: 0;
    }
    .consult-box {
        display: block;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .consult-btn {
        display: block;
    }
    .medilink-bg-icon {
        top: -54px;
        left: 50%;
    }
    .whyus {
        height: auto;
        margin: 0px;
        border-radius: 0px;
    }
    .testimonial {
        text-align: center;
        padding: 35px 10px 0px;
    }

    .footercontainerfluid {
        padding: 20px !important;
    }

    .whyusright .why-box:nth-child(2),
    .whyusright .why-box:nth-child(4) {
        padding: 13px !important;
    }

    .consult_banner_container {
        padding: 0px !important;
        margin: 0px !important;
    }

    .whyusright .why-box:nth-child(2),
    .whyusright .why-box:nth-child(4) {
        margin-left: 0px;
        padding-left: 40px;
    }

    .why-box {
        display: flex;
        justify-content: center;
        align-items: center;
    }
} /* closes @media */


@media(max-width:470px){
        .whyustoptext h4 {
        font-size: 27px;
    }
    .whyustoptext {
    margin-bottom: 30px ;
}

}

@media(max-width:400px) {
    .herosection {
        padding: 30px 0;
    }
    .maintitle h3 {
        font-size: 2rem;
    }
    .herosubtitle p {
        font-size: 1rem;
    }
    /* end */
    .text-success {
        font-size: 1.5rem;
    }
   .whyustoptext h4 {
        font-size: 24px;
    }
        .why-icon {
        font-size: 34px;
          width: fit-content;
    margin: auto;
        }
        .star {
    width: 15px;
    height: 15px;
 margin: 0px;
}
.dots button {
    width: 10px;
    height: 10px;
}
    .dots button {
        width: 2px;
        height: 2px;
    }
}

@media(max-width:360px){


.why-text {
    font-size: 15px;
    text-align: justify;
}
    .why-box {
        display: block;

    }
    /*    .whyusright .why-box:nth-child(2), .whyusright .why-box:nth-child(4) {*/
    /*    margin-left: 0px;*/
    /*    padding: 0px;*/
    /*}*/
        .why-box {
        padding: 13px !important;
    }
        .whyustoptext h4 {
        font-size: 20px;
    }
    #t_name {
    font-size: 18px;
    }
    #t_role {
    font-size: 13px;
}
}



   /* .hero-btn {
        background: var(--medilink-gold);
        color: #000;
        padding: 12px 28px;
     
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 7px;
    } */


  .hero-btn, .btnarrowstyle{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* color: #fff; */
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 600;
    position: relative;
}
.hero-btn span {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* .hero-btn:hover span {
    transform: translateX(6px);  
    color: #000000;             
} */
.requestlink a{
cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 600;
}

.consult-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
}
.medilink-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.medilink-btn:hover span{
      transform: translateX(6px);  
    color: #ffffff !important;
    cursor: pointer; 
}

.btnarrowstyle:hover span{
   transform: translateX(6px);  
    color: #000000;
    cursor: pointer;
}

.nav-link :active{
    color: green;
}

.why-box {
    transition: all 0.3s ease;
}


.why-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
}