#about,#contact,.service-section,h2{text-align:center}
body{margin:0;font-family:Arial,sans-serif}
h2{margin-bottom:20px}section{padding:40px}
nav{display:flex;justify-content:space-between;align-items:center;background-color:#07f;padding:15px;position:relative;z-index:10}
.logo{font-size:1.5rem;color:#fff}
.nav-links{list-style:none;display:flex;gap:20px}
.nav-links li{display:inline}
.nav-links a{color:#fff;text-decoration:none;font-size:1rem}
.hamburger{display:none;flex-direction:column;cursor:pointer}
.bar{width:25px;height:3px;background-color:#fff;margin:4px 0}
#home{position:relative;height:90vh;display:flex;justify-content:center;align-items:center;color:#fff}
#background-video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:-1}
#home h1{font-size:3rem}
.service-section{padding:40px;background-color:#f4f4f4}
.service-section h2{font-size:2.5rem;margin-bottom:20px}
.service-cards-container{display:flex;scroll-behavior:smooth;display:flex;overflow-x:auto;scroll-behavior:smooth;padding-bottom:20px}
.service-card{flex:0 0 auto;width:300px;margin-right:20px;background-color:#fff;border-radius:8px;box-shadow:0 4px 10px rgba(0,0,0,.1);padding:15px;transition:transform .3s}
.doctor-card,.map-card{box-shadow:0 4px 8px rgba(0,0,0,.1);text-align:center}
.service-card:hover{transform:translateY(-10px)}
.service-card video{width:100%;border-radius:8px}
.service-card h3{font-size:1.5rem;margin:10px 0}
.doctor-card img,.map-card h3{margin-bottom:10px}
.service-card p{font-size:1rem;color:#666}
.service-cards-container::-webkit-scrollbar{height:8px}
.service-cards-container::-webkit-scrollbar-thumb{background-color:#07f;border-radius:4px}
.doctors-section{background-color:#f9f9f9;padding:60px 20px}
.doctor-cards-container{display:flex;justify-content:space-around;flex-wrap:wrap}
.doctor-card{background-color:#fff;border-radius:10px;padding:20px;margin:10px;max-width:300px}
.doctor-card img{width:100px;height:100px;border-radius:50%;align-items: center;}
.map-card,.map-card iframe{border-radius:10px}
@media (max-width:768px){.nav-links{display:none;flex-direction:column;position:absolute;top:60px;right:0;background-color:#07f;width:100%;text-align:center;transition:.3s ease-in-out}
.hamburger,.nav-links.active{display:flex}
.nav-links a{padding:15px;width:100%;display:block}
.service-card{width:250px}}
@media (max-width:480px){
    .service-card{width:200px}}

    .branch-section,.testimonials-section{background-color:#f9f9f9;padding:60px 20px;text-align:center}

.map-cards-container{display:flex;overflow-x:auto;padding:20px 0;scrollbar-width:thin}
.map-card{background-color:#fff;padding:20px;margin-right:20px;min-width:300px}
.map-card:last-child{margin-right:0}
.testimonial-controls{display:flex;justify-content:center;margin-top:20px}
.testimonial-controls button{padding:10px 15px;margin:0 10px;border:none;border-radius:5px;background-color:#007bff;color:#fff;cursor:pointer;transition:background-color .3s}
.testimonial-controls button:hover{background-color:#0056b3}
.footer{background-color:#676565;color:#fff;padding:20px 0;text-align:center}
.footer-content{max-width:1200px;margin:0 auto;padding:0 20px}
.social-media{margin-top:10px}
.social-media a{color:#fff;margin:0 15px;font-size:24px;transition:color .3s}
.social-media a:hover{color:#007bff}
.testimonials-section {
    background-color: #f9f9f9; 
    padding: 60px 20px;
    text-align: center;
}

.testimonial-container {
    position: relative;
    overflow: hidden; 
    max-width: 600px; 
    margin: 0 auto; 
}

.testimonial {
    display: none; 
    transition: opacity 0.5s ease-in-out;
    text-align: center; 
    opacity: 0; 
}

.testimonial.active {
    display: block; 
    opacity: 1; 
}

.testimonial-image {
    border-radius: 50%; 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    margin-bottom: 15px; 
    border: 2px solid #007bff; 
}

.testimonial p {
    font-style: italic; 
    margin: 10px 0; 
}

.testimonial cite {
    display: block; 
    margin-top: 10px; 
    color: #555; 
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-controls button {
    padding: 10px 15px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-controls button:hover {
    background-color: #0056b3; 
}
/* Styling for the video background */
.background-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensure video doesn't overflow */
    z-index: -1; /* Make sure the video is behind content */
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.2; /* Reduce opacity to 50% */
    z-index: -1; /* Keeps it behind the content */
}

.content {
    position: relative;
    z-index: 1; /* Bring the content in front of the video */
    color: rgba(0, 0, 255, 0.786); /* Ensure content text is readable */
    padding: 20px;
}
/* Background video container */
.background-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Background video styling with reduced transparency */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    z-index: -1;
}

/* Foreground content styling */
.content {
    position: relative;
    z-index: 1;
    color: black; /* Foreground color changed to black */
    padding: 60px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

/* Style for heading */
.content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInDown 1.5s ease-in-out; /* Animation */
}

/* Style for paragraph */
.content p {
    font-size: 24px;
    margin-bottom: 20px;
    animation: fadeInUp 1.5s ease-in-out; /* Animation */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Slight text shadow */
}

.faq-section {
        background-color: #f7f7f7;
        padding: 2em;
        max-width: 800px;
        margin: 0 auto;
    }
    .faq-title {
        font-size: 2em;
        text-align: center;
        color: #333;
        margin-bottom: 1em;
    }
    .faq-item {
        margin-bottom: 1em;
        border-bottom: 1px solid #ddd;
        padding-bottom: 1em;
    }
    .faq-question {
        font-weight: bold;
        color: #0077cc;
        cursor: pointer;
        position: relative;
    }
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        color: #333;
        font-size: 0.9em;
        transition: max-height 0.3s ease;
    }
    .faq-item.active .faq-answer {
        max-height: 300px; /* Set based on the answer length */
    }
    .faq-item.active .toggle-icon::after { content: "-"; }
.toggle-icon::after { content: "+"; }
.faq-item.active .faq-question {
    background-color: #e0f7fa;
    border-left: 4px solid #0077cc;
    padding-left: 1em;
}

/* Animation: Fade in from top */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation: Fade in from bottom */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button styling for added interaction */
.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    animation: zoomIn 1.5s ease-in-out; /* Button animation */
}

/* Button hover effect */
.button:hover {
    background-color: #0056b3;
}

/* Animation: Zoom-in effect */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
