/* ========== Hospital Website - Main Stylesheet ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0e7490;
    --primary-dark: #0c5e75;
    --primary-light: #22d3ee;
    --secondary: #059669;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #22c55e;
    --gradient-1: linear-gradient(135deg, #0e7490 0%, #059669 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #0e7490 100%);
    --gradient-hero: linear-gradient(135deg, rgba(14,116,144,0.95) 0%, rgba(5,150,105,0.9) 100%);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Bengali', 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Topbar ========== */
.topbar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left a { color: var(--white); display: flex; align-items: center; gap: 5px; }
.topbar-left a:hover { color: var(--primary-light); }
.topbar-right { display: flex; gap: 15px; }
.topbar-right a { color: var(--white); font-size: 16px; }
.topbar-right a:hover { color: var(--primary-light); transform: scale(1.2); }

.emergency-badge {
    background: var(--danger);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========== Navbar ========== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}
.navbar-brand img { height: 45px; width: auto; }
.navbar-brand span { line-height: 1.2; }
.navbar-brand small { display: block; font-size: 11px; color: var(--gray); font-weight: 400; }

.nav-menu { display: flex; gap: 5px; align-items: center; }
.nav-menu a {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
    transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
    background: var(--primary);
    color: var(--white);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
}

/* ========== Hero ========== */
.hero {
    background: var(--gradient-hero);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 650px;
}
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background: var(--accent);
    color: var(--dark);
}
.btn-primary:hover { background: #e08e0b; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ========== Section Styles ========== */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-light); }
.section-dark { background: var(--dark); color: var(--white); }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--gray); font-size: 16px; }
.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========== Stats ========== */
.stats {
    background: var(--gradient-2);
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.stat-card {
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.15); }
.stat-card i { font-size: 36px; color: var(--primary-light); margin-bottom: 15px; }
.stat-card .stat-value { font-size: 36px; font-weight: 800; display: block; }
.stat-card .stat-label { font-size: 14px; opacity: 0.8; margin-top: 5px; }

/* ========== Departments ========== */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.dept-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.dept-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}
.dept-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.dept-card p { font-size: 14px; color: var(--gray); }

/* ========== Doctors ========== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}
.doctor-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.doctor-card .doctor-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--gray-light);
}
.doctor-card .doctor-info {
    padding: 20px;
    text-align: center;
}
.doctor-card h3 { font-size: 18px; font-weight: 600; color: var(--dark); }
.doctor-card .dept-badge {
    display: inline-block;
    background: rgba(14,116,144,0.1);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 8px 0;
}
.doctor-card .designation { color: var(--gray); font-size: 14px; }
.doctor-card .qualification { color: var(--gray); font-size: 13px; margin-top: 5px; }

/* ========== Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.service-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.service-card:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.service-card .service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.service-card p { font-size: 14px; color: var(--gray); }

/* ========== Equipment ========== */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.equip-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.equip-card:hover { transform: translateY(-3px); }
.equip-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-light);
}
.equip-card .equip-info { padding: 20px; text-align: center; }
.equip-card h3 { font-size: 16px; font-weight: 600; }
.equip-card p { font-size: 13px; color: var(--gray); margin-top: 5px; }

/* ========== Ambulance ========== */
.ambulance-section { background: var(--gradient-hero); color: var(--white); padding: 60px 0; }
.ambulance-section .section-header h2 { color: var(--white); }
.ambulance-section .section-header p { color: rgba(255,255,255,0.8); }
.ambulance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.ambulance-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
}
.ambulance-card:hover { background: rgba(255,255,255,0.2); }
.ambulance-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.ambulance-card .info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 14px;
    opacity: 0.9;
}
.ambulance-card .call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: var(--accent);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}
.ambulance-card .call-btn:hover { background: #e08e0b; }

/* ========== About ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 15px; color: var(--dark); }
.about-text p { color: var(--gray); font-size: 15px; margin-bottom: 15px; }
.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}
.about-feature i { color: var(--primary); font-size: 18px; }

/* ========== CTA ========== */
.cta-section {
    background: var(--gradient-1);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}
.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 15px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 25px; }
.cta-phones { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}
.cta-phone:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }

/* ========== Footer ========== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); padding-left: 5px; }
.footer-col .contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-col .contact-item i { color: var(--primary-light); margin-top: 3px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}
.footer-socials { display: flex; gap: 12px; margin-top: 15px; }
.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-3px); }

/* ========== Department Filter ========== */
.filter-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 14px;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 36px; }
    .about-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .topbar-left { display: none; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: block; }
    .hero { min-height: 450px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-phone { font-size: 16px; padding: 12px 20px; }
    .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 24px; }
    .hero-btns { flex-direction: column; }
    .btn { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .doctors-grid { grid-template-columns: 1fr; }
}

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Scroll to Top ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
