/* ========================================
   SurgiCare - Professional Medical CSS
   Primary Color: #061836 / #0c3857 (Dark Navy)
   ======================================== */

   :root {
    /* Primary Colors - Dark Navy */
    --primary-color: #061836;
    --primary-dark: #0c3857;
    --primary-light: #0c3857;
    --primary-lightest: #e8edf5;

    /* Override Bootstrap's default blue with brand navy (idle) / teal (hover) */
    --bs-primary: #061836;
    --bs-primary-rgb: 6, 24, 54;
    --bs-link-color: #061836;
    --bs-link-color-rgb: 6, 24, 54;
    --bs-link-hover-color: #01638c;
    --bs-link-hover-color-rgb: 1, 99, 140;
    --bs-btn-bg: #061836;
    --bs-btn-border-color: #061836;
    --bs-btn-hover-bg: #01638c;
    --bs-btn-hover-border-color: #01638c;
    --bs-btn-active-bg: #014f70;
    --bs-btn-active-border-color: #014f70;
    --bs-btn-focus-shadow-rgb: 6, 24, 54;
    --bs-focus-ring-color: rgba(6, 24, 54, 0.25);

    /* Secondary Colors - Purple/Magenta */
    --secondary-color: #9A1DB8;
    --secondary-light: #C01BBD;

    /* Accent Colors */
    --accent-color: #E7A7F6;
    --accent-orange: #e67e22;

    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --border-color: #dee2e6;

    /* Status Colors */
    --success: #4DC5C0;
    --info: #74DCDD;
    --warning: #f39c12;
    --danger: #e74c3c;

    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #95a5a6;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(6, 24, 54, 0.1);
    --shadow-md: 0 4px 6px rgba(6, 24, 54, 0.12);
    --shadow-lg: 0 10px 25px rgba(6, 24, 54, 0.15);
    --shadow-xl: 0 20px 40px rgba(6, 24, 54, 0.2);
    
    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-base: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 50%;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.hero-text-h1{
font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 1rem;

}
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 0.4rem 0;
    transition: var(--transition-base);
}

@media (min-width: 992px) {
    body {
        padding-top: 58px;
    }
}

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

.navbar-brand:hover {
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.navbar-brand i {
    font-size: 2rem;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--primary-lightest);
}

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

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(6, 24, 54, 0.25);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    --bs-btn-bg: #061836;
    --bs-btn-border-color: #061836;
    --bs-btn-hover-bg: #01638c;
    --bs-btn-hover-border-color: #01638c;
    --bs-btn-active-bg: #014f70;
    --bs-btn-active-border-color: #014f70;
    --bs-btn-focus-shadow-rgb: 1, 99, 140;
    background: #061836;
    border-color: #061836;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-primary:active,
.btn-primary.active {
    transform: translateY(0);
    color: var(--white);
}

.btn-outline-primary {
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #01638c;
    --bs-btn-hover-border-color: #01638c;
    --bs-btn-focus-shadow-rgb: 1, 99, 140;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #01638c;
    --bs-btn-active-border-color: #01638c;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: var(--white);
}

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

.btn-light:hover {
    background: var(--primary-lightest);
    color: var(--primary-dark);
    border-color: var(--primary-lightest);
}

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

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.813rem;
}

