/* 
 * DocSetu Stylesheet - Premium Healthcare Look
 * Operated by Shree Saisiddhi Clinical Lab, Navi Mumbai
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ---- Brand core (sampled from the logo) ---- */
    --brand-cyan:   #00CDF4;
    --brand-teal:   #10B5D1;
    --brand-blue:   #2E6BE6;
    --brand-violet: #8B2BE2;
    --brand-purple: #9F13FA;
    --brand-magenta:#C026D3;

    /* ---- Signature gradients ---- */
    --grad-brand:      linear-gradient(135deg, #00CDF4 0%, #2E6BE6 48%, #9F13FA 100%);
    --grad-brand-soft: linear-gradient(135deg, #22D3EE 0%, #6366F1 50%, #A855F7 100%);
    --grad-pill:       linear-gradient(90deg,  #12C9E8 0%, #6A4BE6 60%, #9F13FA 100%);

    /* ---- Semantic ---- */
    --color-primary:        #2E6BE6;
    --color-primary-hover:  #1E50C9;
    --color-accent:         #9F13FA;
    --success:              #16C46A;
    --warning:              #F5A524;
    --danger:               #EF4444;
    --star:                 #FACC15;

    /* ---- Light UI surfaces (default for content pages) ---- */
    --bg:        #F6F9FC;
    --surface:   #FFFFFF;
    --surface-2: #EEF3F8;
    --text:      #0B1220;
    --text-muted:#5B6776;
    --border:    #E3E8EF;

    /* ---- Dark surfaces (for hero, footer, banded sections like the brand sheet) ---- */
    --bg-dark:      #06070B;
    --surface-dark: #0E1018;
    --text-on-dark: #FFFFFF;
    --muted-on-dark:#9AA4B2;
    --border-dark:  #1C2030;

    /* ---- Effects ---- */
    --ring:  0 0 0 3px rgba(46,107,230,.40);
    --glow:  0 0 40px rgba(34,211,238,.22);
    --shadow-card: 0 8px 24px rgba(11,18,32,.08);

    /* ---- Typography & Sizing ---- */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* ---- Legacy Aliases ---- */
    --primary: var(--color-primary);
    --primary-hover: var(--color-primary-hover);
    --primary-light: var(--surface-2);
    --accent: var(--color-accent);
    --accent-hover: var(--brand-violet);
    --ink: var(--text);
    --slate: var(--text-muted);
    --page-bg: var(--bg);
    --card-bg: var(--surface);
    --border-color: var(--border);
    --star-gold: var(--star);
}

/* Premium Visual Overlay Helpers */
.glass-panel {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}
.shadow-premium {
    box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.04),
                0 4px 12px 0 rgba(6, 113, 219, 0.02) !important;
    transition: var(--transition) !important;
}
.shadow-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px 0 rgba(15, 23, 42, 0.07),
                0 5px 15px 0 rgba(6, 113, 219, 0.04) !important;
}
.glowing-text, .text-gradient {
    background: var(--grad-brand) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 80% 10%, rgba(6, 188, 209, 0.05) 0%, transparent 45%), 
                radial-gradient(circle at 15% 50%, rgba(6, 113, 219, 0.03) 0%, transparent 40%), 
                var(--page-bg);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Grid System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.col-12, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 {
    position: relative;
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

/* Grid columns - Mobile by default */
.col-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3  { flex: 0 0 25%; max-width: 25%; }
.col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }
.col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9  { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Responsive Grid - Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3  { flex: 0 0 25%; max-width: 25%; }
    .col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6  { flex: 0 0 50%; max-width: 50%; }
    .col-md-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9  { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Responsive Grid - Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3  { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6  { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9  { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Utility classes */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.py-5 { padding-top: 40px; padding-bottom: 40px; }
.py-6 { padding-top: 64px; padding-bottom: 64px; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.95rem;
    gap: 8px;
    line-height: 1.4;
    text-align: center;
}

.btn-primary {
    background: var(--grad-brand);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
}
.btn-primary:hover {
    background: var(--grad-brand-soft);
    box-shadow: var(--glow);
    transform: translateY(-1px);
}
.btn-primary:focus {
    outline: none;
    box-shadow: var(--ring);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    border-radius: 12px;
}
.btn-outline:hover {
    background: var(--grad-brand);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: var(--glow);
}

.btn-ghost {
    background-color: transparent;
    color: var(--slate);
    border: none;
    padding: 10px 16px;
}
.btn-ghost:hover {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--ink);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Badges & Pills */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-primary {
    background: var(--grad-pill) !important;
    color: #FFFFFF !important;
}

.badge-success {
    background-color: rgba(22, 196, 106, 0.1) !important;
    color: var(--success) !important;
}

.badge-warning {
    background-color: rgba(245, 165, 36, 0.1) !important;
    color: var(--warning) !important;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger) !important;
}

/* Star Ratings */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.star-icon {
    width: 16px;
    height: 16px;
}
.star-filled {
    color: var(--star) !important;
}
.star-empty {
    color: var(--border) !important;
}

/* Card layout */
.card {
    background-color: var(--surface) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card) !important;
    border: 1px solid var(--border) !important;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px) scale(1.015) !important;
    box-shadow: 0 20px 40px rgba(11, 18, 32, 0.12), 
                0 0 30px rgba(0, 205, 244, 0.08) !important;
    border-color: rgba(0, 205, 244, 0.4) !important;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-brand);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card:hover::before {
    opacity: 1;
}

/* Sticky Header */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    fill: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--slate);
    font-weight: 550;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}
