@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --primary: #0f172a;        /* Slate 900 (Deep Navy) */
    --primary-light: #1e293b;  /* Slate 800 */
    --accent: #0ea5e9;         /* Sky Blue */
    --accent-dark: #0284c7;    /* Sky Blue Hover */
    --teal: #0d9488;           /* Medical Teal Accent */
    --teal-light: #06b6d4;
    --bg-light: #f8fafc;       /* Soft Light Slate */
    --white: #ffffff;
    --text-main: #334155;      /* Slate 700 */
    --text-muted: #64748b;     /* Slate 500 */
    --text-muted-light: #94a3b8; /* Slate 400 */
    
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    --card-shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- TYPOGRAPHY & RESET --- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.65;
    font-size: 15.5px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

a {
    transition: var(--transition);
}

.text-teal {
    color: var(--teal) !important;
}

/* --- BUTTONS --- */
.btn-custom-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    color: var(--white);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: var(--transition);
}
.btn-custom-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: var(--white);
}

.btn-custom-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 50px;
    transition: var(--transition);
}
.btn-custom-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-call-emergency {
    background: #ef4444; /* High urgency red */
    color: var(--white) !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    font-size: 14.5px;
}
.btn-call-emergency:hover {
    background: #dc2626;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

/* --- HEADER / NAVIGATION --- */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.site-logo {
    max-height: 48px;
    width: auto;
    mix-blend-mode: multiply;
}

.text-logo .brand-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}
.text-logo .accent-text {
    color: var(--accent);
}

.navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
    background: rgba(14, 165, 233, 0.05);
}

/* Dropdown Animation */
.navbar .dropdown-menu {
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 10px;
}
.dropdown-item {
    font-weight: 500;
    font-size: 14.5px;
    color: var(--primary);
    padding: 8px 20px;
    transition: var(--transition);
}
.dropdown-item:hover {
    background-color: rgba(14, 165, 233, 0.05);
    color: var(--accent);
    padding-left: 24px;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 56px;
    color: var(--white);
    font-weight: 800;
    line-height: 1.15;
}
.hero-title span {
    color: var(--accent);
}
.hero-subtitle {
    font-size: 24px;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 20px;
}
.hero-text {
    color: var(--text-muted-light);
    font-size: 16.5px;
    max-width: 600px;
    margin-bottom: 30px;
}

/* --- SERVICES CARD LAYOUT (HOME & DEPTS) --- */
.features-section {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}
.modern-service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--teal));
    transition: var(--transition);
}
.modern-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(14, 165, 233, 0.15);
}
.card-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--accent);
    transition: var(--transition);
}
.modern-service-card:hover .card-icon-wrapper {
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    color: var(--white);
}
.card-title-link {
    color: var(--primary);
    text-decoration: none;
}
.card-title-link:hover {
    color: var(--accent);
}
.read-more-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}
.read-more-link i {
    transition: var(--transition);
    margin-left: 6px;
}
.read-more-link:hover i {
    transform: translateX(5px);
}
.watermark-img {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.04;
    width: 90px;
    pointer-events: none;
    transition: var(--transition);
}
.modern-service-card:hover .watermark-img {
    opacity: 0.08;
    transform: scale(1.1);
}

/* --- ABOUT SECTION (HOME) --- */
.section-padding {
    padding: 90px 0;
}
.section-title {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 15px;
}
.section-subtitle {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}
.title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 30px;
}
.about-img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}
.about-img-frame img {
    width: 100%;
    transition: var(--transition);
}
.about-img-frame:hover img {
    transform: scale(1.03);
}
.feature-check-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.feature-check-list li {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
}
.feature-check-list li i {
    color: var(--teal);
    font-size: 18px;
    margin-right: 10px;
}

/* --- WHY CHOOSE US --- */
.why-section {
    background-color: var(--white);
}
.accordion-why-card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
}
.why-features-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
}
.why-features-list li {
    display: flex;
    align-items: center;
    font-size: 14.5px;
    font-weight: 500;
}
.why-features-list li i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 18px;
}

/* --- COUNTER STATISTICS --- */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
}
.stat-item {
    text-align: center;
}
.stat-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 15px;
}
.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 5px;
}
.stat-title {
    color: var(--text-muted-light);
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* --- BREADCRUMBS BANNER --- */
.breadcrumb-banner {
    background-color: var(--primary);
    padding: 8px 0;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
    text-align: center;
}
.breadcrumb-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}
.breadcrumb-banner .container {
    position: relative;
    z-index: 2;
}
.breadcrumb-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0px;
}
.breadcrumb-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-links span {
    color: var(--text-muted-light);
}

