/* Main Design System */
:root {
    --primary-color: #0A2540;
    --secondary-color: #00D4FF;
    --accent-color: #0066FF;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Styles */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: #F8FAFC !important; /* Explicit light color to prevent black screen */
    color: #1E293B; 
    overflow-x: hidden; 
}

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

p { 
    color: var(--text-muted); 
    line-height: 1.8; 
}

section { 
    padding: 90px 0; 
}

a { 
    text-decoration: none; 
}

/* Common Components */
.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
}

.section-title h2 { 
    font-size: 2.5rem; 
    position: relative; 
    display: inline-block; 
    padding-bottom: 15px; 
}

.section-title h2::after { 
    content: ''; 
    position: absolute; 
    width: 60px; 
    height: 4px; 
    background: var(--secondary-color); 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    border-radius: 2px; 
}

.btn-custom { 
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color)); 
    color: var(--white); 
    border: none; 
    padding: 12px 32px; 
    border-radius: 50px; 
    font-weight: 600; 
    transition: var(--transition-smooth); 
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2); 
    display: inline-block;
}

.btn-custom:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 25px rgba(0, 102, 255, 0.3); 
    color: var(--white); 
}

.btn-outline-custom { 
    border: 2px solid var(--primary-color); 
    color: var(--primary-color); 
    padding: 8px 24px; 
    border-radius: 50px; 
    font-weight: 600; 
    transition: var(--transition-smooth); 
    font-size: 0.9rem; 
}

.btn-outline-custom:hover { 
    background: var(--primary-color); 
    color: var(--white); 
}

/* Navbar */
.navbar { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); 
    padding: 15px 0; 
    transition: var(--transition-smooth); 
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand { 
    font-weight: 700; 
    font-size: 1.5rem; 
    color: var(--primary-color) !important; 
}

.navbar-brand i { 
    color: var(--secondary-color); 
    margin-right: 8px; 
}

.nav-link { 
    color: var(--text-dark) !important; 
    font-weight: 500; 
    margin: 0 10px; 
    position: relative; 
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    background: var(--secondary-color); 
    bottom: -5px; 
    left: 0; 
    transition: var(--transition-smooth); 
}

.nav-link:hover::after { 
    width: 100%; 
}

/* Hero Sections */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    background-color: var(--primary-color); /* Fallback */
    background: linear-gradient(to right, rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.4)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat; 
    color: var(--white); 
    padding-top: 80px; 
}

.hero h1 { 
    font-size: clamp(2.5rem, 8vw, 4rem); 
    margin-bottom: 20px; 
    color: var(--white); 
}

.hero p { 
    color: #E2E8F0; 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    max-width: 600px; 
}

.detail-hero { 
    height: 50vh; 
    display: flex; 
    align-items: center; 
    background-color: var(--primary-color); /* Fallback */
    background: linear-gradient(to right, rgba(10, 37, 64, 0.95), rgba(10, 37, 64, 0.7)), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat; 
    color: var(--white); 
    padding-top: 80px; 
    position: relative;
    z-index: 1;
}

.surgery-hero { 
    height: 50vh; 
    display: flex; 
    align-items: center; 
    background-color: var(--primary-color); /* Fallback */
    background: linear-gradient(to right, rgba(10, 37, 64, 0.95), rgba(10, 37, 64, 0.7)), url('https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat; 
    color: var(--white); 
    padding-top: 80px; 
    position: relative;
    z-index: 1;
}

/* Content Boxes & Wrappers */
.stats-wrapper { 
    background: var(--white); 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
    padding: 40px; 
    margin-top: -80px; 
    position: relative; 
    z-index: 10; 
}

.stat-item h3 { 
    font-size: 2.5rem; 
    color: var(--accent-color); 
    margin-bottom: 5px; 
}

.content-box { 
    background: var(--white); 
    border-radius: 20px; 
    padding: 40px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); 
    position: relative; 
    z-index: 10; 
}

.content-box-offset {
    margin-top: -80px;
}

/* Cards */
.facility-link { 
    display: block; 
    color: inherit; 
}

