/* ===== Base & Reset ===== */
html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Navbar ===== */
.navbar {
    width: 100%;
    height: 55px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #C2CFF0;
    transition: background-color 0.3s ease;
}

.child-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    font-size: 18px;
    color: rgb(49, 0, 49);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background-color: #C2CFF0;
    color: rgb(68, 0, 68);
    border-radius: 5px;
    cursor: pointer;
}

/* ===== Homepage Layout ===== */
.homepage {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    padding: 0 6%;
    margin-top: 50px;
}

.row {
    display: flex;
    justify-content: space-between;
    flex: 1;
    width: 100%;
}

/* ===== Box ===== */
.box {
    width: 30%;
    height: 300px;
    border: 1px solid black;
    border-radius: 3%;
    text-align: center;
    color: rgb(68, 0, 68);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 20px 0;
    background-color: #C2CFF0;
    font-size: 12px;
}

/* ===== Reusable Course Box Styling ===== */
.course-box {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
}

.course-box:hover {
    opacity: 0.8;
}