.driving-section{
    margin: 80px 0 160px 0 ;
}


.driving-card{
    box-sizing: border-box;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 10px;
    background-color: var(--bg-white);
    padding:30px;
}

.driving-card a{
    text-decoration: none;
    background-color: var(--bg-white-2);
    border: 1.5px solid var(--color-4);
    color: var(--color-4);
    text-align: center;
    border-radius: 10px;
    width: 100%;
    padding: 10px 14px 12px;
    font-size: 15px;
    font-weight: 600;
    transition: .5s;
    margin-top: 20px;
}


.driving-card a:hover{
    color: var(--bg-white-2);
    background-color: var(--color-4);
    border: 1.5px solid var(--color-4);
}

.driving-card{
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
    justify-content: space-between
}

.driving-card-body{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.driving-card h3{
    color: #1C2833;
    font-weight: bold;
}

.courses-card.topic{
    height: 160px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.courses-card.topic:hover{
    margin-top: -8px;
}

.courses-card.topic a{
    height: 100%;
}

.courses-card.topic a .courses-text{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.courses-card.topic .review-icon{
    align-items: center;
}

.courses-card.topic a button{
    background-color: #754FFE;
    color: #fff;
    text-decoration: none;
    display: flex;
    padding: 6px 24px;
    border-radius: 5px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.courses-card.test a button{
    background-color: #754FFE;
    color: #fff;
    text-decoration: none;
    display: flex;
    padding: 6px 24px;
    border-radius: 5px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    justify-content: center;
}

.courses-card.test img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.driving-test-card{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.driving-test-card h5{
    font-size: 16px;
    line-height: 25px;
    font-weight: 600;
    padding-right: 7px;
    transition: .5s;
    color: black;
}

.driving-test-answer img{
    width: 100%;
}

.driving-test-answer{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.driving-test-answer button{
    color: #222222;
    background-color: #fff;
    display: flex;
    padding: 10px;
    border: 1px solid #dadada;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
    transition: all 0.1s;
}

.driving-test-answer button:hover{
    border: 1px solid #9b9b9b;
    font-weight: bold;
}

.driving-test-answer .currect{
    font-weight: bold;
    color: #239B56;
    border: 1px solid #239B56;
    border-left: 4px solid #239B56;
    animation-name: tada;
    animation-duration: 0.6s;
}

.driving-test-answer .currect:hover{
    font-weight: bold;
    color: #239B56;
    border: 1px solid #239B56;
    border-left: 4px solid #239B56;
}

.driving-test-answer .error{
    font-weight: bold;
    color: #C0392B;
    border: 1px solid #C0392B;
    border-left: 4px solid #C0392B;
    animation-name: tada;
    animation-duration: 0.6s;
}

.driving-test-answer .error:hover{
    font-weight: bold;
    color: #C0392B;
    border: 1px solid #C0392B;
    border-left: 4px solid #C0392B;
}

.driving-test-answer em{
    margin: 12px 0;
    font-size: 14px;
    color: black;
    border: 1px solid #754FFE;
    border-radius: 8px;
    padding: 20px;
}

.driving-test-footer{
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.driving-test-footer a{
    background-color: #754FFE;
    color: #fff;
    text-decoration: none;
    display: flex;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    line-height: normal;
    text-align: center;
}

.driving-test-footer a:hover{
    background-color: #562cee;
}

.driving-title{
    font-size: 24px !important;
}

#duration_exam{
    font-size: 26px !important;
    font-weight: bold !important;
}

.driving-button{
    text-decoration: none;
    background-color: var(--bg-white-2);
    border: 1.5px solid var(--color-4);
    color: var(--color-4);
    text-align: center;
    border-radius: 10px;
    margin: 14px 30px 0px;
    padding: 10px 14px 12px;
    font-size: 15px;
    font-weight: 600;
    transition: .5s;
}

.driving-button i{
    margin-right: 8px;
}

.driving-button:hover{
    color: #fff;
    background-color: var(--color-4);
}

.driving-test-answer .active{
    border: 1px solid #751FFF;
    color: #751FFF;
    font-weight: bold;
}

.driving-exam-card{
    margin-top: 0!important;
    margin-right: 20px;
    margin-bottom: 40px;
}

.driving-modal-body{
    padding: 1rem;
    padding-bottom: 40px;
}

.driving-modal-body h5{
    color: #fff;
    text-align: center;
    font-size: 16px;
}

.driving-modal-body img{
    width: 80%;
}

.driving-modal-body label{
    color: #fff;
    margin-bottom: 8px;
}

.driving-modal-body .form-group{
    margin-bottom: 14px;
}

#exam-result{
    color: #fff;
    text-align: center;
}

@media only screen and (max-width: 900px) {
    .driving-section{
        margin: 40px 0 60px 0 ;
    }

    .driving-exam-card{
        margin-right: 0;
    }
}

@keyframes tada {
    0% {
        transform: scale(1);
    }
  
    10%, 20% {
        transform: scale(0.95) rotate(-0.5deg);
    }
  
    100% {
        transform: scale(1) rotate(0);
    }
}

#exam-result{
    gap: 20px;
}

#exam-result .enrol{
    display: flex;
    align-items: center;
    gap: 8px;
}

#exam-result .enrol h5{
    font-weight: bold;
}

#exam-detail i{
    margin: 0px 18px 0px 0px;
    font-size: 20px;
}

#exam-data i{
    margin: 0px 18px 0px 0px;
    font-size: 20px;
}

.driving-timer{
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 30px;
    background-color: #751FFF;
    color: #fff;
    border-radius: 12px;
}

.driving-timer h5{
    font-size: 14px;
}

.exam-custom-detail h4{
    min-width: 160px;
    padding-right: 12px;
}

.exam-custom-detail  .enrol{
    /* align-items: center; */
}

.driving-error-message {
    font-size: 12px;
    margin-left: 6px;
}

.flex-direction-column{
    flex-direction: column;
}