*{
    padding: 0;
    margin: 0;
    text-transform: capitalize;
}


:root {
  --accent-color: #333;
  --black-color: #000;
  --dark-color: #4C5354;
  --primary-color: #4d7b6b;
  --primary-color-200: #e8f1ec;
  --primary-color-400: #e8f1ed;
  --gray-color: #777F81;
  --bs-gray-300: #DCDCDC;
  --bs-light-rgb: rgba(255, 255, 255, 1);
  --bs-primary-rgb: rgb(77, 122, 107);
  --light-color: #fff;
  --swiper-theme-color: #111 !important;
  --cadet-blue-color: #9AB4B7;

}


:root {
  --body-font: "PT Serif", serif;
  --heading-font: "Open Sans", sans-serif;
}


body::selection{
    background-color: var(--primary-color);
    color: #fff;
}


nav{
    background-color: #fff;
    z-index: 1;
    position: sticky;
    top: 0px;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    height: 80px;
    gap: 150px;
    align-items: center;
}
.list>ul{
    height: 90px;
    align-items: center;
    align-content: center;
    display: flex;
    list-style-type: none;
    justify-content: space-evenly;
    gap: 30px;
}
.list{
    width: 90%;
}

.list>ul>li{
    font-size: 20px;
    font-family: var(--body-font);
}

.btn>button{
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: 0.5s ease-in-out;
    font-weight: 700;
    color: var(--primary-color);
}

.btn>button:hover{
    background-color: var(--primary-color);
    color: #fff;
}

/* responsive navbar */

.fa-bars{
    position: absolute;
    right: 40px;
    font-size: 30px;
    top: 50px;
    color: var(--primary-color);
    display: none !important;
}
.fa-xmark{
    z-index: 9999;
    position: relative;
    left: 48%;
    top: 30px;
    font-size: 26px;
    color: #4d7b6b;
    display: none;
}


@media (max-width:1279px){
    .fa-xmark{
        display: block;
    }
    .fa-bars{
        display: block !important;
    }
    .list>ul{
        flex-direction: column;
        background-color: #fff;
        height: 100vh;
        width: 60%;
    }
    .list{
        display: none;
        top: 0px;
        position:absolute;
        left: 0px;
    }
    .list>ul>li{
        color: var(--primary-color);
        border-bottom: 1px solid #4d7b6b;
    }
}

/* main */
main{
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80vh;
    color: #fff;
    background-size: cover;
    background-image: url(images/banner-image.jpg);
    font-family: var(--heading-font);
}
main>h3{
    font-size: 20px;
}
main>p{
    line-height: 1.6;
    width: 700px;
    font-size: 17px;
    margin: 30px 0px;
}
main>h1{
    font-size: 60px;
    font-family: var(--heading-font);
    width: 700px;
}
.css{
    width: 150px;
    display: inline;
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    border: 2px solid #4d7b6b;
    border-radius: 10px;
    transition: 0.5s ease-in-out;
}
.css:hover{
    color: var(--primary-color);
    background-color: transparent;
}



/* responsive */


