:root {
    --primary-color: #7BA8C0;
    --secondary-color: #90B9D0;
    --background-color: #FCF6E5;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --link-color: #0066cc;
    --border-color: #ccc;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: var(--primary-color);
    padding: 20px;
    text-align: center;
    color: var(--white);
}

header h1 {
    margin: 0;
}

header img.logo {
    max-width: 100%;
    height: auto;
}

/* Navigation */
nav {
    background-color: #5a8ea8;
    padding: 10px;
    position: relative;
    /* Context for absolute positioning of hamburger */
    min-height: 50px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Layout */
.main-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

aside {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

main {
    flex: 3;
    min-width: 300px;
    padding: 0 15px;
}

/* Sidebars specific */
aside h3,
aside h5 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    margin-top: 0;
}

aside img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

aside p {
    font-size: 0.9em;
    text-align: center;
}

/* Main Content */
main h2 {
    color: var(--primary-color);
    text-align: center;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.course-item {
    background: #f8f8f8;
    padding: 15px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    border-left: 5px solid var(--secondary-color);
    border-radius: 4px;
}

.concept-map {
    text-align: center;
    margin: 30px 0;
}

.concept-map img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

footer a {
    color: var(--secondary-color);
}

/* Form Styles */
form {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

input[type="submit"],
button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

input[type="submit"]:hover,
button:hover {
    background-color: var(--link-color);
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Hamburger Menu Base Styles (Hidden on Desktop) */
button.hamburger {
    display: none;
    /* Hidden by default */
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    position: absolute;
    top: 5px;
    right: 20px;
    padding: 0;
    cursor: pointer;
    z-index: 2000;
}

button.hamburger:hover {
    background: none;
}

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 1100px) {
    body {
        font-size: 18px;
    }

    .main-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    /* Maximize Header Area for Logo */
    header {
        padding: 0;
        background-color: var(--primary-color);
        width: 100%;
        overflow: hidden;
    }

    /* Adjust logo size on mobile */
    header img.logo {
        width: 100%;
        max-width: none;
        height: auto;
        display: block;
        margin: 0;
    }

    /* Hide unnecessary headers but show description text */
    header h1,
    header h2 {
        display: none;
    }

    header p {
        display: block;
        padding: 10px;
        margin: 0;
        font-size: 0.95em;
        line-height: 1.4;
    }

    aside {
        order: 2;
        min-width: 0;
        width: 100%;
        margin-top: 20px;
    }

    main {
        order: 1;
        min-width: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    main>* {
        text-align: center;
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    main p,
    main li,
    main a {
        font-size: 1.1em;
    }

    main .course-list {
        display: flex;
    }

    main .course-item {
        max-width: 100%;
        padding: 20px;
        margin-bottom: 20px;
    }

    main ul {
        list-style-position: inside;
        padding-left: 0;
        display: block;
    }

    /* Navigation on Mobile */

    /* Ensure Nav Container is visible */
    nav {
        display: block;
        position: relative;
        padding: 0;
        min-height: 70px;
        /* Decent height */
        background-color: #5a8ea8;
        width: 100%;
        text-align: right;
        /* Helps position inline-block buttons if needed */
    }

    /* Simple, Big Hamburger */
    button.hamburger {
        display: block !important;
        position: absolute;
        top: 0;
        right: 0;
        width: 70px;
        height: 70px;
        font-size: 45px;
        line-height: 70px;
        background: transparent;
        border: none;
        color: white;
        text-align: center;
        padding: 0;
        margin: 0;
        cursor: pointer;
        z-index: 10000;
        outline: none;
        /* Remove focus outline */
        -webkit-tap-highlight-color: transparent;
    }

    button.hamburger:active {
        background-color: rgba(255, 255, 255, 0.2);
    }

    /* Menu List */
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #5a8ea8;
        position: absolute;
        top: 100%;
        /* Push below nav bar container */
        left: 0;
        z-index: 9999;
        padding: 0;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Active state for menu */
    nav ul.active {
        display: flex !important;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li a {
        display: block;
        padding: 20px;
        color: white;
        width: 100%;
        font-size: 1.25em;
        /* Big easy links */
        text-decoration: none;
    }

    /* Responsive tables */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    /* General image responsiveness */
    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}