/* General */
html,
body {
    margin: 0px;
}

main {
    position: relative;
}

a {
    overflow-wrap: break-word;
}

input,
select {
    height: 40px;
}

input[type="date"]::before {
    content: attr(placeholder);
    position: absolute;
    color: #999999;
}

input[type="date"] {
    color: #ffffff;
}

input[type="date"]:focus,
input[type="date"]:valid {
    color: #666666;
}

input[type="date"]:focus::before,
input[type="date"]:valid::before {
    content: "";
}

:root {
    --red: #a82523;
    --red-transparent: rgba(160, 35, 33, 0);
    --cyan: #0088A6;
    --blue: #007aff;
    --swiper-theme-color: #ffffff !important;
    font-family: Inter, Arial, sans-serif, Helvetica;
    font-size: 13px;
    line-height: 1.4;
}

@media screen and (max-width: 1100px) {
    :root {
        font-size: 0.8rem;
    }
}

h1 {
    font-size: 1.75rem;
}

.h2-container {
    margin: 20px 0px;
}

.h2-container__seperator {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    align-items: center;
}

.h2-container__seperator span {
    flex: 1 0 auto;
    border-bottom: 2px solid var(--red);
}

.h2 {
    text-align: center;
    margin: 0px auto 0px;
}

.clearfix {
    overflow: clip;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.container {
    display: block;
    margin: 0 auto;
    max-width: 1440px;
    width: 95%;
    min-height: 60vh;
}

.container img {
    max-width: 100%;
    height: auto !important;
}

.post-container img {
    width: auto;
}


.small-container {
    margin: 0 auto;
    max-width: 1000px;
    min-height: 50vh;
    width: 95%;
}

.form-tra-cuu {
    display: flex;
    flex-direction: column;
    max-width: fit-content;
    margin: 30px auto;
    gap: 10px;
}

.form-tra-cuu .form-field {
    flex: 1 0 30%;
    height: fit-content;
    margin-bottom: 0px !important;
}

.form-tra-cuu .form-field-label {
    display: block;
}

.margin-top-30 {
    margin-top: 30px;
}

.g-recaptcha>* {
    margin: 0 auto;
}

/* Header */
.header {
    display: contents;
    margin: 0px auto;
    flex-wrap: wrap;
    padding: 20px 0px;
    gap: 10px;
}

.header-collapse-button-container {
    display: none;
    padding: 20px;
}

.header-collapse-button {
    position: relative;
    width: 30px;
    height: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: none;
}

#header-collapse-button {
    display: none;
}

.header-collapse-button--first-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 26px;
    border: 2px solid black;
    border-radius: 100vw;
}

.header-collapse-button--second-bar {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 26px;
    transform: translateY(-50%);
    border-radius: 100vw;
    border: 2px solid black;
}

.header-collapse-button--third-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 26px;
    border: 2px solid black;
    border-radius: 100vw;
}

.header__above {
    z-index: 9999998;
}

.header__below {
    display: flex;
    flex-wrap: wrap;
    position: sticky;
    padding: 0px 20px;
    justify-content: center;
    border-bottom: 1px solid var(--red);
    z-index: 9999999;
    background-color: white;
    top: 0;
}

.header__above-inside {
    display: flex;
    margin: 0 auto;
    gap: 50px;
    flex: 1 0;
    width: 100%;
    padding: 10px;
    max-width: 1440px;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo-container {
    display: block;
    flex: 0 1 400px;
}

.logo {
    display: block;
    max-width: 100%;
}

.banner-container {
    display: block;
    flex: 1 1 auto;
    box-sizing: border-box;
}

.banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    max-width: 640px;
    margin-left: auto;
}

.navbar-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    padding: 0px;
    align-items: stretch;
}

.navbar-list-item {
    margin: 0px;
    cursor: pointer;
    flex: 0 1 fit-content;
    height: 100%;
    align-items: stretch;
    text-transform: uppercase;
}