.premium-card { 
    background: var(--white); 
    border-radius: 20px; 
    padding: 30px 20px; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.02); 
    transition: var(--transition-smooth); 
    height: 100%; 
    position: relative; 
    overflow: hidden; 
}

.premium-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    border-bottom: 4px solid var(--secondary-color); 
}

.card-icon { 
    width: 70px; 
    height: 70px; 
    background: rgba(0, 102, 255, 0.05); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 15px auto; 
    color: var(--accent-color); 
    font-size: 1.8rem; 
    transition: var(--transition-smooth); 
}

.premium-card:hover .card-icon { 
    background: var(--accent-color); 
    color: var(--white); 
}

/* Doctor Cards */
.doctor-card { 
    background: var(--white); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    transition: var(--transition-smooth); 
}

.doctor-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

.doctor-img { 
    height: 320px; 
    width: 100%; 
    object-fit: cover; 
    object-position: top; 
}

.doctor-info { 
    padding: 20px; 
    text-align: center; 
}

.specialty-tag { 
    background: rgba(0, 212, 255, 0.1); 
    color: var(--accent-color); 
    padding: 4px 12px; 
    border-radius: 50px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    display: inline-block; 
    margin-bottom: 10px; 
}

/* Surgery Cards */
.surgery-card { 
    background: var(--white); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.04); 
    transition: var(--transition-smooth); 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
}

.surgery-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
}

.surgery-img { 
    height: 150px; 
    width: 100%; 
    object-fit: cover; 
}

.surgery-body { 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.surgery-body h5 { 
    font-size: 1.1rem; 
    margin-bottom: 5px; 
}

.surgery-price { 
    font-size: 1.2rem; 
    color: var(--accent-color); 
    font-weight: 700; 
    margin-bottom: 10px; 
}

.surgery-includes { 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    margin-bottom: 15px; 
    flex-grow: 1; 
    border-top: 1px dashed #E2E8F0; 
    padding-top: 10px; 
}

.surgery-includes ul { 
    padding-left: 0; 
    margin-bottom: 0; 
}

.surgery-includes li { 
    margin-bottom: 4px; 
    display: flex; 
    align-items: center; 
}

.surgery-includes i { 
    font-size: 1rem; 
    margin-right: 5px; 
}

/* Gallery */
.gallery-item { 
    border-radius: 15px; 
    overflow: hidden; 
    position: relative; 
    cursor: pointer; 
}

.gallery-item img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.gallery-item:hover img { 
    transform: scale(1.1); 
}

.gallery-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(10, 37, 64, 0.9), transparent); 
    display: flex; 
    align-items: flex-end; 
    padding: 20px; 
    opacity: 0; 
    transition: var(--transition-smooth); 
}

.gallery-item:hover .gallery-overlay { 
    opacity: 1; 
}

.gallery-overlay h5 { 
    color: var(--white); 
    margin: 0; 
    font-size: 1.1rem; 
}

/* Footer */
footer { 
    background: var(--primary-color); 
    color: #CBD5E1; 
    padding: 80px 0 30px 0; 
}

footer h5, footer h4 { 
    color: var(--white); 
    margin-bottom: 25px; 
}

footer ul { 
    list-style: none; 
    padding: 0; 
}

footer ul li { 
    margin-bottom: 15px; 
}

footer a { 
    color: #CBD5E1; 
    text-decoration: none; 
    transition: var(--transition-smooth); 
}

footer a:hover { 
    color: var(--secondary-color); 
    padding-left: 5px; 
}

/* Helper Classes */
.max-w-50 {
    max-width: 600px;
}

/* Navbar Toggler Customization */
.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2810, 37, 64, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    .hero {
        text-align: center;
        padding-top: 100px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }
    .stats-wrapper {
        padding: 25px;
        margin-top: -50px;
    }
    .content-box {
        padding: 30px 20px;
    }
    .content-box-offset {
        margin-top: -50px;
    }
    .detail-hero, .surgery-hero {
        height: 40vh;
        text-align: center;
    }
}
