/* ========================================== */
/* 🔥 PREMIUM SAAS CSS VARIABLES              */
/* ========================================== */
:root {
    --dw-primary: #2563eb; 
    --dw-text-dark: #0f172a; 
    --dw-text-muted: #475569; 
    --dw-bg-light: #f8fafc; 
    --dw-border: rgba(0, 0, 0, 0.06); 
    --dw-font: 'Inter', system-ui, -apple-system, sans-serif; 
}

/* ========================================== */
/* 1. SAAS BASE HEADER (FIXED + GLASS EFFECT) */
/* ========================================== */
.dw-header { 
    background: rgba(255, 255, 255, 0.65) !important; 
    backdrop-filter: blur(16px) !important; 
    -webkit-backdrop-filter: blur(16px) !important; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important; 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important;
    z-index: 99999 !important; 
    font-family: var(--dw-font); 
    width: 100%;
    transition: all 0.3s ease;
}

.dw-nav {
    max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; justify-content: space-between; align-items: center; 
}

.dw-logo a { font-size: 21px; font-weight: 800; color: var(--dw-text-dark) !important; text-decoration: none !important; letter-spacing: -0.5px; }

.dw-header button, .dw-mobile-sidebar button { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; color: var(--dw-text-dark) !important; outline: none !important; }

/* ========================================== */
/* 2. DESKTOP MENU & MEGA BOXES              */
/* ========================================== */
.dw-menu { display: flex; align-items: center; gap: 36px; height: 100%; }

.dw-nav-link, .dw-drop-btn { text-decoration: none !important; font-size: 14px !important; font-weight: 500 !important; cursor: pointer; display: flex; align-items: center; gap: 4px; height: 100%; transition: color 0.2s; color: var(--dw-text-muted) !important; }
.dw-nav-link:hover, .dw-drop-btn:hover { color: var(--dw-text-dark) !important; }

.dw-dropdown { position: relative; height: 100%; }
.dw-mega { position: absolute; top: 100%; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100; margin-top: 5px; }

.pos-left { left: 0; transform: translateY(10px); }
.dw-dropdown:hover .pos-left { opacity: 1; visibility: visible; transform: translateY(0); }