.nav-link:hover {
    color: var(--primary);
}
.nav-link.active {
    color: var(--primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Floating WhatsApp Button - styles moved to footer section */

/* Sections */
.section {
    padding: 80px 0;
}
.section-bg {
    background-color: #F1F5F9;
}
.section-header {
    margin-bottom: 48px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-title {
    font-size: 2.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate);
    font-weight: 450;
}

/* Hero Banner */
.hero {
    background: radial-gradient(circle at 80% 20%, rgba(204, 251, 241, 0.4) 0%, rgba(248, 250, 252, 1) 70%);
    padding: 90px 0;
    border-bottom: 1px solid var(--border-color);
}
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.hero-trust-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 6px;
}
.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.15;
}
.hero-title span {
    color: var(--primary);
}
.hero-desc {
    font-size: 1.125rem;
    color: var(--slate);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-stats-banner {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}
.hero-stat-item {
    display: flex;
    flex-direction: column;
}
.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}
.hero-stat-label {
    font-size: 0.875rem;
    color: var(--slate);
    font-weight: 550;
}

/* Animated Hero Image styling */
.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    max-width: 280px;
    z-index: 2;
}

.hero-doctor-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    animation: floatImage 4s ease-in-out infinite;
    z-index: 3;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Floating pulse rings behind image */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: rgba(0, 205, 244, 0.12);
    z-index: 1;
    pointer-events: none;
}
.ring-1 {
    width: 320px;
    height: 320px;
    animation: pulseRing 3s ease-out infinite;
}
.ring-2 {
    width: 380px;
    height: 380px;
    animation: pulseRing 3s ease-out infinite;
    animation-delay: 1.5s;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(11, 18, 32, 0.1);
    backdrop-filter: blur(8px);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    z-index: 4;
    white-space: nowrap;
}

.badge-1 {
    top: 10%;
    left: -40px;
    animation: floatBadge1 5s ease-in-out infinite;
}

.badge-2 {
    bottom: 25%;
    right: -50px;
    animation: floatBadge2 6s ease-in-out infinite;
}

.badge-3 {
    bottom: -10px;
    left: 20px;
    animation: floatBadge3 5.5s ease-in-out infinite;
}

.floating-badge i, .floating-badge svg {
    width: 16px;
    height: 16px;
}

/* Keyframe Animations */
@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes floatBadge1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(5px, -8px);
    }
}

@keyframes floatBadge2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-6px, 8px);
    }
}

@keyframes floatBadge3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(8px, -5px);
    }
}

/* Hero Search Component */
.search-container {
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-top: 10px;
}
.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.search-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.search-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}
.search-control-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    background-color: var(--surface) !important;
    transition: var(--transition);
}
.search-control-wrap:focus-within {
    border-color: var(--color-primary) !important;
    background-color: var(--surface) !important;
    box-shadow: var(--ring) !important;
}
.search-control-wrap svg {
    width: 20px;
    height: 20px;
    color: var(--slate);
    margin-right: 10px;
    flex-shrink: 0;
}
.search-control-wrap input, .search-control-wrap select {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--ink);
}

