@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,900&display=swap");

#training-section {
    width: 100%;
}

#training-section label {
    cursor: pointer;
    user-select: none;
}

h1 {
    font-size: 26px;
    line-height: 26px;
    text-transform: uppercase;
    color: rgb(122, 134, 141);
    font-family: "Lato", sans-serif;
    font-weight: 400;
    width: fit-content;
    margin-bottom: 3rem;
}

h1::after {
    content: "";
    width: 100px;
    height: 3px;
    display: block;
    margin: 0.35rem auto 0;
    background-color: #41b3e4;
}
.d-none {
    display: none !important;
}
.text-center {
    text-align: center;
}
.filter-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    width: 100%;
    gap: 1rem;
}
.dropdown-filter-container {
    position: relative;
}
.dropdown-filter-container .animated-height-container {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0rem 2rem 3rem #00000040;
}

.dropdown-filter > div {
    background-color: white;
    padding:0.5rem 0;
    border: 1px solid #41b3e4;
    border-radius: 1rem;
}

.dropdown-filter {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.filter-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1.5rem;
}
.dropdown-filter-container > label {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: underline;
    white-space: nowrap;
}
.dropdown-filter-container > label::after {
    content: "";
    background-image: url('data:image/svg+xml;utf8,<svg version="1.1" id="Calque_1" x="0px" y="0px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve"><polygon points="42.1,37.3 46.4,32.8 25,12.7 3.6,32.8 7.9,37.3 25,21.3 	"/></svg>');
    width: 20px;
    height: 20px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 12px auto;
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}
.dropdown-filter-container.active > label::after {
    transform: rotate(0deg);
}

.dropdown-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.filter-container-title {
    background-color: #005e86;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    color: #fff;
    width: fit-content;
    padding: 0.35rem 2rem 0.2rem;
    margin-left: auto;
    margin-right: 2rem;
    font-weight: 600;
    display: block;
}
.filter-container-border {
    border: 2px solid #315c86;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 1rem;
    flex-wrap: nowrap;
}

.filter-container-border > div select {
    display: block;
    border: 1px solid #6fafe4;
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    border-radius: 0.75rem;
    width: 100%;
    text-overflow: ellipsis;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg version="1.1" id="Calque_1" x="0px" y="0px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;transform:rotate(180deg);" xml:space="preserve"><polygon points="42.1,37.3 46.4,32.8 25,12.7 3.6,32.8 7.9,37.3 25,21.3 	"/></svg>');
    background-position: center right 0.5rem;
    background-repeat: no-repeat;
    background-size: 12px auto;
}

option:disabled:not(selected) {
    display: none;
}
.filter-container-border option {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.month-container.loading {
    opacity: 0.5;
}

.month-item > span {
    background-color: #41b3e4;
    border-radius: 1rem;
    padding: 0.5rem 1.5rem 0.5rem 2rem;
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    transition: all ease-in-out 0.3s;
}

.month-item.active > span {
    border-bottom-left-radius: unset;
    border-bottom-right-radius: unset;
    margin-left: 2rem;
}

.dropdown-btn{
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: fit-content;
}
.month-item .dropdown-btn::after{
    content:"";
    background-image : url('data:image/svg+xml;utf8,<svg version="1.1" id="Calque_1" x="0px" y="0px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50; fill:white;" xml:space="preserve"><polygon points="42.1,37.3 46.4,32.8 25,12.7 3.6,32.8 7.9,37.3 25,21.3 	"/></svg>');
    width: 20px;
    height: 20px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 12px auto;
    display: inline-block;
    transform:rotate(180deg);
    transition: transform 0.3s ease-in-out;
}
.month-item.active .dropdown-btn::after{
    transform:rotate(0deg);
}

.animated-height-container {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-in-out;
}
.animated-height-container > * {
    overflow: hidden;
}
.active > .animated-height-container {
    grid-template-rows: 1fr;
}

section#training {
    padding: 30px 20px 30px 20px;
    width: 100%;
}

.training-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.training-item {
    background: #f8f9fa;
    border-radius: 2rem;
    padding: 2rem;
}

.training-item h2 {
    font-size: 1.7rem;
    color: #005e86;
    font-weight: 900;
    margin-top: 0.8rem;
    line-height: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: "Lato", sans-serif;
}

.training-item h4 {
    font-size: 1.1rem;
    line-height: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: "Lato", sans-serif;
    color: #7a868d;
}

.training-item {
    font: 300 14px/20px "Lato", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.training-item .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: white;
    border-radius: 1000px;
    white-space: nowrap;
}
.training-item .badge.blue {
    background-color: #41b3e4;
}
.training-item .badge.gray {
    background-color: #7a868d;
}

.training-header {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: space-between;
}

.training-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.75rem;
    min-height: 42px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 10px;
    width: 100%;
    max-width: 250px;
    background-color: #41b3e4;
    border-color: #41b3e4;
    color: white;
    text-align: center;
}

.training-item a:hover {
    background-color: #1b8dbe;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .training-header {
        flex-direction: column-reverse;
    }
    .filter-row {
        justify-content: center;
        flex-direction: column-reverse;
        align-items: center;
    }
    .filter-container {
        width: 100%;
    }
    .filter-container-border > div {
        flex-grow: 1;
    }
    .filter-container-border > div select {
        max-width: unset;
    }
}

@media (max-width: 575px) {
    .filter-container-border {
        flex-direction: column;
        border-top-left-radius: unset;
        border-top-right-radius: unset;
    }

    .category-filter,
    .type-filter {
        width: 100%;
    }

    .filter-container-title {
        width: 100%;
    }
}
