/* 
 * REHAB4U Physiotherapy & Wellness - Main Stylesheet
 * Brand Palette: Dark Navy (#002B5B), Teal (#0E7490), Aqua (#00A6A6), Orange (#FF6B00), Light Gray (#F8FAFC)
 */

/* ==========================================================================
   1. Design System & Global Variables
   ========================================================================== */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Core Palette Colors */
    --color-navy: #002B5B;
    --color-teal: #0E7490;
    --color-aqua: #00A6A6;
    --color-orange: #FF6B00;
    --color-bg-light: #F8FAFC;
    --color-white: #FFFFFF;
    --color-text-dark: #1E293B;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;

    /* Utility properties */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);

    --shadow-sm: 0 2px 4px rgba(0, 43, 91, 0.04);
    --shadow-md: 0 10px 20px rgba(0, 43, 91, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 43, 91, 0.1);

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-card: 16px;
    --border-radius-btn: 30px;
}

/* Dark Mode Variables Override */
body.dark-mode {
    --color-bg-light: #0B0F19;
    --color-white: #111827;
    --color-text-dark: #F3F4F6;
    --color-text-muted: #9CA3AF;
    --color-border: #374151;

    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);

    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* General Resets */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
    overflow-x: hidden;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-navy);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--color-white);
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-orange);
}

/* ==========================================================================
   2. Typography & Header Styles
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-aqua));
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

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

/* ==========================================================================
   3. Theme-Specific Components (Glassmorphism & Gradients)
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 0, 0.3);
    /* Subtle Orange Hover Border */
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 43, 91, 0.95), rgba(14, 116, 144, 0.9)), url('../images/hero-bg.webp') no-repeat center center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--color-white);
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
}

.hero-overlay-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

/* Premium Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 43, 91, 0.1);
    backdrop-filter: blur(5px);
}

.main-header.scrolled {
    background: rgba(0, 43, 91, 0.92);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.main-header .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-white) !important;
}

.main-header .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 10px 18px !important;
    transition: var(--transition-smooth);
}

.main-header .nav-link:hover,
.main-header .nav-link.active {
    color: var(--color-orange) !important;
}

/* For dark mode content pages */
body:not(.dark-mode) .main-header.scrolled-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
}

body:not(.dark-mode) .main-header.scrolled-light .navbar-brand {
    color: var(--color-navy) !important;
}

body:not(.dark-mode) .main-header.scrolled-light .nav-link {
    color: var(--color-text-dark) !important;
}

body:not(.dark-mode) .main-header.scrolled-light .nav-link:hover,
body:not(.dark-mode) .main-header.scrolled-light .nav-link.active {
    color: var(--color-orange) !important;
}

/* ==========================================================================
   4. Buttons & Interactive Elements
   ========================================================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-orange), #FF8C00);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    padding: 12px 30px;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.6);
    color: var(--color-white);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    padding: 11px 28px;
    border: 2px solid var(--color-aqua);
    transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
    background: var(--color-aqua);
    transform: translateY(-3px);
    color: var(--color-white);
}

.btn-outline-teal {
    background: transparent;
    color: var(--color-teal);
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    padding: 11px 28px;
    border: 2px solid var(--color-teal);
    transition: var(--transition-smooth);
}

.btn-outline-teal:hover {
    background: var(--color-teal);
    color: var(--color-white) !important;
    transform: translateY(-3px);
}

/* Floating Action Widgets */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--color-white);
}

.float-whatsapp {
    background-color: #25D366;
}

.float-call {
    background-color: var(--color-teal);
}

.float-appointment {
    background-color: var(--color-orange);
}

.back-to-top {
    width: 50px;
    height: 50px;
    background-color: var(--color-navy);
    display: none;
}

body.dark-mode .back-to-top {
    background-color: var(--color-teal);
}

/* ==========================================================================
   5. Interactive Widgets (BMI, Quiz, Testimonial Carousel)
   ========================================================================== */
/* BMI Calculator Card */
.bmi-card {
    padding: 30px;
}

.bmi-result-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(14, 116, 144, 0.1);
    display: none;
}

/* Pain Assessment Quiz */
.quiz-box {
    padding: 35px;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: quizFadeIn 0.4s ease-out;
}

.quiz-option-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    text-align: left;
    transition: var(--transition-smooth);
    color: var(--color-text-dark);
}

.quiz-option-btn:hover {
    background: rgba(14, 116, 144, 0.05);
    border-color: var(--color-teal);
    transform: translateX(5px);
}

body.dark-mode .quiz-option-btn:hover {
    background: rgba(0, 166, 166, 0.1);
    border-color: var(--color-aqua);
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Before and After Image Comparison Slider */
.ba-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-md);
}

.ba-slider img {
    width: 100%;
    display: block;
}

.ba-resize {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.ba-handle {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-orange);
    cursor: ew-resize;
    z-index: 10;
}

.ba-handle::after {
    content: '\f337';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--color-orange);
    color: #FFF;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   6. Custom Page Layouts (Services, Pricing, Testimonials, Footer)
   ========================================================================== */