/* Specialties Section */
.specialty-grid-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.specialty-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-brand);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}
.specialty-grid-card:hover::before {
    opacity: 1;
}
.specialty-grid-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(6, 188, 209, 0.15), 
                0 5px 15px rgba(139, 43, 226, 0.1);
    border-color: rgba(0, 205, 244, 0.3);
}
.specialty-grid-card > * {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.specialty-icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.specialty-grid-card:hover .specialty-icon-box {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    animation: specialtyIconBounce 1.2s ease-in-out infinite;
}
.specialty-icon-box svg {
    width: 32px;
    height: 32px;
}

/* Staggered entrance animation for Specialties section row items */
#specialties .row > div {
    opacity: 0;
    animation: fadeInUpCard 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#specialties .row > div:nth-child(1) { animation-delay: 0.05s; }
#specialties .row > div:nth-child(2) { animation-delay: 0.1s; }
#specialties .row > div:nth-child(3) { animation-delay: 0.15s; }
#specialties .row > div:nth-child(4) { animation-delay: 0.2s; }
#specialties .row > div:nth-child(5) { animation-delay: 0.25s; }
#specialties .row > div:nth-child(6) { animation-delay: 0.3s; }
#specialties .row > div:nth-child(7) { animation-delay: 0.35s; }
#specialties .row > div:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUpCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes specialtyIconBounce {
    0%, 100% {
        transform: translateY(0) scale(1.08);
    }
    50% {
        transform: translateY(-5px) scale(1.15);
    }
}
.specialty-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    transition: var(--transition);
}
.specialty-grid-card:hover .specialty-name {
    color: #FFFFFF !important;
}
.specialty-count {
    font-size: 0.85rem;
    color: var(--slate);
    transition: var(--transition);
}
.specialty-grid-card:hover .specialty-count {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Doctor Listing Grid Cards */
.doctor-card-top {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.doctor-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: #E2E8F0;
    border: 1px solid var(--border-color);
}
.doctor-badge-floating {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.doctor-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.doctor-specialty-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.doctor-name {
    font-size: 1.2rem;
    font-weight: 750;
    margin-bottom: 4px;
}
.doctor-qual {
    font-size: 0.875rem;
    color: var(--slate);
}

.doctor-card-meta {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    margin: 14px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.doctor-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}
.doctor-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}
.doctor-meta-label {
    color: var(--slate);
}
.doctor-meta-value {
    font-weight: 600;
}

.doctor-about-excerpt {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doctor-card-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

/* Lab Packages Section */
.package-card {
    border-top: 4px solid var(--primary);
}
.package-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin: 16px 0;
}
.package-features {
    list-style: none;
    margin-bottom: 24px;
}
.package-features li {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.package-features li svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Lab CTA Banner */
.lab-cta-banner {
    background-color: var(--ink);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}
.lab-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background-color: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    pointer-events: none;
}
.lab-cta-logo-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lab-cta-tag {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* Footer styling modifications */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}
.footer-logo span {
    color: var(--primary);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero {
        padding: 60px 0;
    }
    .section {
        padding: 60px 0;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .doctor-card-actions {
        flex-direction: column;
    }
}

/* Mobile Menu Toggle Button & Animation helpers */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--muted-on-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--text-on-dark);
}
.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--text-on-dark);
}

.mobile-only-actions {
    display: none;
}

