* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #333;
}
nav{
    text-transform: capitalize;
    margin-bottom: 75px;
}
main{
    margin-top: 40px;
}
.top-navbar{
    background-color: #f9fcff;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 15px 30px;
    color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-navbar .left-section{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}
.top-navbar .left-section img.logo{
    height: 50px;
    width: auto;
}
.top-navbar .site-info{
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.top-navbar .site-info .site-name{
    font-size: 22px;
    font-weight: bold;
}

.right-section{
    margin-left: 7%;
}
.top-navbar .right-section{
    display: flex;
    color: black;
}

.top-navbar .right-section a{
    color: #333;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    transition: color 0.3s ease;
}
.top-navbar .right-section a:hover{
    color: #0037fd;
}

/* --- DROPDOWN --- */
.dropdown{
    position: relative;
}

.dropdown-content{
    display: none;
    position: absolute;
    background-color: #f4f7fa;
    min-width: 170px;
    top: 100%;
    left: 0;
    padding: 5px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* --- SUBMENU --- */
.dropdown-submenu{
    position: relative;
}

.submenu-content{
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background-color: #eee;
    padding: 5px 0;
    z-index: 1001;
}


.dropdown-submenu:hover .submenu-content,
.submenu-content:hover {
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #f9fcff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.sidebar-header .logo {
    height: 40px;
    width: auto;
}

.close-btn {
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-dropdown {
    margin-bottom: 10px;
}

.sidebar-dropdown a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar-dropdown a:hover {
    background-color: #e9ecef;
}

.sidebar-submenu {
    display: none;
    background-color: #f8f9fa;
}

.sidebar-submenu a {
    padding: 10px 40px;
    font-size: 14px;
}

.sidebar-submenu a:hover {
    background-color: #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-navbar {
        justify-content: space-between;
        padding: 10px 20px;
        position: fixed;
        top: 0;
    }

    .left-section {
        margin-left: 0;
    }

    .right-section {
        display: none;
    }

    .dropdown {
        display: none;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .sidebar {
        display: block;
    }

    main {
        margin-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}