/* --- DOCTOR CARD --- */
.doctor-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    height: 100%;
}
.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.doctor-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.doctor-card:hover .doctor-img-wrapper img {
    transform: scale(1.05);
}
.doctor-info {
    padding: 25px;
}
.doctor-dept {
    color: var(--accent);
    font-size: 13.5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}
.doctor-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.doctor-degree {
    font-size: 14.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- CONTACT CARDS & FORM --- */
.contact-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
    height: 100%;
    display: flex;
    gap: 20px;
}
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-details h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-details p {
    margin-bottom: 0;
    font-size: 14.5px;
}

.map-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
}
.form-card .form-control, .form-card .form-select {
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: var(--primary);
}
.form-card .form-control:focus, .form-card .form-select:focus {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    border-color: var(--accent);
}

/* --- FOOTER & NEWSLETTER BANNER --- */
.newsletter-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
}
.btn-newsletter {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    transition: var(--transition);
}
.btn-newsletter:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-area {
    background-color: #0b0f19;
    color: var(--text-muted-light);
}
.footer-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links li a {
    color: var(--text-muted-light);
    text-decoration: none;
    font-size: 14.5px;
}
.footer-links li a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.timing-info p {
    font-size: 14.5px;
}
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted-light) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 15px;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--accent);
    color: var(--white) !important;
    transform: translateY(-2px);
}
.footer-hr {
    border-color: rgba(255, 255, 255, 0.06);
}

/* --- DEPARTMENTS BANNER --- */
.dept-badge {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-block;
    margin-bottom: 15px;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 42px;
    }
    .hero-subtitle {
        font-size: 20px;
    }
    .features-section {
        margin-top: 30px;
    }
    .navbar-nav {
        background: var(--white);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: var(--card-shadow-hover);
    }
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
    }
    .btn-call-emergency {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .feature-check-list, .why_features-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .form-card {
        padding: 25px;
    }
}

/* --- DOCTOR FILTER STYLING --- */
.filter-button-group {
    background-color: #e2e8f0 !important;
}
.btn-filter {
    background: transparent !important;
    border: none !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    transition: var(--transition) !important;
}
.btn-filter.active, .btn-filter:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
}

/* --- RETURN TO TOP BUTTON --- */
.return-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent) !important;
    width: 45px;
    height: 45px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: var(--white) !important;
    font-size: 18px !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
    z-index: 999 !important;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition) !important;
    text-decoration: none !important;
}
.return-to-top.show {
    opacity: 1;
    visibility: visible;
}
.return-to-top:hover {
    background: var(--primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5) !important;
}

/* --- DEPARTMENT CAROUSEL --- */
#deptCarousel {
    height: 400px;
    position: relative;
    overflow: hidden;
}
#deptCarousel .carousel-item {
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 100%) !important;
    z-index: 1;
}
#deptCarousel .container {
    position: relative;
    z-index: 2;
}
#deptCarousel .carousel-text {
    max-width: 650px;
}
#deptCarousel .carousel-control-prev,
#deptCarousel .carousel-control-next {
    width: 5% !important;
    z-index: 3;
}

/* --- OUTLINE TEAL BUTTON --- */
.btn-outline-teal {
    color: var(--teal) !important;
    background: transparent !important;
    border: 2px solid var(--teal) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}
.btn-outline-teal:hover {
    color: var(--white) !important;
    background: var(--teal) !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25) !important;
}

/* --- MICRO FLOAT ANIMATION --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite !important;
}

/* --- DYNAMIC SPECIALTY CARD --- */
.modern-spec-card {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    border-top: 4px solid rgba(var(--card-color-rgb), 0.1) !important;
}
.modern-spec-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(var(--card-color-rgb), 0.15) !important;
    border-top-color: var(--card-color) !important;
}
.modern-spec-card .card-icon-wrapper {
    background-color: rgba(var(--card-color-rgb), 0.08) !important;
    color: var(--card-color) !important;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: all 0.3s ease !important;
}
.modern-spec-card:hover .card-icon-wrapper {
    background-color: var(--card-color) !important;
    color: #ffffff !important;
}
.modern-spec-card .card-title-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.modern-spec-card:hover .card-title-link {
    color: var(--card-color);
}

/* --- MOBILE RESPONSIVE FILTER BUTTONS --- */
@media (max-width: 768px) {
    .filter-button-group {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        border-radius: 12px !important;
        gap: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .btn-filter {
        border-radius: 30px !important;
        background-color: #f1f5f9 !important;
        border: 1px solid rgba(15, 23, 42, 0.05) !important;
        font-size: 13px !important;
        padding: 8px 16px !important;
        margin: 2px !important;
        width: auto !important;
        flex: unset !important;
    }
    .btn-filter.active {
        background-color: var(--teal) !important;
        color: var(--white) !important;
    }
}
