/* =========================================================
   0. GLOBAL OVERFLOW RESET (Page Overflow & Cut Fix)
   ========================================================= */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

/* =========================================================
   1. TOPBAR & MARQUEE TICKER (FULL WIDTH & EXPANDED TICKER)
   ========================================================= */
.landing-topbar {
    width: 100%;
    background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 50%, #0a192f 100%);
    color: #ffffff;
    font-size: 13.5px;
    padding: 8px 0;
    overflow: hidden;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.landing-topbar-inner {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

/* Left Contact Items */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: opacity 0.2s ease;
}

.topbar-item:hover {
    opacity: 0.85;
}

.topbar-item svg {
    color: #e0f2fe;
}

/* White Scrolling Ticker Container (EXPANDED WIDE TICKER) */
.topbar-ticker-box {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
    margin: 0 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
}

/* Fixed Badge inside Ticker Box */
.ticker-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #153f8f 100%);
    color: #ffffff;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.12);
}

.ticker-badge svg {
    color: #fef08a;
}

/* Marquee Scrolling Track */
.topbar-center {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    will-change: transform;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    color: #0f172a;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.marquee-item:hover {
    color: #6366f1;
    text-decoration: underline;
}

.blog-icon {
    flex-shrink: 0;
    color: #6366f1;
}

/* Infinite Loop Keyframes */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Topbar Right Side Badge */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.topbar-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 5px 14px;
    border-radius: 16px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* =========================================================
   2. MAIN HEADER STYLING (FULL WIDTH, SINGLE-LINE BRAND, TALLER)
   ========================================================= */
.landing-header {
    width: 100%;
    position: relative;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.landing-header-shine {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    opacity: 0.75;
    pointer-events: none;
}

.landing-header-inner {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 18px 32px;
    min-height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.landing-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* Logo Icon Balanced Size */
.landing-header .brand .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-blue, #38bdf8), var(--accent-cyan, #1d4ed8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.landing-header .brand .icon img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Clinic Name Single Line Fix */
.brand-text { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    white-space: nowrap; 
}

.brand-title { 
    line-height: 1.2; 
    font-size: 17.5px; 
    font-weight: 700; 
    white-space: nowrap;
}

.brand-tagline { 
    display: block; 
    font-size: 11.5px; 
    font-weight: 400; 
    color: var(--text-muted); 
    margin-top: 2px; 
    white-space: nowrap; 
}

/* Nav Navigation Links */
.landing-nav { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.landing-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #334155);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.landing-nav a:hover,
.landing-nav a.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #153f8f 100%);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.landing-nav .btn-login {
    height: 40px;
    padding: 0 22px;
    margin-left: 8px;
    background: linear-gradient(135deg, #0ea5e9 0%, #153f8f 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.landing-nav .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* Button & Link Hover Shine Effect */
.landing-nav a, .landing-nav .btn-login { position: relative; overflow: hidden; }
.landing-nav a::before, .landing-nav .btn-login::before {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 80%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.85s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 2;
}
.landing-nav a:hover::before, .landing-nav .btn-login:hover::before { left: 170%; }

/* Mobile Controls */
.drawer-header, .drawer-contact-info, .hamburger-btn, .nav-close-btn { display: none; }

.hamburger-btn, .nav-close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--text-primary, #0f172a);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
}

.landing-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
}
.landing-overlay.active { display: block; }

/* =========================================================
   3. HERO & OTHER SECTIONS
   ========================================================= */
.hero-band { background: var(--sidebar-bg); padding: 70px 40px; }
.hero-band-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; align-items: center; }
.hero-copy h1 { color: #fff; font-size: 38px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-copy p { color: rgba(255,255,255,0.65); font-size: 15.5px; max-width: 460px; margin-bottom: 26px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; }
.hero-preview-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: 0 25px 60px rgba(0,0,0,0.35); }
.hero-preview-card .preview-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }

.page-hero { background: var(--sidebar-bg); padding: 56px 40px; text-align: center; }
.page-hero h1 { color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 15px; max-width: 560px; margin: 0 auto; }

.page-section { padding: 60px 40px; max-width: 900px; margin: 0 auto; }
.page-section h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 18px; }
.page-section p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }

.flow-section { padding: 50px 40px 10px; max-width: 900px; margin: 0 auto; }
.flow-strip { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 22px; }
.flow-step { font-size: 13px; font-weight: 600; color: var(--text-primary); padding: 8px 16px; border-radius: 20px; background: var(--bg-input); }
.flow-arrow { color: var(--text-muted); font-size: 14px; }

.features-section { padding: 60px 40px; max-width: 1080px; margin: 0 auto; }
.features-section h2 { text-align: center; font-size: 26px; font-weight: 800; color: var(--text-primary); margin-bottom: 36px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature-item { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 20px; }
.feature-item .f-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 12px; }
.feature-item h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.contact-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 28px; max-width: 560px; margin: 0 auto; }

/* =========================================================
   4. RICH FOOTER
   ========================================================= */