/* Service Cards Grid */
.service-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(0, 166, 166, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-teal);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.glass-card:hover .service-icon-box {
    background: linear-gradient(135deg, var(--color-teal), var(--color-aqua));
    color: var(--color-white);
}

/* Statistics Counter */
.counter-box {
    text-align: center;
    padding: 25px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-teal);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

/* Testimonial slider */
.testimonial-swiper {
    padding-bottom: 50px;
}

.testimonial-card {
    padding: 30px;
    margin: 15px;
}

.star-rating {
    color: #FFD700;
    margin-bottom: 15px;
}

/* Pricing Page Enhancements */
.pricing-card {
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border) !important;
}

.pricing-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 35px rgba(14, 116, 144, 0.12) !important;
    border-color: rgba(14, 116, 144, 0.3) !important;
}

.pricing-card-featured {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.15) !important;
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-8px) !important;
    box-shadow: 0 25px 45px rgba(255, 107, 0, 0.3) !important;
    border-color: var(--color-orange) !important;
}

.pricing-card .btn {
    transition: var(--transition-smooth);
}

.pricing-card:hover .btn-outline-teal {
    background-color: var(--color-teal);
    color: var(--color-white);
}

.pricing-card-featured:hover .btn-primary-custom {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.5);
}

.pricing-table th {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy);
}

.pricing-table tbody tr {
    transition: var(--transition-smooth);
}

.pricing-table tbody tr:hover {
    background-color: rgba(14, 116, 144, 0.04) !important;
}

body.dark-mode .pricing-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Instagram Feed */
.instagram-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 91, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    opacity: 0;
    transition: var(--transition-smooth);
}

.instagram-img:hover .instagram-overlay {
    opacity: 1;
}

/* Recovery progress tracker */
.recovery-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
}

.recovery-tracker::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 5%;
    width: 90%;
    height: 4px;
    background: var(--color-border);
    z-index: 1;
}

.tracker-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.tracker-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.tracker-step.completed .tracker-circle {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: var(--color-white);
}

.tracker-step.active .tracker-circle {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

/* Premium Footer */
.premium-footer {
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    border-top: 5px solid var(--color-orange);
}

.premium-footer h5 {
    color: var(--color-white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: var(--color-orange);
    padding-left: 5px;
}

/* Offers Popup */
.modal-custom-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.modal-gradient-header {
    background: linear-gradient(135deg, var(--color-navy), var(--color-teal));
    color: #FFF;
    padding: 25px;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-navy);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-orange);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dark Mode Switcher Link */
.dark-mode-toggle {
    background: none;
    border: none;
    color: #FFF !important;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 15px;
    transition: var(--transition-smooth);
}

.dark-mode-toggle:hover {
    color: var(--color-orange) !important;
    transform: rotate(20deg);
}

body:not(.dark-mode) .main-header.scrolled-light .dark-mode-toggle {
    color: var(--color-navy) !important;
}

body:not(.dark-mode) .main-header.scrolled-light .dark-mode-toggle:hover {
    color: var(--color-orange) !important;
}

/* ==========================================================================
   7. Form Validation UI & Alerts
   ========================================================================== */
.invalid-feedback-custom {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-control.is-invalid-custom {
    border-color: #dc3545;
}

.form-control.is-invalid-custom+.invalid-feedback-custom {
    display: block;
}

/* General Modifiers */
.pt-100 {
    padding-top: 100px;
}

.pb-80 {
    padding-bottom: 80px;
}

.mt-50 {
    margin-top: 50px;
}

.text-justify {
    text-align: justify;
}

/* Subpage Hero banner */
.subpage-hero {
    background: linear-gradient(135deg, rgba(0, 43, 91, 0.9), rgba(14, 116, 144, 0.85)), url('../images/subpage-hero.webp') no-repeat center center/cover;
    padding: 140px 0 80px;
    color: #FFF;
}

/* ==========================================================================
   8. Brand Custom UI Fixes & Utilities
   ========================================================================== */
.bg-orange {
    background-color: var(--color-orange) !important;
}

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

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

.bg-teal-light {
    background-color: rgb(14, 116, 144) !important;
}

.border-orange {
    border: 2px solid var(--color-orange) !important;
}

.border-teal {
    border: 2px solid var(--color-teal) !important;
}

/* Premium Journey Timeline */
.journey-timeline {
    position: relative;
    padding-left: 32px;
    margin: 25px 0 10px 0;
}

/* Vertical line using a linear gradient representing progress */
.journey-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 15px;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-teal) 0%, var(--color-teal) 30%, var(--color-aqua) 60%, var(--color-orange) 100%);
    border-radius: 4px;
}

/* Individual timeline step container */
.journey-step {
    position: relative;
    padding: 12px 16px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
    background: transparent;
    border-left: 3px solid transparent;
}

/* Hover effects */
.journey-step:hover {
    background: rgba(14, 116, 144, 0.04);
    transform: translateX(8px);
    border-left: 3px solid var(--color-teal);
}

body.dark-mode .journey-step:hover {
    background: rgba(255, 255, 255, 0.03);
}

