*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f8f8;
}
header div h1{
    font-size: 24px;
    color: #007BFF ;
}
header div a{
    margin-left: 15px;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    background-color: #007BFF  ;
    padding: 10px 15px;
    border-radius: 5px;
}
nav{
    background-color: #007BFF;
    padding: 10px;
    position: sticky;
    top: 0%;
    z-index: 1;
}
nav ul{
    list-style: none;
    display: flex;
    justify-content: center;
    column-gap: 30px;
}
nav ul li a{
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    padding: 8px 12px;
}
nav ul li a:hover{
    background-color: #0056b3;
    border-radius: 4px;
}
.menu-btn{
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    background: none;
    border: none;
}

/* Mobile view */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    header div h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    header div a {
        margin-left: 0;
        margin-right: 10px;
        font-size: 14px;
        padding: 8px 12px;
    }
    nav {
        position: sticky;
        top: 0;
        z-index: 999;
    }
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        column-gap: 0;
        row-gap: 10px;
        width: 100%;
        padding-top: 40px;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li a {
        font-size: 16px;
        padding: 10px;
        width: 100%;
        text-align: center;
    }
    .menu-btn {
        display: block;
    }
}

/* Slideshow styles */
.slideshow-container {
    max-width: 100%;
    /* height: 700px; */
    position: relative;
    margin: auto;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 800px;
    object-fit: cover;
}

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 50px 30px;
    position: absolute;
    top: 40%;
    left: 5%;
    background-color: #f8f8f8;
    /* width: 40%; */
    border-radius: 30px;
    text-align: center;
}
.text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: black;
}
.text h1{
    color: #007BFF;
}
.text p {
    font-size: 18px;
    color: black;
}
.txt-color{
    color: red;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dots {
    text-align: center;
    padding: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
.about {
    display: flex;
    align-items: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    gap: 40px;
    animation: fadeInUp 1s ease-out;
}

.about div:first-child {
    flex: 1;
    text-align: center;
}

.about img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about div:last-child {
    flex: 2;
    animation: slideInRight 1s ease-out 0.5s both;
}

.about h2 {
    font-size: 2.5em;
    color: #007BFF;
    margin-bottom: 20px;
    position: relative;
}

.about h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #007BFF;
    margin-top: 10px;
    animation: growWidth 1s ease-out 1s both;
}

.about p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    animation: fadeIn 1s ease-out 0.7s both;
}

.about p:nth-child(2) {
    animation-delay: 0.9s;
}

.about p:nth-child(3) {
    animation-delay: 1.1s;
}

.about p:nth-child(4) {
    animation-delay: 1.3s;
}

.about p:nth-child(5) {
    animation-delay: 1.5s;
}

/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growWidth {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Mobile slideshow adjustments */
@media (max-width: 768px) {
    .text {
        font-size: 12px;
        padding: 6px 8px;
    }
    .prev, .next {
        padding: 12px;
        font-size: 16px;
    }
    .slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 18px 10px;
    position: absolute;
    top: 5%;
    left: 5%;
    background-color: #f8f8f8;
    width: 40%;
    border-radius: 30px;
}
.text h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: black;
}
.text h1{
    color: #007BFF;
    font-size: 20px;
}
.text p {
    font-size: 18px;
    color: black;
}
 .about{
    display: block;
 }
}

/* Doctors section styles */
.doctors {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.doctors h2 {
    font-size: 2.5em;
    color: #007BFF;
    margin-bottom: 40px;
    position: relative;
}

.doctors h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #007BFF;
    margin: 10px auto 0;
    animation: growWidth 1s ease-out 0.5s both;
}

.doctor-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.doctor-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out both;
}

.doctor-card:nth-child(1) {
    animation-delay: 0.2s;
}

.doctor-card:nth-child(2) {
    animation-delay: 0.4s;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.doctor-image {
    width: 50%;
    margin-left: 25%;
    border-radius:30px ;
    /* height: 250px; */
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 20px;
    text-align: left;
}

.doctor-info h3 {
    font-size: 1.5em;
    color: #007BFF;
    margin-bottom: 10px;
}

.qualification {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.doctor-info ul {
    list-style: none;
    padding: 0;
}

.doctor-info li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
    animation: fadeIn 1s ease-out both;
}

.doctor-info li:nth-child(1) {
    animation-delay: 0.6s;
}

.doctor-info li:nth-child(2) {
    animation-delay: 0.8s;
}

.doctor-info li:nth-child(3) {
    animation-delay: 1s;
}

.doctor-info li:nth-child(4) {
    animation-delay: 1.2s;
}

.doctor-info li:nth-child(5) {
    animation-delay: 1.4s;
}

.doctor-info li:nth-child(6) {
    animation-delay: 1.6s;
}

.doctor-info li:nth-child(7) {
    animation-delay: 1.8s;
}

/* Mobile doctors section */
@media (max-width: 768px) {
    .doctors {
        padding: 30px 15px;
    }
    .doctors h2 {
        font-size: 2em;
    }
    .doctor-cards {
        flex-direction: column;
        gap: 20px;
    }
    .doctor-card {
        max-width: 100%;
    }
    .doctor-info {
        padding: 15px;
    }
    .doctor-info h3 {
        font-size: 1.3em;
    }
}

/* Facilities section styles */
.facilities {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.facilities h2 {
    font-size: 2.5em;
    color: #007BFF;
    margin-bottom: 40px;
    position: relative;
}

.facilities h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #007BFF;
    margin: 10px auto 0;
    animation: growWidth 1s ease-out 0.5s both;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.facility-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out both;
}

.facility-item:nth-child(1) {
    animation-delay: 0.1s;
}

.facility-item:nth-child(2) {
    animation-delay: 0.2s;
}

.facility-item:nth-child(3) {
    animation-delay: 0.3s;
}

.facility-item:nth-child(4) {
    animation-delay: 0.4s;
}

.facility-item:nth-child(5) {
    animation-delay: 0.5s;
}

.facility-item:nth-child(6) {
    animation-delay: 0.6s;
}

.facility-item:nth-child(7) {
    animation-delay: 0.7s;
}

.facility-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.facility-icon {
    width: 300px;
    height: 300px;
    /* margin: 0 aut    o ; */
    margin-left: -13%;
    border-radius: 20px;
    overflow: hidden;
    background-color: #007bff00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.facility-item h3 {
    font-size: 1.5em;
    color: #007BFF;
    margin-bottom: 10px;
}

.facility-item p {
    color: #555;
    line-height: 1.6;
}

/* Mobile facilities section */
@media (max-width: 768px) {
    .facilities {
        padding: 30px 15px;
    }
    .facilities h2 {
        font-size: 2em;
    }
    .facility-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .facility-item {
        padding: 15px;
    }
    .facility-icon {
        width: 300px;
        height: 300px;
        margin-left: 2%;
    }
    .facility-icon img {
        width: 250px;
        height: 250px;
    }
    .facility-item h3 {
        font-size: 1.3em;
    }
}

/* Contact section styles */
#contact {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

#contact h2 {
    font-size: 2.5em;
    color: #007BFF;
    margin-bottom: 40px;
    position: relative;
}

