:root{
    --color-default: #002A5E;
    --color-default-1: #bf011a;
    --color-default-2: #f15921;
    --color-default-3: #ffcf07;
}

body{
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-default);
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.body{
    height: calc(100vh - 170px);
    margin: 10px 0;
}

p{
    color: #000000;
}

.nav-link, .navbar-brand{
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    color: #ffffff;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus, .navbar-nav .nav-link.show{
    color: var(--color-default-3);
}

.hidden{
    display: none !important;
}

/* footer */
footer h5{
    text-transform: uppercase;
}

footer .contact-list img{
    width: 20px;
    height: 20px;
    -o-object-fit: contain;
       object-fit: contain;
}
.bg-footer{
    background-color: var(--color-default-1);
}
.bg-footer * {
    color: #ffffff;
}

.connect_social * img:hover{
    scale: 1.1;
}
/* end footer */

/* slider */
.carousel-item{
    height: 780px;
}

.carousel-item a{
    text-decoration: none;
    color: var(--color-default-1);
}

#homeCarousel {
    position: relative;
}

.custom-carousel-caption-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #d9d9d9cc;
    height: 70px;
    z-index: 10;
}

.custom-carousel-caption-bottom .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-carousel-caption-bottom .text-light {
    text-align: center;
    margin: 0;
}
.custom-carousel-caption-bottom h1.display-5 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.custom-carousel-caption-bottom p.lead {
    font-size: 1rem;
    margin-bottom: 5px;
}
/* end slider */

/* menu */
.custom-toggler {
    border: none;
    padding: 10px;
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 1050;
}
.custom-toggler:focus {
    box-shadow: none;
}

.toggler-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.navbar-toggler.custom-toggler[aria-expanded="true"] .line-1 {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler.custom-toggler[aria-expanded="true"] .line-2 {
    opacity: 0;
}
.navbar-toggler.custom-toggler[aria-expanded="true"] .line-3 {
    transform: translateY(-7px) rotate(-45deg);
}
.dropdown-menu .dropdown-item.active {
    background-color: var(--color-default-1);
    font-weight: bold;
}

.custom-hover-dropdown:hover > .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

.dropdown-menu{
    border-radius: 0;
    background-color: #bb4857e8;
}
.dropdown-item{
    padding: 10px;
    color: #ffffff;
    font-weight: 500;
    border-bottom: 1px solid var(--color-default-1);
}
.dropdown-item:hover{
    color: #ffffff;
    background-color: var(--color-default-1);
}
.navbar-expand-xl .navbar-nav .dropdown-menu{
    right: 0;
    padding: 0;
    width: -moz-max-content;
    width: max-content;
}

.main-menu{
    margin: 0 auto;
}
/* end menu */

/* header */
header form input.form-control {
    border: 1px solid #ced4da;
    height: 38px;
    padding: 0.375rem 0.75rem;
    border-radius: 20px 0 0 20px;
    box-shadow: none;
    max-width: 200px;
}
header form input.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
header form button.btn-search-icon {
    margin-left: -1px;
    height: 38px;
    width: 38px;
    padding: 0.375rem;
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
    border-radius: 0 20px 20px 0;
    position: relative;
    z-index: 10;
}
header form button.btn-search-icon:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.search-form-container {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 767.98px) {
    #searchFormCollapse:not(.show) {
        display: none !important;
    }

    #searchFormCollapse.show {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        z-index: 9999;
        background: #fff;
        padding: 10px 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: block !important;
    }

    #searchFormCollapse.show form.d-flex {
        width: 100%;
    }

    #searchFormCollapse.show form input.form-control {
        width: 100%;
        max-width: 100%;
    }
}
/* end header */

.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
}

.content-home h2{
    color: var(--color-default-1);
}

h3.article-title{
    font-size: 16px;
    color: var(--color-default-1);
}

.news-container a{
    text-decoration: none;
    color: unset;
}

.article-title:hover{
    color: var(--color-default-1);
}

