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

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --secondary: #0d9488;
    --secondary-dark: #0f766e;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-muted: #334155;
    --light-bg: #f8fafc;
    --surface: #ffffff;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(2, 132, 199, 0.75) 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(2, 132, 199, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-muted);
    background-color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Top Announcement Bar */
.top-bar {
    background: var(--dark);
    color: #94a3b8;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.top-bar a:hover {
    color: var(--accent);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* Custom Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    color: white;
}

.btn-outline-custom {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--dark);
    border-color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero), 
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 7rem 0 5rem 0;
    color: white;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
}

.hero p.lead {
    color: #e2e8f0;
    font-size: 1.25rem;
    max-width: 620px;
}

/* Stats Counter Grid */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    color: white;
}

.stat-card h3 {
    color: #38bdf8;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

/* Section Title */
.section-badge {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

/* Cards Design System */
.custom-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 132, 199, 0.3);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* Doctor Card Specifics */
.doctor-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.doctor-img-box {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient-primary);
}

.doctor-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}

.doctor-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 3px solid white;
    border-radius: 50%;
}

.doctor-specialty {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.doctor-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

/* Doctors Filter Buttons */
.doctor-filter-btn {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--dark-muted);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.doctor-filter-btn:hover, .doctor-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Feature Bullet Points */
.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon-check {
    width: 24px;
    height: 24px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.rating-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
}

/* Emergency Callout Banner */
.emergency-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.emergency-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Modal Styling */
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem 0;
    }
}