/* modern-reset.css */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    font-family: "Roboto", sans-serif !important;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

img, picture {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.card-title {
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr; /* mặc định 1 cột */
    gap: 16px;
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr 1fr; /* 2 cột */
    }
}

.video-item {
    width: 100%;
    border: #bb3333 1px solid;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 24px;
}

.video-play-button {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-play-button img {
    width: 75%;
    height: 75%;
}

/*.place-items-center {*/
/*    display: grid;*/
/*    gap: 24px;*/
/*    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*/
/*    justify-content: center;*/
/*}*/

.div-center {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: center;
}

.form-exam {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
}

.submit-exam-btn {
    position: relative;
    font-size: 1.2em;
    padding: 0.7em 1.4em;
    background-color: #BF0426;
    text-decoration: none;
    border: none;
    border-radius: 0.5em;
    color: #DEDEDE;
    box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.3);
}

.submit-exam-btn::before {
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 50%, rgba(150,4,31,1) 50%, rgba(191,4,38,1) 60%);
    border-radius: 0 0 0.5em 0;
    box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.submit-exam-btn:hover::before {
    width: 1.6em;
    height: 1.6em;
}

.submit-exam-btn:active {
    box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.3);
    transform: translate(0.1em, 0.1em);
}

.rewrite-btn {
    cursor: pointer;
    position: relative;
    padding: 10px 24px;
    font-size: 18px;
    color: rgb(193, 163, 98);
    border: 2px solid rgb(193, 163, 98);
    border-radius: 34px;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

.rewrite-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: inherit;
    scale: 0;
    z-index: -1;
    background-color: rgb(193, 163, 98);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.rewrite-btn:hover::before {
    scale: 3;
}

.rewrite-btn:hover {
    color: #212121;
    scale: 1.1;
    box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
}

.rewrite-btn:active {
    scale: 1;
}

.section-title:after {
    content: "";
    background-color: #ca8a04 !important;
    width: 80px;
    height: 4px;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translate(-50%);
}

.exams, .section-item {
    background-color: #fff9e8;
}