body.nav-active {
    overflow: hidden;
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .mobile-only-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        border-top: 1.5px solid var(--border-dark);
        padding-top: 24px;
        margin-top: 16px;
    }
    
    .nav-actions {
        display: none !important; /* Hide desktop nav actions on mobile header */
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        height: calc(100vh - 76px);
        background-color: rgba(6, 7, 11, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 40px 24px;
        gap: 20px;
        z-index: 999;
        overflow-y: auto;
        border-top: 1px solid var(--border-dark);
    }
    
    .nav-links.open {
        display: flex !important;
        animation: slideInFromRight 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links .nav-link {
        font-size: 1.25rem;
        display: inline-block;
        padding: 10px 20px;
        width: 100%;
        color: var(--muted-on-dark) !important;
    }
    
    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        color: var(--text-on-dark) !important;
    }
    
    /* Dropdown overrides for mobile menu */
    .nav-links li.dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li.dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none; /* toggled via JS */
        background: transparent !important;
        box-shadow: none;
        border: none !important;
        padding: 8px 0;
        margin-top: 8px;
        pointer-events: auto;
        min-width: 100%;
    }
    
    .nav-links li.dropdown.open-dropdown .dropdown-menu {
        display: block;
    }
    
    .nav-links li.dropdown.open-dropdown .dropdown-chevron {
        transform: rotate(180deg);
    }
    
    .dropdown-menu a.dropdown-item {
        color: var(--muted-on-dark) !important;
        text-align: center !important;
        margin: 2px auto;
        padding: 8px 24px;
        font-size: 1rem;
    }
    
    .dropdown-menu a.dropdown-item:hover {
        color: var(--text-on-dark) !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        transform: none;
    }
    
    .dropdown-menu a.view-all-link {
        justify-content: center !important;
        gap: 8px;
        color: var(--text-on-dark) !important;
    }
    
    /* Grid system overrides on mobile to prevent cramming */
    .col-md-6, .col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-trust-tag {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats-banner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .hero-stat-item {
        padding: 0 12px;
    }
    
    .search-container {
        margin-top: 30px;
    }
    
    .lab-cta-banner {
        padding: 30px 20px;
        text-align: center;
    }
    
    .lab-cta-logo-wrap {
        align-items: center;
        margin-bottom: 20px;
    }
    
    .lab-cta-tag {
        margin-left: auto;
        margin-right: auto;
    }
    
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Phase 2 Specific Styles --- */

/* Sidebar filter layout */
.sidebar-sticky {
    position: sticky;
    top: 96px;
}

.filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Accordion Component */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.accordion-item[open] {
    background: var(--grad-brand) !important;
    border-color: transparent !important;
    box-shadow: var(--glow) !important;
}

.accordion-title {
    padding: 18px 24px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    color: var(--ink);
    transition: color 0.4s ease;
}

.accordion-item[open] .accordion-title {
    color: #FFFFFF !important;
}

.accordion-title::-webkit-details-marker {
    display: none;
}

.accordion-title::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 500;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.accordion-item[open] .accordion-title::after {
    content: '+' !important;
    transform: rotate(45deg);
    color: #FFFFFF !important;
}

.accordion-content {
    padding: 0 24px 20px 24px;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
    animation: slideDownFade 0.4s ease-out;
}

.accordion-item[open] .accordion-content {
    color: rgba(255, 255, 255, 0.9) !important;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rating Breakdown Widget */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
}

.rating-label {
    width: 32px;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

.rating-progress-bg {
    flex: 1;
    height: 8px;
    background-color: #E2E8F0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rating-progress-bar {
    height: 100%;
    background-color: var(--star-gold);
    border-radius: var(--radius-full);
}

.rating-count-val {
    width: 40px;
    color: var(--slate);
    font-weight: 500;
}

/* Tabs Component */
.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 16px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .tabs-header {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tabs-header::-webkit-scrollbar {
        display: none;
    }
}

.tab-btn {
    padding: 12px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--slate);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover, .tab-btn.active {
    color: var(--primary);
}

.tab-btn.active {
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slate);
    background-color: #FFFFFF;
    transition: var(--transition);
}

.page-item:hover, .page-item.active {
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active {
    background-color: var(--primary-light);
}

/* Close CTA Band */
.cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 60px 0;
}

.cta-band-title {
    color: #FFFFFF;
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.cta-band-desc {
    color: var(--primary-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px auto;
    line-height: 1.5;
}

/* Stat row on homepage */
.stat-row-bg {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

/* Trust Badges */
.trust-badges-row {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    box-shadow: var(--shadow-sm);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.trust-badge-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* How It Works cards */
.step-card {
    text-align: center;
    padding: 30px 24px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 15px 35px rgba(6, 188, 209, 0.12), 
                0 5px 15px rgba(46, 107, 230, 0.06);
    border-color: rgba(0, 205, 244, 0.35);
}

.step-num {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step-card:hover .step-num {
    background-color: var(--primary);
    color: #FFFFFF;
    transform: scale(1.1) rotate(360deg);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 750;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.5;
}

/* Testimonials Layout */
.testimonial-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 15px 35px rgba(139, 43, 226, 0.15), 
                0 5px 15px rgba(46, 107, 230, 0.06);
    border-color: rgba(139, 43, 226, 0.35);
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--slate);
}

/* Trust Score widget */
.trust-score-widget {
    background-color: var(--primary-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(13, 148, 136, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trust-score-widget:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(46, 107, 230, 0.12);
    border-color: rgba(46, 107, 230, 0.35);
}

.trust-score-val {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.trust-score-label {
    font-weight: 750;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

/* Dashboard Columns & Sidebars */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .dashboard-layout {
        flex-direction: row;
    }
}

.dashboard-sidebar {
    flex: 0 0 260px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
}

.dashboard-content {
    flex: 1;
}

.dashboard-content > .card {
    height: auto;
}

.dashboard-content .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dashboard-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--slate);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.dashboard-menu-link svg {
    width: 20px;
    height: 20px;
    color: var(--slate);
    transition: var(--transition);
}

.dashboard-menu-link:hover,
.dashboard-menu-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dashboard-menu-link:hover svg,
.dashboard-menu-link.active svg {
    color: var(--primary);
}

/* Edit profile forms layout */
.form-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-full-width {
        grid-column: span 2;
    }
}

/* File Input Wrapper */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-upload-input {
    border: 1.5px dashed var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    background-color: #FAFAFA;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-input:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.file-upload-input input[type="file"] {
    display: none;
}

/* Star Picker Widget */
.star-picker-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #E2E8F0;
    transition: var(--transition);
}

.star-picker-icon.star-filled {
    color: var(--star-gold);
}

.star-picker-icon:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* Floating WhatsApp Widget */
.whatsapp-floating {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: var(--transition);
    overflow: hidden;
}

.whatsapp-floating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-brand);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    border-radius: 50%;
}

.whatsapp-floating:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(46, 107, 230, 0.35);
}

.whatsapp-floating:hover::before {
    opacity: 1;
}

.whatsapp-floating svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.mt-auto {
    margin-top: auto !important;
}

/* Premium Lucide Icon Styles */
.meta-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    stroke-width: 2.25px;
    display: inline-block;
    vertical-align: middle;
}