#contact h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #007BFF;
    margin: 10px auto 0;
    animation: growWidth 1s ease-out 0.5s both;
}

#contact form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0px;
    animation: fadeInUp 1s ease-out both;
    background-color: #007BFF;
    padding: 30px;
}

#contact label {
    font-size: 1.1em;
    color: #ffffff;
    text-align: left;
    margin-bottom: 5px;
    display: block;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#contact textarea {
    resize: vertical;
    min-height: 120px;
}

#contact button {
    background-color: #55ec8f;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: center;
}

#contact button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Mobile contact section */
@media (max-width: 768px) {
    #contact {
        padding: 30px 15px;
    }
    #contact h2 {
        font-size: 2em;
    }
    #contact form {
        gap: 15px;
    }
    #contact input,
    #contact textarea {
        padding: 10px;
        font-size: 0.9em;
    }
    #contact button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* Footer styles */
footer {
    background-color: #007BFF;
    color: #ffffff;
    /* padding: 40px 20px; */
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    /* gap: 30px; */
    animation: fadeInUp 1s ease-out both;
}

footer div {
    flex: 1;
    min-width: 250px;
}
footer div:nth-child(3),footer div:nth-child(4){
    margin-left: 0%;
    margin-top: 3%;
}
footer div:nth-child(2){
    margin-left: 5%;
    margin-top: 3%;
}

footer iframe {
    width: 100%;
    max-width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

footer p {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

footer a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 1em;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f8f8f8;
    text-decoration: underline;
}
 footer div:nth-child(4) span{
    font-size: 18px;
 }
 footer div:nth-child(3) a{
    line-height: 1.5;
    font-size: 20px;
 }
 footer div:nth-child(2) a{
    font-size: 20px;
 }
 .Comp{
    text-align: center;
    color: white;
    background-color: #007BFF;
    padding: 5px;
 }
 .Comp a{
    text-decoration: none;
    color: white;
 }
/* Mobile footer */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px;
        gap: 20px;
    }
    footer div {
        min-width: auto;
        width: 100%;
    }
    footer iframe {
        height: 250px;
    }
    footer p {
        font-size: 1.1em;
    }
    footer a {
        font-size: 0.9em;
    }
}

/* Dem1 section styles */
.dem1 {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.dem1 h1 {
    font-size: 2.5em;
    color: #007BFF;
    margin-bottom: 20px;
    position: relative;
}

.dem1 h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #007BFF;
    margin: 10px auto 0;
    animation: growWidth 1s ease-out 0.5s both;
}

.dem1 p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.3s both;
    margin-top: 20px;
}

.dem-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.dem-container > div {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out both;
}

.dem-container > div:nth-child(1) {
    animation-delay: 0.1s;
}

.dem-container > div:nth-child(2) {
    animation-delay: 0.2s;
}

.dem-container > div:nth-child(3) {
    animation-delay: 0.3s;
}
.dem-container > div:nth-child(4) {
    animation-delay: 0.3s;
}


.dem-container > div:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dem-container > div > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dem2, .dem3, .dem4, .dem5, .dem6, .dem7, .dem8{
    font-size: 3em;
    font-weight: bold;
    color: #007BFF;
    margin: 0;
    animation: countUp 2s ease-out forwards;
}

.dem-container span {
    font-size: 2em;
    color: #007BFF;
    font-weight: bold;
}

/* Mobile dem1 section */
@media (max-width: 768px) {
    .dem1 {
        padding: 30px 15px;
    }
    .dem1 h1 {
        font-size: 2em;
    }
    .dem1 p {
        font-size: 1em;
    }
    .dem-container {
        flex-direction: column;
        gap: 20px;
    }
    .dem-container > div {
        min-width: auto;
        padding: 15px;
    }
    .dem2, .dem3, .dem4 {
        font-size: 2.5em;
    }
    .dem-container span {
        font-size: 1.5em;
    }
}
