* { font-family: 'Poppins', sans-serif; }
body { overflow-x: hidden; background-color: #f0f8ff; }

/* custom scroll */
html { scroll-behavior: smooth; }

/* navbar (kept white as you requested) */
.navbar { background-color: #ffffff !important; box-shadow: 0 2px 15px rgba(0,80,120,0.08); padding: 15px 0; }
.navbar-brand { font-weight: 700; font-size: 28px; color: #0a7b9a !important; letter-spacing: -0.5px; }
.navbar-brand span { color: #7ec8e0; }
.nav-link { color: #2c3e50 !important; font-weight: 500; margin: 0 12px; transition: 0.2s; }
.nav-link:hover, .nav-link.active { color: #0a7b9a !important; transform: translateY(-1px); }

/* sections */
/* Founder Section - matching doctor card style */
.founder-card {
    background: #fff;
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(10,123,154,0.05);
    border: 1px solid #d4e6f0;
    text-align: center;
}
.founder-card:hover {
    box-shadow: 0 20px 35px rgba(10,123,154,0.15);
}
.founder-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #00b9ca;
    box-shadow: 0 5px 15px rgba(0,185,202,0.3);
}
.founder-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder-name {
    font-size: 28px;
    font-weight: 700;
    color: #0a7b9a;
    margin-bottom: 8px;
}
.founder-qual {
    font-size: 16px;
    color: #7ec8e0;
    font-weight: 500;
    margin-bottom: 15px;
}
.founder-divider {
    width: 60px;
    height: 3px;
    background: #00b9ca;
    margin: 20px auto;
}
.founder-description {
    max-width: 700px;
    margin: 0 auto;
}
.founder-description p {
    font-size: 16px;
    color: #4a5a6a;
    line-height: 1.8;
    margin-bottom: 15px;
}
.founder-signature {
    font-size: 20px;
    font-weight: 600;
    color: #0a7b9a;
    font-style: italic;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #d4e6f0;
}
.founder-signature i {
    color: #00b9ca;
    margin-right: 10px;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .founder-image-wrapper {
        width: 150px;
        height: 150px;
    }
    .founder-name {
        font-size: 24px;
    }
}

/* carousel custom hover arrows (hero) */
.carousel { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 30px -10px rgba(0,120,150,0.2); }
.carousel-control-prev, .carousel-control-next { opacity: 0; transition: opacity 0.3s ease; width: 8%; }
.carousel:hover .carousel-control-prev, .carousel:hover .carousel-control-next { opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #00b9ca;  /* new color */
    border-radius: 50%;
    padding: 20px;
    background-size: 60%;
}
.carousel-indicators [data-bs-target] { background-color: #00b9ca; width: 12px; height: 12px; border-radius: 50%; }
/* Fix carousel image sizing */
#heroCarousel .carousel-item {
    height: 600px; /* Adjust this value if needed */
}
#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* thumbnail row under carousel */
.thumb-grid { margin-top: 30px; }
.thumb-item { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; height: 120px; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.thumb-item:hover img { transform: scale(1.05); }
/* Force thumbnails to fill container */
.thumb-item {
    height: 180px !important;
    width: 100% !important;
    overflow: hidden;
}
.thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Video hover controls */
    .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full video, adds black bars on sides */
    background-color: #000; /* Black background for the bars */
}
        .carousel-item:hover video {
            pointer-events: auto; /* Allows interaction on hover */
        }
        .carousel-item video::-webkit-media-controls {
            display: none; /* Hides controls by default in WebKit browsers */
        }
        .carousel-item:hover video::-webkit-media-controls {
            display: flex; /* Shows controls on hover */
        }


/* Services heading */
/* Center alignment for emergency service */
.service-detail-card.emergency-service {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}
.service-detail-card.emergency-service h2,
.service-detail-card.emergency-service p {
    text-align: center;
    width: 100%;
}
.services-heading { margin-bottom: 40px; }
.services-heading .sub-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    background: #00b9ca;  /* new color */
    padding: 6px 20px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 15px;
}
.services-heading .main-title {
    font-size: 42px;
    font-weight: 700;
    color: #0a4b6e;
    margin-bottom: 0;
}

/* pill-shaped service cards */
.service-card-pill {
    background: #d4e6f0;
    border-radius: 60px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px rgba(10,123,154,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}
.service-card-pill:hover {
    background: #00b9ca;    /* new hover color */
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 35px #00b9ca4d;
    border-color: #00b9ca;
}
.service-card-pill h4 {
    font-size: 28px;
    font-weight: 700;
    color: inherit;
    margin-bottom: 15px;
}
.service-card-pill p {
    font-size: 16px;
    color: inherit;
    line-height: 1.6;
    opacity: 0.9;
}
.service-card-pill:hover h4,
.service-card-pill:hover p {
    color: white;
}

/* services carousel controls */
#servicesCarousel .carousel-control-prev,
#servicesCarousel .carousel-control-next {
    opacity: 0.9;
    width: 5%;
    background: none;
}
#servicesCarousel .carousel-control-prev-icon,
#servicesCarousel .carousel-control-next-icon {
    background-color: #00b9ca;  /* new color */
    border-radius: 50%;
    padding: 20px;
    background-size: 60%;
}
#servicesCarousel .carousel-control-prev:hover,
#servicesCarousel .carousel-control-next:hover {
    opacity: 1;
}
@media (max-width: 768px) {
    #servicesCarousel .carousel-control-prev-icon,
    #servicesCarousel .carousel-control-next-icon {
        padding: 15px;
    }
}

/* Doctor cards */
.doctor-card {
    background: #fff;
    border-radius: 30px;
    padding: 30px 25px;
    box-shadow: 0 8px 25px rgba(10,123,154,0.05);
    border: 1px solid #d4e6f0;
    height: 100%;
    transition: 0.2s;
    text-align: center;
}
.doctor-card:hover {
    box-shadow: 0 20px 35px rgba(10,123,154,0.15);
}

/* Doctor image styles - balanced size */
.doctor-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00b9ca;
    box-shadow: 0 5px 15px rgba(0,185,202,0.3);
}
.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adjusted font sizes for better proportion */
.doc-name {
    font-size: 20px;
    font-weight: 700;
    color: #0a7b9a;
}
.doc-qual {
    font-size: 15px;
    color: #7ec8e0;
    font-weight: 500;
    margin: 5px 0;
}
.doc-specialty {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 8px 0 5px;
}
.doc-timing {
    background: #d4e6f0;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    display: inline-block;
    margin-top: 10px;
    color: #0a7b9a;
}