.landing-footer { background: var(--sidebar-bg); padding: 44px 40px 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 28px; max-width: 1150px; margin: 0 auto; padding-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand .icon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.footer-brand .icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand-col p { font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-col a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; margin-bottom: 11px; }
.footer-col a i { font-size: 11px; width: 14px; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1150px; margin: 0 auto; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.35); text-align: center; }
.footer-bottom a { color: var(--accent-blue); font-weight: 600; text-decoration: none; }

/* =========================================================
   5. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ========================================================= */

/* Desktop Breakpoint for Nav Items */
@media (max-width: 1280px) {
    .landing-nav { gap: 2px; }
    .landing-nav a { padding: 0 8px; font-size: 13px; }
}

/* Tablet & Mobile Drawer (Under 991px) */
@media (max-width: 991px) {
    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Side Drawer Setup */
    .landing-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        
        padding: 20px 18px 100px 18px !important;
        gap: 8px !important;
        background: var(--bg-card, #ffffff) !important;
        border-left: 1px solid var(--border-subtle, rgba(0,0,0,0.1));
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        z-index: 99999 !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-sizing: border-box !important;
    }

    .landing-nav.active {
        right: 0 !important;
    }

    /* Drawer Header & Cross Button Fix */
    .drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-bottom: 14px !important;
        border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
        margin-bottom: 10px !important;
        flex-shrink: 0 !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    /* Prevent Title Overflow from Pushing Cross Button Out */
    .drawer-header .brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .drawer-header .brand-text {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .drawer-header .brand-title {
        font-size: 15px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .drawer-header .brand-tagline {
        font-size: 10.5px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Perfectly Positioned Cross (Close) Button */
    .nav-close-btn { 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important; /* Button cut nahi hoga */
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        font-size: 20px !important;
        color: var(--text-primary, #0f172a) !important;
        background: rgba(0, 0, 0, 0.06) !important;
        border-radius: 50% !important;
        border: none !important;
        cursor: pointer !important;
    }

    .nav-close-btn:hover {
        background: rgba(0, 0, 0, 0.12) !important;
    }

    /* Drawer Links Styling */
    .landing-nav > a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 42px !important;
        width: 100% !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        text-align: left !important;
        flex-shrink: 0;
    }

    /* Login Button in Drawer */
    .landing-nav .btn-login {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 44px !important;
        width: 100% !important;
        margin: 10px 0 !important;
        border-radius: 10px !important;
        flex-shrink: 0;
    }

    /* Contact Info Section in Drawer */
    .drawer-contact-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin-top: 15px !important;
        padding-top: 16px !important;
        padding-bottom: 20px !important;
        border-top: 1px dashed var(--border-subtle, rgba(0,0,0,0.15));
        gap: 12px !important;
        text-align: left !important;
        flex-shrink: 0;
    }

    .drawer-contact-info h4 {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin-bottom: 4px;
    }

    .drawer-contact-item {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 2px 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        font-size: 13px !important;
        color: var(--text-secondary) !important;
        text-decoration: none;
        line-height: 1.4;
    }

    .drawer-contact-item i {
        font-size: 14px;
        color: var(--accent-blue, #6366f1);
        margin-top: 2px;
        margin-right: 10px;
        flex-shrink: 0;
        width: 16px;
        text-align: center;
    }
}

/* Mobile Screens (Under 768px) */
@media (max-width: 768px) {
    .hero-band-inner { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 30px; }

    /* Hide static side elements, but KEEP ticker/update line visible */
    .topbar-left,
    .topbar-timing, 
    .topbar-right { 
        display: none !important; 
    }

    /* Enable Ticker / Marquee Updates Line for Mobile/Tablet */
    .topbar-center {
        display: flex !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .topbar-ticker-box {
        width: 100% !important;
        margin: 0 !important;
        height: 34px !important;
    }

    .ticker-badge {
        padding: 0 10px !important;
        font-size: 10.5px !important;
    }

    .marquee-item {
        font-size: 12px !important;
    }

    .landing-topbar-inner { 
        padding: 0 12px !important; 
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
    }
    .footer-brand-col { grid-column: 1 / -1; }
}

/* Extra Small Mobile (Under 640px) */
@media (max-width: 640px) {
    .landing-header-inner { padding: 12px 16px; }
    .hero-band { padding: 40px 16px; }
    .flow-section, .features-section, .page-section { padding-left: 16px; padding-right: 16px; }
    .page-hero { padding: 36px 16px; }
    .landing-footer { padding: 30px 16px 0; }

    .footer-col h4 { font-size: 10.5px; margin-bottom: 10px; }
    .footer-col a { font-size: 12.5px; margin-bottom: 8px; }
    .footer-brand-col p { font-size: 12px; line-height: 1.6; }
    .footer-bottom { font-size: 11.5px; padding: 14px 0; }
}

@media (max-width: 400px) {
    .topbar-item span {
        font-size: 11px;
        max-width: 110px;
    }
}