.navbar-link {
    display: block;
    text-decoration: none;
    color: black;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    padding: 0px 0px 5px;
    border-bottom: 2px solid var(--red-transparent);
}

.navbar-link:hover,
.navbar-link.active,
.navbar-dropdown-button.active,
.navbar-list-item.active {
    border-bottom: 2px solid var(--red);
    transition: all .25s;
}

.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-button,
.navbar-highlight-link {
    background-color: var(--red);
    box-shadow: 0px 0px 0px 7px var(--red);
    color: white;
    border: 0px;
    font-weight: bold;
    font-family: inherit;
    text-align: center;
}


.navbar-dropdown-content {
    display: none;
    position: absolute;
    border: 1px solid black;
    width: 400px;
    overflow: hidden;
    background-color: white;
    z-index: 1;
}

.navbar-dropdown-link {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.navbar-dropdown-link.active,
.navbar-dropdown-button.active,
.navbar-highlight-link.active {
    background-color: var(--red);
    color: white;
}

.navbar-dropdown-link:hover {
    color: white;
    background-color: var(--red);
    transition: all .25s;
}

.navbar-list-item:hover .navbar-dropdown-content {
    display: block;
    z-index: 10;
}

/* Header responsive */

@media screen and (max-width: 1440px) {
    .header {
        padding: 15px;
    }

    .header__above {
        margin-left: 0px;
    }

    .header__below {
        margin-right: 0px;
    }

}

@media screen and (max-width: 1000px) {
    .header {
        padding: 0px;
        margin-left: auto;
    }

    .header__above {
        flex: 1;
    }

    .header__below {
        justify-content: center;
        padding: 0px;
    }

    .header-collapse-button-container {
        display: block;
        padding: 10px;
    }

    .header__below .navbar-list {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0px;
        overflow: hidden;
    }

    .header__below .navbar-list .navbar-list-item {
        width: 100%;
    }

    .header-collapse-button {
        display: block;
    }

    .navbar-dropdown-content {
        display: block;
        position: initial;
        width: 100%;
        margin: 0 auto;
        border-left: none;
        border-right: none;
        border-radius: 0px;
        padding: 10px 0px;
    }

    .navbar-dropdown-button:hover,
    .navbar-highlight-link:hover {
        background-color: transparent;
        color: black !important;
    }

    .header__below .navbar-list .navbar-list-item .navbar-link {
        border: none;
        border-radius: 0px;
        padding: 15px;
    }

    .navbar-dropdown-button {
        display: none;
    }

    .header:has(#header-collapse-button:checked) .header__below .navbar-list {
        display: flex;
    }

    .header-collapse-button-container {
        margin-left: auto;
    }

}

@media screen and (max-width: 768px) {
    .header__above-inside {
        flex-direction: column;
        gap: 20px;
        padding: 10px;

    }

    .logo-container {
        flex: 1;
    }

    .banner-container {
        display: none;
    }

    .banner {
        width: 100%;
    }
}

/* Foooter */
.footer {
    display: block;
    margin: 20px auto 0px;
    padding: 20px;
    text-align: center;
    color: white;
    background-color: var(--red);
}

.footer p {
    line-height: 1.2rem;
}

/* Body */

.swiper {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.swiper-slide {
    margin: 0px;
}

.swiper-slide span {
    color: var(--red);
    font-weight: bold;
}

.swiper-slide img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Post */
.post-img {
    width: 100%;
    height: auto;
}

.post-table {
    width: 100%;
    text-align: center;
}

.post-table table {
    border-spacing: 0;
    border-collapse: separate;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
}

.post-table table tr {
    border: 1px solid black;
    border-top-left-radius: 15px;
}

.post-table table tr th,
.post-table table tr td {
    padding: 10px;
}

.post-table table tr:first-child th:first-child {
    border: 1px solid black;
    border-top-left-radius: 10px;
}

.post-table table tr:first-child th:last-child {
    border: 1px solid black;
    border-top-right-radius: 10px;
}

.post-table thead th {
    background-color: var(--red);
    color: white;
}

.post-title {
    text-align: center;
    font-size: 1.75rem;
    margin-top: 30px;
    margin-bottom: 30px;
}

.post-title-note {
    text-align: center;
}

.post-subtitle {
    width: fit-content;
    margin: 5px auto;
}

/* Xet tuyen hoc ba */
.form-xet-tuyen {
    display: block;
    overflow: clip;
    max-width: 1200px;
    margin: 20px auto;
}

.form-section-title {
    text-align: center;
    border-bottom: 2px solid var(--red);
    color: var(--red);
    margin: 0px;
    padding: 10px;
}

.form-field-container {
    display: flex;
    gap: 0px 20px;
    width: 90%;
    margin: 10px auto;
    flex-wrap: wrap;
}

.form-field {
    flex: 1 0 30%;
    height: fit-content;
    margin-bottom: 20px;
}

.form-field-grade {
    flex: 1 0 100%;
    margin-bottom: 10px;
}


.form-field-label {
    display: inline-block;
    width: fit-content;
    margin: 0px;
}

.form-field-label--required::after {
    content: '*';
    margin-left: 5px;
    display: inline;
    color: var(--red);
}

.form-field-input {
    padding: 10px 15px;
    border: 1px solid black;
    width: 100%;
    box-sizing: border-box;
    margin: 5px 0px;
    font-size: 1rem;
}

.form-field-input--file {
    display: none;
}

.form-field-input--file-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    background-color: var(--red);
    color: white;
    width: fit-content;
    font-weight: bold;
    margin-top: 5px;
}

.form-field-input--file-icon {
    width: 30px;
    height: 30px;
    filter: invert(100%);
}

.form-field-input:focus {
    outline: 2px solid var(--cyan);
}

.form-field-note {
    font-style: italic;
    margin-block: 0px;
}

.form-field-input--select {
    margin-right: 20px;
}

.form-field-input--checkbox {
    display: inline-block;
    accent-color: var(--cyan);
    margin-right: 10px;
    height: 25px;
    width: 25px;
    padding: 0px;
    vertical-align: middle;
}

.form-submit {
    display: flex;
    width: 100%;
    align-items: center;
}

.form-submit-button {
    display: block;
    background-color: var(--red);
    color: white;
    border: 1px solid var(--red);
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    margin: 0px 20px;
    font-size: 1rem !important;
}

.form-submit-bar {
    flex: 1 0 auto;
    border-top: 2px dashed black;
}

.form-table-input {
    margin: 10px auto;
    text-align: center;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.form-table-input--hoc-ba-12 {
    width: 50%;
}

.form-table-input th {
    background-color: var(--red);
    color: white;
}

.form-table-input tr {
    font-weight: bold;
}

.form-table-input tr>* {
    padding: 10px;
}

.form-table-input label {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: var(--red);
    color: white;
    min-height: 40px;
}

.form-table-input input {
    width: 100%;
    border: 1px solid black;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
    font-family: inherit;
    font-size: inherit;
}

.form-table-input input:focus {
    outline: 2px solid var(--cyan);
}

/* Form responsive */
@media screen and (max-width: 768px) {
    .form-field-container {
        flex-direction: column;
    }

    .form-field {
        align-items: center;
    }
}


/* Table responsive */
@media screen and (max-width: 600px) {
    .post-table {
        width: 100%;
        overflow-x: scroll;
    }

    .post-table table {
        min-width: 1000px;
    }
}

/* Form table responsive */
@media screen and (max-width: 800px) {
    .form-table-input {
        width: 100%;
        border: 0px;
    }

    .form-table-input thead {
        border: none;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .form-table-input label {
        display: block;
        background-color: transparent;
        color: black;
        text-align: center;
        border: none;
    }

    .form-table-input tr {
        display: block;
        margin-bottom: 50px;
        border-bottom: 1px solid var(--red);
    }

    .form-table-input tr:last-child {
        margin-bottom: 0px;
    }

    .form-table-input td {
        display: flex;
        font-size: .8em;
        gap: 20px;
        padding: 20px;
    }

    .form-table-input label {
        display: flex;
        background-color: var(--red);
        color: white;
        width: 100%;
    }

    .form-table-input tr>*::before {
        content: attr(data-label);
        font-weight: bold;
        box-sizing: border-box;
        padding: 10px;
        border-radius: 10px;
        background-color: var(--red);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}

/* Carousel responsive */
@media screen and (max-width: 768px) {
    .carousel {
        display: none;
    }
}

@keyframes carousel-img-right-to-left {
    from {
        left: 100%;
    }

    to {
        left: 0%;
    }
}

@keyframes carousel-img-left-to-right {
    from {
        left: -100%;
    }

    to {
        left: 0%;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    z-index: 999999999;
    top: 50%;
    transform: translateY(-50%);
    height: fit-content;
    right: 5px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.35);
}

.sidebar-link {
    text-decoration: none;
    color: white;
    font-size: 2rem;
    display: block;
    cursor: pointer;
    padding: 5px;
    transition: all .25s;
}

.sidebar-link:hover {
    transform: scale(1.3);
}

.sidebar-link>i {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.sidebar-link--red {
    color: #E10600;
}

.sidebar-link--blue {
    color: var(--blue);
}

.sidebar-link--fixed-bottom {
    background-color: transparent;
    border: none;
    position: fixed;
    bottom: 10px;
    right: 0;
    -webkit-text-fill-color: white;
    /* Will override color (regardless of order) */
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black;
}

.sidebar-img {
    max-width: 32px;
}

/* Bai viet */
.post-container-wrapper {
    display: flex;
    flex-direction: column;
}

.post-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

.post {
    display: flex;
    flex: 0 1 calc(100%/4);
    flex-direction: column;
    text-decoration: none;
    color: black;
}

.post-thumbnail {
    max-width: 100%;
    width: 360px;
    height: 240px;
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    border-radius: 10px;
    ;
}

.post-title--small {
    text-align: left;
    margin-block: 10px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 10px;
    font-weight: bold;
    text-align: justify;
    padding: 10px;
    background-color: var(--red);
    color: white;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
}

.post-excerpt {
    margin-block: 0px;
}

@media screen and (max-width: 768px) {

    .post-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .post {
        flex: 1 1 300px;
    }
}

/* side notification */
.side-notification {
    border-width: 30%;
}

.side-notification>div:not(:last-child) {
    margin-bottom: 10px;
}

.side-notification .registeredName {
    border-left: 2px solid var(--red);
    padding: 5px 0px 5px 10px;
    margin-top: 10px;
    font-size: 1.2rem;
}

.side-notification .swiperRegister {
    background: white;
    box-sizing: border-box;
}

.side-notification .registeredName span {
    color: var(--red);
    font-weight: bold;
}

.side-notification--sticky {
    position: sticky;
    position: -webkit-sticky;
    bottom: 0;
    background-color: white;
}

.side-notification__inner {
    position: relative;
}

@media screen and (max-width: 768px) {
    .side-notification>* {
        flex: 1 1 auto;
    }

    .side-notification--sticky {
        position: relative;
    }
}

/* Loading animation */
.progress-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 9999999999999;
    background-color: rgba(0, 0, 0, 0.9);
}

.progress-bar {
    position: fixed;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle {
    height: 100%;
    right: 0px;
    position: absolute;
    border: solid 10px #a9a9a9;
    border-top-color: var(--cyan);
    border-radius: 50%;
}

.circle-border {
    width: 100%;
    transform: rotate(135deg);
    animation: spin 1.3s steps(2) .2s infinite;
    -webkit-animation: spin 1s linear infinite;

}


@-webkit-keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* CSS cho các form đăng ký xét tuyển */