@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Roboto+Mono:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i');
@font-face {
    font-family: 'Montserrat Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Montserrat Regular'), url('/font/Montserrat-Regular.ttf') format('woff');
}
@font-face {
    font-family: 'arial';
    font-style: normal;
    font-weight: normal;
    src: local('arial'), url('/font/Arial.ttf') format('woff');
}
/* Font family */
.my-font-slab {
    font-family: 'Roboto Slab', serif;
}
.my-font {
    font-family: 'Roboto', sans-serif;
}
.vi .my-font {
    font-family: 'arial';
}
.my-font-slab {
    font-family: 'Roboto Slab', serif;
}
.vi .my-font-slab {
    font-family: 'arial';
}
.content-detail-news p,
.my-font, footer p {
    font-family: 'Roboto', sans-serif;
}
.font-roboto-slab {
    font-family: 'Roboto Slab', serif;
}
.font-roboto {
    font-family: 'Roboto', sans-serif;
}
/* Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
.vi, .en {
    font-family: 'Roboto Mono', monospace;
}
.cn {
    font-family: 'Roboto', sans-serif; 
}
.en .editor-view * {
    font-family: 'Lato', serif;
    font-size: 20px;
    color: black;
}
.vi .editor-view * {
    font-family: 'arial';
    font-size: 18px;
    color: black;
}
.cn .editor-view * {
    color: black;
    font-family: 'Roboto', sans-serif;
}
.cn .sort-note{
    font-size: 18px !important;
}
a {
    text-decoration: none;
}
.video-slide{
    width: 100%;
    height: auto;
}
header a {
    text-transform: uppercase;
}
#contact header > .sticky > #menu>ul > li.active-page > a,
#contact header #menu > ul > li.active-page > a,
header .sticky > #menu > ul > li.active-page > a,
header #menu > ul > li.active-page > a {
    color: #DBB081;
}
.editor-view img{
    display: initial;
}
header div.sticky {
    background-color: rgba(255, 255, 255, .9);
    border-bottom: 1px solid #C5C1C1;
}

header #menu ul li {
    list-style: none;
    position: relative;
}

header #menu #toggle-menu ul li a {
    margin: 0;
    font-size: 24px;
}
header #menu ul li.dropdown ul li a {
    color : #99a9b5;
}

header .sticky #menu > ul > li > a,
#contact header #menu>ul>li>a {
    color: #3c3950;
}

header #menu ul li a img,
header #menu ul li a {
    margin: 0 14px;
    color: white;
    font-size: 16px;
}

header .sticky #toggle-menu-button #close .bg-white {
    background-color: white!important;
}
#contact header #toggle-menu-button .bg-white,
header .sticky #toggle-menu-button .bg-white {
    background-color: #3c3950 !important;
}

header #toggle-menu-button .bg-white {
    background-color: #fff !important;
}

header #menu #toggle-menu ul li a {
    color: #fff;
}

header #menu #toggle-menu ul li.active-page a {
    color: #DBB081;
}

.dropdown ul li {
    height: 50px;
    display: flex;
    align-items: center;
}
li.dropdown:hover ul {
    display: block;
}
header ul li.dropdown ul li:not(:first-child) {
    border-top: 1px solid #393D4F;
}

/**Styling scrollable elements*/

.js-scroll {
    opacity: 0;
    transition: opacity 500ms;
}

.js-scroll.scrolled {
    opacity: 1;
}

.scrolled.fade-in {
    animation: fade-in 1.5s ease-in-out both;
}

@keyframes fade-in {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
}

@media screen and (min-width: 1280px) {
    header .sticky #menu ul li a {
        color: #3c3950;
    }

    header ul li:hover {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    #contact header #menu > ul > li:hover > a,
    header #menu ul li:hover > a {
        transition: none;
        color: #e5bf93;
    }
    header ul li.language:hover {
        background-color: unset;
        padding: 0;
        border: none;
    }

    header ul li.dropdown ul li:hover {
        background-color: #393D4F;
        border-bottom: none;
    }
    #contact header ul li.dropdown ul li:hover a,
    header #menu ul li.dropdown ul li:hover a {
        color: white;
    }
}
.sticky .active-page {
    background-color: #d7dee4;
    padding-top: 15px;
    padding-bottom: 10px;
    border-bottom: 5px solid #99A9B5;
}

/* Slider */
.slider {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
}

.slider .list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: 1s;
}

.slider .list .item {
    width: 100vw;
    aspect-ratio: 2 / 1;
}

#home .slider .list iframe,
#home .slider .list img {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    object-fit: cover;
    transition-timing-function: ease-out;
    transition: 0.25s;
}

.buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
    z-index: 99;
}

.buttons button {
    width: 50px;
    height: 50px;
    border: none;
    display: flex;
    justify-content: center;
}

.dots {
    position: absolute;
    bottom: 10px;
    color: white;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
.dots li {
    list-style: none;
    width: 15px;
    height: 15px;
    margin: 10px;
    border-radius: 50%;
    background-color: gray;
    transition: 1s;
    left: 0;
}
.dots li.active {
    border: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,1);
    background: transparent;
    position: relative;
}

