/*
 * CSS Styles for Hear Best Health Care Pvt. Ltd.
 * Color Scheme: Navy Blue, Sky Blue, Neutral Gray/White
 */

/* ----------------------------------------------------
 * 1. Variables and Global Styles
 * ---------------------------------------------------- */
:root {
    --navy-blue: #0A1931; /* Primary */
    --sky-blue: #00BFFF;  /* Accent */
    --light-gray: #f8f9fa; /* Background */
    --text-dark: #212529;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    color: var(--navy-blue);
}

a {
    transition: all 0.3s ease;
}

/* ----------------------------------------------------
 * 2. Utility Classes & Custom Colors
 * ---------------------------------------------------- */
.bg-navy { background: linear-gradient(90deg, #072b61, #1076c7); }
.text-navy { color: var(--navy-blue) !important; }
.btn-navy {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
    color: white;
}
.btn-navy:hover {
    background-color: #0E2947;
    border-color: #0E2947;
}

.bg-sky { background-color: var(--sky-blue) !important; }
.text-sky { color: var(--sky-blue) !important; }
.btn-sky {
    background-color: var(--sky-blue);
    border-color: var(--sky-blue);
    color: var(--navy-blue);
    font-weight: 600;
}
.btn-sky:hover {
    background-color: #33C7FF;
    border-color: #33C7FF;
}

.bg-light-gray { background-color: var(--light-gray) !important; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

/* ----------------------------------------------------
 * 3. Preloader
 * ---------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--sky-blue) !important;
}

/* ----------------------------------------------------
 * 4. Header & Navbar
 * ---------------------------------------------------- */
#topbar small a:hover {
    color: var(--sky-blue) !important;
}

#header {
    z-index: 1030; /* Ensure it stays above content but below modals */
}

#main-navbar .nav-link {
    font-weight: 500;
    color: var(--navy-blue);
    padding: 0.5rem 1rem;
    position: relative;
}

#main-navbar .nav-link:hover,
#main-navbar .nav-link.active {
    color: var(--sky-blue);
}

/* Active link indicator (Subtle) */
#main-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--sky-blue);
    border-radius: 2px;
}

/* Adjust for small screens */
@media (max-width: 991.98px) {
    #main-navbar .nav-link {
        padding: 0.5rem 0;
    }
    #main-navbar .nav-link.active::after {
        display: none;
    }
}

/* ----------------------------------------------------
 * 5. Hero Section
 * ---------------------------------------------------- */
#hero .carousel-item {
    height: 100vh; /* Full viewport height */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Placeholder for background images - Replace with your own images in CSS or inline if preferred */
.hero-slide-1 { background-image: url('banner1.webp'); }
.hero-slide-2 { background-image: url('banner2.webp'); }
.hero-slide-3 { background-image: url('banner4.webp'); }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 42%) 0%, rgba(0, 191, 255, 0.4) 100%); /* Navy to Sky Blue Gradient Overlay */
}

#hero .carousel-item h1, #hero .carousel-item h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation-duration: 1.5s;
	text-align:center;
}

#hero .carousel-item p {
    animation-duration: 2s;
	text-align:center;
	width:100%;
}

#hero .carousel-item .btn {
    animation-duration: 2.5s;
}

/* ----------------------------------------------------
 * 6. About Section
 * ---------------------------------------------------- */
.about-img-box {
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.6s ease;
}

.decorative-shape {
    width: 150px;
    height: 150px;
    opacity: 0.1;
    z-index: 1;
    bottom: -30px;
    left: -30px;
}

/* ----------------------------------------------------
 * 7. Services Section
 * ---------------------------------------------------- */
.service-card {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--sky-blue) 100%); /* Gradient Navy to Sky Blue */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon {
    font-size: 3.5rem;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

/* Card hover lift effect */
.lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* ----------------------------------------------------
 * 8. Achievements Section - Counters
 * ---------------------------------------------------- */
.counter-value {
    font-family: var(--font-heading);
    color: white;
}

/* ----------------------------------------------------
 * 9. Gallery Section
 * ---------------------------------------------------- */
.gallery-item {
    cursor: pointer;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover {
    opacity: 0.9;
}

/* Custom Modal for Lightbox */
.modal-content {
    background-color: var(--navy-blue);
    color: white;
    border: none;
}
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-close {
    filter: invert(1); /* Makes close button white */
}
#modalImage {
    max-height: 80vh;
    width: auto;
}

/* ----------------------------------------------------
 * 10. Testimonials Section
 * ---------------------------------------------------- */
.testimonial-card {
    max-width: 800px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05) !important;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--sky-blue);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(100%) saturate(100%) hue-rotate(180deg) brightness(50%) contrast(100%); /* Darker arrows */
}

/* ----------------------------------------------------
 * 11. OPD Section
 * ---------------------------------------------------- */
.opd-card {
    background: var(--navy-blue);
    border: 3px solid var(--sky-blue);
}

.opd-card h5 {
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    padding-bottom: 5px;
}

/* ----------------------------------------------------
 * 12. Contact & Map
 * ---------------------------------------------------- */
.map-container {
    overflow: hidden;
}

.map-container iframe {
    /* Ensures map takes full container size */
    width: 100%;
    height: 100%;
}

.contact-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a:hover {
    color: var(--sky-blue) !important;
}

/* ----------------------------------------------------
 * 13. Floating Buttons
 * ---------------------------------------------------- */
.float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
    right: 80px;
}

.call-btn {
    background-color: var(--sky-blue);
}

/* Pulse/Glowing animation */
.float-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 191, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0); }
}

.whatsapp-btn {
    animation-name: pulse-wa;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ----------------------------------------------------
 * 14. Scroll Reveal (Animate on Scroll)
 * ---------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.cu-lg-wdth{
	width:250px;
}
.cu-fnt-24{
	font-size:22px;
}
.cu-fnt-17{
	font-size:17px;
}
.cu-bdr-btm{
	border-bottom:1px dashed;
}
.fter-hd{
	background:#00bfff;
	border-top-right-radius:20px;
	padding:5px;
	Color:#fff
}
.cu-pd-mb{
	margin-bottom:5px;
	padding-bottom:5px;
	Color:#fff
}
.fter-ul li a{
	Color:#fff!important;
}
.fter-ul li {
	border-bottom:1px dashed;
	margin-bottom:5px;
	padding-bottom:5px;
}


.reviews iframe {
  width: 100%;
  max-width: 350px;
  height: 200px;
  margin: 10px;
}
.cu-glry-testmal{
	border:1px solid;
	margin-bottom:30px;
	margin-top:40px
}
@media(max-width:767px)
{
	.cu-lg-wdth {
    width: 220px;
}
}
@media(max-width:366px)
{
	.cu-mb-360-nn{
		display:none!important;
	}
	.jf-tp-cntr{
		justify-content:center!important;
	}
}