/* ============================
   Doculan Header Component
   ============================ */

.hero-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px;
    box-sizing: border-box;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}



.logo img {
    height: 50px;
}

.logo {
    width: 30px;
    height: auto;
    display: block;
}

.logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    border-radius: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    margin-left: 60px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    font-family: 'Impact', sans-serif; /* Better than Impact */
    font-size: 20px;
    font-weight: 200;
    color: #0B4A8B;
    letter-spacing: -0.5px;
    margin: 0;
}

.brand-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 7px;
    font-weight: 800;
    color: #0B4A8B;
    text-align: right;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.hero-header nav{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;

    margin-left: 0; /* remove margin */
}

.hero-header nav a {
    text-decoration: none;
    color: #374151;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.hero-header nav a:hover {
    color: #2563eb;
}

.hero-header nav a.nav-active {
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 12px;
}

.nav-caret {
    font-size: 9px;
    color: #9ca3af;
    transition: transform .2s ease;
}

.mega-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Common Button Style */
.btn-demo,
.btn-login,
.btn-trial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Book Demo */
.btn-demo {
    background: #eff6ff;
    color: #2563eb;
    border: 0px solid #dbeafe;
    gap: 6px;
}

.btn-demo:hover {
    background: #dbeafe;
}

.btn-demo .btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* DropDown */

.mega-dropdown{
    position: relative;
}

.mega-menu{
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);

    width: 420px;
    padding: 24px 10px;

    background: #fff;
    border-radius: 20px;
    border-top: 3px solid #2563eb;

    display: none;
    gap: 40px;

    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    z-index: 10000;
}

.mega-dropdown:hover .mega-menu{
    display: flex;
}

.mega-menu.mega-menu-lg{
    width: 520px;
    gap: 20px;
}

.mega-column{
    flex: 1;
}

.mega-column h4{
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.mega-column a{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.mega-column a:hover{
    background: #eff6ff;
    color: #2563eb;
}

.menu-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    transition: background .2s ease, color .2s ease;
}

.mega-column a:hover .menu-icon{
    background: #dbeafe;
    color: #2563eb;
}

/* Login */
.btn-login {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-login:hover {
    background: #eff6ff;
}

/* Free Trial */
.btn-trial {
    background: #2563eb;
    color: #ffffff !important;
    border: 1px solid #2563eb;
}

.btn-trial:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #0B4A8B;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    padding: 8px 24px 20px;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 9998;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu .btn-trial-mobile {
    background: #2563eb;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    margin-top: 6px;
    border-bottom: none;
}

@media (max-width: 991px) {
    .hero-header {
        padding: 0 20px;
        height: 64px;
    }

    .mobile-menu {
        top: 64px;
    }

    .hero-header nav,
    .hero-header .header-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo,
    .logo img {
        width: auto;
        height: 38px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 9px;
    }
}

/* ============================================================
   Layout offset so the fixed header never overlaps page content.
   Docsify renders the cover page inside <section class="cover">
   (handled separately by the doc-hero padding), and every other
   page's content inside <div class="markdown-section"> — bumping
   that plus the left <aside class="sidebar"> is enough to make
   the header sit correctly above BOTH the cover page and every
   documentation route without touching per-page markdown.
   ============================================================ */

.sidebar {
    top: 76px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.markdown-section {
    padding-top: 96px !important;
}

@media (max-width: 991px) {
    .sidebar,
    .sidebar-toggle {
        top: 64px !important;
    }

    .markdown-section {
        padding-top: 84px !important;
    }
}