/* Custom Style Extensions for Dr. Farha's Multi Speciality Homoeopathic Clinic */

:root {
    --bs-font-sans-serif: 'Poppins', 'Nunito', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --color-primary: #00897B;
    --color-secondary: #26A69A;
    --color-accent: #4DB6AC;
    --color-bg-light: #F9FBFC;
    --color-dark: #121F1E;
    --color-glass: rgba(255, 255, 255, 0.85);
}

[data-bs-theme="dark"] {
    --color-bg-light: #0D1615;
    --color-glass: rgba(18, 31, 30, 0.9);
    body {
        background-color: #0B1211;
        color: #E2E8F0;
    }
    .bg-white-glass {
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(12px);
    }
    .card {
        background-color: #152220;
        border-color: #243835;
        color: #E2E8F0;
    }
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--color-bg-light);
    color: #334155;
    overflow-x: hidden;
}

.font-montserrat {
    font-family: var(--font-heading);
}

/* Custom Palette Utility Classes */
.bg-teal {
    background-color: var(--color-primary) !important;
}
.text-teal {
    color: var(--color-primary) !important;
}
.text-teal-light {
    color: var(--color-accent) !important;
}
.btn-teal {
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}
.btn-teal:hover {
    background-color: #00796B;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 137, 123, 0.3);
}
.btn-outline-teal {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-teal:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}
.bg-amber {
    background-color: #FFB300 !important;
}
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }

/* Glassmorphism & Header */
.bg-white-glass {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.brand-icon-box {
    width: 44px;
    height: 44px;
}

/* Hover & Animation Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 137, 123, 0.15) !important;
}
.hover-teal:hover {
    color: var(--color-primary) !important;
}

/* Hero Section Badge */
.badge-doctor-rank {
    background: linear-gradient(135deg, #00897B 0%, #26A69A 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.25);
}

/* Cards & Modals */
.rounded-4 {
    border-radius: 1rem !important;
}
.rounded-5 {
    border-radius: 1.5rem !important;
}

/* Floating CTAs */
.floating-cta-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Marquee Ticker Animation */
.ticker-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

/* QR Code & WhatsApp Sharing Styles */
.qr-code-wrapper {
    background: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px dashed rgba(0, 137, 123, 0.35);
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 137, 123, 0.08);
}
.qr-code-wrapper canvas,
.qr-code-wrapper img {
    border-radius: 0.5rem;
    display: block;
    margin: 0 auto;
}
.qr-badge-center {
    pointer-events: none;
    z-index: 5;
}
.bg-gradient-light {
    background: linear-gradient(180deg, #f8fafc 0%, #edf7f6 100%);
}

marquee {
    display: block;
    width: 100%;
}

/* Minimal Compact Navbar Logo (.png format) */
.navbar-logo-img {
    height: 34px;
    max-height: 38px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar-logo-img {
        height: 28px;
    }
}
.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}
.whatsapp-btn {
    background-color: #25D366;
}
.call-btn {
    background-color: var(--color-primary);
}

/* Malayalam Text Styling */
html[lang="ml"] body {
    font-family: 'Manjari', 'Noto Sans Malayalam', 'Poppins', sans-serif;
}

html[lang="ml"] .font-montserrat {
    font-family: 'Manjari', 'Noto Sans Malayalam', 'Montserrat', sans-serif;
    font-weight: 700;
}

.malayalam-banner {
    font-family: 'Manjari', 'Noto Sans Malayalam', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 5px solid #FF9800;
}

/* ==========================================================================
   PREMIUM DUAL-LANGUAGE SWITCHER STYLES
   ========================================================================== */

/* 1. Main Action Toggle Button (Glow & Gradient) */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #00897B 0%, #004D40 100%);
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 12px rgba(0, 137, 123, 0.35);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.lang-toggle-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.lang-toggle-btn:hover::before {
    transform: scale(1);
}

.lang-toggle-btn:hover {
    background: linear-gradient(135deg, #009688 0%, #00695C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 137, 123, 0.5);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.7);
}

.lang-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 137, 123, 0.4);
}

.lang-toggle-btn .lang-icon {
    font-size: 1.05rem;
    color: #FFD54F;
    animation: slow-pulse 3s infinite ease-in-out;
}

.lang-toggle-btn .lang-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1px 6px;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    font-weight: 800;
    text-transform: uppercase;
}

/* 2. Segmented Dual Pill Switcher (Top Bar & Mobile Drawer) */
.lang-switch-box {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50rem;
    padding: 3px;
    user-select: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.lang-switch-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.lang-switch-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
}

.lang-switch-btn.active {
    background: #ffffff;
    color: #00796B !important;
    font-weight: 800;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* 3. Light Container Variant (For inside white menu & pages) */
.lang-switch-box-light {
    background: #e0f2f1;
    border: 1.5px solid #b2dfdb;
}

.lang-switch-box-light .lang-switch-btn {
    color: #004D40;
}

.lang-switch-box-light .lang-switch-btn:hover {
    background: rgba(0, 137, 123, 0.1);
    color: #004D40 !important;
}

.lang-switch-box-light .lang-switch-btn.active {
    background: #00897B;
    color: #ffffff !important;
    border-color: #00897B;
    box-shadow: 0 2px 8px rgba(0, 137, 123, 0.35);
}

@keyframes slow-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

/* ==========================================================================
   HOMEPAGE HERO SLIDER STYLES
   ========================================================================== */
.hero-slider-section {
    min-height: 520px;
}

#heroCarousel .carousel-inner {
    overflow: visible;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--color-primary, #00897B);
    opacity: 0.35;
    transition: opacity 0.3s ease, width 0.3s ease;
}

#heroCarousel .carousel-indicators .active {
    opacity: 1;
    width: 44px !important;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}


