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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Top Logo and University Section */
.main-header img {
    width: 80px;   /* change to the exact width you want */
    height: auto;   /* keeps proportions */
}
/* Header Styles */
header {
    background: #007aff;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content Area */
.main-wrapper {
    display: flex;
    flex: 1;
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    background-color: #f4f4f4;
    padding: 1rem;
    border-right: 2px solid #ddd;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #007aff;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007aff;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    text-decoration: none;
    color: #333;
    background-color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #007aff;
    color: white;
    transform: translateX(5px);
}

.sidebar ul li a.active {
    background-color: #007aff;
    color: white;
}

/* Submenu Styles */
.sidebar ul li ul {
    display: none;
    margin-top: 0.5rem;
    margin-left: 0;
    padding-left: 0;
}

.sidebar ul li ul.show {
    display: block;
}

.sidebar ul li ul li {
    margin-bottom: 0.3rem;
}

.sidebar ul li ul li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

.sidebar ul li ul li a:hover {
    background-color: #007aff;
    color: white;
}

.sidebar ul li ul li a.active {
    background-color: #007aff;
    color: white;
}

.sidebar ul li > a .arrow {
    transition: transform 0.3s ease;
}

.sidebar ul li > a.has-submenu.open .arrow {
    transform: rotate(90deg);
}

.arrow {
    font-size: 0.8rem;
}

/* Content Area */
.content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
}

.content h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    color: #007aff;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

.content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content ul li {
    margin-bottom: 0.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background-color: #007aff;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 968px) {
    .top-bar {
        padding: 1rem;
    }

    .top-bar img {
        height: 50px;
    }

    .top-bar h1 {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #ddd;
        display: none;
    }

    .sidebar.active {
        display: block;
    }

    .content {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .top-bar {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .top-bar img {
        height: 40px;
    }

    .top-bar h1 {
        font-size: 1.1rem;
    }

    header {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .content {
        padding: 1rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .content h3 {
        font-size: 1.2rem;
    }

    .sidebar ul li a {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}