.available-courses {
    padding: 100px 0;
    text-align: center;
    z-index: 9999;
    background-color: #f6f6f5;
}

.available-courses__title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.available-courses__categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.category-button {
    padding: 10px 20px;
    border: 2px solid #7cb138;
    border-radius: 20px;
    background-color: #fff;
    color: #7cb138;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #7cb138;
    color: #fff;
}

.category-button--active {
    background-color: #7cb138;
    color: #fff;
}

.courses-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    margin-top: 50px;
}

.course-container {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-box {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
        radial-gradient(
                circle,
                rgba(151, 197, 92, 0.25) 0%,
                rgba(151, 197, 92, 1) 100%
            )
            border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Smooth transition */
}

.course-tilted-second {
    width: 120px;
    height: 130px;
    transform: rotate(336deg) translateX(0);
    z-index: 0;
    top: 45px;
    left: -10px;
    opacity: 0;
    transition-delay: 0.15s;
}

.course-tilted-first {
    width: 130px;
    height: 170px;
    transform: rotate(-13deg) translateX(0);
    z-index: 1;
    top: 12px;
    left: -5px;
    opacity: 0;
    transition-delay: 0s;
}

.course-container:hover .course-tilted-second {
    opacity: 1;
    transform: rotate(336deg) translateX(-20px);
}

.course-container:hover .course-tilted-first {
    opacity: 1;
    transform: rotate(-13deg) translateX(-15px);
}

.course-box:nth-child(3) {
    z-index: 2;
}

.course-content {
    text-align: center;
}

.course-image {
    width: auto;
    height: 100px;
    object-fit: cover;
}

.course-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
    margin-top: 10px;
}

.category-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: #97c55c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
