/* =========================================================================
   Modern UI/UX Styles for Nurse Zed - คณะพยาบาลศาสตร์ ม.ราชภัฏสกลนคร
   ========================================================================= */

/* -------------------------------------------------
   Import Modern Thai-friendly Fonts
   ------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@300;400;600;700&display=swap");

/* -------------------------------------------------
   CSS Variables - Modern Color Palette
   ------------------------------------------------- */
:root {
    /* Primary Colors - Medical Blue/Teal Theme */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-light: #667eea;
    --primary-dark: #764ba2;

    /* Accent Colors */
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-teal: #06b6d4;
    --accent-purple: #8b5cf6;

    /* Medical Theme Colors */
    --medical-blue: #3b82f6;
    --medical-green: #10b981;
    --medical-pink: #ec4899;

    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family:
        "Sarabun",
        "Prompt",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: linear-gradient(to bottom right, #f8fafc, #e2e8f0);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated background pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(102, 126, 234, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(118, 75, 162, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: -1;
}

/* -------------------------------------------------
   Typography Enhancements
   ------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Prompt", "Sarabun", sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.display-5 {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------------------------------------------------
   Modern Navigation Bar with Glass Effect
   ------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(12px) saturate(180%);
    background: var(--glass-bg) !important;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}

.navbar-brand {
    font-family: "Prompt", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-light) !important;
    transform: translateY(-2px);
}

/* Mobile menu styling */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* -------------------------------------------------
   Modern Hero Section with Gradient Overlay
   ------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-2xl) !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    margin-bottom: 3rem !important;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 50%
        );
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -20px) scale(1.05);
    }
}

.hero > .container-fluid {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    margin: 0 auto 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------
   Modern Button Styles
   ------------------------------------------------- */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* -------------------------------------------------
   Modern Card Design with Glass Effect
   ------------------------------------------------- */
.card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow:
        var(--shadow-xl),
        0 0 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-text.small {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* -------------------------------------------------
   Section Headers
   ------------------------------------------------- */
h2#news {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem !important;
}

h2#news::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* -------------------------------------------------
   Breadcrumb Styling
   ------------------------------------------------- */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* -------------------------------------------------
   News Detail Page Styling
   ------------------------------------------------- */
.card.mb-4 {
    animation: fadeInUp 0.6s ease-out;
}

.card .card-img-top {
    max-height: 400px;
    object-fit: cover;
}

/* -------------------------------------------------
   Footer Modern Design
   ------------------------------------------------- */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 3px solid var(--primary-light);
}

footer small {
    opacity: 0.8;
}

/* -------------------------------------------------
   Back to Top Button - Floating Action Button
   ------------------------------------------------- */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    display: none;
    z-index: 1050;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    opacity: 0;
}

#backToTop.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#backToTop:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

#backToTop:active {
    transform: translateY(-2px) scale(1.05);
}

/* -------------------------------------------------
   Alert Components
   ------------------------------------------------- */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1.25rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* -------------------------------------------------
   Loading Animation
   ------------------------------------------------- */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f1f5f9 4%, #e2e8f0 25%, #f1f5f9 36%);
    background-size: 1000px 100%;
}

/* -------------------------------------------------
   Responsive Design Enhancements
   ------------------------------------------------- */
@media (max-width: 768px) {
    .hero .display-5 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2#news {
        font-size: 2rem;
    }

    .card-img-top {
        height: 180px;
    }

    #backToTop {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero {
        border-radius: var(--radius-lg) !important;
        margin-bottom: 2rem !important;
    }

    .hero .display-5 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    h2#news {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }
}

