
/* Header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #fcfcfc; /* Violet */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container a img {
    width: 100%; /* makes the image responsive within its container */
    max-width: 170px; /* maximum size */
    height: auto;
}

nav {
    flex-grow: 1;
    margin-left: 90px;
}

.main-menu {
    display: flex;
    gap: 30px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    color: #333333;
    font-size: 1.1rem;
	font-weight:var(--font-weight-semibold);
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.main-menu > li > a:hover {
background-color: #ECECE8; /* Darker Violet */
text-decoration: none;
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    display: none;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    min-width: 360px; /* Ensure submenu has consistent width */
}

.main-menu > li:hover .submenu {
    display: block;
}

.submenu li a {
    color: #333333; /* Violet */
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
	font-weight:var(--font-weight-semibold);
    transition: background-color 0.3s, color 0.3s;
}

.submenu li a:hover {
    background-color: #ECECE8;
    color: #0F52BA; /* Darker Violet */
}

.course-button-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
}

.course-start-button {
    background: #0F52BA;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
    min-width: 180px; /* Ensures a minimum button width */
    text-align: center; /* Centers text inside the button */
    display: inline-block;
}

.course-start-button:hover {
    background: #2575fc;
    color: #fff;
    text-decoration: none !important;
}

/* ✅ Large Desktops (1920px and above) */
@media (min-width: 1920px) {
    .header-container {
        max-width: 1400px; /* Expand header width */
        margin: 0 auto;
        padding: 20px 40px; /* Increase padding for spacious layout */
    }

    .main-menu {
        gap: 35px; /* Increase spacing between menu items */
    }

    .main-menu > li > a {
        font-size: 1.2rem; /* Slightly larger text */
        padding: 12px 18px; /* Increase padding */
    }

    .submenu {
        min-width: 380px; /* Increase submenu width */
    }

    .header-container a img {
        width: 100%; /* makes the image responsive within its container */
        max-width: 190px; /* maximum size */
        height: auto;
    }

    nav {
        margin-left: 100px; /* More spacing between logo & menu */
    }
}

/* ✅ Standard Laptops (1280px and below) */
@media (max-width: 1280px) {
    .header-container {
        max-width: 95%;
        padding: 15px 25px; /* Reduce padding slightly */
    }

    .main-menu {
        gap: 20px; /* Reduce spacing between items */
    }

    .main-menu > li > a {
        font-size: 1rem; /* Keep font size moderate */
        padding: 8px 12px; /* Reduce padding */
    }

    .submenu {
        min-width: 320px; /* Slightly reduce submenu width */
    }

    .header-container a img {
        width: 100%; /* makes the image responsive within its container */
        max-width: 150px; /* maximum size */
        height: auto;
    }

    nav {
        margin-left: 50px; /* Adjust spacing between logo & menu */
    }
}


/* ✅ Small Laptops (1024px and below) */
@media (max-width: 1024px) {
    .main-menu {
        gap: 10px; /* Reduce spacing between items */
        font-size: 0.95rem; /* Slightly smaller text */
        justify-content: flex-start; /* Ensure proper spacing */
    }

    .main-menu > li > a {
        padding: 5px; /* Reduce padding to fit more items */
        font-size: 0.9rem; /* Reduce font size */
    }

    .submenu {
        min-width: 280px; /* Adjust submenu width */
    }

    .header-container {
        padding: 10px 15px; /* Reduce overall header padding */
    }

    .header-container a img {
        width: 100%; /* makes the image responsive within its container */
        max-width: 130px; /* maximum size */
        height: auto; /* Maintain aspect ratio */
    }

    nav {
        flex-grow: 1;
        margin-left: 20px;
    }
}
