:root {
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --secondary-color: #06b6d4;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f0fdfa;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}
.top-bar a { color: rgba(255,255,255,0.9); margin-right: 20px; }
.top-bar a:hover { color: var(--white); }
.top-bar-social a { margin-right: 12px; font-size: 1rem; }

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar { padding: 12px 0; }
.brand-text { font-weight: 700; font-size: 1.5rem; color: var(--primary-color); }
.site-logo {
    height: 58px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.footer-logo.site-logo { height: 70px; max-width: 160px; }
.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
}
.nav-link:hover { color: var(--primary-color) !important; }
.header-phone { color: var(--primary-color); font-weight: 600; }
.btn-primary, .btn-appointment {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover, .btn-appointment:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Slider */
.hero-slider { position: relative; }
.slider-bg {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.slider-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,145,178,0.42) 0%, rgba(14,116,144,0.28) 100%);
}
.carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    left: 0;
    right: 0;
    padding: 0;
}
.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.carousel-caption p { font-size: 1.25rem; margin-bottom: 1.5rem; opacity: 0.95; }

/* Sections */
.section { padding: 80px 0; }
.section-badge {
    display: inline-block;
    background: rgba(8,145,178,0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.section-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }

/* About */
.about-image img { width: 100%; object-fit: cover; max-height: 400px; }

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(8,145,178,0.15);
}
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.75rem;
}
.service-icon img { width: 40px; height: 40px; object-fit: contain; }
.service-card h4 { font-size: 1.125rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.service-link { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }

/* Doctor Cards */
.doctor-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.doctor-card:hover { transform: translateY(-5px); }
.doctor-photo {
    height: 280px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.doctor-info { padding: 24px; text-align: center; }
.doctor-info h4 { font-size: 1.125rem; margin-bottom: 4px; }
.doctor-branch { color: var(--primary-color); font-size: 0.875rem; font-weight: 500; display: block; margin-bottom: 12px; }
.doctor-info p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; }

/* News Cards */
.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.news-image { position: relative; height: 200px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}
.news-body { padding: 24px; }
.news-body h4 { font-size: 1.1rem; margin-bottom: 12px; }
.news-body h4 a:hover { color: var(--primary-color); }
.news-body p { color: var(--text-muted); font-size: 0.9rem; }
.read-more { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }

/* Video */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.video-wrapper iframe, .video-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Contact Short */
.contact-short-section { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: var(--white); }
.contact-short-box { padding: 20px 0; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 12px;
}
.contact-item i { font-size: 1.5rem; }
.contact-item a { color: var(--white); }
.contact-item a:hover { opacity: 0.8; }
.contact-map iframe { width: 100%; height: 250px; border: 0; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; }
.breadcrumb { justify-content: center; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-item.active { color: var(--white); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

/* Detail Pages */
.detail-content { padding: 60px 0; }
.detail-image { border-radius: 16px; overflow: hidden; margin-bottom: 30px; }
.detail-image img { width: 100%; max-height: 400px; object-fit: cover; }
.doctor-detail-photo {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.doctor-detail-photo img { object-fit: contain; max-height: 420px; height: auto; }
.detail-meta { color: var(--text-muted); margin-bottom: 20px; }
.detail-body { font-size: 1.05rem; line-height: 1.8; }
.detail-body p { margin-bottom: 1rem; }
.detail-body h3 { font-size: 1.35rem; font-weight: 600; margin: 2rem 0 1rem; color: var(--text-dark); }
.detail-body h4 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.detail-body ul, .detail-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.detail-body li { margin-bottom: 0.5rem; }
.detail-body em { font-style: italic; }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8,145,178,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--white);
    font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Partner Cards */
.partner-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    height: 100%;
}
.partner-logo { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.partner-logo img { max-height: 80px; max-width: 100%; object-fit: contain; }

/* Forms */
.form-section { padding: 60px 0; }
.form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(8,145,178,0.25);
}

/* Contact Page */
.contact-info-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-info-item i {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-map-full iframe { width: 100%; height: 400px; border: 0; border-radius: 16px; }

/* Footer */
.site-footer { background: #0f172a; color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0 40px; }
.footer-widget h5 { color: var(--white); margin-bottom: 20px; font-weight: 600; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary-color); padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: var(--white);
}
.footer-social a:hover { background: var(--primary-color); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 0.875rem;
}
.footer-bottom-links a { margin-left: 20px; color: rgba(255,255,255,0.6); }
.footer-bottom-links a:hover { color: var(--white); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--white); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(8,145,178,0.3);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary-dark); }

/* Alerts */
.alert { border-radius: 12px; }

/* Responsive */
@media (max-width: 991px) {
    .carousel-caption h1 { font-size: 2rem; }
    .slider-bg { height: 450px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.75rem; }
}
@media (max-width: 767px) {
    .carousel-caption h1 { font-size: 1.5rem; }
    .slider-bg { height: 380px; }
    .page-header h1 { font-size: 1.75rem; }
    .form-card { padding: 24px; }
}