.btn i {
    font-size: 1.1em;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
    background: var(--white);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

.card-body {
    padding: 1.5rem;
    flex: 0 1 auto !important;
}

.card.h-100 .card-body {
    flex: 1 1 auto !important;
}

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

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

.card-footer {
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Pricing Card */
.card.pricing-card {
    border: 2px solid var(--border-color);
}

.card.pricing-card:hover {
    border-color: var(--primary-color);
}

.card.featured {
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: 1px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    display: none;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* ========================================
   FORMS
   ======================================== */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(6, 24, 54, 0.15);
    outline: none;
    background-color: var(--white);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.938rem;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
    background-color: var(--white);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(6, 24, 54, 0.15);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: var(--danger) !important;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-info {
    background: var(--info) !important;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-warning {
    background: var(--warning) !important;
    color: var(--white);
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    border: none;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4f4f2 0%, #b8ede9 100%);
    color: #0d5652;
    border-left: 4px solid var(--primary-color);
}

.alert-info {
    background: linear-gradient(135deg, #e1f6f6 0%, #cef1f0 100%);
    color: #2d7a78;
    border-left: 4px solid var(--info);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid var(--danger);
}

/* ========================================
   ICON BOXES
   ======================================== */

.icon-box {
    text-align: center;
    padding: 2rem;
    transition: var(--transition-base);
    border-radius: var(--radius-lg);
}

.icon-box:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
}

.icon-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    transition: var(--transition-base);
}

.icon-box:hover i {
    transform: scale(1.1) rotateY(360deg);
}

.icon-box h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.icon-box p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Circle Icon Background */
.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.icon-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, #061836 0%, #0c3857 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5::after {
    display: none;
}

footer p,
footer li {
    color: #b8c5d0;
    line-height: 1.8;
}

footer a {
    color: #b8c5d0;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

footer a:hover {
    color: #b8c5d0;
    padding-left: 5px;
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

footer i {
    color: var(--white);
}

footer .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

footer .footer-contact-list li i {
    margin-top: 3px;
    flex-shrink: 0;
}

footer .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

footer .social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item.active {
    color: var(--white);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
    color: var(--white);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
    margin: 0 0.25rem;
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================
   DOCTOR/SERVICE PROFILES
   ======================================== */

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.profile-card {
    position: relative;
    margin-top: -50px;
}

.stats-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.stats-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.stats-box h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stats-box p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ========================================
   APPOINTMENT FORM
   ======================================== */

.appointment-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.appointment-info {
    background: linear-gradient(135deg, var(--primary-lightest) 0%, #d4f4f2 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

/* ========================================
   GOOGLE MAPS
   ======================================== */

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary-light {
    background-color: var(--primary-lightest) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.sticky-top {
    position: sticky;
    /* top: 100px; */
    z-index: 10;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Divider */
.divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 2rem auto;
    border-radius: var(--radius-full);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    section {
        padding: 1px 0;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.938rem;
    }
}

@media (max-width: 575px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.813rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.5rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* ANIMATION  */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 0;
}

.background li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 19s linear infinite;
}

.background li:nth-child(1) {
    left: 4%;
    width: 176px;
    height: 176px;
    bottom: -176px;
    animation-delay: 1s;
}

.background li:nth-child(2) {
    left: 49%;
    width: 76px;
    height: 76px;
    bottom: -76px;
    animation-delay: 3s;
}

.background li:nth-child(3) {
    left: 26%;
    width: 86px;
    height: 86px;
    bottom: -86px;
    animation-delay: 5s;
}

.background li:nth-child(4) {
    left: 67%;
    width: 218px;
    height: 218px;
    bottom: -218px;
    animation-delay: 4s;
}

.background li:nth-child(5) {
    left: 50%;
    width: 216px;
    height: 216px;
    bottom: -216px;
    animation-delay: 4s;
}

.background li:nth-child(6) {
    left: 0%;
    width: 174px;
    height: 174px;
    bottom: -174px;
    animation-delay: 16s;
}

.background li:nth-child(7) {
    left: 82%;
    width: 205px;
    height: 205px;
    bottom: -205px;
    animation-delay: 15s;
}

.background li:nth-child(8) {
    left: 63%;
    width: 149px;
    height: 149px;
    bottom: -149px;
    animation-delay: 24s;
}

.background li:nth-child(9) {
    left: 30%;
    width: 52px;
    height: 52px;
    bottom: -52px;
    animation-delay: 13s;
}

.background li:nth-child(10) {
    left: 31%;
    width: 80px;
    height: 80px;
    bottom: -80px;
    animation-delay: 8s;
}

.background li:nth-child(11) {
    left: 51%;
    width: 153px;
    height: 153px;
    bottom: -153px;
    animation-delay: 33s;
}

.background li:nth-child(12) {
    left: 56%;
    width: 73px;
    height: 73px;
    bottom: -73px;
    animation-delay: 10s;
}

.background li:nth-child(13) {
    left: 9%;
    width: 156px;
    height: 156px;
    bottom: -156px;
    animation-delay: 26s;
}

.background li:nth-child(14) {
    left: 87%;
    width: 151px;
    height: 151px;
    bottom: -151px;
    animation-delay: 43s;
}

.background li:nth-child(15) {
    left: 82%;
    width: 166px;
    height: 166px;
    bottom: -166px;
    animation-delay: 28s;
}

.background li:nth-child(16) {
    left: 69%;
    width: 107px;
    height: 107px;
    bottom: -107px;
    animation-delay: 26s;
}

.background li:nth-child(17) {
    left: 81%;
    width: 89px;
    height: 89px;
    bottom: -89px;
    animation-delay: 11s;
}

.background li:nth-child(18) {
    left: 88%;
    width: 63px;
    height: 63px;
    bottom: -63px;
    animation-delay: 49s;
}

.background li:nth-child(19) {
    left: 83%;
    width: 65px;
    height: 65px;
    bottom: -65px;
    animation-delay: 46s;
}

.background li:nth-child(20) {
    left: 45%;
    width: 140px;
    height: 140px;
    bottom: -140px;
    animation-delay: 79s;
}

.background li:nth-child(21) {
    left: 3%;
    width: 68px;
    height: 68px;
    bottom: -68px;
    animation-delay: 77s;
}

.background li:nth-child(22) {
    left: 74%;
    width: 65px;
    height: 65px;
    bottom: -65px;
    animation-delay: 33s;
}

.background li:nth-child(23) {
    left: 79%;
    width: 216px;
    height: 216px;
    bottom: -216px;
    animation-delay: 86s;
}

/* HERO ANIMATION  */
/* Hero Slider Position */
.hero-slider .carousel-item {
    position: relative;
    overflow: hidden;
}

/* Image Layer - Bottom (z-index: 1) */
.slider-image {
    position: relative;
    z-index: 1;
}

/* Animated Background Layer - Middle (z-index: 2) */
.background-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through */
}

.background-slider li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    animation: animate 19s linear infinite;
}

/* Overlay Layer (z-index: 3) */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* Content Layer - Top (z-index: 4) */
.carousel-caption {
    z-index: 4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Animation */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-600px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Individual particle styles */
.background-slider li:nth-child(1) {
    left: 4%;
    width: 176px;
    height: 176px;
    bottom: -176px;
    animation-delay: 1s;
}

.background-slider li:nth-child(2) {
    left: 49%;
    width: 76px;
    height: 76px;
    bottom: -76px;
    animation-delay: 3s;
}

.background-slider li:nth-child(3) {
    left: 26%;
    width: 86px;
    height: 86px;
    bottom: -86px;
    animation-delay: 5s;
}

.background-slider li:nth-child(4) {
    left: 67%;
    width: 218px;
    height: 218px;
    bottom: -218px;
    animation-delay: 4s;
}

.background-slider li:nth-child(5) {
    left: 50%;
    width: 216px;
    height: 216px;
    bottom: -216px;
    animation-delay: 4s;
}

.background-slider li:nth-child(6) {
    left: 0%;
    width: 174px;
    height: 174px;
    bottom: -174px;
    animation-delay: 16s;
}

.background-slider li:nth-child(7) {
    left: 82%;
    width: 205px;
    height: 205px;
    bottom: -205px;
    animation-delay: 15s;
}

.background-slider li:nth-child(8) {
    left: 63%;
    width: 149px;
    height: 149px;
    bottom: -149px;
    animation-delay: 24s;
}

.background-slider li:nth-child(9) {
    left: 30%;
    width: 52px;
    height: 52px;
    bottom: -52px;
    animation-delay: 13s;
}

.background-slider li:nth-child(10) {
    left: 31%;
    width: 80px;
    height: 80px;
    bottom: -80px;
    animation-delay: 8s;
}

.background-slider li:nth-child(11) {
    left: 51%;
    width: 153px;
    height: 153px;
    bottom: -153px;
    animation-delay: 33s;
}

.background-slider li:nth-child(12) {
    left: 56%;
    width: 73px;
    height: 73px;
    bottom: -73px;
    animation-delay: 10s;
}

.background-slider li:nth-child(13) {
    left: 9%;
    width: 156px;
    height: 156px;
    bottom: -156px;
    animation-delay: 26s;
}

.background-slider li:nth-child(14) {
    left: 87%;
    width: 151px;
    height: 151px;
    bottom: -151px;
    animation-delay: 43s;
}

.background-slider li:nth-child(15) {
    left: 82%;
    width: 166px;
    height: 166px;
    bottom: -166px;
    animation-delay: 28s;
}

.background-slider li:nth-child(16) {
    left: 69%;
    width: 107px;
    height: 107px;
    bottom: -107px;
    animation-delay: 26s;
}

.background-slider li:nth-child(17) {
    left: 81%;
    width: 89px;
    height: 89px;
    bottom: -89px;
    animation-delay: 11s;
}

.background-slider li:nth-child(18) {
    left: 88%;
    width: 63px;
    height: 63px;
    bottom: -63px;
    animation-delay: 49s;
}

.background-slider li:nth-child(19) {
    left: 83%;
    width: 65px;
    height: 65px;
    bottom: -65px;
    animation-delay: 46s;
}

.background-slider li:nth-child(20) {
    left: 45%;
    width: 140px;
    height: 140px;
    bottom: -140px;
    animation-delay: 79s;
}

.background-slider li:nth-child(21) {
    left: 3%;
    width: 68px;
    height: 68px;
    bottom: -68px;
    animation-delay: 77s;
}

.background-slider li:nth-child(22) {
    left: 74%;
    width: 65px;
    height: 65px;
    bottom: -65px;
    animation-delay: 33s;
}

.background-slider li:nth-child(23) {
    left: 79%;
    width: 216px;
    height: 216px;
    bottom: -216px;
    animation-delay: 86s;
}

/* Custom Pagination Styles */
.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-pagination .page-item {
    margin: 0;
    list-style: none;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #061836;
    font-weight: 500;
    padding: 10px 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: #fff;
    min-width: 45px;
    min-height: 45px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

/* Icon Sizing */
.custom-pagination .page-link i {
    font-size: 18px;
    line-height: 1;
}

/* Hover Effect */
.custom-pagination .page-link:hover {
    background-color: #061836;
    color: #fff;
    border-color: #061836;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(6, 24, 54, 0.2);
}

/* Active Page */
.custom-pagination .page-item.active .page-link {
    background-color: #061836;
    border-color: #061836;
    color: #fff;
    box-shadow: 0 4px 12px rgba(6, 24, 54, 0.3);
    font-weight: 600;
    cursor: default;
}

.custom-pagination .page-item.active .page-link:hover {
    transform: none;
}

/* Disabled State */
.custom-pagination .page-item.disabled .page-link {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-pagination .page-item.disabled .page-link:hover {
    background-color: #f5f5f5;
    color: #9e9e9e;
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
}

/* Focus State */
.custom-pagination .page-link:focus {
    box-shadow: 0 0 0 3px rgba(6, 24, 54, 0.25);
    outline: none;
    z-index: 1;
}

/* Responsive */
@media (max-width: 576px) {
    .custom-pagination {
        gap: 4px;
    }
    
    .custom-pagination .page-link {
        padding: 8px 12px;
        min-width: 40px;
        min-height: 40px;
        font-size: 14px;
    }
    
    .custom-pagination .page-link i {
        font-size: 16px;
    }
}


.viewprofile{    color: var(--primary-color);
    text-decoration: none;
}
.viewprofile:hover{
    color: var(--primary-dark);
}

/* /////////////////////////  */
 
.search-box {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Chat Widget Styles
.chat-widget-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #54c9c5;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgb(135 135 135 / 40%);
    z-index: 1050;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.chat-widget-button:hover {
    background-color:rgb(43, 195, 201);
    transform: scale(1.1);
    box-shadow: 0 6px 16pxrgb(33, 148, 144);
}

.chat-widget-button i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
 
.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}
 
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1040;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-window.show {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.chat-header {
    background: linear-gradient(135deg, #54c9c5 0%, #20BA5A 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #54c9c5;
}

.chat-header-text h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header-text p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
 
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #54c9c5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-message.user .chat-message-avatar {
    background: #01638c;
}

.chat-message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
}

.chat-message.bot .chat-message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-message-bubble {
    background: #01638c;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
 
.chat-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 12px;
}

.quick-option-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.quick-option-btn:hover {
    background: #f8f9fa;
    border-color: #54c9c5;
    color: #54c9c5;
}
 
.chat-footer {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.chat-input:focus {
    border-color: #54c9c5;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.chat-send-btn {
    background: #01638c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 1;
}

.chat-send-btn:hover:not(:disabled) {
    background: #0b5ed7;
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: scale(1);
    opacity: 0.7;
}
 
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}
 
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.contact-option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.contact-option-card:hover {
    border-color: #54c9c5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-option-icon.whatsapp {
    background: #e7f8f0;
    color: #54c9c5;
}

.contact-option-icon.phone {
    background: #e3f2fd;
    color: #2196f3;
}

.contact-option-icon.email {
    background: #fff3e0;
    color: #ff9800;
}

.contact-option-text h6 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
}

.contact-option-text p {
    margin: 0;
    font-size: 13px;
    color: #666;
} */
 
/* @media (max-width: 768px) {
    .chat-widget-button {
        width: 56px;
        height: 56px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    .chat-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}
  */


#loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .spin-wrapper {
    display: flex;
    gap: 6px;
    margin: 4px;
    animation: rotate 1.6s linear infinite;
  }
  
  .circle {
    width: 12px;
    height: 12px;
    background-color: #061836;
    border-radius: 50%;
    animation: pulse 0.8s ease-in-out infinite alternate;
  }
   
  @keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
  }
  
  /* Rotate animation for each wrapper */
  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  /* Delay each wrapper for a wave effect */
  .spin-wrapper:nth-child(1)  { animation-delay: 0s; }
  .spin-wrapper:nth-child(2)  { animation-delay: 0.1s; }
  .spin-wrapper:nth-child(3)  { animation-delay: 0.2s; }
  .spin-wrapper:nth-child(4)  { animation-delay: 0.3s; }
  .spin-wrapper:nth-child(5)  { animation-delay: 0.4s; }
  .spin-wrapper:nth-child(6)  { animation-delay: 0.5s; }
  .spin-wrapper:nth-child(7)  { animation-delay: 0.6s; }
  .spin-wrapper:nth-child(8)  { animation-delay: 0.7s; }
  .spin-wrapper:nth-child(9)  { animation-delay: 0.8s; }
  .spin-wrapper:nth-child(10) { animation-delay: 0.9s; }
  .spin-wrapper:nth-child(11) { animation-delay: 1.0s; }
  .spin-wrapper:nth-child(12) { animation-delay: 1.1s; }
  


  /* ========================================
   SURGICARE DESKTOP STYLES
   Home Page & Shared Desktop Components
   ======================================== */

/* ========================================
   HERO SLIDER (Desktop)
   ======================================== */
.hero-slider { 
    position: relative; 
    overflow: hidden; 
}

.hero-slider .carousel-item { 
    position: relative; 
    height: 600px; 
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 24, 54, 0.55) 0%, rgba(12, 56, 87, 0.45) 100%);
}

.carousel-caption { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%; 
    bottom: auto; 
}

.carousel-caption h1, 
.carousel-caption p { 
    color: #fff; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); 
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(6, 24, 54, 0.8);
    border-radius: 50%;
}

.carousel-indicators [data-bs-target] { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background-color: rgba(255, 255, 255, 0.5); 
    border: 2px solid #fff; 
}

.carousel-indicators .active {
    background-color: rgba(6, 24, 54, 0.8);
}

.carousel-fade .carousel-item { 
    opacity: 0; 
    transition: opacity 0.6s ease-in-out; 
}

.carousel-fade .carousel-item.active { 
    opacity: 1; 
}

/* ========================================
   DOCTORS ON DUTY SECTION (Desktop)
   ======================================== */
.live-indicator { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.5rem 1rem; 
    background: rgba(6, 24, 54, 0.05); 
    border-radius: 50px; 
}

.pulse-dot { 
    width: 8px; 
    height: 8px; 
    background: #e74c3c; 
    border-radius: 50%; 
    animation: pulse-animation 2s ease-out infinite; 
}

@keyframes pulse-animation { 
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); } 
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); } 
}

