@media screen and (min-width: 300px) and (max-width: 600px) {
    .main {
        width: 100%;
        height: 100%;
       
    }

    .head {
        background-color: #00b9b7;
        height: auto;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
      
    }

    .head a {
        color: white;
        margin-left: 10px;
        margin-top: 10px;
        font-size: 1;
       
    }

    .head a i {
        font-size: 25px;
    }

    .carousal {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    
    }

    .carousal1 {
        width: 100%;
        height: 300px;
        background-color: #003e73;
     
    }


    .carousal1 h1 {
        margin-top: 30px;
        font-size: 28px;
        color: white;
        margin-left: 20px;
    }

    .carousal1 img {
        margin-left: 40px;
        margin-top: 50px;
    }

    .carousal1 a {
        color: white;
        font-size: 16px;
        font-weight: bold;
        margin-left: 10px;
    }

    .direction {
        margin-top: 50px;
    }



    .carousal2 {
        width: 100%;
        height: 100%;
       
    }

    .carousal2 img {
        width: 100%;
        height: 100%;
    }



    .staff {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        margin-top: 10px;
       
    }

    .staff1 {
        width: 100%;
        height: 600px;
        margin-left: 0px;
        background-color: #003e73;
       
    }

    .staff1 h1 {
        margin-top: 50px;
        margin-left: 20px;
        color: white;
    }

    .staff1 p {
        margin-left: 20px;
        color: white;
        margin-top: 20px;
    }

    .staff2 {
        width: 100%;
        height: auto;
        margin-left: 0px;
       
    }

    .staff1 img {
        width: 100%;
        margin-top: 125px;
    }

    .doctor {
        width: 100%;
        height: auto;
        flex-direction: column;
        display: flex;
        margin-top: 10px;
      
    }

    .doctor2 {
        width: 100%;
        height: 300px;
        margin-left: 0px;
        margin-top: 15px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 2px 3px 5px -2px lightgray;
       
    }

    .doctor2 img {
        width: 100%;
        height: 80%;
    }

    .doctor2 h1 {
        font-size: 15px;
        text-align: center;
    }

    .doctor2 p {
        margin-left: 20px;
        margin-top: 06px;
        font-size: 15px;
        text-align: center;
    }

    .treat {
        width: 100%;
        height: auto;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        
    }

    .treat2 {
        width: 100%;
        height: 180px;
        margin-left: 0px;
        margin-top: 15px;
        border-radius: 10px;
        background-color: #f7f7f7;
    }

    .treat2 h3 {
        margin-left: 15px;
        margin-top: 15px;
    }

    .treat2 p {
        margin-left: 15px;
        margin-top: 10px;
    }

    .treat a {
        margin-left: 15px;
        color: #00b9b7;
        padding-top: 15px;
        font-weight: bold;
    }

    .treat2:hover {
        background-color: #003e73;
        color: white;
    }


    .footer {
        width: 100%;
        height: auto;
        margin-top: 100px;
        background-color: #003e73;
        display: flex;
        flex-direction: column;
    }

    .foot {
        width: 100%;
        height: 100%;

    }

    .foot h1 {
        margin-top: 30px;
        font-size: 28px;
        text-align: center;
        color: white;
    }

    .foot p {
        text-align: justify;
        color: white;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 30px;
    }

    .foot p a {
        color: white;
        margin-left: 70px;
    }

    .foot button {
        width: 180px;
        height: 50px;
        margin-left: 40px;
        margin-top: 50px;
        border: none;
        font-weight: bold;
        font-size: 20px;
        border-radius: 05px;
    }

    .foot button:hover {
        background-color: black;
        color: white;
    }

    .foot2 a {
        margin-left: 15px;

    }

    .discribe {
        width: 100%;
        height: 60px;
        background-color: #003e73;
        text-align: center;
        color: white;
        padding-top: 10px;
    }
}




