/* --- Root Variables & Theme Colors (For consistency and ease of changing) --- */
:root {
    --primary-blue: #0a47a0;
    --secondary-teal: #17a2b8;
    --bg-light-gray: #f8f9fa;
    --bg-gray: #e9ecef;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition-speed: 0.4s;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lora', serif;
}

/* --- Global Styles --- */
body {
    font-family: var(--body-font);
    color: #333;
    line-height: 1.8;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.text-primary { color: var(--primary-blue) !important; }
.text-secondary { color: var(--secondary-teal) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-light-gray { background-color: var(--bg-light-gray) !important; }
.bg-white { background-color: #fff !important; }

/* --- Fixed Header Styles --- */
.fixed-top {
    transition: background-color var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: var(--primary-blue);
    font-size: 14px;
}

.navbar {
    transition: padding var(--transition-speed);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
}

.nav-link {
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

/* --- Hero Section & Gradient --- */
.hero-section {
    min-height: 100vh;
    /* Clean gradient with the background image (replace with high-quality Unsplash image link or keep this placeholder) */
    background: linear-gradient(rgba(10, 71, 160, 0.8), rgba(23, 162, 184, 0.6)), 
                url('https://images.unsplash.com/photo-1516549808184-48c82a170f7d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTkyMXwwfDF8c2VhcmNofDEzfHxob3NwaXRhbCUyMGxvYmJ5fGVufDB8fHx8MTY3MzE1MzI4OQ&ixlib=rb-4.0.3&q=80&w=1920') 
                no-repeat center center/cover;
    position: relative;
    padding-top: 150px; /* Adjust based on header height */
}

.hero-title {
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-text {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

/* --- Premium Buttons --- */
.glass-btn {
    border-color: var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 50px; /* Pillow button feel */
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.glass-btn:hover {
    background-color: var(--secondary-teal);
    border-color: var(--secondary-teal);
    transform: translateY(-3px);
}

.main-btn {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    border-radius: 50px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.main-btn:hover {
    background-color: var(--secondary-teal);
    border-color: var(--secondary-teal);
    transform: translateY(-3px);
}

/* --- Glassmorphism Cards --- */
.glass-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* --- Booking Card Input Styles --- */
.booking-card {
    background: rgba(255, 255, 255, 0.9); /* Less see-through for the form */
    border: 1px solid #fff;
}

.booking-card h3 { color: #333; }

.glass-input {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #333;
    border-radius: 30px;
}

.glass-input:focus {
    background: #fff;
    border-color: var(--primary-blue);
    box-shadow: none;
}

/* --- Facilities Card Specifics --- */
.facility-card {
    transition: transform 0.5s ease;
}

.facility-card:hover {
    transform: scale(1.05); /* Slight scale animation on hover */
}

/* --- Doctor Carousel Specifics --- */
.doctor-carousel {
    background: linear-gradient(135deg, rgba(10, 71, 160, 0.1), rgba(23, 162, 184, 0.1));
}

.doctor-img {
    border: 10px solid #fff;
    transition: transform 0.6s ease;
}

.carousel-item-next.carousel-item-start .doctor-img,
.carousel-item-prev.carousel-item-end .doctor-img {
    transform: rotateY(180deg) scale(0.8); /* Sliding panels effect */
}

/* --- Gallery & Hover Animation --- */
.gallery-img {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* --- Testimonial Carousel --- */
.testimonial-carousel {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
}

.testimonial-img {
    border: 8px solid #fff;
}

.testimonial-text-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 30px;
}

/* --- Map Container & Styling --- */
.map-container {
    height: 450px;
    width: 100%;
}

/* Ensure controls are styled aesthetically */
.mapboxgl-ctrl-logo { display: none !important; }

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .header { padding-top: 100px; }
    .hero-section { min-height: auto; padding-top: 150px; padding-bottom: 50px; }
    .booking-card { margin-top: 30px; }
}

@media (max-width: 767px) {
    .section-header h2 { font-size: 2.5rem; }
    .gallery-img { height: 250px; }
    .map-container { height: 350px; }
}

@media (max-width: 575px) {
    .hero-title { font-size: 2rem; }
}

/* --- Simple Animations (using Animate.css for convenience) --- */
/* (We have included Animate.css CDN in index.html, so these are just example usages.) */