.time-display { 
    display: inline-flex; 
    align-items: center; 
    padding: 0.5rem 1rem; 
    background: white; 
    border-radius: 50px; 
    box-shadow: 0 2px 8px rgba(6, 24, 54, 0.08); 
}

.doctors-duty-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    align-items: center;
    justify-content: safe center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.doctors-duty-scroll::-webkit-scrollbar {
    display: none;
}

.doctor-duty-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem 0.875rem;
    text-align: center;
    border: 1px solid #e1e6e9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    flex-shrink: 0;
    height: 220px;
}

.doctor-duty-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 4px; 
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); 
    transform: scaleX(0); 
    transition: transform 0.3s ease; 
}

.doctor-duty-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 8px 24px rgba(6, 24, 54, 0.15); 
    border-color: var(--primary-light); 
}

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

.doctor-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(6, 24, 54, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.doctor-duty-card:hover .doctor-avatar {
    transform: scale(1.1) rotate(5deg);
}

.doctor-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2c3e4f;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.doctor-specialty {
    font-size: 0.75rem;
    color: #6c7a89;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.doctor-card-meta {
    display: flex;
    width: 100%;
    gap: 0.375rem;
    margin-top: auto;
}

.doctor-meta-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(6, 24, 54, 0.06);
    border-radius: 0.5rem;
    padding: 0.375rem 0.25rem;
    border: 1px solid rgba(6, 24, 54, 0.12);
    min-width: 0;
}