@media screen and (min-width: 601px) and (max-width: 1300px){
    .main {
        width: 1300px;
        height: 100%;
    
    }
    
    .head {
        background-color: #00b9b7;
        height: 50px;
        width: 100%;
        display: flex;
    }
    
    .head a {
        color: white;
        margin-left: 40px;
        margin-top: 10px;
    }
    
    .head a i {
        font-size: 25px;
    }
    
    
    
    .carousal {
        width: 100%;
        height: 400px;
        display: flex;
    }
    
    .carousal1 {
        width: 50%;
        height: 100%;
        background-color: #003e73;
    }
    
    
    .carousal1 h1 {
        margin-top: 60px;
        font-size: 28px;
        color: white;
        margin-left: 50px;
    }
    
    .carousal1 img {
        margin-left: 40px;
        margin-top: 50px;
    }
    
    .carousal1 a {
        color: white;
        font-size: 20px;
        font-weight: bold;
        margin-left: 50px;
    }
    
    .direction {
        margin-top: 50px;
    }
    
    
    
    .carousal2 {
        width: 50%;
        height: 100%;
    
    }
    
    .carousal2 img {
        width: 100%;
        height: 100%;
    }
    
    .About1{
        width: 100%;
        height: auto;
       
    }
    
    .About2 h1 {
        font-size: 36px;
        color: #333;
        margin-bottom: 20px;
        margin-left: 40px;
    }
    
    .About2 p {
        font-size: 17px;
        color: #555;
        line-height: 1.6;
        margin-bottom: 20px;
        margin-left: 20px;
        text-align: justify;
        margin-left: auto;
        margin-right: auto;
        width: 95%;
       
    }
    
    .About2 a {
        display: inline-block;
        font-size: 18px;
        color: #007bff;
        text-decoration: none;
        margin-top: 20px;
        margin-left: 40px;
      
    }
    
    .About2 a:hover {
        text-decoration: underline;
    }
    
    .beds {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 40px;
    }
    
    .beds2 {
        flex: 1;
        min-width: 200px;
        text-align: center;
        padding: 20px;
        background: #f1f1f1;
        margin: 10px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
    
    .beds2 img {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .beds2 h1 {
        font-size: 28px;
        color: #333;
        margin-bottom: 10px;
        margin-left: 20px;
    }
    
    .beds2 p {
        font-size: 18px;
        color: #777;
       text-align: center;
    }
    
    
    
    .staff {
        width: 100%;
        height: 600px;
        display: flex;
    }
    
    .staff1 {
        width: 28%;
        height: 600px;
        margin-left: 10px;
        background-color: #003e73;
    }
    
    .staff1 h1 {
        margin-top: 50px;
        margin-left: 20px;
        color: white;
    }
    
    .staff1 p {
        margin-left: 20px;
        color: white;
        margin-top: 20px;
    }
    
    .staff2 {
        width: 70%;
        height: 600px;
        margin-left: 10px;
    }
    
    .staff1 img {
        width: 100%;
        margin-top: 125px;
    }
    
    .doctor {
        width: 100%;
        height: 290px;
    
        display: flex;
        margin-top: 10px;
    }
    
    .doctor2 {
        width: 23%;
        height: 290px;
    
        margin-left: 15px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 2px 3px 5px -2px lightgray;
    }
    
    .doctor2 img {
        width: 100%;
        height: 80%;
    }
    
    .doctor2 h1 {
        font-size: 15px;
    }
    
    .doctor2 p {
        margin-left: 20px;
        margin-top: 06px;
        font-size: 15px;
    }
    
    .treat {
        width: 100%;
        height: 150px;
        margin-top: 30px;
        display: flex;
    }
    
    .treat2 {
        width: 30%;
        height: 150px;
        margin-left: 30px;
        border-radius: 10px;
        background-color: #f7f7f7;
    }
    
    .treat2 h3 {
        margin-left: 15px;
        margin-top: 15px;
    }
    
    .treat2 p {
        margin-left: 15px;
        margin-top: 10px;
    }
    
    .treat a {
        margin-left: 15px;
        color: #00b9b7;
        padding-top: 15px;
        font-weight: bold;
    }
    
    .treat2:hover {
        background-color: #003e73;
        color: white;
    }
    
    
    .footer {
        width: 100%;
        height: 500px;
        margin-top: 100px;
        background-color: #003e73;
        display: flex;
    }
    
    .foot {
        width: 25%;
        height: 100%;
    
    }
    
    .foot h1 {
        margin-top: 30px;
        font-size: 28px;
        text-align: center;
        color: white;
    }
    
    .foot p {
        text-align: justify;
        color: white;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 30px;
    }
    
    .foot p a {
        color: white;
        margin-left: 70px;
    }
    
    .foot button {
        width: 180px;
        height: 50px;
        margin-left: 40px;
        margin-top: 50px;
        border: none;
        font-weight: bold;
        font-size: 20px;
        border-radius: 05px;
    }
    
    .foot button:hover {
        background-color: black;
        color: white;
    }
    
    .foot2 a {
        margin-left: 15px;
    
    }
    
    .discribe {
        width: 100%;
        height: 30px;
        background-color: #003e73;
        text-align: center;
        color: white;
    }
    
    
    
    
    /* treatmetn pages*/
    
    
    .treatment {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin: 20px auto;
        max-width: 1200px;
        height: auto;
        padding: 20px;
        flex-direction: column;
    }
    .treatment h1 {
        color: #333;
        font-size: 2.5em;
        margin: 0 0 10px;
        text-align: center;
    }
    .treatment p {
        color: #555;
        font-size: 1.1em;
        line-height: 1.6;
        margin: 10px 0;
        text-align: justify;
    }
    .treatment ul {
        color: #555;
        font-size: 1.1em;
        line-height: 1.6;
        list-style-type: disc;
        margin: 10px 0 10px 20px;
    }
}