.custom-three-dots{
    display: block;
    display: -webkit-box;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-three-dots-2{
    display: block;
    display: -webkit-box;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-three-dots-5{
    display: block;
    display: -webkit-box;
    line-height: 1.5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-date{
    float: right;
    color: var(--color-default-2);
    font-weight: 500;
    font-size: smaller;
}

.view_more{
    color: var(--color-default-1) !important;
    font-weight: 600;
    text-align: right;
}

.view_more:hover{
    text-decoration: underline !important;
}

.artifact-item{
    padding:10px;
    height: 200px !important;
}

.artifact-item img{
    width:100%;
    border: 2px solid var(--color-default-3);
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.slick-prev:before, .slick-next:before{
    color: var(--color-default-1) !important;
}

.title-right{
    background: var(--color-default-1);
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-right h2{
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
    margin-bottom: 0;
}

.section-right section{
    border: 1px dashed var(--color-default-1);
}

a{
    text-decoration: none;
    color: unset;
}

a:hover{
    color: var(--color-default-1);
}

.item-statistic {
    border-bottom: 1px dashed;
}

.item-statistic:last-child, .item-video:last-child {
    border: none;
}

.side-article img{
    min-height: 100px;
    -o-object-fit: cover;
       object-fit: cover;
}

.item-video{
    border-bottom: 1px dashed var(--color-default-1);
}

.item-video:hover, .item-video.active{
    color: var(--color-default-1);
    cursor: pointer;
}

#youtube-player-container{
    width: 100%;
    height: 200px;
}

.item-display img{
    width: 100%;
    height: 180px;
    -o-object-fit: cover;
       object-fit: cover;
}

.item-display h3{
    font-size: 20px;
}

.artifact-item a{
    position: relative;
}

.artifact-item a span{
    display: none;
}

.artifact-item:hover a span {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #000000ab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    border-radius: 5px;
}
/*------------------------------------------*/
/* news */
h1.custom-title-heading {
    font-size: 28px;
    color: var(--color-default-1);
}

h2.custom-title-heading, h2.news-title{
    font-size: 20px;
    margin: 0;
}

h3.custom-title-heading{
    font-size: 20px;
}

.color-default-1{
    color: var(--color-default-1);
}

.news-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-default-1);
    margin-top: auto;
    font-size: 13px;
    font-weight: 500;
}

.news-item {
    display: flex;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    gap: 15px;
}
.news-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.news-description {
    margin-bottom: 0;
    flex-grow: 1;
}

.news-image {
    width: 250px;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

a.news-item:hover{
    color: unset;
}

.news-title{
    color: var(--color-default-1);
}

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

.header-news-detail{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-news-new{
    display: flex;
    gap: 10px;
    align-items: start;
}

.box-image{
    width: 100px;
    height: 80px;
}

.box-image img{
    width: 100px;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 5px;
}

.box-title{
    display: flex;
    flex-direction: column;
}

.box-title h3{
    font-size: 18px;
}
/* end news */

/* event */
.nav-event .nav-link{
    color: #000000;
}

.nav-event .nav-link.active{
    background-color: var(--color-default-1) !important;
    color: #ffffff !important;
}


.event-row-item {
    border-left: none;
}

.event-date-box {
    flex-shrink: 0;
}

.event-row-item:hover .event-title {
    color: var(--color-default-1) !important;
}
/* end event */

/* reCaptcha */
.grecaptcha-badge {
    visibility: hidden;
}

#grecaptcha-box .grecaptcha-badge {
    visibility: visible !important;
}

#grecaptcha-box .grecaptcha-badge {
    position: static !important; /* Đưa về luồng văn bản bình thường */
    transform: none !important;  /* Loại bỏ mọi hiệu ứng dịch chuyển */
    transition: none !important; /* Tắt mọi hiệu ứng chuyển động */
    box-shadow: none !important;
    display: block !important;
    visibility: visible !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: 0 !important;
    margin: 0 !important;
}

#grecaptcha-box .grecaptcha-badge:hover {
    transform: none !important;
    box-shadow: none !important;
}
/* end reCaptcha */

.error{
    color: red;
    font-size: 12px;
}

#loading-icon {
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

/* scroll top */
#scrollToTopBtn {
    display: none; /* Mặc định ẩn đi */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--color-default-2);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-size: 18px;
}

#scrollToTopBtn:hover {
    background-color: var(--color-default-3);
    transform: translateY(-5px);
}
/* end scroll top */

/* artifact */
.item-artifact, .item-documentary{
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.box-img{
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.item-artifact img{
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.item-documentary img{
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-artifact:hover img, .item-documentary:hover img{
    transform: scale(1.1);
}

.item-artifact h2, .item-documentary h2{
    font-size: 18px;
}
/* end artifact */

.bg-default{
    background-color: var(--color-default-1);
}

.content_news_about * img{
    max-width: 100%;
}

/* artisan */
.item-artisan{
    background-color: #ffffff;
    text-align: center;
    padding: 25px;
    position: relative;
    border-radius: 10px;
    box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px;
    overflow: hidden;
}

.item-artisan img{
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 100%;
    aspect-ratio: 1 / 1;
}
/* end artisan */

.logo-header{
    height: 90px;
}

.info_description img{
    display: none;
}

.banner-img{
    -o-object-fit: cover;
       object-fit: cover;
    height: 750px;
}

span.name_map {
    color: var(--color-default-1);
    padding: 10px;
    font-weight: 500;
}

.cursor-pointer{
    cursor: pointer;
}

.popup-banner{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 99999999;
    background: #ffffff;
}

.popup-banner i{
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 999999999;
    color: #ffffff;
    background: var(--color-default-2);
    padding: 10px 15px;
    font-size: xx-large;
    border-radius: 50px;
    cursor: pointer;
}

.popup-banner iframe{
    position: absolute;
    width: 100%;
    height: 100%;
}

