.accreditation{
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.accreditation .title{
    position: relative;
    font-size: 30px;
    font-style: oblique;
    font-weight: bolder;
    text-align: center;
    margin: -0.75rem;
    font-family: serif;
    text-shadow: rgb(70 70 70) 1px 1px 0;
    background: white;
    border: 1px solid;
    box-shadow: 0px 3px 10px 1px rgb(0 0 0 / 60%);
    border-radius: 5px;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
}

.accreditation .box{
    width: 100%;
    min-height: 100px;
    margin-top: .5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.task-card{
    position: relative;
    background: white;
    flex-grow: 1;
    max-width: 450px;
    margin: 0.5rem;
    flex-basis: 320px;
    border: 1px solid hsl(330 70% 55%);
    border-radius: 10px;
    padding: 0.3rem 0.5rem 2rem .5rem;
    box-shadow: 0 0 7px 0 #00000099;
    min-height: 7rem;

}

.task-card .card-header{
    border-bottom: 1px solid;
    border-color: inherit;
    padding-bottom: 0.2rem;
    font-weight: 600;
    color: hsl(330 68% 56%);
    line-height: 1rem;
}

.task-card .card-body{
    margin-top: 0.3rem;
    border-color: inherit;
    position: relative;
}

.task-card .card-body .badge{
    display: inline-block;
    padding: 0 0.3rem 1px 0.2rem;
    margin: 0.1rem 0.1rem;
    border-radius: 10px;
    border:1px solid;
    background:transparent;
}

.task-card .card-body .badge.speciality{
    color: hsl(0deg 3% 25%);
}

.task-card .card-body .badge.duration{
    color: hsl(130 85% 23% / 1);
}

.task-card .card-body .badge.qty{
    color: hsl(230 85% 32% / 1);
}

.task-card .card-body .badge.questionsCount{
    color: hsl(304 85% 30% / 1);
}

.task-card .card-body .badge svg{
    vertical-align: bottom;
}

.task-card .card-body .info{
    display: inline-block;
    width: calc(100% - 64px);
}

.task-card .card-body .controls{
    position: absolute;
    display: inline-block;
    width: 60px;
    height: 60px;
    border-color: inherit;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 1px;
    z-index: 1;
}

.task-card > .card-body > .controls > .bg{
    position: absolute;
    width: 60px;
    aspect-ratio: 1;
    background: #dee2e6;
    border-radius: 50%;
    /* box-shadow: inset 0 0 7px 0 #00000099; */
    clip-path: polygon(0% 0%, 90% 0%, 90% 100%, 0% 100%);
    border: 1px solid;
    border-color: inherit;
}

.task-card > .card-body > .controls > .extra{
    width: 15px;
    height: 60px;
    background: var(--background-color);
    position: absolute;
    right: -2px;
    top: 0px;
    border-color: inherit;
    border-radius: 4px 0 0 4px;
}

.task-card > .card-body > .controls > .extra::before, .task-card > .card-body > .controls > .extra::after{
    content: "";
    position: absolute;
    width: 11px;
    rotate: -20deg;
    height: 13px;
    background: red;
    background: white;
    border-radius: 50%;
    border: 1px solid;
    border-color: inherit;
    right: 8px;
    clip-path: polygon(2px 11px, 4px 6px, 10px 7px, 12px 9px, 11px 8px, 23px 12px, 25px 25px, 0px 25px, 1px 13px, 2px 10px);
    box-shadow: 2px 0px 7px 0 #00000073;
}

.task-card > .card-body > .controls > .extra::before{
    top: -6px;
}

.task-card > .card-body > .controls > .extra::after{
    bottom: -6px;
    transform: rotateX(180deg) rotateZ(-40deg);
}

.task-card > .card-body > .controls > .mainButton{
    position: relative;
    width: 50px;
    height: 50px;
    background: hsl(330 66% 52%);
    border-radius: 50%;
    margin: 5px;
    box-shadow: 0 0 7px 0 #00000099;
    cursor:pointer;
    transition-duration: .3s;
}

.task-card .card-body .controls .mainButton:hover, .task-card .card-body .controls .mainButton:focus{
    background: hsl(330 66% 42%);
    outline: none;
}

.task-card .card-body .controls .mainButton > svg{
    position: absolute;
    color: white;
    top: 9px;
    left: 10px;
    transition-duration: .3s;
}

.task-card .card-body .controls .mainButton:hover > svg, .task-card .card-body .controls .mainButton:focus > svg{
    transform:rotate(180deg);
}

.task-card .card-body .controls .mainButton .bg{
    width: 106px;
    height: 134px;
    position: absolute;
    right: 0;
    top: -42px;
    border-radius: 58px;
    visibility: hidden;
    clip-path: polygon(0px 0px, 70px 0px, 75px 35px, 110px 45px, 110px 90px, 75px 98px, 70px 134px, 0px 134px);
}

.task-card .card-body .controls .mainButton .card-links{
    background: white;
    width: 48px;
    height: 48px;
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    color: hsl(330 66% 52%);
    transform: rotate(45deg) scale(.6);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 0 7px #00000099;
}

.task-card .card-body .controls .mainButton:hover > .bg, .task-card .card-body .controls .mainButton:hover > .card-links, .task-card .card-body .controls .mainButton .bg:hover, .task-card .card-body .controls .mainButton .card-links:hover {
    transform: rotate(0deg) scale(1);
    opacity: 1;
    visibility: visible;
}

.task-card .card-body .controls .mainButton .card-links > svg{
    font-size: 33px;
    margin: 6px;
}

.task-card .card-body .controls .mainButton .card-links:nth-of-type(1){
    left: -50px;
    top: -30px;
    transition: all .2s .2s linear, color .15s 0s linear, background .15s 0s linear, border-color .15s 0s linear;
}

.task-card .card-body .controls .mainButton .card-links:nth-of-type(2){
    left: -50px;
    top: 31px;
    transition: all .2s .1s linear, color .15s 0s linear, background .15s 0s linear, border-color .15s 0s linear;
}

.task-card .card-body .controls .mainButton .card-links:nth-of-type(3){
    left: -35px;
    top: 47px;
    transition: all .2s .0s linear, color .15s 0s linear, background .15s 0s linear, border-color .15s 0s linear;
}

.task-card .card-body .controls .mainButton .card-links:hover{
    color: white;
    background: hsl(330 66% 52%);
    border-color:hsl(330 66% 52%);
}

.task-card .card-footer{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1.6rem;
    margin-top: -0.5rem;
    margin-left: -0.5rem;
    padding: 0 0.5rem;
    border-top: 1px solid;
    border-color: inherit;
    display: flex;
    justify-content: space-between;
    color: var(--bs-gray-600);
}

.task-card .card-footer > span > svg{
    margin-top: -3px;
}

.task-card .card-footer .updates{
    display: inline-block;
}

.task-card .card-footer .updates > .updatesToggle{
    display: inline-block;
    border-radius: 7px;
    border: 1px solid;
    padding: 0 0.2rem;
    line-height: 0.9rem;
    vertical-align: text-bottom;
}

.task-card .card-footer .updates.hasUpdate  > .updatesToggle{
    color: white;
    background: var(--bs-purple);
    border-color: var(--bs-purple);
    cursor: pointer;
}

.task-card .card-footer .updates.newUpdate  > .updatesToggle{
    background: var(--bs-success);
    border-color: var(--bs-success);
}

.task-card .card-footer .updates > .updatesToggle  > svg{
    vertical-align: top;
}

.task-card .card-footer .updates > .updatesToggle > span{
    margin-top: -11px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.task-card .card-footer .updates > .updatesData{
    position: absolute;
    right: 55px;
    bottom: 0;
    color: black;
    background: white;
    box-shadow: 0 0 8px #00000099;
    padding: 0.4rem;
    border-radius: 5px;
    cursor: auto;
    z-index: 2;
    overflow: auto;
    max-height: 180px;
}

.task-card .card-footer .updates > .updatesData > .update{
    background: hsl(261deg 51% 51% / 20%);
    margin-bottom: 0.4rem;
    border-radius: 3px;
    padding: 0.2rem;
    padding-top: 1.6rem;
    position: relative;
}

.task-card .card-footer .updates > .updatesData > .update:last-child{
    margin-bottom: 0;
}

.task-card .card-footer .updates > .updatesData > .update > span {
    font-weight: bold;
    color: var(--bs-purple);
    border: 2px solid white;
    position: absolute;
    left: -2px;
    top: -2px;
    border-radius: 3px;
    padding: 0 0.2rem;
}

.task-card .card-footer .updates > .updatesData > .update > div{
    line-height: 1.1rem;
}
