.calendar-wrapper {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 80%;

    .month,
    .course {
        cursor: pointer;
        padding: 5px;
        margin: 2px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;

        &:hover {
            background-color: #e0e0e0;
        }
    }

    .hidden {
        display: none;
    }

    .month-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        padding: 1.3rem 2rem;
        background: #f8f8f8;
        cursor: pointer;
        font-weight: bold;
        font-size: 1.5rem;
        width: 100%;
        margin: 0.8rem;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 0.5rem;
        white-space: normal;

        .month-text,
        .month-trigger {
            padding: 0;
            margin: 0;
        }

        &:hover {
            background: #eaeaea;
        }
        
        & .month-wrapper {
            border: 1px solid #ddd;
            border-radius: 8px;
            margin: 12px 0;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }
    }

    .course-list {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: #fff;
        border-radius: 1rem;
        width: 100%;
        animation: fadeIn 0.3s ease-in-out;
        
        
        & .course-list-element {
            display: block;
            justify-content: end;
            align-items: center;
            border-radius: 0.8rem;
            box-sizing: border-box;
            width: 98%;

            & a {
                display: flex;
                flex-direction: column;
                justify-content: start;
                align-items: start;
                width: 100%;
                cursor: pointer;
                box-sizing: border-box;
                font-size: 1.6rem;
                padding: 1.2rem;
                margin: 1rem;
                background: #fff;
                text-align: left;
                border: 2px solid #eae5e5;
                border-left: none;
                border-top-right-radius: 0.8rem;
                border-bottom-right-radius: 0.8rem;
                color: #555555;
                text-decoration: none;

                .starting-date {
                    font-weight: bold;
                    font-size: 1.4rem;
                    margin-left: 0;
                    text-align: left;
                    margin-top: 0.2rem;
                }

                &:hover {
                    background: #f6f6f6;
                }
            }
        }
        
        & li {
            display: block;
            box-sizing: border-box;
            width: 100%;
            font-size: 1.6rem;
            padding: 1.2rem;
            margin: 1rem;
            background: #fff;
            text-align: left;
            border: 2px solid #eae5e5;
            border-left: none;
            border-top-right-radius: 0.8rem;
            border-bottom-right-radius: 0.8rem;
    
            &:hover {
                background: #f6f6f6;
            }
    
            & a {
                display: block;
                width: 100%;
                text-align: left;
                box-sizing: border-box;
                color: #555555;
                text-decoration: none;
            }
        }
    }

}

#cta {
    text-decoration: underline;
    text-decoration-color: #a00000;
    text-align: left;
    margin-top: 2rem;

    a {
        color: #a00000;
        border-radius: 1rem;
        padding: 0.3rem 1rem;

        &:hover {
            color: #6c0101;
        }
    }
}

/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
