/* ======= AUCTECH PREMIUM HEADER & GLOBAL STYLES ======= */

/* ======= GLOBAL LOGO WATERMARK ======= */
.site-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: url('../img/auctech_logo.webp') no-repeat center center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 768px) {
    .site-watermark {
        width: 250px;
        height: 250px;
        opacity: 0.03;
    }
}

/* GLOBAL BRAND OVERRIDE */
:root {
    --primary: #b1964c;
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #02245B;
}

/* Global font override only for specific elements or when scoped */
body, h1, h2, h3, h4, h5, h6, p, a, div, span, button, input, select, textarea {
    font-family: 'Onest', sans-serif;
}
.navbar, .hpro-mobile-overlay, .premium-hero {
    font-family: 'Onest', sans-serif !important;
}
.navbar {
    z-index: 99999 !important;
}

/* Force Brand Colors on Specific UI Elements */
.text-primary, .read_more a, .categories-view1 a { color: #b1964c !important; }
.bg-primary, .btn-primary, .categories-view1 i, .service-item .details .icon, .testimonial-item .btn-square { background-color: #b1964c !important; color: #fff !important; }

/* Navbar & Link Hovers */
.btn-primary:hover { background-color: #02245B !important; color: #fff !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #b1964c !important; }
a:hover { color: #02245B; }

/* Restore WhatsApp Floating Button Brand Color */
.wa-floating-btn { background-color: #25D366 !important; }
.wa-floating-btn i { color: #fff !important; }

/* Shield FontAwesome icons from font-family override */
i, .fa, .fas, .fab, .far, .fa-solid, .fa-brands { font-family: "Font Awesome 6 Free", "FontAwesome" !important; }
.fab, .fa-brands { font-family: "Font Awesome 6 Brands" !important; }

/* Theme Styles */
.categories-view1-full {
    background-image: linear-gradient(rgba(2, 30, 75, 0.96), rgba(2, 30, 75, 0.96)), url('../img/bg-home.webp') !important;
    background-blend-mode: multiply;
    background-color: #021e4b !important;
    color: #ffffff !important;
}
.categories-view1-full p, 
.categories-view1-full h1, 
.categories-view1-full h2, 
.categories-view1-full h3, 
.categories-view1-full h4, 
.categories-view1-full h5, 
.categories-view1-full h6,
.categories-view1-full span, 
.categories-view1-full small {
    color: #ffffff !important;
}
.categories-view1-full .categories-view1-wrap {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* --- STYLISH SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f4f4f4; }
::-webkit-scrollbar-thumb { 
    background: var(--primary); 
    border-radius: 20px;
    transition: 0.3s;
}
::-webkit-scrollbar-thumb:hover { background: var(--dark); }

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f4f4f4;
}

/* --- STYLISH MOBILE MENU --- */
.hpro-nav-toggler {
    width: 30px; height: 22px; position: relative; cursor: pointer; z-index: 1100;
    display: none; border: none; background: none; padding: 0;
}
@media (max-width: 991px) { .hpro-nav-toggler { display: block; } }
.hpro-nav-toggler span {
    display: block; position: absolute; height: 2.5px; width: 100%;
    background: var(--dark); border-radius: 10px; transition: .3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
.hpro-nav-toggler span:nth-child(1) { top: 0; }
.hpro-nav-toggler span:nth-child(2) { top: 9px; width: 70%; right: 0; }
.hpro-nav-toggler span:nth-child(3) { top: 18px; }

.hpro-nav-toggler.active span:nth-child(1) { top: 9px; transform: rotate(135deg); background: #fff; }
.hpro-nav-toggler.active span:nth-child(2) { opacity: 0; right: 100%; }
.hpro-nav-toggler.active span:nth-child(3) { top: 9px; transform: rotate(-135deg); background: #fff; }

.hpro-mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    z-index: 999998; display: block; overflow: hidden;
    opacity: 0; visibility: hidden; transition: 0.4s ease;
}
.hpro-mobile-overlay.active { opacity: 1; visibility: visible; }

@media (min-width: 992px) {
    .hpro-mobile-overlay { display: none !important; }
}

.hpro-mm-inner { 
    position: absolute; top: 0; left: -320px; width: 320px; height: 100%; 
    background: #fff; box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto; text-align: left; padding: 20px 0 80px 0;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
}
.hpro-mobile-overlay.active .hpro-mm-inner { left: 0; }

.hpro-mm-link, .hpro-mm-link:visited, .hpro-mm-link:hover, .hpro-mm-link:active, .hpro-mm-link:focus {
    display: block; font-size: 15px; font-weight: 500; color: #222 !important;
    text-transform: uppercase; letter-spacing: 0.5px;
    text-decoration: none; padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0; transition: 0.3s;
}
.hpro-mm-link:hover { color: var(--primary) !important; background: #fafafa; }

.hpro-mm-link:nth-child(1) { transition-delay: 0.1s; }
.hpro-mm-link:nth-child(2) { transition-delay: 0.15s; }
.hpro-mm-link:nth-child(3) { transition-delay: 0.2s; }
.hpro-mm-link:nth-child(4) { transition-delay: 0.25s; }
.hpro-mm-link:nth-child(5) { transition-delay: 0.3s; }
.hpro-mm-link:nth-child(6) { transition-delay: 0.35s; }

/* Close Button inside Menu */
.hpro-mm-close {
    position: absolute; top: 15px; right: 20px; font-size: 24px; color: #333; cursor: pointer;
    transition: 0.3s; z-index: 10;
}
.hpro-mm-close:hover { color: var(--primary); transform: rotate(90deg); }

.hpro-mm-btn {
    margin: 30px 25px;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 5px;
    background: var(--primary);
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: 0.3s;
}
.hpro-mm-btn:hover { background: var(--dark); color: #fff; transform: translateY(-3px); }

/* Sub-menu styling */
.hpro-mm-item-with-toggle {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}
.hpro-mm-item-with-toggle .hpro-mm-link { border-bottom: none; flex-grow: 1; }
.hpro-sub-toggle {
    padding: 18px 25px; cursor: pointer; color: #555; transition: 0.3s;
}
.hpro-sub-toggle:hover { color: var(--primary); background: #fafafa; }

.hpro-sub-menu { 
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; 
    background: #fafafa; margin: 0;
}
.hpro-sub-menu.open { max-height: 800px; transition: max-height 0.8s ease-in; padding: 5px 0 10px 0; }
.hpro-sub-link, .hpro-sub-link:visited, .hpro-sub-link:active, .hpro-sub-link:focus { 
    display: block; font-size: 14px; color: #555 !important; 
    font-weight: 400 !important; text-transform: capitalize;
    text-decoration: none; padding: 12px 25px 12px 40px; transition: 0.3s;
    border-bottom: 1px solid #f9f9f9;
}
.hpro-sub-link:hover { color: var(--primary); }

@media (max-width: 991px) {
    .navbar { 
        height: 80px !important; 
        background: rgba(255, 255, 255, 0.95) !important; 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0,0,0,0.08);
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: fixed !important; 
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 0 15px !important;
        z-index: 99999 !important;
    }
    .navbar-brand { 
        position: absolute !important; 
        left: 50% !important; 
        top: 50% !important; 
        transform: translate(-50%, -50%) !important; 
        margin: 0 !important; 
        padding: 0 !important;
        z-index: 999999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        height: 80px !important;
        width: auto !important;
    }
    .navbar-brand::after { display: none !important; }
    
    .navbar-brand img { 
        height: 65px !important; 
        width: auto !important; 
        display: block !important;
    }
    .hpro-nav-toggler { 
        margin-left: auto !important;
        position: relative !important;
        z-index: 999999 !important;
        display: block !important;
    }
}

/* MEGA MENU DESKTOP STYLES */
@media (min-width: 992px) {
    .navbar-nav .nav-item.mega-drop { position: static; }
    .mega-menu {
        position: absolute; top: 100%; left: 50%; width: 95%; max-width: 1000px;
        transform: translateX(-50%) translateY(20px);
        background: rgba(255, 255, 255, 0.92); 
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 3px solid var(--primary);
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        opacity: 0; visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000; padding: 40px 0;
        border-radius: 0 0 20px 20px;
        overflow: hidden;
        border-left: 1px solid rgba(255,255,255,0.2);
        border-right: 1px solid rgba(255,255,255,0.2);
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .mega-menu::before {
        content: ""; position: absolute; bottom: -20px; right: -20px; width: 300px; height: 300px;
        background: url('../img/auctech_logo.webp') no-repeat center center;
        background-size: contain; opacity: 0.12; pointer-events: none;
        z-index: -1; filter: grayscale(1);
    }
    .nav-item.mega-drop:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .mega-menu-container { width: 100%; margin: 0 auto; display: flex; gap: 30px; padding: 0 40px; position: relative; z-index: 1; }
    .mega-column { flex: 1; }
    .mega-title { 
        font-size: 14px; text-transform: uppercase; letter-spacing: 1px; 
        color: var(--primary); font-weight: 800; margin-bottom: 25px; 
        display: block; border-left: 3px solid var(--primary); padding-left: 10px;
    }
    .mega-item { 
        display: flex; align-items: center; gap: 15px; text-decoration: none; 
        padding: 12px 15px; border-radius: 8px; transition: 0.3s; margin-bottom: 5px;
    }
    .mega-item:hover { background: rgba(177,150,76,0.05); transform: translateX(5px); }
    .mega-icon { 
        width: 40px; height: 40px; background: var(--light); color: var(--primary);
        display: flex; align-items: center; justify-content: center; border-radius: 10px;
        font-size: 18px; transition: 0.3s;
    }
    .mega-item:hover .mega-icon { background: var(--primary); color: #fff; }
    .mega-text h6 { margin: 0; font-size: 16px; font-weight: 700; color: var(--dark); transition: 0.3s; }
    .mega-text span { font-size: 12px; color: #777; transition: 0.3s; }
    .mega-text h6 { color: var(--primary); }
}

/* STICKY NAVBAR ACTIVE STATE (Desktop Reverted & Fixed) */
@media (min-width: 992px) {
    .navbar.sticky-active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
        padding: 0 20px !important;
        border-radius: 0 !important;
        border: none !important;
        animation: slideDownFull 0.4s ease-out;
        z-index: 2200 !important;
        height: 75px !important;
        display: flex !important;
        align-items: center !important;
    }
    @keyframes slideDownFull {
        from { transform: translateY(-100%); }
        to { transform: translateY(0); }
    }
    /* Fix Visibility: Ensure links are dark on white sticky background */
    .navbar.sticky-active .nav-link {
        color: var(--dark) !important;
    }
    .navbar.sticky-active .nav-link:hover, 
    .navbar.sticky-active .nav-link.active {
        color: var(--primary) !important;
    }
    
    .navbar.sticky-active .navbar-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .navbar.sticky-active .navbar-brand img {
        height: 60px !important; /* Slightly smaller for the compact sticky bar */
        width: auto !important;
        transition: 0.3s;
        display: block !important;
        margin: auto 0 !important;
    }
}

/* ======= GLOBAL PREMIUM HERO ======= */
.premium-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 40%, #1a1202 100%);
    text-align: center;
}
.premium-hero::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(177,150,76,0.15) 0%, transparent 60%);
    top: -200px; left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: heroPulse 6s ease-in-out infinite alternate;
}
@keyframes heroPulse { from { transform: translateX(-50%) scale(1); opacity: 0.8; } to { transform: translateX(-50%) scale(1.1); opacity: 1; } }

.premium-hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(177,150,76,0.1);
    border: 1px solid rgba(177,150,76,0.3);
    color: #b1964c;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.premium-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
}
.premium-hero h1 span {
    background: linear-gradient(to right, #b1964c, #d4b86b, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.premium-hero p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* PREMIUM BREADCRUMBS */
.premium-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.premium-breadcrumb li a { color: rgba(255,255,255,0.4); text-decoration: none; transition: 0.3s; }
.premium-breadcrumb li a:hover { color: #b1964c; }
.premium-breadcrumb li.active { color: #b1964c; }
.premium-breadcrumb li + li::before {
    content: '/';
    color: rgba(255,255,255,0.2);
    margin-right: 12px;
}

/* ======= MODERN BLOG ENHANCEMENTS ======= */
body { background-color: #f8fafc; } /* Soft off-white for professional feel */

.blog-article {
    background: #ffffff !important;
    border-radius: 30px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.06) !important;
    padding: 60px !important;
}

.blog-content { 
    font-size: 19px !important; 
    line-height: 1.9 !important; 
    color: #334155 !important;
}
.blog-content h2, .blog-content h3 { color: var(--dark) !important; margin-top: 2.5rem !important; }

/* Glassmorphic Sidebar Widgets */
.sidebar .widget-box {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
    transition: 0.3s ease;
}
.sidebar .widget-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05) !important;
    border-color: var(--primary) !important;
}

.recent-item .thumb {
    width: 65px !important; height: 65px !important;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.recent-item:hover .thumb { transform: scale(1.1) rotate(2deg); }

.cta-widget {
    background: linear-gradient(135deg, #02245B, #0a4da0) !important;
    color: #fff !important;
    border: none !important;
}

.share-bar { border-color: rgba(0,0,0,0.05) !important; }
.share-btn-icon {
    width: 42px !important; height: 42px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    transition: 0.3s !important;
}
.share-btn-icon:hover { transform: translateY(-3px) scale(1.1); }

.page-section { background: transparent !important; }
