/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* Header styles */
header {
    background-color: #333;
    color: white;

}

.header-container {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    gap: 5px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 115px;
    height: 115px;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Hamburger menu */
#menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: white;
}

#menu-button svg {
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}

/* Navigation styles */
nav {
    background-color: #444;
    display: none;
    width: 100%;
}

nav.open {
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

nav ul li{
    border-bottom: 1px solid #555;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

}

nav a:hover,
nav a.current {
    background-color: #555;

}

nav a.current::after {
    content: url('../images/pin-icon.svg');
    width: 32px;
    height: 24px;

}


/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #333;
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
    background-color: #333;
    color: white;
    padding: 12px 16px;
    text-align: center;
}

/* Sections */
section {
    margin-bottom: 32px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section p {
    padding: 16px;
    line-height: 1.6;
}

/* Photo section */
.photo-container {
    padding: 16px;
    display: flex;
    justify-content: center;
}

.student-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Courses section */
.filter-buttons {
    display: flex;
    gap: 8px;
    padding: 16px;
    justify-content: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #333;
    background-color: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #333;
    color: white;
}

.filter-btn.active {
    background-color: #333;
    color: white;
}

.courses-container {
    padding: 16px;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.course-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.course-card.completed {
    background-color: #e8f5e8;
    border-color: #4caf50;
}

.course-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.course-card .course-info {
    font-size: 0.95rem;
    color: #4d4d4d;
    margin-bottom: 4px;
}

.course-card .course-description {
    font-size: 0.87rem;
    line-height: 1.4;
    color: #4d4d4d;
    margin-top: 8px;
}

.course-card .course-tech {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    background-color: #333;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.credits-display {
    padding: 16px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    font-weight: 500;
}


.card-icon {
    float: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-top: -5px;
    /* Adjust as needed for vertical alignment */
}



/* --- Modal Styles --- */

/* The dark background overlay, hidden by default */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* The class that JavaScript will add to show the modal */
.modal-overlay.active {
    display: flex;
}

/* The modal's content box */
.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

/* The 'X' close button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}

.modal-close:hover {
    color: #000;
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles for the content inside the modal */
#modalBody h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

#modalBody .course-info,
#modalBody .course-description {
    margin-bottom: 0.75rem;
}

#modalBody .course-tech {
    margin-top: 1rem;
    display: flex;
    gap: 8px;
}








/* Footer */
footer {
    background-color: #e9ecef;
    padding: 24px 16px;
    text-align: center;
    margin-top: 48px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.social-links a {
    color: #333;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #0066cc;
}

footer p {
    font-size: 0.875rem;
    color: #4d4d4d;
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}