.doctor-meta-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c7a89;
    margin-bottom: 0.125rem;
}

.doctor-meta-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

/* Keep .room-badge for any legacy uses elsewhere */
.room-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(6, 24, 54, 0.08) 0%, rgba(12, 56, 87, 0.08) 100%);
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.875rem;
    border: 1px solid rgba(6, 24, 54, 0.1);
}

/* ========================================
   HERO SECTION FALLBACK (No Sliders)
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 520px;
        padding: 0;
        display: flex;
        align-items: center;
    }
}

.hero-section h1 {
    color: white;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ========================================
   DESKTOP ANIMATIONS
   ======================================== */
@keyframes animate-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: animate-fade-in-up 0.6s ease forwards;
}

/* ========================================
   DOCTORS AUTO-SCROLL CAROUSEL (Desktop)
   ======================================== */
.doctors-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 8px 0 16px;
}

.doctors-scroll-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: doctors-scroll-left 40s linear infinite;
}

.doctors-scroll-track:hover {
    animation-play-state: paused;
}

.doctors-scroll-card {
    flex: 0 0 340px;
    width: 340px;
}

@keyframes doctors-scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 991px) {
    .desktop-doctors-section {
        display: none;
    }
}

/* Desktop — no border on doctor cards */
.desktop-doctors-section .doctors-scroll-card .card,
.doctor-card {
    border: none;
}