/* Premium Dark Footer Styles */
.footer-wrapper {
    background-color: var(--bg-dark) !important;
    color: var(--muted-on-dark) !important;
    padding: 60px 0 40px 0 !important;
    border-top: 1px solid var(--border-dark) !important;
}

.footer-wrapper .footer-title {
    color: var(--text-on-dark) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.footer-wrapper .footer-text {
    color: var(--muted-on-dark) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

.footer-wrapper .footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.footer-wrapper .footer-links a {
    color: var(--muted-on-dark) !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
}

.footer-wrapper .footer-links a:hover {
    color: var(--text-on-dark) !important;
}

.footer-wrapper a {
    color: var(--text-on-dark) !important;
    text-decoration: none !important;
}

.footer-wrapper a:hover {
    color: var(--brand-cyan) !important;
}

.footer-wrapper code {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #38BDF8 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark) !important;
    padding-top: 20px !important;
    margin-top: 40px !important;
    font-size: 0.85rem !important;
    color: var(--muted-on-dark) !important;
}

/* Premium Dark Header Styles */
.header-wrapper {
    background-color: rgba(6, 7, 11, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.header-wrapper .nav-link {
    color: var(--muted-on-dark) !important;
    transition: var(--transition) !important;
}

.header-wrapper .nav-link:hover {
    color: var(--text-on-dark) !important;
}

.header-wrapper .nav-link.active {
    color: var(--text-on-dark) !important;
}

.header-wrapper .nav-link.active::after {
    background: var(--grad-brand) !important;
}

.header-wrapper .btn-ghost {
    color: var(--muted-on-dark) !important;
}

.header-wrapper .btn-ghost:hover {
    background: var(--grad-brand) !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    box-shadow: var(--glow) !important;
    border-radius: 12px !important;
}

/* Typewriter Cursor Blinking */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--brand-cyan); }
}
#typewriter-text {
    animation: blink-caret 0.75s step-end infinite;
    background: var(--grad-brand) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
}

