/* ===============================
   MODERN HEADER REDESIGN
   =============================== */

/* GLOBAL FONT RESET */
html, body {
    font-family: "Montserrat", sans-serif !important;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

body {
    padding-top: 110px;
}

/* Logo - Absolutely Centered */
.sticky-header .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sticky-header .logo img {
    height: 75px;
    width: auto;
    transition: all 0.3s ease;
}

/* NAVBAR — Left Side */
.sticky-header .navbar {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
}

.sticky-header .navbar ul {
    display: flex;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-header .navbar a {
    color: #333;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sticky-header .navbar a:hover {
    background-color: rgba(69, 85, 175, 0.1);
    color: rgb(69, 85, 175);
}

.sticky-header .navbar a.active {
    background: linear-gradient(135deg, rgb(69, 85, 175), rgb(50, 65, 145));
    color: white;
    box-shadow: 0 4px 12px rgba(69, 85, 175, 0.3);
}

.sticky-header .navbar a.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(69, 85, 175, 0.4);
}

/* HAMBURGER — Right Side */
.sticky-header .menu-toggle {
    position: absolute;
    right: 50px;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 12px;
    background: rgba(69, 85, 175, 0.1);
    transition: all 0.3s ease;
    font-size: 24px;
    color: rgb(69, 85, 175);
    z-index: 20;
}

.sticky-header .menu-toggle:hover {
    background: rgba(69, 85, 175, 0.15);
    transform: scale(1.05);
}

.sticky-header .menu-toggle:active {
    transform: scale(0.95);
}

/* ===============================
   SIDEBAR — MODERN DESIGN
   =============================== */

.sticky-header .sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100%;
    background: white;
    padding-top: 120px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sticky-header .sidebar.active {
    left: 0;
}

.sticky-header .sidebar a {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: #333;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sticky-header .sidebar a:hover {
    background-color: rgba(69, 85, 175, 0.05);
    border-left-color: rgb(69, 85, 175);
    padding-left: 35px;
}

.sticky-header .sidebar a.active {
    background: linear-gradient(90deg, rgba(69, 85, 175, 0.15), rgba(69, 85, 175, 0.05));
    color: rgb(69, 85, 175);
    border-left-color: rgb(69, 85, 175);
    font-weight: 700;
}

/* OVERLAY */
.sticky-header .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 1400;
    transition: opacity 0.3s ease;
}

.sticky-header .overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Tablet and below - hide navbar, show hamburger */
@media (max-width: 1200px) {
    .sticky-header .navbar {
        display: none;
    }

    .sticky-header .menu-toggle {
        display: flex;
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .sticky-header {
        height: 90px;
    }


    body {
        padding-top: 90px;
    }

    .sticky-header .logo img {
        height: 65px;
    }

    .sticky-header .sidebar {
        padding-top: 110px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .sticky-header {
        height: 80px;
    }

    body {
        padding-top: 80px;
    }

    .sticky-header .logo img {
        height: 55px;
    }

    .sticky-header .menu-toggle {
        width: 48px;
        height: 48px;
        font-size: 22px;
        right: 20px;
    }

    .sticky-header .sidebar {
        width: 280px;
        padding-top: 100px;
    }

    .sticky-header .sidebar a {
        padding: 16px 25px;
        font-size: 0.95rem;
    }

    .sticky-header .sidebar a:hover {
        padding-left: 30px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .sticky-header {
        height: 75px;
    }

    body {
        padding-top: 75px;
    }

    .sticky-header .logo img {
        height: 50px;
    }

    .sticky-header .menu-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .sticky-header .sidebar {
        width: 260px;
        padding-top: 95px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent content jump when sidebar opens */
body.sidebar-open {
    overflow: hidden;
}