/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e3a5f;
    color: white;
    padding: 15px 20px;
}

.profile {
    display: flex;
    align-items: center;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

h2{
    color: white;
    background-color: #0056b3;
    padding: 20px;
}

/* Navigation */
nav {
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: background 0.3s, color 0.3s;
}

/* Active Page */
.nav-links .active {
    background: #ff9800;
    border-radius: 5px;
}

/* Hover Effect */
.nav-links a:hover {
    background: #ff9800;
    border-radius: 5px;
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
/* Not Completed Courses */
.course-card.not-completed {
    background: #dc3545; /* Red for not completed */
    color: white;
}

.course-card {
    padding: 1px;
    border-radius: 8px;
    background: #f8f9fa;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
}


.course-card:hover {
    transform: scale(1.05);
}

/* Completed Courses */
.course-card.completed {
    background: #28a745; /* Green for completed courses */
    color: white;
}

/* Responsive Grid */
@media (max-width: 768px) {
    #courses-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    #courses-container {
        grid-template-columns: 1fr;
    }
}


/* Responsive Grid for Smaller Screens */
@media (max-width: 480px) {
    .filter-buttons {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
}


/* Total Credits */
#total-credits {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    /* Stack items vertically */
    header {
        flex-direction: column;
        align-items: center;
    }

    /* Hide regular nav links */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #1e3a5f;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }

    /* Show hamburger menu */
    .menu-toggle {
        display: block;
    }

    /* Show menu when active */
    .nav-links.active {
        display: flex;
    }
}

/* Main Content */
main {
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
    padding: 0 20px;
}

/* Course Work & Location */
.container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-align: left;
}

.card img {
    width: 100%;
    border-radius: 5px;
}

.caption {
    font-size: 14px;
    color: #777;
    text-align: center;
}

/* Certificate Section */
.certificate {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
}


.filter-buttons button {
    padding: 10px 15px;
    border: none;
    background: black;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.filter-buttons button:hover {
    background: #ff9800;
}

/* Course Buttons */
.course-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.course-buttons button {
    padding: 10px 15px;
    border: none;
    background: #734c36;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.course-buttons button:hover {
    background: #5a392a;
}

/* Footer */
footer {
    background: #1e3a5f;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

/* Mobile-Friendly */
@media screen and (max-width: 600px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .course-buttons {
        flex-direction: column;
        align-items: center;
    }

    .course-buttons button {
        width: 80%;
    }
}
