.semester-header {
    font-size: 30px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    text-align: center;
    animation: fadeIn 0.5s ease-in;
    margin: 40px 0px;
    
}
#semesters-container{
    margin-bottom: 25px;
}

.semester {
    gap: 20px;
    justify-content: center;
    animation: fadeIn 0.5s ease-in;
    width: 70%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subject {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 20px;
    height: 200px;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.year-grid {
    margin: 10px 0px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.year-card {
    background: #1e90ff;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    font-weight: bold;
    animation: zoomIn 1s ease;
    width: 80px;
    height: 40px;
}

.year-grid a {
    text-decoration: none;
    color: white;
}

.year-card:hover {
    transform: scale(1.05);
    background: #007be5;
}

.sample-grid{
     margin-top: 10px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.sample-card {
    background: #1e90ff;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    font-weight: bold;
    animation: zoomIn 1s ease;
    width: 30px;
    height: 40px;
}

.sample-grid a {
    text-decoration: none;
    color: white;
}

.sample-card:hover {
    transform: scale(1.05);
    background: #007be5;
}

/* ✅ Responsive styles */
@media screen and (max-width: 768px) {
    .semester {
        width: 90%;
    }

    .semester-header {
        font-size: 24px;
        margin: 30px 10px;
    }

    .subject {
        height: auto;
        padding: 15px;
        font-size: 16px;
    }

    .year-card {
        width: 60px;
        height: 40px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .semester-header {
        font-size: 20px;
    }

    .subject {
        font-size: 15px;
        padding: 12px;
    }

    .year-card {
        width: 55px;
        height: 35px;
        font-size: 13px;
    }
}