/* gallery grid */
.gallery-item { border-radius: 20px; overflow: hidden; margin-bottom: 25px; box-shadow: 0 12px 25px -8px rgba(10,123,154,0.2); height: 240px; transition: 0.3s; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.gallery-item:hover img { transform: scale(1.07); }

/* contact form & info */
.contact-info { background: #fff; border-radius: 30px; padding: 40px; box-shadow: 0 15px 30px rgba(10,123,154,0.05); height: 100%; }
.contact-icon { width: 40px; color: #00b9ca; font-size: 22px; }
.map-container { border-radius: 30px; overflow: hidden; box-shadow: 0 15px 30px rgba(10,123,154,0.1); height: 350px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: #fff; border-radius: 30px; padding: 40px; box-shadow: 0 15px 30px rgba(10,123,154,0.05); }
.form-control { border-radius: 50px; padding: 14px 20px; border: 1px solid #d4e6f0; background: #fafdff; }
.form-control:focus { border-color: #00b9ca; box-shadow: 0 0 0 0.2rem #00b9ca40; }
.btn-submit {
    background: #00b9ca;
    color: #fff;
    border-radius: 50px;
    padding: 14px 30px;
    font-weight: 600;
    border: none;
    width: 100%;
    transition: 0.2s;
}
.btn-submit:hover { background: #0a7b9a; }

/* FOOTER */
footer {
    background: #00b9ca;
    color: #ffffff;          /* white text for contrast */
    padding: 60px 0 20px;
    font-size: 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-line1 {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.footer-logo .logo-line2 {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: #e0f7fa;          /* lighter accent */
    letter-spacing: 1px;
}

.footer-about p {
    margin-top: 15px;
    line-height: 1.7;
    color: #ffffff;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-links h4:after,
.footer-services h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #e0f7fa;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}
.footer-links a,
.footer-services a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
}
.footer-links a:hover,
.footer-services a:hover {
    color: #0a2a36;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}
.footer-contact i {
    width: 20px;
    color: #e0f7fa;
    font-size: 16px;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}
.social-icons a:hover {
    background: #ffffff;
    color: #00b9ca;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}
@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* quick links spacing (already covered) */
.quick-links li { margin-bottom: 12px; }
.quick-links li a { font-size: 16px; padding: 5px 0; display: inline-block; }