/* -------------------------------------------------
   Utility Classes
   ------------------------------------------------- */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    backdrop-filter: blur(12px) saturate(180%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* -------------------------------------------------
   Scroll Animations
   ------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* -------------------------------------------------
   Focus Styles for Accessibility
   ------------------------------------------------- */
*:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* -------------------------------------------------
   Selection Styling
   ------------------------------------------------- */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

/* -------------------------------------------------
   Staff Directory Enhanced Styles
   ------------------------------------------------- */

/* Hero Section Stats */
.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modern Form Controls */
.modern-input,
.modern-select {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modern-input:focus,
.modern-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-floating label {
    color: #64748b;
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: #667eea;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.25rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.filter-tag button:hover {
    opacity: 1;
}

/* Modern Alert */
.alert-modern {
    border-radius: 1rem;
    border: none;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-modern.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

.alert-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.alert-content {
    flex: 1;
}

/* Staff Grid Animation */
.staff-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Modern Staff Card */
.staff-card-modern {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.staff-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.staff-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.staff-card-modern:hover::before {
    transform: scaleX(1);
}

.staff-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.staff-avatar {
    position: relative;
    display: inline-block;
}

.avatar-img,
.avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f1f5f9;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.staff-card-modern:hover .avatar-img,
.staff-card-modern:hover .avatar-placeholder {
    transform: scale(1.08);
    border-color: #e2e8f0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-indicator.online {
    background: #10b981;
}

.staff-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    text-align: center;
}

.staff-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.staff-position {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.staff-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.staff-detail i {
    color: #94a3b8;
    font-size: 0.875rem;
    width: 16px;
}

.staff-detail a {
    color: #64748b;
    transition: color 0.2s;
}

.staff-detail a:hover {
    color: #667eea;
}

.staff-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.contact-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.email-btn {
    background: #3b82f6;
    color: white;
}

.email-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.phone-btn {
    background: #10b981;
    color: white;
}

.phone-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.view-btn {
    background: #8b5cf6;
    color: white;
}

.view-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Modern Pagination */
.pagination-modern {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.pagination-modern .page-item {
    display: flex;
}

.pagination-modern .page-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.pagination-modern .page-link:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8fafc;
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination-modern .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-modern .page-item.disabled .page-link:hover {
    transform: none;
    border-color: #e2e8f0;
    color: #64748b;
}

/* No Results */
.no-results {
    padding: 4rem 2rem;
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}

/* Staff Directory Responsive Design */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .filter-tags {
        margin-top: 1rem;
    }

    .staff-card-modern {
        margin-bottom: 1.5rem;
    }

    .pagination-modern {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-modern .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .hero .display-4 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .staff-avatar .avatar-img,
    .staff-avatar .avatar-placeholder {
        width: 150px;
        height: 150px;
    }

    .staff-name {
        font-size: 1.1rem;
    }

    .contact-btn {
        width: 40px;
        height: 40px;
    }
}

.responsive {
    width: 100%;
    height: auto;
}

/* Banner Carousel Styles */
#bannerCarousel .carousel-item {
    height: auto;
}

#bannerCarousel .carousel-inner {
    height: auto;
}

#bannerCarousel img {
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 70vh;
}

/* Responsive adjustments for banner carousel */
@media (max-width: 768px) {
    #bannerCarousel img {
        max-height: 50vh;
    }
}

@media (max-width: 576px) {
    #bannerCarousel img {
        max-height: 40vh;
    }
}

/* Optimize carousel for performance */
#bannerCarousel {
    will-change: transform;
}

#bannerCarousel .carousel-item {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Smooth transitions */
#bannerCarousel img {
    transition: transform 0.3s ease;
}

#bannerCarousel .carousel-item:hover img {
    transform: scale(1.02);
}

/* Fallback banner responsive styles */
.banner-slide[style*="linear-gradient"] {
    min-height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .banner-slide[style*="linear-gradient"] {
        min-height: 50vh;
    }
}

@media (max-width: 576px) {
    .banner-slide[style*="linear-gradient"] {
        min-height: 40vh;
    }

    .banner-slide[style*="linear-gradient"] .display-5 {
        font-size: 2rem;
    }

    .banner-slide[style*="linear-gradient"] .fs-4 {
        font-size: 1.25rem;
    }

    .banner-slide[style*="linear-gradient"] .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