.pos-center { left: 50%; transform: translateX(-50%) translateY(10px); }
.dw-dropdown:hover .pos-center { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.pos-right { right: 0; transform: translateY(10px); }
.dw-dropdown:hover .pos-right { opacity: 1; visibility: visible; transform: translateY(0); }

.dw-mega-inner { background: #ffffff; border-radius: 16px; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1); border: 1px solid var(--dw-border); padding: 32px; max-height: 65vh; overflow-y: auto; }
.dw-mega-inner::-webkit-scrollbar { width: 6px; }
.dw-mega-inner::-webkit-scrollbar-track { background: var(--dw-bg-light); border-radius: 10px; }
.dw-mega-inner::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.dw-massive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 40px; }
.dw-col h4 { font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8 !important; margin-bottom: 16px !important; font-weight: 700 !important; border-bottom: 1px solid var(--dw-border); padding-bottom: 12px; grid-column: 1 / -1; }

/* ========================================== */
/* 🚨 3. MASTER FIX: NO BULLETS & NO WRAP 🚨  */
/* ========================================== */
.dw-header .dw-mega-inner ul, .dw-header .dw-mega-inner li { list-style: none !important; list-style-type: none !important; padding: 0 !important; margin: 0 !important; }
.dw-header .dw-mega-inner li::before, .dw-header .dw-mega-inner li::after { display: none !important; content: none !important; }

.dw-header .dw-mega-inner li a { display: block !important; padding: 8px 12px !important; color: #334155 !important; text-decoration: none !important; font-size: 14px !important; font-weight: 500 !important; border-radius: 8px !important; transition: all 0.2s ease !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.dw-header .dw-mega-inner li a:hover { background: #f1f5f9 !important; color: var(--dw-text-dark) !important; }

/* ========================================== */
/* 4. MOBILE MENU & SIDEBAR                  */
/* ========================================== */
.dw-hamburger { display: none !important; cursor: pointer; height: 100% !important; align-items: center; color: var(--dw-text-dark) !important; }
.dw-hamburger svg, .dw-close-btn svg { display: block !important; width: 28px !important; height: 28px !important; }

.dw-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(4px); z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.dw-overlay.active { opacity: 1; visibility: visible; }

.dw-mobile-sidebar { position: fixed; top: 0; right: -350px; width: 320px; height: 100vh; background: #ffffff; z-index: 10000; box-shadow: none; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.dw-mobile-sidebar.open { right: 0; box-shadow: -15px 0 40px rgba(0,0,0,0.12); }

.dw-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid #f1f5f9; background: #ffffff; }
.dw-sidebar-title { font-weight: 800; font-size: 19px; color: var(--dw-text-dark); letter-spacing: -0.5px; }
.dw-close-btn { color: #94a3b8 !important; cursor: pointer; transition: color 0.2s; }
.dw-close-btn:hover { color: #ef4444 !important; }
.dw-sidebar-content { padding: 12px 24px 40px 24px; overflow-y: auto; background: #ffffff; }

.dw-mob-home-link { display: block; font-size: 16px; font-weight: 600; color: var(--dw-text-dark); text-decoration: none; padding: 18px 0; border-bottom: 1px solid #f1f5f9; }
.dw-accordion-header { display: flex; justify-content: space-between; align-items: stretch; border-bottom: 1px solid #f1f5f9; }
.dw-mob-link { font-size: 16px; font-weight: 500; color: var(--dw-text-dark); text-decoration: none; padding: 18px 0; flex: 1; transition: color 0.2s ease; }

.dw-toggle-btn { width: 120px; display: flex; justify-content: flex-end; align-items: center; padding: 0 !important; cursor: pointer; color: #94a3b8 !important; font-size: 20px !important; background: transparent !important; }
.dw-toggle-btn:hover, .dw-mob-link:hover { color: var(--dw-text-dark) !important; }

.dw-accordion-content { display: none; padding: 12px 0 20px 0; }
.dw-mob-group a { display: block; padding: 14px 18px; margin: 8px 0; background: #f8fafc; border-radius: 12px; color: #475569; text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid rgba(0,0,0,0.03); transition: all 0.2s ease; }
.dw-mob-group a:hover, .dw-mob-group a:active { background: #ffffff; border-color: #cbd5e1; color: var(--dw-text-dark); box-shadow: 0 4px 10px -2px rgba(0,0,0,0.05); transform: translateX(4px); }

.dw-header-spacer { display: block; width: 100%; height: 76px; background: transparent; pointer-events: none; }

/* ========================================== */
/* 🔥 5. SPOTLIGHT LIVE SEARCH CSS            */
/* ========================================== */

/* Mobile Action Wrapper to hold search & hamburger */
.dw-mobile-actions { display: flex; align-items: center; gap: 10px; }

.dw-search-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f8fafc !important; border: 1px solid #e2e8f0 !important; padding: 8px 12px !important; border-radius: 8px !important; cursor: pointer; color: #475569 !important; font-size: 14px !important; font-weight: 500 !important; transition: all 0.2s; margin-left: 20px; }
.dw-search-btn:hover { background: #f1f5f9 !important; color: #0f172a !important; border-color: #cbd5e1 !important; }

/* The Search Icon */
.dw-search-btn::before { content: "🔍"; font-size: 14px; }

.dw-search-btn kbd { background: #fff; border: 1px solid #cbd5e1; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; color: #94a3b8; }

.dw-search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 999999; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.dw-search-overlay.active { opacity: 1; visibility: visible; }

.dw-search-box { background: #fff; width: 100%; max-width: 650px; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); overflow: hidden; transform: translateY(-20px) scale(0.95); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid #e2e8f0; margin: 0 20px; }
.dw-search-overlay.active .dw-search-box { transform: translateY(0) scale(1); }

.dw-search-header { display: flex; align-items: center; padding: 20px 24px; border-bottom: 1px solid #f1f5f9; }
.dw-search-header input { flex: 1; border: none; font-size: 19px; outline: none; margin-left: 15px; color: #0f172a; font-family: var(--dw-font); background: transparent; font-weight: 500; }
.dw-search-header input::placeholder { color: #94a3b8; }
.dw-close-search { background: #f1f5f9; border: none; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #64748b; cursor: pointer; transition: 0.2s; }
.dw-close-search:hover { background: #e2e8f0; color: #ef4444; }

.dw-search-results { max-height: 400px; overflow-y: auto; padding: 20px 24px; background: #f8fafc; }
.search-placeholder { text-align: center; color: #94a3b8; font-size: 15px; padding: 20px 0; }

/* ========================================== */
/* 🚨 6. SEARCH RESULTS STYLING (THEME FIX) 🚨*/
/* ========================================== */
.dw-search-results ul.dw-search-list, .dw-search-results ul.dw-search-list li { list-style: none !important; list-style-type: none !important; padding: 0 !important; margin: 0 !important; }
.dw-search-results ul.dw-search-list li::before, .dw-search-results ul.dw-search-list li::after { display: none !important; content: none !important; }
.dw-search-results ul.dw-search-list li { margin-bottom: 10px !important; }

.dw-search-results ul.dw-search-list a { display: flex !important; align-items: center !important; padding: 14px 18px !important; background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; text-decoration: none !important; color: #0f172a !important; font-weight: 600 !important; font-size: 15px !important; transition: all 0.2s ease !important; box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important; }
.dw-search-results ul.dw-search-list a:hover { background: #eff6ff !important; border-color: #3b82f6 !important; color: #1d4ed8 !important; transform: translateX(6px) !important; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1) !important; }

.dw-search-list .search-icon { margin-right: 12px !important; font-size: 18px !important; }
.dw-search-list .search-text { flex-grow: 1 !important; }
.dw-search-list .search-arrow { color: #cbd5e1 !important; font-size: 18px !important; transition: 0.2s !important; }
.dw-search-results ul.dw-search-list a:hover .search-arrow { color: #3b82f6 !important; transform: translateX(4px) !important; }

/* ========================================== */
/* 📱 7. RESPONSIVE MOBILE FIXES             */
/* ========================================== */

/* Desktop par extra icon hata do */
.dw-search-btn::before { display: none !important; content: none !important; }
.dw-search-btn svg { color: #475569; transition: 0.2s; }

@media (max-width: 1024px) { 
    .dw-menu { display: none !important; } 
    .dw-hamburger { display: flex !important; }
    .dw-nav { height: 70px; padding: 0 20px; }
    .dw-header-spacer { height: 70px; }
    
    /* Mobile Search Button (Blue Icon, No Text) */
    .dw-search-btn { margin-left: auto; margin-right: 0; padding: 8px !important; width: 40px; height: 40px; border-radius: 50% !important; border-color: transparent !important; background: transparent !important; gap: 0;}
    .dw-search-btn span, .dw-search-btn kbd { display: none !important; } 
    .dw-search-btn svg { width: 24px !important; height: 24px !important; color: #2563eb !important; } /* Blue Icon for mobile */
    .dw-search-btn:hover { background: #f1f5f9 !important; border-color: transparent !important; }
}

@media (max-width: 600px) {
    /* 🔥 FIX: Mobile Search Popup Box Alignment 🔥 */
    .dw-search-box { margin: 0 15px; width: calc(100% - 30px); border-radius: 14px; }
    .dw-search-header { padding: 15px 15px; } /* Thodi padding kam ki */
    .dw-search-header svg { width: 20px; height: 20px; min-width: 20px; } /* Icon shrink na ho */
    .dw-search-header input { font-size: 15px; margin-left: 10px; width: 100%; } /* Text size thik kiya */
    .dw-close-search { padding: 6px 10px; font-size: 11px; margin-left: 10px; }
    .dw-search-results { padding: 15px; max-height: 350px; }
}