/* 
=========================================
PREMIUM DENTAL CLINIC WEBSITE - STYLES
=========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Fonts */
    --font-primary: 'Plus Jakarta Sans', sans-serif;

    /* Theme-controlled semantic colors (Light mode defaults) */
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #334155;
    --heading-color: #0f172a;
    --border-color: rgba(15, 23, 42, 0.05);
    --muted-text: #64748b;
    
    --primary-color: #0d9488; /* Premium Deep Teal */
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;
    --secondary-color: #0ea5e9; /* Sky Blue Accent */
    --accent-color: #f59e0b; /* Amber Gold for subtle highlights */
    --dark-color: var(--heading-color); /* Maps to heading-color variable */
    --light-color: #f8fafc; /* Slate 50 */
    --text-muted: var(--muted-text); /* Maps to muted-text variable */
    --text-body: var(--text-color); /* Maps to text-color variable */
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 30px rgba(13, 148, 136, 0.35);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-color);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* SECTION HEADING */
.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--dark-color);
}
@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* BUTTONS */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-glow);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: 2px solid var(--dark-color);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.btn-secondary-custom:hover {
    background-color: var(--dark-color);
    color: var(--white);
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-md);
}

/* NAV STICKY ANIMATIONS */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}
.navbar-custom.navbar-sticky {
    top: 0 !important;
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}/* Menu Links Underline Animation */
.navbar-custom .nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--transition-fast);
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color) !important;
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Mobile Menu Adjustments */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        /* Remove padding and margin from here to prevent transition jump */
    }
    .navbar-custom .navbar-nav {
        background-color: var(--card-bg);
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
        gap: 0.75rem; /* Gap between menu items */
        align-items: stretch !important; /* Left align items instead of center */
    }
    .navbar-custom .nav-link {
        padding: 0.75rem 1.25rem !important; 
        border-radius: 12px;
        background-color: rgba(15, 23, 42, 0.03);
        transition: all var(--transition-normal);
        text-align: left !important;
        display: flex;
        align-items: center;
        justify-content: flex-start !important;
        gap: 0.75rem;
        width: 100%;
    }
    [data-bs-theme="dark"] .navbar-custom .nav-link {
        background-color: rgba(255, 255, 255, 0.03);
    }
    .navbar-custom .nav-link:hover,
    .navbar-custom .nav-link.active {
        background-color: var(--primary-light);
    }
    .navbar-custom .nav-link::after {
        display: none;
    }
    .navbar-custom .nav-item.d-flex {
        align-items: flex-start !important;
        gap: 1rem;
        margin-top: 0.5rem;
        padding-left: 0.5rem;
    }
    #themeToggle {
        width: auto !important;
        background: transparent !important;
        padding: 0.5rem 0 !important;
        transform: none !important;
    }
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        transition: transform var(--transition-normal);
    }
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    .navbar-toggler[aria-expanded="true"] {
        transform: rotate(90deg);
    }
    .collapsing {
        transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(240, 253, 250, 0.8) 0%, rgba(255, 255, 255, 1) 90%);
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
}
.hero-img {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}
.hero-image-wrapper:hover .hero-img {
    transform: scale(1.03);
}

/* Floating Stats Cards Keyframe animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.floating-stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}
.floating-stat-card.card-top-left {
    top: 15%;
    left: -5%;
    animation-delay: 0s;
}
.floating-stat-card.card-bottom-right {
    bottom: 15%;
    right: -5%;
    animation-delay: 3s;
}
@media (max-width: 991.98px) {
    .floating-stat-card {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin-top: 1rem;
        display: inline-flex;
        animation: none;
    }
}

/* SERVICES SECTION */
.services-section {
    background-color: var(--light-color);
}

.service-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(15, 23, 42, 0.03);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}
.service-card .service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.service-card:hover .service-icon {
    transform: scale(1.15);
    background-color: var(--primary-color);
    color: var(--white);
}