.journey-step:hover .journey-badge {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(14, 116, 144, 0.4);
}

.journey-step:hover .journey-badge-orange {
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.5);
}

/* Timeline Step Badge */
.journey-badge {
    position: absolute;
    left: -32px;
    top: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    background-color: var(--color-teal);
    border: 2px solid var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: var(--transition-smooth);
}

body.dark-mode .journey-badge {
    border-color: var(--color-white);
}

.journey-badge-teal {
    background-color: var(--color-teal);
}

.journey-badge-aqua {
    background-color: var(--color-aqua);
}

.journey-badge-orange {
    background-color: var(--color-orange);
}

.journey-badge-secondary {
    background-color: var(--color-text-muted);
}

/* Step Header & Content */
.journey-step-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.journey-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
    transition: var(--transition-smooth);
}

.journey-step:hover .journey-step-title {
    color: var(--color-teal);
}

body.dark-mode .journey-step:hover .journey-step-title {
    color: var(--color-aqua);
}

.journey-step-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.journey-step-tag-teal {
    background-color: rgba(14, 116, 144, 0.1);
    color: var(--color-teal);
}

.journey-step-tag-aqua {
    background-color: rgba(0, 166, 166, 0.1);
    color: var(--color-aqua);
}

.journey-step-tag-orange {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--color-orange);
}

.journey-step-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 0;
}

/* Dark Mode Subpage Header background fix */
body.dark-mode .main-header.scrolled-light {
    background: rgba(17, 24, 39, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dark Mode Form select option styling fix */
body.dark-mode .form-select option {
    background-color: #1f2937;
    color: #f9fafb;
}

/* Hover background for primary-custom outline buttons */
.hover-bg-teal:hover {
    background-color: var(--color-teal) !important;
    color: var(--color-white) !important;
}

.hover-bg-orange:hover {
    background-color: var(--color-orange) !important;
    color: var(--color-white) !important;
}

/* ==========================================================================
   9. Mobile Responsiveness & Layout Tweaks
   ========================================================================== */

/* Before & After Slider Image Holder Styles */
.ba-slider-container {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
}

/* Tablets and Mobile Devices */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .hero-section h1.display-3 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.1rem;
    }
}

/* Small Mobile Screens */
@media (max-width: 576px) {
    .hero-section h1.display-3 {
        font-size: 2.3rem !important;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .subpage-hero {
        padding: 110px 0 50px !important;
    }

    .subpage-hero h1 {
        font-size: 1.9rem !important;
    }

    .ba-slider-container {
        height: 240px !important;
        font-size: 0.9rem;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 10px 24px;
        font-size: 0.95rem !important;
    }

    .counter-number {
        font-size: 2.2rem;
    }

    .counter-box {
        padding: 15px 5px;
    }

    /* Stepper numbers alignment on small screens */
    .journey-timeline {
        padding-left: 28px;
    }

    .journey-timeline::before {
        left: 13px;
    }

    .journey-step {
        padding: 10px 12px;
    }

    .journey-badge {
        left: -28px;
    }
}

/* ==========================================================================
   6. Specialists Section Premium Styling
   ========================================================================== */
.specialist-home-card {
    border-left: 4px solid var(--color-teal) !important;
    transition: var(--transition-smooth) !important;
}

.specialist-home-card:hover {
    border-left-color: var(--color-orange) !important;
    transform: translateY(-8px);
}

.specialist-home-card:hover .doctor-avatar-img {
    transform: scale(1.08);
}

.badge-teal-custom {
    background-color: rgba(14, 116, 144, 0.08);
    color: var(--color-teal);
    border: 1px solid rgba(14, 116, 144, 0.15);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-block;
    transition: var(--transition-smooth);
}

body.dark-mode .badge-teal-custom {
    background-color: rgba(0, 166, 166, 0.12);
    color: var(--color-aqua);
    border: 1px solid rgba(0, 166, 166, 0.25);
}

.specialist-home-card:hover .badge-teal-custom {
    background-color: var(--color-teal);
    color: var(--color-white);
    border-color: var(--color-teal);
}

body.dark-mode .specialist-home-card:hover .badge-teal-custom {
    background-color: var(--color-aqua);
    color: var(--color-navy);
    border-color: var(--color-aqua);
}

.instagram-btn-custom {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-teal) !important;
    border: 1px solid rgba(14, 116, 144, 0.3) !important;
    transition: var(--transition-smooth);
}

.instagram-btn-custom:hover {
    background-color: var(--color-teal);
    color: var(--color-white) !important;
    transform: rotate(15deg) scale(1.1);
}

body.dark-mode .instagram-btn-custom {
    color: var(--color-aqua) !important;
    border-color: rgba(0, 166, 166, 0.4) !important;
}

body.dark-mode .instagram-btn-custom:hover {
    background-color: var(--color-aqua);
    color: var(--color-navy) !important;
}

.full-bio-link {
    color: var(--color-teal) !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.full-bio-link:hover {
    color: var(--color-orange) !important;
}

.full-bio-link i {
    transition: var(--transition-smooth);
}

.full-bio-link:hover i {
    transform: translateX(3px);
}