body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-wdith: 400px;
}

nav {
    background-color: #004d66;
    padding: 10px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
}

.hamburger-menu {
    display: inline-block;
    cursor: pointer;
}

.hamburger-menu i {
    color: white;
    font-size: 24px;
}

.navbar-icon {
    margin-right: 10px;
    /* Adjust as needed */
}

.navbar-icon img {
    height: 35px;
    /* Adjust height as needed */
    width: auto;
    /* Maintains aspect ratio */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fefefe;
    border: 1px solid #000;
    border-radius: 1px;
    min-width: 160px;
    max-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 5px;
    top: 45px;
}

.dropdown-content a {
    color: #001a33;
    padding: 5px 8px;
    font-size: 15px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    color: #006692;
    background-color: #eee;
}

#mainContainer {
    padding: 20px;
}

#subContainer {
    flex: 1;
    display: flex;
    gap: 0;
    /* Ensure no gap between side menu and content */
}

#sideMenu {
    min-height: 645px;
    max-width: 363px;
    min-width: 363px;
    background-color: #eee;
    padding: 15px 5px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    border: 1px solid #000;
}

#sideMenu h3 {
    margin-top: 0;
    font-size: 20px;
    color: #001a33;
}

#sideMenu ul {
    list-style: none;
    padding: 0;
}

.course-section {
    position: relative;
    padding: 2.5px;
    border-radius: 1px;
}

.course-section.collapsed:hover {
    background-color: #bbb;
}

.course-section.expanded {
    background-color: #b0b0b0;
}

.course-section .toggle-section {
    text-decoration: none;
    color: #001a33;
    font-size: 16px;
    display: block;
    width: 100%;
    padding: 2.5px;
    text-decoration: none;
    box-sizing: border-box;
    transition: padding 0.05s, background-color 0.05s;
}

.course-section.expanded .toggle-section {
    color: #003b55;
}

.course-section.expanded .toggle-section:hover {
    color: #001a33;
    
}

/* Position the caret icon to the far right */
.caret-icon {
    position: absolute;
    right: 10px;
    top: 5px;
    transition: transform 0.2s ease;
}

/* When expanded, rotate the caret */
.course-section.expanded .caret-icon {
    transform: rotate(180deg);
    color:#333;
}

.section-courses {
    background-color: #fefefe;
    border: 1px solid #001a33;
    position: absolute; /* Changed from relative */
    top: 100%;          /* Positions dropdown immediately below toggle */
    left: 0;
    width: 100%;
    padding: 2.5px;
    z-index: 100;       /* Ensures it appears above other content */
}

.section-courses a {
    color: #004968;
    text-decoration: none;
    font-size: 14px !important;
    display: block;
    width: calc(100% - 5px);
    padding: 2.5px;
}

.section-courses a:hover {
    color: #000;
    background-color:#dedede;
}

#content {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-left: none;
    /* Remove left border */
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
}

#content h2 {
    color: #001a33;
    font-size: 24px;
    margin-top: 0;
}

.course-vid {
    width: 100%;
    height: 400px;
    border: none;
}

.video-description {
    font-size: 15px;
    margin: 5px;
}

footer {
    background-color: #004d66;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: auto;
    border-top: 1px solid #000;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    #subContainer {
        min-width: 375px;
        overflow-x: hidden;
        flex-direction: column;
    }

    #subSideMenu {
        width: 350px;
    }

    #sideMenu {
        width: calc(100% - 12px);
        box-shadow: none;
        min-height: 405px;
    }

    #content {
        width: calc(100% - 22px);
        padding: 10px;
        border-left: 1px solid #000;
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
        border-top: 1px solid #000;
        margin-top: 5px;
    }
}