/* WHY CHOOSE US (FEATURES) */
.feature-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.02);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}
.feature-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* DOCTOR CARDS */
.doctor-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}
.doctor-img-wrapper {
    position: relative;
    overflow: hidden;
}
.doctor-img-wrapper img {
    transition: transform var(--transition-slow);
    width: 100%;
    height: 350px;
    object-fit: cover;
}
/* Social overlay */
.doctor-socials {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    transition: all var(--transition-normal);
    opacity: 0;
}
.doctor-social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.doctor-social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}
/* Hover trigger */
.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.doctor-card:hover .doctor-img-wrapper img {
    transform: scale(1.05);
}
.doctor-card:hover .doctor-socials {
    bottom: 0;
    opacity: 1;
}

/* STATS COUNTERS */
.stats-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1e293b 100%);
    color: var(--white);
    position: relative;
}
.stat-counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}
@media (max-width: 767.98px) {
    .stat-counter-number {
        font-size: 1.75rem;
    }
    .stats-section .text-white-50 {
        font-size: 0.85rem;
    }
}
.stat-card {
    transition: transform var(--transition-normal);
}
.stat-card:hover {
    transform: translateY(-5px);
}

/* TIMELINE SECTION */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: rgba(13, 148, 136, 0.15);
    transform: translateX(-50%);
}
@media (max-width: 767.98px) {
    .timeline-container::before {
        left: 20px;
    }
}
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.1);
    z-index: 2;
}
@media (max-width: 767.98px) {
    .timeline-badge {
        left: 20px;
        transform: translateX(-50%);
    }
}
.timeline-content {
    width: 45%;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.02);
    position: relative;
}
.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}
@media (max-width: 767.98px) {
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
}

/* TESTIMONIALS Carousel */
.testimonials-section {
    background-color: var(--light-color);
}
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.01);
}
.testimonial-quote-icon {
    font-size: 3rem;
    color: rgba(13, 148, 136, 0.1);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}
.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

/* BLOG CARD ANIMATIONS */
.blog-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}
.blog-img-wrapper {
    position: relative;
    overflow: hidden;
}
.blog-img-wrapper img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.06);
}
/* Read More Arrow Slide */
.blog-readmore {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap var(--transition-fast);
}
.blog-card:hover .blog-readmore {
    gap: 0.5rem;
}

/* CONTACT SECTION */
.contact-info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}
.contact-icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    background-color: transparent !important;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.15);
}

/* GENERAL IMAGE EFFECTS */
.img-premium {
    border-radius: 20px;
    transition: transform var(--transition-slow), box-shadow var(--transition-normal);
}
.img-premium:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* FOOTER */
.footer-section {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
}
.footer-logo {
    color: var(--white);
    font-weight: 800;
    font-size: 1.5rem;
}
.footer-heading {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    transition: all var(--transition-fast);
    display: block;
    margin-bottom: 0.75rem;
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}
.footer-social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all var(--transition-fast);
}
.footer-social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* BREADCRUMB PREMIUM STYLES */
.page-header {
    padding-top: 220px !important;
}

@media (max-width: 991.98px) {
    .page-header {
        padding-top: 180px !important;
    }
}

.breadcrumb-item a {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}
.breadcrumb-item a:hover {
    color: var(--primary-color);
}
.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* MAGAZINE BLOG STYLES */
.featured-blog-card {
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(15, 23, 42, 0.02);
}
.featured-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.featured-blog-img-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.featured-blog-card:hover .featured-blog-img-wrapper img {
    transform: scale(1.03);
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.02);
    margin-bottom: 2rem;
}
.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}
.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Search widget */
.search-widget .form-control {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0;
}

/* Category list */
.category-list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-body);
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.category-list-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Clinical case status badges */
.badge-status-problem {
    background-color: rgba(244, 63, 94, 0.12) !important;
    color: #e11d48 !important;
    font-weight: 700;
    border: 1px solid rgba(244, 63, 94, 0.1) !important;
}
.badge-status-treatment {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.1) !important;
}
.badge-status-result {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.1) !important;
}

