/* css/courses.css */

/* 1. Reset the container to ensure it has space */
.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    color: white; /* Ensure text is visible on dark background */
}

/* 2. FORCE the Split Screen (Grid) */
.years-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 80px; /* Space between Year 1 and Year 2 */
    align-items: start;
}

/* 3. Style the Year Titles */
.year-title {
    font-size: 2.5rem;
    border-bottom: 2px solid #0047AB; /* Blue underline */
    margin-bottom: 30px;
    padding-bottom: 10px;
}

/* 4. Style the Semester Titles */
.semester-title {
    color: #888;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-top: 40px; /* Space above semester */
    margin-bottom: 15px;
    border-left: 3px solid #0047AB;
    padding-left: 10px;
}

/* 5. FORCE links to be separate blocks */
.course-row {
    display: block; /* <--- This forces them onto new lines */
    width: 100%;    /* Takes up full width of the column */
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* Hover Effect */
.course-row:hover {
    background-color: #333;
    border-left: 5px solid #0047AB;
}

/* Mobile Fix: If screen is small, stack them */
@media (max-width: 768px) {
    .years-grid {
        grid-template-columns: 1fr; /* Switch to 1 column */
    }
}