@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Righteous&display=swap');

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body{
    height: 100vh;
}

li{
    list-style: none;
}

a{
    text-decoration: none;
    color:#fff;
    font-size: 1rem;
}

a:hover{
    color: orange;
}

/*HEADER*/

header {
    position: relative;
    padding: 0 2rem;
    background-color: black;
  }

  .navbar {
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar .logo a {
    font-size: 1.5rem; /* fixed spacing */
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-left: 8px;
  }

  .navbar .links {
    display: flex;
    gap: 2rem;
  }

  .navbar .links a {
    color: #fff;
    text-decoration: none;
  }

  .navbar .toggle_btn {
    color: #fff;
    font-size: 1.5rem; /* fixed spacing */
    cursor: pointer;
    display: none;
  }

  .action_btn {
    background-color: orange;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
  }

  .action_btn:hover {
    transform: scale(1.05);
    color: #fff;
  }

  .action_btn:active {
    transform: scale(0.95);
  }

  /* Dropdown Menu */
  .dropdown_menu {
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 20;
  }

  .dropdown_menu.open {
    height: 240px;
  }

  .dropdown_menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dropdown_menu a {
    color: #fff;
    text-decoration: none;
  }

  .dropdown_menu .action_btn {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .navbar .links,
    .navbar .action_btn {
      display: none;
    }

    .navbar .toggle_btn {
      display: block;
    }
  }

  @media (min-width: 769px) {
    .dropdown_menu {
      display: none;
    }
  }

/* 
header{
    position: relative;
    padding: 0 2rem;
    background-color: black;
}

.navbar{
    width:100%;
    height:60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between  ;
}

.navbar .logo a{
    font-size: 1.5 rem;
    font-weight: bold;
}

.navbar .links{
    display: flex;
    gap: 2rem;
}

.navbar .toggle_btn{
    color: #fff;
    font-size: 1.5 rem;
    cursor: pointer;
    display: none;
}

.action_btn{
    background-color: orange;
    color:#fff;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
}

.action_btn:hover{
    scale:1.05;
    color:#fff;
}

.action_btn:active{
    scale: 0.95;
}


/* Dropdown Menu */
.dropdown_menu {
    position: absolute;
    right: 2rem;
    top: 60px;
    max-height: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    z-index: 20;
  }
  
  .dropdown_menu.open {
    max-height: 500px; /* enough to fit all items */
    opacity: 1;
    transform: translateY(0);
  }
  

  .dropdown_menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Animate items when menu is open */
  .dropdown_menu.open li {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Staggered delay effect */
  .dropdown_menu.open li:nth-child(1) { transition-delay: 0.05s; }
  .dropdown_menu.open li:nth-child(2) { transition-delay: 0.1s; }
  .dropdown_menu.open li:nth-child(3) { transition-delay: 0.15s; }
  .dropdown_menu.open li:nth-child(4) { transition-delay: 0.2s; }
  .dropdown_menu.open li:nth-child(5) { transition-delay: 0.25s; }
  

.dropdown_menu .action_btn{
    width: 100%;
    display: flex;
    justify-content: center;
}
 */

/* Responsive Design */
@media(max-width : 992px){
    .navbar .links,
    .navbar .action_btn{
        display: none;
    }

    .navbar .toggle_btn{
        display: block;
    }

    .dropdown_menu{
        display: block;
    }
}


@media(max-width : 576px){
    .dropdown_menu{
        left : 2rem;
        width: unset;
    }

}


/* Slider */

.container{
    width:100%;
    height: 60vh;
}

.slides{
    height: 100%;
    width: 100%;
}

.slides::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 9;
}


.slides img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img_overlay{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    z-index: 11;
}

.img_overlay p{
    font-size: 2.5rem;
}

.img_overlay h2{
    font-size: 4.5rem;
    color: #2ecc71;
    letter-spacing: 5px;
}

.img_overlay h3{
    font-size: 3.5rem;
    color: #2ecc71;
    letter-spacing: 5px;
}


.img_overlay a{
    text-decoration: none;
    background: #2ecc71;
    color:#fff;
    padding: 0.8rem 2rem;
    display: inline-block;
    margin-top: 2rem;
    border-radius: 5px;
}

.img_overlay a:hover{
    
}

.slider-btn{
    background-color: rgba(0,0,0,0.6);
    padding:2rem;
    color:#fff;
    border-radius: 50%;
    height: 0.5rem !important;
}

.slider-btn::after{
    color:#fff;
}

.swiper-button-next{
    margin-right:50px;
    height: 10px !important;
    font-size: 10px !important;
}

.swiper-button-prev{
    margin-left:50px;
}

@media(max-width:992px){
    .swiper-button-next{
        margin-right:20px;
    }
    
    .swiper-button-prev{
        margin-left:20px;
    }

    .img_overlay p{
        font-size: 2rem;
    }
    
    .img_overlay h2{
        font-size: 3.5rem;
        color: #2ecc71;
        letter-spacing: 5px;
    }
    
    .img_overlay h3{
        font-size: 2.5rem;
        color: #2ecc71;
        letter-spacing: 5px;
    }

    .img_overlay a{
        text-decoration: none;
        background: #2ecc71;
        color:#fff;
        padding: 0.6rem 1rem;
        display: inline-block;
        margin-top: 2rem;
        border-radius: 5px;
    }
}

@media(max-width:768px){
    .swiper-button-next{
        margin-right:10px;
    }
    
    .swiper-button-prev{
        margin-left:10px;
    }

    .img_overlay p{
        font-size: 1rem;
    }
    
    .img_overlay h2{
        font-size: 2.5rem;
        color: #2ecc71;
        letter-spacing: 5px;
    }
    
    .img_overlay h3{
        font-size: 1.5rem;
        color: #2ecc71;
        letter-spacing: 5px;
    }

    .img_overlay a{
        text-decoration: none;
        background: #2ecc71;
        color:#fff;
        padding: 0.6rem 1rem;
        display: inline-block;
        margin-top: 2rem;
        border-radius: 5px;
    }
}


@media(max-width:600px){
    .slider-btn{
        visibility: hidden;
    }
}


/* Hero Section */

.hero{
    margin-top: 50px;
    width:80%;
    margin-left:auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 50px;
}

.hero h1{
    margin-bottom: 10px;
    font-size: 45px;
    color:dodgerblue;  
    font-family: "Alegreya", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;   
}

.hero p{
    margin-bottom: 7px;
    letter-spacing: 0.5px;
    font-family: "Alegreya", serif;
    font-size: 17px;
}

/* Services */

.services{
    padding-top: 80px;
    width:100%;
    margin-left:auto;
    margin-right: auto;
    text-align: center;
    background-color: rgba(255,228,196,0.3);
}

.service-title{
    width: 75%;
    margin: auto;
    text-align: left;
}

.service-title h1{
    margin-bottom: 10px;
    font-size: 60px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: capitalize;
    color:dodgerblue;  
    font-family: "Alegreya", serif;
  font-optical-sizing: auto;
  font-style: normal;
  text-decoration: underline;   
}



:root{
    --first-color: hsl(82,60%,28%);
    --title-color: hsl(0,0,15%);
    --text-color: hsl(0,0,35%);
    --body-color: hsl(0,0,95%);
    --container-color: rgb(255,255,255);

    --body-font : "Poppins",sans-serif;
    --h2-font-size: 1.25rem;
    --small-font-size: .813 rem;
}

.cards-section{
    
    display: grid;
    place-items: center;
    margin-inline: 1.5rem;
    padding-block: 5rem;
}

.cards-section img{
    display:block;
    max-width: 100%;
    height: auto;
}

.card__container{
    display: grid;
    row-gap: 3.5rem;
}

.card__article{
    position: relative;
    overflow: hidden;
}

.card__img{
    width:400px;
    border-radius: 1.5rem;
}

.card__data{
    width:350px;
    background-color: var(--container-color);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    border-radius: 1rem;
    position: absolute;
    bottom: -10rem;
    left:0;
    right:0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
}


.card__description{
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: .25rem;
}

.card__title{
    font-size: var(--h2-font-size);
    font-weight: 500;
    color:var(--title-color);
    margin-bottom: .75rem;
    position: absolute;
    top:50%;
    text-align: center;
    left:50%;
    transform: translate(-50%,-50%);
    background-color: rgba(255,255,255,0.8);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    border-radius: 1rem;
}

.card__button{
    text-decoration: none;
    font-size: var(--small-font-size);
    font-weight: 500;
    color:var(--first-color);
    margin-top: 10px;
    display: inline-block;
}

.card__button:hover{
    text-decoration: underline;
}

.card__article:hover .card__data{
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}


.card__article:hover .card__title{
    opacity: 0;
    transition: opacity 1s;
}

.card__article:not(:hover) .card__title{
    opacity: 1;
    transition: opacity 1s;
}

.card__article:hover{
    animation: remove-overflow 2s forwards;
}

.card__article:not(:hover){
    animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data{
    animation: remove-data 1s forwards;
}

@keyframes show-data{
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow{
    to{
        overflow:initial
    }
}


@keyframes remove-data{
    0%{
        transform: translateY(-7rem);
    }
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(.5rem);
    }
}


@keyframes show-overflow{
    0%{
        overflow:initial;
        pointer-events: none;
    }
    50%{
        overflow: hidden;
    }
}

.all-services a:active,.all-services a:visited, .all-services a{
    color: #2ecc71;
}

.all-services a:hover{

}

.all-services{
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    column-gap: 0.6rem;
    margin:0 50px 0 50px;
    font-size: 24px;
}


.all-services:before,.all-services:after{
    content: "";
    height: 2px;
    display: block;
    background-color: black;
}


/* Responsive Cards */

@media screen and (max-width: 340px){
    .cards-section{
        margin-inline: 1rem;
    }

    .card__data{
        width:250px;
        padding: 1rem;
    }
}

@media screen and (min-width:768px) {
    .card__container{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem  ;
    }
}

@media screen and (min-width:1120px) {

    .card__container{
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Clients Testimonials */


.testimonial-area{
    padding-top: 80px;
    width:100%;
    padding-bottom: 80px;
    background-color: #8a6bff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
}

.testimonial-area .testimonial-container{
    max-width: 1140px;
    width:100%;
    margin: auto;
    padding: 0 15px;
}

.testimonial-area .testimonial-container .sec-title{
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 15px;
}

.testimonial-area .testimonial-container .sec-title:after{
    content: '';
    position: absolute;
    left:0;
    bottom: 0;
    width:100px;
    height: 3px;
    background: #fff;
}

.testimonial-area .testimonial-container .sec-title h2{
    font-size: 60px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: capitalize;
    color:#fff;
}

.testimonial-area .testimonial-container .sec-title p{
    font-size: 18px;
    line-height: 28px;
    color:#fff;
}
    

.testimonial-area .owl-carousel{
    overflow: hidden;
    padding: 0 20px;
    margin: 0 -40px;
    padding-right: 40px;
}

.owl-carousel .owl-stage-outer{
    padding: 30px 50px;
    margin-left: -35px;
    width: calc(100% +100px);
}

.single-testimonial{
    border: 7px solid #fff;
    text-align: center;
    border-radius: 45px;
    position: relative;
    z-index: 20;
}

@media screen and (min-width: 340px){
    .single-testimonial{
        padding-bottom: 30px;
    }
    
}

@media screen and (min-width:768px) {
    .single-testimonial{
        padding-bottom: 10px;
    }
}



.single-testimonial p{
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    padding: 50px;
    padding-bottom: 30px;
    position: relative;
    z-index:30;
}

.client-info{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-bottom: 50px;
}

.client-info .client-details h6{
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.client-info .client-details span{
    display: inline-block;
    color:#fff;
    font-size: 13px;
}

.client-info .client-pic{
    padding-right: 15px;
}

.client-info .client-pic img{
    width: 30%;
    border-radius: 50px;
}


.owl-dots{
    text-align: center;
    margin-top: 50px;
}

.owl-dots button{
    background-color: #fff !important;
    width:15px;
    height: 15px;
    border-radius: 26px;
    margin: 0 5px;
    transition: 0.3s;
}

.owl-dots button.active{
    width:30px;
}

.single-testimonial:before{
    content: '\f10d';
    font-family: FontAwesome;
    position: absolute;
    color:#fff;
    font-size: 80px;
    left:-35px;
    top:-35px;
    background-color: #8a6bff;
    width: 126px;
    height: 100px;
}

.single-testimonial:after{
    content: '\f10e';
    font-family: FontAwesome;
    position: absolute;
    color:#fff;
    font-size: 80px;
    right:-35px;
    bottom:-35px;
    background-color: #8a6bff;
    width: 126px;
    height: 100px;
}

/* Testimonials Ends here */

.our-services{
    background-color: rgba(255,228,196,0.3);
    padding-bottom: 80px;
    padding-top: 30px;
}

.heading{
    background-image: url('./images/ourservices.png');
    width:100%;
    height: 300px;
    background-size: cover;
    position: relative;
}

.service-overlay{
    border-image: 
    linear-gradient(90deg,rgba(43, 49, 51, 0.8) 0%, rgba(228, 240, 232, 0.8) 0%, rgba(84, 84, 62, 0.8) 100%)
        fill 1;
}

.heading > h1{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    text-decoration: underline;
    font-size: 65px;
    color:black;  
    font-family: "Alegreya", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

@media screen and (min-width: 340px){
    .heading > h1{
        font-size: 50px;
    }
    
}

@media screen and (min-width:768px) {
    .heading > h1{
        font-size: 65px;
    }
}



.our-services .service{
    position: relative;
    width:70%;
    padding: 30px;
    border-radius: 15px;
    margin: auto;
    background-color: #fff;
    box-shadow: 0px 15px 15px rgba(0,0,0,0.6);
    margin-bottom: 70px;
    
}

.our-services .service h1{
    margin-bottom: 25px;
} 

.our-services .service .circle{
    position: relative;
    margin-right: 40px;
}

.our-services .service .circle{
    width:120px;
    height: 120px;
    overflow: hidden;
    border-radius: 50%;
    float: left;
    object-fit: cover;
    background-size: cover;
    shape-outside: circle();
}

.our-services .service p{
    letter-spacing: 1px;
}

@media screen and (min-width: 340px){
    .our-services .service p{
        font-size: 18px;
    }

    .our-services .service h1{
        font-size: 21px;
    }
    
}

@media screen and (min-width:768px) {
    .our-services .service p{
        font-size: 20px;
    }

    .our-services .service h1{
        font-size: 26px;
    }
    
}

@media screen and (min-width:1120px) {
    .our-services .service p{
        font-size: 24px;
    }
    
}


.circle1{
    background: url('images/orthopedic.png');
}

.circle2{
    background: url('images/corporate.png');
}


.circle3{
    background: url('images/paediatric.png');
}

.circle4{
    background: url('images/neuro.jpeg');
}

.circle5{
    background: url('images/post-operative.jpeg');
}

.circle6{
    background: url('images/prenatal.jpeg');
}

.circle7{
    background: url('images/homevisit.jpeg');
}

.circle8{
    background: url('images/cardiac.jpeg');
}

.circle9{
    background: url('images/specialied.jpeg');
}

.circle10{
    background: url('images/sports.png');
}

.circle11{
    background: url('images/teleconsult.png');
}

.circle12{
    background: url('images/counselling.png');
}

.circle13{
    background: url('images/women.png');
}

.special{
    margin-bottom: 15px;
}

.special span{
    font-weight: 700;
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: auto;
  }

  .form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
  }

  .form-group input, 
  .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
  }

  .submit-btn:hover {
    background: #0056b3;
  }

  @media screen and (min-width: 340px){
    .form-container{
        width: 70%;
    }
}

@media screen and (min-width:768px) {
    .form-container{
        width: 60%;
    }
}

@media screen and (min-width:1120px) {
    .form-container{
        width: 40%;
    }
}


footer{
    background-color: rgba(0,0,0,0.8);
    padding: 25px;
    text-align: center;
    color: #fff;
}


.popup-container {
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    position: absolute;
    top:0;
    left:0;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    z-index: 9999;
}

.myPopup{
    visibility: visible;
}

.closemyPopup{
    visibility: hidden;
}

.popup-close{
    padding: 10px 60px;
     background: #fff;
     border:0;
     outline: none;
     cursor: pointer;
     font-size: 22px;
     font-weight: 500;
     border-radius: 30px;
}

.popup{
    width:400px;
    background-color: #fff;
    border-radius: 6px;
    position: absolute;
    top:0;
    left:50%;
    transform: translate(-50%,-50%) scale(0.1);
    
    padding: 0 30px 30px;
    color:#333;
    visibility: hidden;
    transition: transform 0.5s, top 0.5s;
}

.open-popup{
    visibility: visible;
    top:50%;
    transform: translate(-50%,-50%) scale(1);
}

.close-popup{
    visibility: hidden;
    top:0;
    transform: translate(-50%,-50%) scale(0.1);
}

.popup img{
    margin-top: -50px;
}

.popup button{
    width: 100%;
    margin-top: 20px;
    padding:10px 0;
    background: #CC474B;
    color:#fff;
    border:0;
    outline:none;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: 0 5px 5px rgba(0,0,0,0.2);

}

.popup p{
    font-size: 24px;
    margin-bottom: 20px;
}

.popup a{
    font-size: 22px;
    color:black
}

.popup a:hover{
    font-size: 22px;
    color:red;
}

.about-banner{
    background-image: url('images/img2.jpg'); 
    background-position: center; 
    height: 300px; 
    background-size: cover; 
    position: relative;
}

.about-overlay{
    border-image: 
    linear-gradient(90deg,rgba(43, 49, 51, 0.8) 0%, rgba(228, 240, 232, 0.8) 0%, rgba(84, 84, 62, 0.8) 100%)
    fill 1;
}

.about-banner h1{
    position: absolute; 
    left: 50%; 
    top:50%; 
    transform: translate(-50%,-50%);
    font-size: 50px;
}

.aboutus-content{
    width:80%;
    margin:80px auto 20px auto;
}

.chooseus,.doctor{
    box-shadow: 2px 5px 5px rgba(0,0,0,0.2);
    padding: 40px 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    background-color: #fff;
}

.chooseus h1,.doctor h1{
    font-size: 30px;
    text-decoration: underline;
    margin-bottom: 40px;
}

.chooseus p,.doctor p{
    font-size: 20px;
    line-height: 30px;
}