.category-badge-pill {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem !important;
}
[data-bs-theme="dark"] .category-badge-pill {
    background-color: rgba(13, 148, 136, 0.2) !important;
    color: var(--primary-color) !important;
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.popular-post-item:last-child {
    border-bottom: none;
}
.popular-post-img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
}
.popular-post-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-color);
    transition: var(--transition-fast);
}
.popular-post-title:hover {
    color: var(--primary-color);
}

/* Article detail styles */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.article-meta i {
    color: var(--primary-color);
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--primary-light);
    border-radius: 0 16px 16px 0;
}
.article-content img {
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0;
}
.tag-badge {
    background-color: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
}
.tag-badge:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* EMERGENCY BANNER */
.emergency-banner {
    background-color: #be123c; /* Red 700 */
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0;
    z-index: 1040;
    position: relative;
}
.emergency-banner a {
    color: var(--white);
    text-decoration: underline;
}



/* DARK MODE OVERRIDES */
[data-bs-theme="dark"] {
    --bg-color: #0b0f19;
    --card-bg: #1e293b;
    --text-color: #94a3b8;
    --heading-color: #f8fafc;
    --border-color: rgba(255, 255, 255, 0.08);
    --muted-text: #64748b;
    --dark-color: #f8fafc;
    --light-color: #0f172a;
    --text-body: #94a3b8;
    --white: #1e293b;
    --primary-light: rgba(13, 148, 136, 0.15);
    background-color: #0b0f19 !important;
}
[data-bs-theme="dark"] body {
    background-color: #0b0f19 !important;
    color: #94a3b8;
}
[data-bs-theme="dark"] .text-dark {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(11, 15, 25, 0.9) 0%, rgba(30, 41, 59, 1) 90%) !important;
}
[data-bs-theme="dark"] .page-header {
    background: radial-gradient(circle at 10% 20%, rgba(11, 15, 25, 0.9) 0%, rgba(30, 41, 59, 1) 90%) !important;
}
[data-bs-theme="dark"] .navbar-custom {
    background-color: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
[data-bs-theme="dark"] .navbar-custom .nav-link {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .navbar-custom .nav-link:hover,
[data-bs-theme="dark"] .navbar-custom .nav-link.active {
    color: var(--primary-color) !important;
}
[data-bs-theme="dark"] .bg-white {
    background-color: #1e293b !important;
}
[data-bs-theme="dark"] .bg-light {
    background-color: #0b0f19 !important;
}
[data-bs-theme="dark"] .card, 
[data-bs-theme="dark"] .gallery-card,
[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .doctor-card,
[data-bs-theme="dark"] .process-step-card,
[data-bs-theme="dark"] .sidebar-widget,
[data-bs-theme="dark"] .featured-blog-card,
[data-bs-theme="dark"] .blog-card {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-bs-theme="dark"] input,
[data-bs-theme="dark"] select,
[data-bs-theme="dark"] textarea {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] thead.table-light th,
[data-bs-theme="dark"] .table thead th {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-bs-theme="dark"] .table {
    color: #94a3b8 !important;
    --bs-table-bg: transparent !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-bs-theme="dark"] .table td {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .table-hover tbody tr:hover {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .footer-section {
    background-color: #090d16 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}
[data-bs-theme="dark"] .footer-social-icon {
    background-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .footer-social-icon,
[data-bs-theme="dark"] .footer-social-icon i {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .footer-social-icon:hover,
[data-bs-theme="dark"] .footer-social-icon:hover i {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .footer-logo,
[data-bs-theme="dark"] .footer-heading {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .footer-links a {
    color: rgba(255, 255, 255, 0.5) !important;
}
[data-bs-theme="dark"] .footer-links a:hover {
    color: var(--primary-color) !important;
}
[data-bs-theme="dark"] .footer-section input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-bs-theme="dark"] .stats-section {
    background: linear-gradient(135deg, #090d16 0%, #1e293b 100%) !important;
}

/* FLOATING ACTIONS */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    font-size: 1.5rem;
}
.floating-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}
.floating-btn.whatsapp-color {
    background-color: #25d366;
}
.floating-btn.call-color {
    background-color: var(--primary-color);
}

/* BEFORE/AFTER SMILE GALLERY */
.gallery-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.02);
}
.before-after-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.before-after-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.before-after-container .after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.before-after-container:hover .after-img {
    opacity: 1;
}
.before-after-label {
    position: absolute;
    bottom: 10px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    color: var(--white);
    z-index: 5;
}
.before-after-label.before {
    left: 10px;
    background-color: rgba(15, 23, 42, 0.7);
}
.before-after-label.after {
    right: 10px;
    background-color: var(--primary-color);
}

/* PROGRESS BARS */
.progress-custom {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
    overflow: visible;
}
[data-bs-theme="dark"] .progress-custom {
    background-color: #334155;
}
.progress-bar-custom {
    background-color: var(--primary-color);
    border-radius: 4px;
    position: relative;
}

/* PROCESS FLOW */
.process-step-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.02);
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
}
.process-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px var(--primary-light);
}

/* VIDEO EMBED CONTAINER */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
.video-wrapper iframe,
.video-wrapper .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-placeholder {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-play-btn {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 0 0 15px rgba(13, 148, 136, 0.2);
    animation: playPulse 2s infinite;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.video-play-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}
@keyframes playPulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(13, 148, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

/* BEFORE/AFTER DYNAMIC DRAG SLIDER */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    user-select: none;
    box-shadow: var(--shadow-md);
}
.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.slider-img.img-after {
    width: 50%; /* JS will adjust this dynamically */
    z-index: 2;
    border-right: 2px solid var(--white);
}
.slider-bar {
    position: absolute;
    top: 0;
    left: 50%; /* JS will adjust this dynamically */
    width: 4px;
    height: 100%;
    background-color: var(--white);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
}
.slider-button {
    position: absolute;
    top: 50%;
    left: 50%; /* JS will adjust this dynamically */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 11;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
    transition: transform 0.1s ease;
}
.slider-button:active {
    transform: translate(-50%, -50%) scale(1.15);
}

/* TREATMENT COST ESTIMATOR */
.estimator-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.05);
}
.estimator-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.estimator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    background-color: var(--light-color);
    border: 1px solid rgba(15, 23, 42, 0.02);
    transition: all var(--transition-normal);
}
.estimator-item:hover {
    border-color: rgba(13, 148, 136, 0.2);
    background-color: var(--primary-light);
}
.estimator-total-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

/* FLOATING AI CHATBOT WIDGET */
.ai-chatbot-toggle {
    position: fixed;
    bottom: 95px; /* Sits above floating calls at bottom-right */
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 998;
    transition: all var(--transition-normal);
    border: none;
}
.ai-chatbot-toggle:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}
.ai-chatbot-panel {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 360px;
    height: 480px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
}
.ai-chatbot-panel.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.ai-chatbot-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.chat-message.bot {
    background-color: var(--white);
    color: var(--dark-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.chat-message.user {
    background-color: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.chat-suggested-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.chat-action-btn {
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.chat-action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
.ai-chatbot-footer {
    padding: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    background-color: var(--white);
}

/* DARK MODE SPECIFIC ENHANCEMENTS */
[data-bs-theme="dark"] .ai-chatbot-panel {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .ai-chatbot-body {
    background-color: #0f172a !important;
}
[data-bs-theme="dark"] .chat-message.bot {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .chat-action-btn {
    background-color: #1e293b !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}
[data-bs-theme="dark"] .chat-action-btn:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}
[data-bs-theme="dark"] .ai-chatbot-footer {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-bs-theme="dark"] .estimator-card {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-bs-theme="dark"] .estimator-item {
    background-color: #0f172a !important;
}
