:root{
    --navy: #07152e;
    --navy-light: #10244a;
    --blue: #2563eb;
    --cyan: #35c5ff;
    --text: #102044;
    --muted: #64748b;
    --background: #f8faff;
    --white: #ffffff;

}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
}
a{
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}
/* navigation nato */
.links li{
  list-style: none;
}

.navigation_bar{
    width: 100%;
    min-height: 80px;
    padding: 15px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: #0b1936;
    top: 0;
    position: sticky;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    color: white;
    flex-shrink: 0;
}
.logo img{
    
    width: 45px;
    height: 45px;
    margin-right: 30px;
    object-fit: contain;
}

.logo > i {
    font-size: 37px;
    color: #3b82f6;
}
 .logo h2 {         
    font-size: 25px;
    line-height: 1.2;
 }

 .logo h2 span {
    color: #3b82f6; 
 }
 .logo small {
    font-size: 9px;
    color: #b8c6dd;
 }
 .links {
    display: flex;
    align-items: center;
    gap: 30px;
 }
 .links a{
    color: #dce7fa;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    transition: 0.3s;
    position: relative;
 }

.links a:hover,
.links a.active {
    color: #4db5ff;
}
.links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    background: #2584ff;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.theme-toggle {
    width: 39px;
    height: 39px;
    border: none;
    border-radius: 50%;
    background: #1c2e56;
    color: white;
    font-size: 17px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}



/* MENU BUTTON BESIDE LOGO */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid #263b60;
    border-radius: 10px;
    color: #ffffff;
    font-size: 21px;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu-toggle:hover {
    background: #1d3764;
    color: #38bdf8;
}

/* LEFT SIDEBAR */
.sidebar-menu {
    position: fixed;
    top: 100px;
    left: 0;
    bottom: 0;
    width: 270px;
    max-width: 85vw;
    padding: 24px 18px;
    background: #0b1935;
    border-right: 1px solid #263b60;
    overflow-y: auto;
    z-index: 1001;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
        transform 0.3s ease,
        visibility 0.3s ease;
}

/* SHOW SIDEBAR */
.sidebar-menu.active {
    transform: translateX(0);
    visibility: visible;
}

/* SIDEBAR HEADINGS */
.sidebar-menu h3 {
    margin: 22px 10px 12px;
    color: #60a5fa;
    font-size: 12px;
    letter-spacing: 1px;
}

/* SIDEBAR LINKS */
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu a:hover {
    background: #1d3764;
    color: #38bdf8;
}

/* DARK OVERLAY */
.sidebar-overlay {
    position: fixed;
    inset: 100px 0 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* PHONE / MOBILE HEADER MEDIA QUERY (W3Schools-style compact single row) */

@media (max-width: 768px) {
    .top-header,
    .course-header,
    .tools-header {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 6px 10px;
    }

    .brand {
        margin-right: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .brand span,
    .header-label {
        display: none;
    }

    .back-btn,
    .back-headcourses,
    .back-home,
    .menu-toggle,
    .mobile-menu {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header-nav,
    .head-links,
    .course-nav,
    .tools-nav {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        width: 100%;
        order: 3;
        align-items: center;
        gap: 14px;
        padding: 6px 0 2px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .header-nav::-webkit-scrollbar,
    .head-links::-webkit-scrollbar,
    .course-nav::-webkit-scrollbar,
    .tools-nav::-webkit-scrollbar {
        display: none;
    }

    .header-nav a,
    .head-links a,
    .course-nav a,
    .tools-nav a {
        font-size: 12px;
        padding: 2px 0;
        flex-shrink: 0;
    }
}
@media (max-width: 768px) {
    .navigation_bar {
        flex-wrap: wrap;
        min-height: auto;
        height: auto;
        padding: 8px 12px;
        gap: 6px 10px;
    }

    .logo {
        margin-right: auto;
        gap: 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .logo img {
        width: 30px;
        height: 30px;
        margin-right: 0;
    }

    .logo h2 {
        font-size: 17px;
    }

    .logo small {
        display: none;
    }

    .menu-toggle,
    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 15px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        width: 100%;
        order: 3;
        align-items: center;
        padding: 6px 0 2px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 14px;
        white-space: nowrap;
    }

    .links li {
        flex-shrink: 0;
    }

    .links a {
        font-size: 12px;
        padding: 2px 0;
        flex-shrink: 0;
    }
}