/* ==========================================================================
   Premium Background Orbs & Floating Elements
   ========================================================================== */

/* Background glowing orbs */
.bg-pulse-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    animation: float-orb 25s infinite alternate ease-in-out;
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 205, 244, 0.4) 0%, rgba(46, 107, 230, 0.1) 100%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(159, 19, 250, 0.3) 0%, rgba(46, 107, 230, 0.05) 100%);
    bottom: -15%;
    right: -10%;
    animation-duration: 35s;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 181, 209, 0.3) 0%, rgba(22, 196, 106, 0.05) 100%);
    top: 40%;
    right: 25%;
    animation-duration: 28s;
    animation-delay: -3s;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 60px) scale(1.1);
    }
    100% {
        transform: translate(-40px, 30px) scale(0.95);
    }
}

/* Floating healthcare symbols */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-cross {
    position: absolute;
    font-size: 24px;
    font-weight: 300;
    color: rgba(46, 107, 230, 0.07); /* subtle brand blue */
    animation: float-up 20s linear infinite;
    user-select: none;
    will-change: transform, opacity;
}

.cross-1 { left: 8%; top: 90%; animation-delay: 0s; animation-duration: 22s; }
.cross-2 { left: 88%; top: 90%; animation-delay: -4s; animation-duration: 26s; }
.cross-3 { left: 75%; top: 90%; animation-delay: -9s; animation-duration: 24s; }
.cross-4 { left: 15%; top: 90%; animation-delay: -14s; animation-duration: 20s; }

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-95vh) rotate(360deg);
        opacity: 0;
    }
}


/* ==========================================================================
   Animated Overlapping Marquee Banner
   ========================================================================== */

.marquee-banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 90px 0; /* Clear spacing around tilted banners */
    background: transparent;
    z-index: 10;
    margin-top: 20px;
}

.marquee-stripe {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 120%; /* wider to cover edges when rotated */
    margin-left: -10%; /* offset extra width */
    padding: 18px 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    user-select: none;
}

.stripe-teal {
    background: var(--grad-brand); /* Project brand gradient */
    color: #FFFFFF; /* White text for contrast against gradient */
    transform: rotate(-2.8deg);
    z-index: 2;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.stripe-navy {
    background: #0B1220; /* Dark navy brand color */
    color: #FFFFFF;
    transform: rotate(2.2deg) translateY(-25px);
    z-index: 1;
    border-top: 1.5px solid rgba(0, 205, 244, 0.2);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-left-marquee 32s linear infinite;
}

.marquee-content.content-reverse {
    animation: scroll-right-marquee 32s linear infinite;
}

.marquee-slide {
    display: flex;
    align-items: center;
}

.marquee-slide span {
    padding-right: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.marquee-slide span::after {
    content: "✳";
    color: inherit;
    font-size: 1.1rem;
    opacity: 0.7;
}

@keyframes scroll-left-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes scroll-right-marquee {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Premium Card & Button Tweaks */
.card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.card:hover {
    transform: translateY(-8px) scale(1.015) !important;
    border-color: rgba(0, 205, 244, 0.4) !important;
    box-shadow: 0 20px 40px rgba(11, 18, 32, 0.12), 
                0 0 30px rgba(0, 205, 244, 0.08) !important;
}
.card:hover .btn-outline {
    background: var(--grad-brand) !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    box-shadow: var(--glow) !important;
}

/* Dropdown Navigation Menu Styles */
.nav-links li.dropdown {
    position: relative;
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    min-width: 240px;
    background: var(--grad-brand) !important;
    border-radius: 12px;
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35), 0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

/* Hover Transparent Bridge to prevent flickering */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    font-weight: 550;
    text-decoration: none;
    transition: all 0.2s ease !important;
    border-radius: 8px;
    margin: 2px 8px;
    text-align: left;
}

.dropdown-menu a.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    transform: translateX(4px);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 8px 8px;
}

.dropdown-menu a.view-all-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 16px;
}

.dropdown-menu a.view-all-link i {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.dropdown-menu a.view-all-link:hover i {
    transform: translateX(4px);
}
