/* style.css */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: #333;
}

header {
    background-color: #007bff;
    color: white;
    padding: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: -25px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    display: none;
}

.logo {
    font-weight: bold;
    font-size: 1.2em;
}

.logo > a img {
    width: 150px;
    margin-right: 10px;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
}

.nav-links {  /* Use ONLY .nav-links - remove nav ul styles */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}


.hero {
    background-image: url("../images/hero-image.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero button {
    background-color: #f0ad4e;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.program-details {
    padding: 40px;
    text-align: center;
}

.card-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    width: 30%;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    box-sizing: border-box;

}

.card > * {
    pointer-events: none;
}

.card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #dddddd;
    cursor: pointer; /* Change the cursor to a hand on hover */
}

.card img {
    max-width: 100px;
    margin-bottom: 10px;
}

.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below the menu */
}

/* Media Queries for Responsiveness */

@media (max-width: 767px) {
    .card-container {
        flex-direction: column;
    }

    .card {
        width: 90%;
        margin: 10px auto;
    }

    .hero h1 {
        font-size: 2em;
    }

    nav {
        flex-direction: row; /* Keep it as row */
        align-items: center;
        justify-content: space-between; /* Distribute space between logo and hamburger */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed; /* Changed to fixed */
        top: 0; /* Cover the entire screen */
        left: 0;
        width: 100%;
        height: 100%; /* Cover the entire screen */
        background-color: #007bff;
        text-align: center;
        box-shadow: none; /* Remove shadow if you don't want it */
        z-index: 1000; /* Ensure it's on top of everything */
        overflow-y: auto; /* Add scroll if content overflows */
        /*... other styles... */
    }

    .nav-links.active {
        display: flex;
    }


    .nav-links li {
        margin: 20px 0; /* Add more vertical spacing */
        padding: 10px; /* Add padding to the list items */
    }

    /* Optionally style the background behind the menu */
    .overlay {
        display: none;  /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
        z-index: 999; /* Below the menu */
    }

    .nav-links.active +.overlay { /* Show overlay when menu is active */
        display: block;
    }


    .logo {

    }

    .hamburger {
        display: block;
    }

    .close-btn {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .card {
        width: 45%;
    }
    nav {
        flex-direction: row;
        align-items: center;
    }
    .nav-links { /* Make sure menu is visible on larger screens */
        display: flex;
    }

    .overlay {
        display: none; /* Hidden by default */
    }

}

@media (min-width: 992px) {
    .card {
        width: 30%;
    }
    .nav-links { /* Make sure menu is visible on larger screens */
        display: flex;
    }

    .overlay {
        display: none; /* Hidden by default */
    }
}

/* rem for font sizes */
body {
    font-size: 16px;
}

h1 {
    font-size: 2.5rem;
}

p {
    font-size: 1rem;
}