:root {
    --blue: #002060;
    --lightblue: #1047AD;
    --orange: #F4AE02;
}


/* Different sizing */

/* @media only screen and (min-width: 1000px) {
    .courses{
        margin-left:20%;
        margin-right:20%;
    }
} */

/* Filters Bars (mechanism) */
.filters {
    margin-bottom: 10px;
    /* animation: 1s ease-out 0s 1 slideInFromLeft; */

}

input {
    outline: none;
    border-radius: 50px;
    padding: 7px;
    outline: none;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


form {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 20px;
    gap: 20px
}

form select {
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    margin-right: 15px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 45px;
}

form input[type="submit"] {
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 45px;
    padding: 10px;
    cursor: pointer;
}

/* [end] filter bar mechanism  */

/* filter tags (enabled) */
.group-enabled-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    grid-gap: 35px;

    /* animation */
    animation: 1s ease-out 0s 1 slideInFromLeft;

    /* grid-template-columns: repeat(3, 1fr); */
    /* grid-template-rows: 12px; */
    /* align-items: start; */
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}


.enabled-filter {
    /* outline: 1.3px solid #bcbcbc; */
    transition: transform 0.3s ease-in-out;
    display: flex;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 45px;
    padding: 15px;
    background-color: #ffffff;
    cursor: pointer;

}

.enabled-filter a {
    margin-right: 10px;
    color: #bcbcbc !important;
    font-weight: bold;
    /* cursor: pointer; */

    transition: transform 0.3s ease-in-out;

}

.enabled-filter p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 45px; */
    /* padding: 15px; */
    /* display: flex; */
    /* background-color: #AFE1AF; */
    align-items: center;
    text-align: center;

    color: #696868;




}


/* Animation */
.enabled-filter:hover {
    transform: translate(5px, 5px);
    /* Adjust the scale factor as needed */
}

.enabled-filter a:hover {
    transform: scale(1.3);
}

/*[/END] filter tags (enabled) */


/* Courses style */
.courses {
    width: auto;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    place-content: center;
}

.course {
    max-width:400px;
    background-color: white;
    margin-top: 40px;
    border-radius: 0px 0px 30px 30px!important;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;


    /* 4 - animation  */
    transition: transform 0.3s ease-in-out;
    /* Add a smooth transition effect */

}

.course {
    /* Hide the element initially */
    opacity: 0;
}

.course.animate {
    /* Show the element when the animate class is applied */
    opacity: 1;
}


.animate:nth-child(odd) {
    animation: 1s ease-out 0s 1 welcomeLeft;
}

.animate:nth-child(even) {
    animation: 1s ease-out 0s 1 welcomeRight;
}

@keyframes welcomeRight {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes welcomeLeft {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}




.course-preview {
    width: 100%;
    border-radius:0px;
    object-fit: cover;
    overflow: hidden;
}

.course-info {
    align-self: center;
    text-align: justify;
    width: 80%;
    height: 30%;
    /* flex-grow: 1; */
    display: flex;
    /* margin-left: 10px; */
    /* margin: 100px; */
    flex-direction: column;
    padding: 20px;
}


/* .course-description p {
    text-align: justify !important;
    
} */


/* @Animation */
.course:hover {
    transform: scale(1.02);
    /* Adjust the scale factor as needed */

}



/*------------------- Topic / Level / Language --- Under description -------------------*/
.data-tag-group {
    text-align: center;
    display: flex;
    flex-flow: wrap;
    /* justify-content: start; */
    /* grid-gap: 35px; */
    /* grid-template-columns: repeat(3, 1fr); */
    /* grid-template-rows: 12px; */
    align-items: start;
    gap: 20px;
}

.data-tag p {
    font-size: 16px;
    font-weight: bold;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 12501px;
    padding: 15px;
    display: flex;
    align-items: center;
    text-align: center;

    /* animation*/
    transition: transform 0.3s ease-in-out;

}

.data-tag#topic-data-tag>p {
    background-color: #002060;
    color: white
}

.data-tag#level-data-tag>p {
    background-color: #002060;
    color: white
}

.data-tag#language-data-tag>p {
    background-color: #002060;
    color: white
}

/*[END]------------------- Topic / Level / Language --- Under description -------------------*/



/*Smaller devices*/
@media only screen and (max-width: 1000px) {
    .course {
        flex-direction: column;
    }

    .course-preview {
        border-radius: 30px 30px 0px 0px;
        max-width: none;
    }

    .data-tag-group {
        justify-content: center;
    }



}

@media only screen and (max-width: 1200px) {
    form {
        flex-direction: column !important;
        justify-content: start;
        gap: 20px;
        align-items: inherit;
    }

    .group-enabled-filters {
        /* flex-direction: column; */
        place-content: center;
    }

}



/* Pagination styling */

.pagination {

    margin-top: 250px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.pagination-item {
    border: 2px solid var(--blue);
    /* outline: .5px solid #f2a246; */
    background-color: var(--blue);
    box-shadow: inset white 0px 0px 0px 2px;
    /* Creates an inner border shadow */
    color: white;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    text-align: center;
    box-sizing: border-box;
    /* Ensure border-box box-sizing */
    display: flex;
    /* Use flexbox for vertical centering */
    justify-content: center;
    /* Center content horizontally */
    align-items: center;
    /* Center content vertically */
}

.number {
    margin: 0;
    /* Remove default margin */
}

.pagicon i {
    vertical-align: middle;
    /* Align icons vertically */
}


.pagination-item:not(.dots):hover {
    cursor: pointer;
    transform: scale(1.1);
    background-color: var(--lightblue);
}

.active {
    box-shadow: inset white 0px 0px 0px 0px;
}


/* Pagination styling [END] */