.doctor-img-container {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #061836 0%, #0c3857 100%);
    border-radius: calc(var(--bs-card-border-radius, 0.375rem) - 1px) calc(var(--bs-card-border-radius, 0.375rem) - 1px) 0 0;
}


.doctor-img-container .card-img-top {
    border-radius: 0;
    width: 100%;
    height: 100% !important;
    margin-top: 0;
    object-fit: cover;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.mobile-doctors-section .doctor-img-container {
    height: 150px;
}

.doctor-card .doctor-img-container {
    height: 380px;
}

.mobile-content .doctor-card .doctor-img-container {
    height: 160px;
}

.doctor-img-container--profile {
    height: 350px;
}

.doctor-img-container--show {
    height: 320px;
}

.mobile-main-content .mobile-doctor-card {
    margin-bottom: 16px;
}

.dept-home-card {
    background: linear-gradient(135deg, #061836 0%, #0c3857 100%);
    border: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dept-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(1, 99, 140, 0.35) !important;
    background: linear-gradient(135deg, #01638c 0%, #014f70 100%);
}

.dept-home-card:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 99, 140, 0.4) !important;
    background: linear-gradient(135deg, #014f70 0%, #013d57 100%);
}

.dept-home-card .card-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.dept-home-card .card-title {
    color: #ffffff;
    font-weight: 600;
}

.dept-home-card--compact .card-body {
    min-height: unset;
    padding: 14px 16px;
}

.dept-home-card--compact {
    border-radius: 16px;
}

.dept-home-card .card-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
}

/* ========================================
   MAP LOCATION SECTION
   ======================================== */
.map-location-wrap {
    position: relative;
    height: 520px;
}

.map-location-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-address-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: auto;
    background: rgba(6, 24, 54, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(6, 24, 54, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-address-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.map-address-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
}

.map-address-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
    margin-bottom: 3px;
}

.map-address-value {
    font-size: 0.82rem;
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

a.map-address-value:hover {
    color: rgba(255, 255, 255, 0.8);
}

.map-address-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}


/* ========================================
   RIPPLE CIRCLE BACKGROUND - Desktop
   ======================================== */
@media (min-width: 992px) {
    .desktop-hero-section .desktop-background-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 0;
    }

    /* Static ambient circles with gentle breathing */
    .desktop-static-circle {
        position: absolute;
        background: transparent;
        border-radius: 50%;
        animation: gentle-breathe 6s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
    }

    .desktop-static-1 {
        width: 400px;
        height: 400px;
        bottom: -150px;
        left: -150px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        animation-delay: 0s;
    }

    .desktop-static-2 {
        width: 600px;
        height: 600px;
        bottom: -250px;
        left: -250px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        animation-delay: 1s;
    }

    .desktop-static-3 {
        width: 800px;
        height: 800px;
        bottom: -350px;
        left: -350px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        animation-delay: 2s;
    }

    /* Ripple origin point - bottom right corner */
    .desktop-ripple-center {
        position: absolute;
        bottom: -50px;
        right: -50px;
    }

    /* Base circle styles */
    .desktop-circle {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent;
        border-radius: 50%;
        pointer-events: none;
        will-change: transform, opacity;
    }

    /* Regular circles with weighted motion */
    .desktop-circle-1 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.7); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 0s; }
    .desktop-circle-2 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.65); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 0.7s; }
    .desktop-circle-3 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.6); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 1.4s; }
    .desktop-circle-4 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.55); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 2.1s; }
    .desktop-circle-5 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.5); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 2.8s; }
    .desktop-circle-6 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.45); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 3.5s; }

    /* Heavy thick circles */
    .desktop-circle-thick-1 { width: 50px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.6); animation: ripple-weighted-heavy 9s cubic-bezier(0.22, 0.1, 0.3, 1) infinite; animation-delay: 0.35s; }
    .desktop-circle-thick-2 { width: 50px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.5); animation: ripple-weighted-heavy 9s cubic-bezier(0.22, 0.1, 0.3, 1) infinite; animation-delay: 1.75s; }
    .desktop-circle-thick-3 { width: 50px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.4); animation: ripple-weighted-heavy 9s cubic-bezier(0.22, 0.1, 0.3, 1) infinite; animation-delay: 3.15s; }

    /* Light thin circles */
    .desktop-circle-thin-1 { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.6); animation: ripple-weighted-light 7s cubic-bezier(0.28, 0.1, 0.22, 1) infinite; animation-delay: 0.5s; }
    .desktop-circle-thin-2 { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.5); animation: ripple-weighted-light 7s cubic-bezier(0.28, 0.1, 0.22, 1) infinite; animation-delay: 1.9s; }
    .desktop-circle-thin-3 { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.4); animation: ripple-weighted-light 7s cubic-bezier(0.28, 0.1, 0.22, 1) infinite; animation-delay: 3.3s; }
}

/* Hero carousel — smooth dissolve, no white flash */

/* Dark background behind slides — fallback while both are transparent */
.hero-slider-section,
.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.mobile-hero-slider-wrapper,
.mobile-hero-slider-wrapper .carousel,
.mobile-hero-slider-wrapper .carousel-inner {
    background: var(--primary-color);
}

/* All slides: hidden by default, kill Bootstrap's slide transform */
.carousel-fade .carousel-item {
    opacity: 0 !important;
    transform: none !important;
    transition: opacity 1.4s ease-in-out !important;
    z-index: 0;
}

/* Active slide: fully visible, sits on top */
.carousel-fade .carousel-item.active {
    opacity: 1 !important;
    z-index: 1;
}

/* Incoming slide: immediately full opacity but layered BEHIND the outgoing */
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1 !important;
    z-index: 0;
}

/* Outgoing slide: fades to transparent while staying above the incoming */
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0 !important;
    z-index: 1;
    transition: opacity 1.4s ease-in-out !important;
}