.dots li.active span {
    -webkit-transform: scale(0.4);
    background-color: rgba(255,255,255,1);
    -webkit-transition: background-color 0.3s ease,-webkit-transform 0.3s ease;
    transition: background-color 0.3s ease,transform 0.3s ease;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    border-radius: 50%;
    text-indent: -999em;
    position: absolute;
}

/* Icon scroll */
.banner .icon-scroll {
    display: block;
}
.icon-scroll,
.icon-scroll:before {
    display: none;
    position: absolute;
    width: 100%;
}

.icon-scroll p {
    color: #fff;
    font-weight: 400;
    text-align: center;
    font-family: 'Montserrat', serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px ;
}

.icon {
    animation: bounce 1000ms alternate infinite cubic-bezier(0.2, 0.65, 0.6, 1);
}
@keyframes bounce {
    from {
        opacity: 1;
        transform: translateY(-50%);
    }

    to {
        opacity: 0.7;
        transform: translateY(0%);
    }
}

/* Wrapper */
#news-list,
#project {
    display: flex;
    padding: 0 35px;
    align-items: center;
    justify-content: center;
}
.box-img {
    width: 100%;
    overflow: hidden;
    background: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box-shadow{
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}
.box-img:hover {
    transform: scale(1.05);
    transition: 0.5s ease-in-out;
}
.as-ratio-11 {
    aspect-ratio: 1/1;
}
.as-ratio-32 {
    aspect-ratio: 3/2;
}
.wrapper {
    width: 100%;
    position: relative;
}

.wrapper i {
    height: 50px;
    width: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    position: absolute;
    text-align: center;
    line-height: 50px;
    transform: translateY(-50%);
    transition: transform 0.1s linear;
}

#news-list .wrapper i {
    top: 40%;
}

#project .wrapper i {
    top: 50%;
}

.wrapper i:active {
    transform: translateY(-50%) scale(0.85);
}

.wrapper i:first-child {
    left: -22px;
}

.wrapper i:last-child {
    right: -22px;
}

.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

#news-list .wrapper .carousel {
    grid-auto-columns: calc((100% / 3));
    gap: 0;
}

#project .wrapper .carousel {
    grid-auto-columns: calc((100% / 4) - 12px);
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    scroll-snap-align: start;
    list-style: none;
    cursor: pointer;
    flex-direction: column;
    padding: 0px 10px;
}

@media screen and (max-width: 900px) {
    #project .wrapper .carousel,
    #news-list .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px) {
    #project .wrapper .carousel,
    #news-list .wrapper .carousel {
        grid-auto-columns: 100%;
    }
}

/* Pagination */
.pagination nav a {
    margin: 0 10px;
}

/* Loading */
.bg-loading {
    height: 100vh;
    display: flex;
    justify-content: center;
    top: 50%;
}
.loading {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    /* min-height: 50px; */
}

.ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    animation: ring 2s linear infinite;
}
@keyframes  ring {
    0%  {
        transform: rotate(0deg);
        box-shadow: 1px 5px 2px #e65c00;
    }
    50%  {
        transform: rotate(180deg);
        box-shadow: 1px 5px 2px #18b201;
    }
    100%  {
        transform: rotate(360deg);
        box-shadow: 1px 5px 2px #0456c8;
    }
}
.ring:before {
    position: relative;
    content: '';
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
.loading span {
    color: #737373;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 20px;
    animation: textlogo 2s infinite;
    animation-delay: calc(.2s * var(--i))
}

@keyframes textlogo {
    0%,80% {
      transform: rotateY(360deg)
    }
}

/* Footer */
footer ul li:not(:last-child) {
    margin-bottom: 10px;
}
.social-network ul li:not(:last-child) {
    margin-bottom: 20px;
    display: flex;
    justify-content: end;
}
#scroll-btn {
    display: none;
}


@media only screen and (min-width: 768px){
    .parent:hover .child {
        opacity:1;
        height:auto;
        overflow:none;
        transform: translateY(0);
    }
    .child {
        opacity:0;
        height:0;
        overflow:hidden;
        transform: translateY(-10%);
    }
}
@media only screen and (max-width: 767px){
    #news-list .wrapper i {
        top: 22%;
    }
    .video-slide{
        width: auto !important;
        max-width: inherit;
        height: 100vh;
    }
}
.social-network button:hover i {
    color: #DFB990;
}
/* Slider thumbnails _ detail.html */
.carousel-main > .flickity-prev-next-button {
    display: none;
}

.flickity-prev-next-button {
    top: 35%;
    border: none;
    background: none;
    border-radius: unset;
    cursor: pointer;
}

.flickity-prev-next-button:hover { background: unset; }

.flickity-prev-next-button:active {
    opacity: 0.6;
}

.flickity-prev-next-button .arrow {
    fill: #333;
}

.carousel-cell {
    width: 100%;
    height: auto;
    margin-right: 8px;
}
.carousel-main .carousel-cell img {
    aspect-ratio: 1/1;
}

.carousel-nav .carousel-cell {
    height: 90px;
    width: 80px;
}
.carousel-nav .carousel-cell img {
    width: 100%;
    aspect-ratio: 4/3;
    opacity: 0.5;
}
.carousel-nav .carousel-cell.is-selected img {
    opacity: 1;
}