@media (max-width: 858px) {
    main {
        background-image: linear-gradient(rgba(0,0,0,0.7)) , url(images/banner-image.jpg);
        text-align: center;
        padding: 20px;
        background-position: center;
    }

    main > h3 {
        font-size: 16px;
    }

    main > h1 {
        font-size: 35px;
        width: 100%; /* Make heading take full width */
    }

    main > p {
        font-size: 15px;
        width: 100%;
        margin: 20px 0;
    }

    .css {
        width: auto; /* Let button fit text */
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* client */
.clients{
    align-items: center;
    padding: 140px 30px;
    gap: 70px;
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
}
.img-1{
    display: none;
}


/* services */
.services{
    background-image: url(images/services-bg.jpg);
    height: 60vh;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #fff;
    font-family: var(--heading-font);
}

.boxes{
    padding: 20px 50px;
    display: flex;
    position: relative;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    bottom: 100px;
}
.box{
    border-radius: 13px;
    text-align: center;
    align-content: center;
    height: 200px;
    background-color: #fff;
    width: 220px;
    padding: 20px;
    position: relative;
    bottom: 0px;
    transition: 0.5s ease-in-out;
    box-shadow: 2px 2px 10px grey;
}
.box>h2{
    font-size: 19px;
    font-family: var(--heading-font);
    font-weight: 600;
    margin: 30px 0px;
}
.box>i{
    color: var(--primary-color);
    font-size: 40px;
}
.box>p{
    font-family: var(--body-font);
}

.box:hover{
    position: relative;
    bottom: 30px;
}





/* book apointment */
.appoint{
    padding: 40px 90px;
}

.appoint>h1{
    text-align: center;
    font-family: var(--heading-font);
    padding: 40px 120px;
    font-size: 40px;
}
.appoint>h1>span{
    color: #4d7b6b;
}
.appoint>form{
    padding: 40px 120px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.input>select,.input>input{
    width: 400px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}
.input>input::placeholder{
    font-size: 17px;
    color: var(--accent-color);
}

.padding{
    padding: 0px 20px;
}

.input>select{
    width: 440px;
}

.input>.css {
    width: 100%;
    padding: 10px 40px;
}


@media (max-width: 900px) {
    .appoint > h1 {
        padding: 20px;
        font-size: 28px;
    }
}



@media (max-width: 647px) {
    .input>.css{
        width: 250px;
        
    }
}

/* clinics */

.cardiology,
.gynecology,
.pathology,
.pediatrics,
.neurology{
    display: none;
}

.neuro{
    padding: 100px 90px;
    background-color: var(--primary-color-400);
    display: flex;
    gap: 60px;
    justify-content: center;
}

.left-neuro>button{
    width: 170px;
    padding: 14px 0px;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 15px;
    font-family: var(--body-font);
    font-weight: 900;
    margin-bottom: 20px;
    border: none;
    transition: 0.5s ease-in-out;
    border-radius: 10px;
}
.left-neuro>button:hover{
    background-color: var(--primary-color);
    color: #fff;
}

.lab>h1{
    font-size: 50px;
    color: var(--accent-color);
    font-family: var(--heading-font);
}
.lab>p{
    margin: 20px 0px;
    font-size: 16px;
    font-family: var(--heading-font);
    line-height: 2;
    color: var(--dark-color);
}
.lab>.a>a{
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 20px;
    font-size: 20px;
}
.a{
    margin-bottom: 20px;
}
.lab>.div>button{
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 40px;
    transition: 0.5s ease-in-out;
}

.lab>.div>button:hover{
    background-color: var(--dark-color);
}



/* responsive  */



@media (max-width: 1121px) {
    .neuro {
        flex-direction: column;
        align-items: center;
        padding: 50px 50px;
        gap: 40px;
    }
    
    .left-neuro {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .left-neuro > button {
        width: auto;
        padding: 12px 20px;
        font-size: 14px;
    }

    .right-neuro {
        text-align: center;
        width: 100%;
    }

    .lab > h1 {
        font-size: 32px;
        text-align: center;
    }

    .lab > p {
        width: 100%;
        font-size: 15px;
        text-align: justify;
    }

    .a {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .lab .div {
        text-align: center;
    }
}




/* counting */

.counting{
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: center;
    line-height: 2;
    background-color: #fff;
    padding: 100px 40px;
}
.num>h2{
    font-size: 40px;
    font-family: var(--heading-font);
    color: var(--primary-color);
}
.num>p{
    font-size: 18px;
    color: var(--dark-color);
}


/* subscribe */

.subs{
    color: #fff;
    gap: 190px;
    padding: 100px 50px;
    justify-content: center;
    align-items: center;
    display: flex;
    background-image: url(images/subscribe-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.left-subs>h3{
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.left-subs>h1{
    font-size: 70px;
    width: 500px;
}
.right-subs>input{
    width: 350px;
    border-radius: 10px 0px 0px 10px;
    border: 2px solid #fff;
    height: 40px;
    padding-left: 20px;
    background-color: transparent;
}
.right-subs>input::placeholder{
    color: #fff;
}

.right-subs>button{
    background-color: var(--primary-color);
    margin-left: -2px;
    border: 1px solid var(--primary-color);
    padding: 14px 30px;
    color: #fff;
    font-weight: 700;
    border-radius: 0px 10px 10px 0px;
}
.right-subs{
    display: flex;
    align-items: center;
}


/* responsive  */


@media (max-width: 1299px) {
    .subs {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 20px;
    }

    .left-subs > h1 {
        font-size: 40px;
        width: 100%;
    }

    .right-subs {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .right-subs > input {
        width: 100%;
        max-width: 400px;
        border-radius: 10px;
    }

    .right-subs > button {
        width: 100%;
        max-width: 400px;
        border-radius: 10px;
        margin-left: 0;
    }
}





/* footer */



footer{
    display: flex;
    justify-content: center;
    gap: 70px;
    padding: 90px 90px;
}
.foo>ul{
    list-style-type: none;
}
.foo{
    width: 300px;
}
.foo>p{
    margin: 30px 0px;
}
.i{
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.i>i{
    color: var(--primary-color);
    font-size: 17px;
}
.icon>i{
    font-size: 20px;
    color: var(--primary-color);
}

footer>.logo>img{
    margin-bottom: 30px;
}

.foo>h2{
    color: var(--primary-color);
    font-size: 30px;
    font-family: var(--heading-font);
    margin-bottom: 20px;
}
.foo>h2:hover{
    color: var(--primary-color);
}
.foo>ul{
    font-size: 20px;
    line-height: 1.5;
}
.foo>ul>li:hover{
    color: var(--primary-color);
}


/* footer */
.footer{
    font-size: 20px;
    font-family: var(--heading-font);
    display: flex;
    justify-content: space-between;
    padding: 30px 70px;
}



/* responsive  */


@media (max-width: 1334px) {
    footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px; /* reduced gap so it fits better */
        padding: 50px 30px;
    }

    .foo {
        width: 250px; /* shrink each section */
        /* center content on smaller screens */
    }

    .foo .logo img {
        max-width: 180px;
        height: auto;
    }

    .i {
        line-height: 1.4;
        flex-wrap: wrap;
    }

    .icon {
        display: flex;
        
        gap: 15px;
        margin-top: 10px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }
}