/* ===== MEDICARE HOSPITAL THEME ===== */
/* Author: Azeem Codes | Version: 2.0 */

:root {
    /* Primary Colors */
    --primary-blue: #1a6fc4;
    --primary-dark: #0d4d8a;
    --primary-light: #4a9df5;
    
    /* Secondary Colors */
    --secondary-green: #28a745;
    --secondary-teal: #20c997;
    --secondary-orange: #fd7e14;
    
    /* Neutral Colors */
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-dark: #212529;
    
    /* Hospital Specific */
    --emergency-red: #dc3545;
    --available-green: #198754;
    --warning-yellow: #ffc107;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
.hospital-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

.hospital-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    background: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.logo-text h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.5rem;
}

.logo-text span {
    color: var(--dark-gray);
    font-size: 0.9rem;
    display: block;
}

/* Navigation */
.main-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s;
    position: relative;
}

.main-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.main-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.appointment-nav-btn {
    background: linear-gradient(135deg, var(--secondary-green), var(--secondary-teal));
    color: white !important;
    border-radius: 25px;
    padding: 10px 25px !important;
    margin-left: 10px;
    transition: all 0.3s;
    border: none;
}

.appointment-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(13, 77, 138, 0.9), rgba(13, 77, 138, 0.8)),
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-blue);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 111, 196, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-blue) !important;
}

/* Departments Section */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.section-title p {
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

.department-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.3s;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.department-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.dept-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 36px;
    transition: all 0.3s;
}

.department-card:hover .dept-icon {
    transform: scale(1.1) rotate(5deg);
}

.dept-content h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    transition: all 0.3s;
}

.department-card:hover .dept-content h4 {
    color: var(--primary-blue);
}

.dept-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.dept-features li {
    padding: 5px 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.dept-features li i {
    color: var(--secondary-green);
    margin-right: 10px;
    font-size: 12px;
}

/* Emergency Button */
.emergency-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.emergency-btn {
    background: linear-gradient(135deg, var(--emergency-red), #c82333);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.emergency-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(220, 53, 69, 0.4);
    color: white;
}

.emergency-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.emergency-btn span {
    font-size: 11px;
    font-weight: 600;
}

@keyframes pulse {
    0% { box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 10px 25px rgba(220, 53, 69, 0.6); }
    100% { box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3); }
}