:root {
    --primary-teal: #00A8A8;
    --primary-blue: #0077B6;
    --accent-blue: #00C4D4;
    --text-dark: #333333;
    --text-light: #555555;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Prevents horizontal scroll issues with sliders */
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 168, 168, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
}

/* --- TOP BAR & HEADER --- */
.top-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    margin-left: 15px;
}

.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-teal);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 85vh; /* Slightly taller for a more cinematic feel */
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-blue);
}

/* The fading background images */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out; 
    /* Blur and scale have been removed! */
}

.hero-slide.active {
    opacity: 1;
    /* Slow, sleek zoom in effect while the slide is active */
    transform: scale(1.12); 
}

/* Ensure the text stays on top of the images */
.hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
    /* Creates an invisible soft dark glow exactly behind the text for ultimate readability */
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem; 
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
    
    /* Much lower blur! Tight, dark shadow for a crisp edge */
    text-shadow: 0 2px 5px rgba(0,0,0,0.7), 
                 0 4px 10px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.1rem; 
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 650px; 
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    
    /* Very tight, subtle drop shadow for the smaller text */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-btns .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); /* Adds a premium frosted glass effect to the button */
}

.hero-btns .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

/* --- QUICK INFO --- */
.quick-info {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-bottom: 4px solid var(--primary-teal);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2rem; 
    color: var(--primary-teal); 
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- GENERAL SECTIONS --- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- SLIDER SYSTEM SPECIFICS --- */
.section-header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 40px; 
}

.section-title-left h2 { 
    font-size: 2.2rem; 
    color: var(--primary-blue); 
    margin: 0 0 10px 0; 
}

.section-title-left p { 
    color: var(--text-light); 
    margin: 0; 
}

.slider-wrapper { 
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    padding: 10px 0; 
}

.slider-container { 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    gap: 25px; 
    padding-bottom: 15px; 
    /* removed scroll-behavior: smooth so JS can handle it without lagging */
}

/* Hide scrollbar */
.slider-container::-webkit-scrollbar { display: none; }
.slider-container { -ms-overflow-style: none; scrollbar-width: none; }

/* Exactly 3 cards on desktop */
.slide { 
    flex: 0 0 calc(33.333% - 16.66px); 
    scroll-snap-align: start; 
    min-width: 0; 
}

/* Slider Buttons */
.slider-controls { display: flex; gap: 10px; }
.slider-controls button { 
    background: var(--white); 
    border: 1px solid var(--primary-teal); 
    color: var(--primary-teal); 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: var(--transition); 
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-controls button:hover { background: var(--primary-teal); color: var(--white); }
.slider-controls button.light { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.slider-controls button.light:hover { background: var(--white); color: var(--primary-blue); border-color: var(--white); }

/* --- CARD STYLES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-light); padding: 40px 30px; border-radius: 10px; text-align: center; border: 1px solid #eaeaea; transition: var(--transition); height: 100%; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--primary-teal); }
.service-icon { font-size: 2.5rem; color: var(--primary-teal); margin-bottom: 20px; }

.doctors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.doctor-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; height: 100%; border: 1px solid #eaeaea; }
.doctor-img { height: 365px; background-color: #ddd; background-size: cover; background-position: center; }
.doctor-info { padding: 20px; }
.doctor-info h3 { margin-bottom: 5px; color: var(--primary-blue); }
.doctor-info p { color: var(--primary-teal); font-weight: 500; margin-bottom: 15px; }

/* FIX: This makes all testimonial cards equal height and pushes names to the bottom */
.test-slide-card { 
    background: var(--white); 
    padding: 36px; 
    border-radius: 10px; 
    height: 100%; 
    box-shadow: var(--shadow-sm); 
    display: flex;
    flex-direction: column; 
}
.stars { color: #f59e0b; margin-bottom: 15px; font-size: 1.1rem; }
.test-slide-card p { font-style: italic; color: var(--text-light); margin-bottom: 20px; line-height: 1.8; }
.test-slide-card h4 { color: var(--primary-blue); margin: 0; margin-top: auto; } /* Pushes name down */

.blog-card { background: var(--white); border-radius: 10px; overflow: hidden; border: 1px solid #eaeaea; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-info { padding: 25px; }
.blog-info h3 { color: var(--primary-blue); margin-bottom: 10px; }
.blog-info p { color: var(--text-light); }

/* --- WHY CHOOSE US --- */
.why-choose-us { background-color: var(--bg-light); }
.why-item { margin-bottom: 25px; }
.why-item h4 { color: var(--primary-blue); display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.why-item i { color: var(--primary-teal); }
.why-item p { color: var(--text-light); padding-left: 32px; }

/* --- FORMS (From Original) --- */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* --- FOOTER (From Original) --- */
.footer {
    background-color: #1A252C;
    color: #a0aab2;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #a0aab2;
}

.footer-col ul li a:hover {
    color: var(--primary-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2c3e4a;
}

.page-header {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .info-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .slide { flex: 0 0 calc(50% - 12.5px); } /* 2 cards on tablet */
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
    }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .top-bar { display: none; }
    
    .slide { flex: 0 0 100%; } /* 1 card on mobile */
    .section-header-flex { flex-direction: column; align-items: flex-start; gap: 20px; }
}