:root {
    --transition-default: 0.3s all linear;
    --font-heading: "Prata", serif;
    --font-theme: "Montserrat", sans-serif;
    --size-theme: 15px;
    --primary-color: #c29342;
    --primary-rgb: 194, 147, 66;
    --primary-color-10: #f3e9d96b;
    --primary-color-30: rgba(224, 207, 147, 0.24);
    --primary-hover: #a87a1e;
    --title-color: #402502;
    --primary-gradient-10: linear-gradient(96deg, #e5f1ff, #d4e5f9);
    --primary-gradient-50: linear-gradient(180deg, #112188, #192269);
    --secondary-color: #CEB992;
    --secondary-color-2: #D2C094;
    --red-main: #be0c0c;
}

body {
    position: relative;
    width: 100%;
    font-family: var(--font-theme);
    font-size: var(--size-theme);
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: var(--bs-gray-900);
    letter-spacing: -.2px;
    font-size-adjust: 0.53;
}

a, a:hover, a:focus {
    outline: none;
    text-decoration: none;
    cursor: pointer;
    -o-transition: var(--transition-default);
    transition: var(--transition-default);
    -webkit-transition: var(--transition-default);
}

button, button:hover, button:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    cursor: pointer;
    -o-transition: var(--transition-default);
    transition: var(--transition-default);
    -webkit-transition: var(--transition-default);
}

input,
select,
textarea {
    -o-transition: var(--transition-default);
    transition: var(--transition-default);
    -webkit-transition: var(--transition-default);
}

input:focus,
select:focus,
textarea:focus {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-color: var(--primary-color) !important;
}

.pseudo {
    position: relative;
}

.pseudo:before,
.pseudo:after {
    position: absolute;
    content: "";
    display: block;
}

.transition-default {
    -o-transition: var(--transition-default);
    transition: var(--transition-default);
    -webkit-transition: var(--transition-default);
}

.transition-cubic {
    transition: 0.5s cubic-bezier(0.44, 0.185, 0.575, 0.86);
}

.background-cover {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.image-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.image-contain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

.background-cover {
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.object-fit-cover {
    -o-object-fit: cover;
    object-fit: cover;
}

.object-fit-contain {
    -o-object-fit: contain;
    object-fit: contain;
}

.limit {
    --line: 2;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: var(--line);
    line-clamp: var(--line);
    -webkit-box-orient: vertical;
}

.limit-3 {
    --line: 3;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: var(--line);
    line-clamp: var(--line);
    -webkit-box-orient: vertical;
}

.limit-4 {
    --line: 4;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: var(--line);
    line-clamp: var(--line);
    -webkit-box-orient: vertical;
}

.limit-6 {
    --line: 6;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: var(--line);
    line-clamp: var(--line);
    -webkit-box-orient: vertical;
}

.hidden-effect {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hidden-effect:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.zi--1 {
    z-index: -1;
}

.zi-1 {
    z-index: 1;
}

.zi-2 {
    z-index: 2;
}

.zi-3 {
    z-index: 3;
}

.zi-4 {
    z-index: 4;
}

.zi-5 {
    z-index: 5;
}

.zi-10 {
    z-index: 10;
}

.gap-5px {
    gap: 5px;
}

.gap-10px {
    gap: 10px;
}

.gap-15px {
    gap: 15px;
}

.gap-20px {
    gap: 20px;
}

.gap-25px {
    gap: 25px;
}

.gap-30px {
    gap: 30px;
}

.flex-same {
    -webkit-box-flex: 1 !important;
    -ms-flex: 1 1 0px !important;
    flex: 1 1 0 !important;
}

/*
    Start table of content
*/
.theme-toc {
    border: 1px solid #e9e9e9;
    background: #faf9fa;
    display: inline-flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 15px;
    min-width: 200px;
}

.theme-toc > .nav {
    padding: 0 0 8px;
    width: 100%;
}

.theme-toc .nav {
    display: inline-flex;
    flex-direction: column;
}

.theme-toc .nav > li > a {
    padding-top: 3px;
    padding-right: 15px;
    padding-bottom: 3px;
    display: block;
    color: var(--bs-gray-dark);
    font-size: .95rem;
}

.theme-toc .nav > li > a:hover,
.theme-toc .nav > li > a:active {
    color: var(--primary-color);
}

.theme-toc .nav > li > a.toc-link-1 {
    padding-left: 15px;
}

.theme-toc .nav > li > a.toc-link-2 {
    padding-left: 30px;
}

.theme-toc .nav > li > a:not(.toc-link-1):before {
    /*content: "-";*/
    margin-right: 9px;
}

.theme-toc .nav > li > a.toc-link-3 {
    padding-left: 45px;
}

.theme-toc .nav > li > a.toc-link-4 {
    padding-left: 60px;
}

.theme-toc .nav > li > a.toc-link-5 {
    padding-left: 75px;
}

.theme-toc .nav > li > a.toc-link-6 {
    padding-left: 90px;
}

.theme-toc .nav > li.toc-heading {
    background-color: #f5f5f5;
    border-bottom: 1px solid #dddddd;
    padding: 0;
    margin-bottom: 5px;
    width: 100%;
}

.theme-toc .nav > li.toc-heading > p {
    color: var(--bs-gray-dark);
    padding: 10px 0 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 0;
}

.theme-toc .nav > li.toc-heading > p > a {
    color: var(--primary-color);
    margin-left: 4px;
    font-size: .9rem;
}

.theme-toc .nav > li.toc-heading > p > a:hover,
.theme-toc .nav > li.toc-heading > p > a:active {
    color: var(--primary-hover);
}

.theme-toc .nav .nav {
    margin-bottom: 0;
}

@media screen and (max-width: 600px) {
    .theme-toc {
        width: 100%;
    }

    .theme-toc .nav > li.toc-heading > p {
        font-size: 1em;
    }

    .theme-toc .nav > li > a {
        font-size: .95em;
    }

}

.swal2-popup .swal2-title {
    font-size: 1.2em;
    color: var(--bs-gray-900);
    font-weight: 700;
}

.swal2-popup .swal2-html-container {
    color: var(--bs-gray-700);
    font-size: 1.05em;
}

.swal2-actions {
    flex-direction: row-reverse;
}

.swal2-popup .swal2-confirm,
.swal2-popup .swal2-cancel,
.swal2-popup .swal2-deny {
    font-size: .95em !important;
    text-transform: uppercase;
    padding: 8px 26px;
    border-radius: 3px;
    font-weight: 700;
    transition: var(--transition-default);
    outline: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .5px;
    border: 1px solid transparent;
    margin: 0 5px;
}

.swal2-popup .swal2-confirm {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--bs-white);
}

.ratio > img,
.ratio > video,
.ratio > iframe {
    -o-object-fit: cover;
    object-fit: cover;
}

.ratio-2x1 {
    --bs-aspect-ratio: 50%;
}

.ratio-3x2 {
    --bs-aspect-ratio: calc(2 / 3 * 100%);
}

.ratio-3x4 {
    --bs-aspect-ratio: calc(4 / 3 * 100%);
}

.ratio-5x4 {
    --bs-aspect-ratio: calc(5 / 4 * 100%);
}

img.lazy {
    opacity: 0;
}

img.initial,
img.loaded,
img.error {
    opacity: 1;
}

img:not([src]):not([srcset]) {
    visibility: hidden;
}

.is-overflow {
    overflow: hidden !important;
    height: 100vh !important;
}

.zalo-share-button iframe {
    z-index: 2 !important;
}

.was-validated .form-control:valid,
.form-select.is-valid,
.was-validated .form-select:valid:not([multiple]):not([size]) {
    border: 1px solid rgba(223, 226, 231, 0.71);
    background-image: unset !important;
}

.was-validated .form-control:invalid {
    background-image: unset !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: rgb(var(--primary-rgb), 0.2) !important;
}

.section-gap {
    padding: 50px 0;
}

.section-gap-100 {
    padding: 100px 0;
}

.font-heading {
    font-family: var(--font-heading);
}

.fw-700 {
    font-weight: 700;
}

.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

.content-visibility-auto {
    content-visibility: auto;
}

.swiper-lazy-preloader {
    width: 100%;
    height: 50vh; /* tạo khung giữ chỗ theo tỷ lệ ảnh */
    overflow: hidden;
    animation: none !important;
    border: unset !important;
    position: relative;
    left: unset !important;
    top: unset !important;
    margin: unset;
}

.swiper-lazy-preloader::after {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
