@font-face {
    font-family: Talling;
    src: url(../font/UTM-Talling.ttf);
}
@font-face {
    font-family: TaillingBold;
    src: url(../font/UTM-TallingBold.ttf);
}
/* Video Section Styles */
.video-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.content-box {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.content-box h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-box .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
/* Poster fade transition */
.intro-video {
    transition: opacity 1s ease;
}

/* Logo styles */
.brand-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.brand-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.3));
}
/**Them nut am thanh**/
/* Nút bật âm thanh */
.sound-btn {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.sound-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
}

.sound-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Ẩn icon âm thanh khi đang muted */
.sound-btn .bi-volume-up-fill {
    display: none;
}

/* Hiển thị icon âm thanh khi đã bật âm thanh */
.sound-btn.unmuted .bi-volume-mute-fill {
    display: none;
}

.sound-btn.unmuted .bi-volume-up-fill {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .sound-btn {
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .sound-btn {
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/**End them nut am thanh**/

/* Gallery Section Styles */
.gallery-section {
    min-height: 100vh;
    background: url('../images/bg2.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    position: relative;
}

/* Overlay cho background gallery */
.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.6);*/
    z-index: 0;
}

.gallery-section .container {
    position: relative;
    z-index: 2;
}

/* Fade animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-image {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

.fade-image.first {
    animation-delay: 0.2s;
}

.fade-image.second {
    animation-delay: 0.5s;
}

/* Scroll Arrow Styles (chung cho cả hai section) */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

.scroll-arrow img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Cuộn trang mượt mà */
html {
    scroll-behavior: smooth;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .content-box h1 {
        font-size: 2.5rem;
    }

    .content-box .lead {
        font-size: 1.2rem;
    }

    .brand-logo {
        top: 20px;
        left: 20px;
    }

    .brand-logo img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .content-box h1 {
        font-size: 2rem;
    }

    .content-box .lead {
        font-size: 1rem;
    }

    .brand-logo img {
        height: 40px;
    }
}
/* Video Slider Swiper*/
.video-section {
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
}

.videoSwiper {
    flex: 1;
    width: 100%;
}

.videoSwiper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.thumb-container {
    height: 100px;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbSwiper {
    width: 80%;
    max-width: 1500px;
    margin: 0 auto;
}

/* Thumbnail styles */
.thumb-item {
    position: relative;
    width: 100%;
    height: 70px;
    cursor: pointer;
    overflow: hidden;
}

/* Normal thumbnail image */
.thumb-normal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

/* Hover thumbnail image */
.thumb-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Hover effect */
.thumb-item:hover .thumb-normal {
    opacity: 0;
}

.thumb-item:hover .thumb-hover {
    opacity: 1;
}

/* Active state - also shows hover image */
.swiper-slide-thumb-active .thumb-normal {
    opacity: 0;
}

.swiper-slide-thumb-active .thumb-hover {
    opacity: 1;
}

/* Navigation buttons */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .thumb-container {
        height: 80px;
    }

    .thumb-item {
        height: 50px;
    }
}


/* Text box */
/* Text Box Styles - Base */
.text-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 700px;
    height: 300px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
    color: white;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.text-content {
    height: 100%;
    padding-right: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.text-content h3 {
    font-family: "TaillingBold", Serif!important;
    margin-top: 0;
    font-size: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.text-content p {
    font-family: "Tailling", Serif!important;
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Custom scrollbar */
.text-content::-webkit-scrollbar {
    width: 6px;
}

.text-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.text-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Responsive styles điều chỉnh chi tiết */
@media (max-width: 1600px) {
    .text-box {
        width: 600px;
        height: 280px;
    }
}

/* Screens 1440p */
@media (max-width: 1440px) {
    .text-box {
        width: 550px;
        height: 260px;
    }
}

/* Laptop lớn - 1366x768 */
@media (max-width: 1366px) {
    .text-box {
        width: 480px;
        height: 220px;
        bottom: 25px;
        right: 25px;
        padding: 18px;
    }

    .text-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .text-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
}

/* Laptop nhỏ và màn hình HD */
@media (max-width: 1280px) {
    .text-box {
        width: 450px;
        height: 200px;
        bottom: 20px;
        right: 20px;
    }
}

/* Tablet lớn và laptop nhỏ */
@media (max-width: 992px) {
    .text-box {
        width: 400px;
        height: 200px;
        padding: 15px;
    }

    .text-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .text-content p {
        font-size: 13px;
    }
}

/* Màn hình height nhỏ - với bất kỳ width */
@media (max-height: 800px) {
    .text-box {
        height: 270px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .text-box {
        width: 90%;
        height: 180px;
        right: 5%;
        left: 5%;
        bottom: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .text-box {
        padding: 12px;
        height: 150px;
    }

    .text-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
        padding-bottom: 5px;
    }

    .text-content p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
}



/* End Video slider CSS */

/** Section 4 **/
.fade-image-section {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.fade-in-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(2.0);
    transition: opacity 1.8s ease-out, transform 2.2s ease-out;
}

.fade-in-image.visible {
    opacity: 1;
    transform: scale(1);
}


/***End section 4***/

/* Section 5 - Experience with Game Modal */
.experience-section {
    height: 100vh;
    background: url('../images/bg2.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.experience-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.btn-experience {
    padding: 15px 40px;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}

.modal-body {
    /*height: 70vh;*/
    height: auto;
    background: #141414;
}
.modal-body-section5{
    height: 70vh!important;
}

/* Đảm bảo Spline viewer lấp đầy modal */
spline-viewer {
    width: 100%;
    height: 100%;
}


/* Style cho nút Reload */
/* Container cho các nút ở bên phải */
.modal-buttons {
    display: flex;
    align-items: center;
}

/* Style cho nút Reload */
.btn-reload {
    background: none;
    border: none;
    font-size: 1.25rem;
    margin-right: 10px;
    color: #6c757d;
    padding: 0.25rem;
    transition: transform 0.3s, color 0.3s;
    line-height: 1;
}

.btn-reload:hover {
    color: #0d6efd;
    transform: rotate(180deg);
}

/* Hiệu ứng xoay cho icon khi reload */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: rotate 1s linear;
}

/* Đảm bảo modal-header có layout đúng */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/*** End Section 5 Game ***/
/*** Section 6 ***/
.building-section {
    min-height: 100vh;
    background: url('../images/bg2.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.building-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.building-image {
    width: 100%;
    display: block;
}

/* Các điểm tương tác với hiệu ứng nhấp nháy mạnh */
.hotspot {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 65, 108, 0.9);
    color: white;
    border: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.5);
    z-index: 5;
}

/* Hiệu ứng nhấp nháy 3 lớp */
.hotspot::before,
.hotspot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 65, 108, 0.7);
    z-index: -1;
}

/* Pulse đầu tiên - nhanh */
.hotspot::before {
    animation: pulse-fast 1.5s infinite;
}

/* Pulse thứ hai - chậm hơn và lớn hơn */
.hotspot::after {
    animation: pulse-slow 2.5s infinite 0.5s;
}

/* Glow effect cho icon */
.hotspot i {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: glow 1.5s ease-in-out infinite alternate;
}

/* Animation pulse nhanh */
@keyframes pulse-fast {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animation pulse chậm và mạnh hơn */
@keyframes pulse-slow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    60% {
        transform: scale(2.2);
        opacity: 0.2;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Animation glow cho icon */
@keyframes glow {
    from {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1));
    }
}

/* Hiệu ứng hover */
.hotspot:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 65, 108, 0.8);
}

/* Vị trí các nút */
.hotspot-1 {
    top: 65%;
    left: 48.2%;
}

.hotspot-2 {
    top: 65%;
    right: 29.6%;
}

.hotspot-3 {
    top:65%;
    left: 30%;
}

.hotspot-4 {
    bottom: 20%;
    right: 15%;
}

/* Modal styling */
.modal-body {
    padding: 0;
    background: #000;
}

.media-player {
    width: 100%;
}

/* Thêm vào CSS để tạo hiệu ứng nhấp nháy 3 lớp */
.third-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 65, 108, 0.4);
    z-index: -1;
    animation: pulse-third 3s infinite 1s;
}

@keyframes pulse-third {
    0% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7);
    }
    70% {
        transform: scale(2.5);
        opacity: 0.1;
        box-shadow: 0 0 0 20px rgba(255, 65, 108, 0);
    }
    100% {
        transform: scale(3);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0);
    }
}


/*** End Section 6 ***/

/*** Section 7 ***/
/* Tab Section Styling */
.tabs-section {
    background-color: #000;
    position: relative;
}

/* Tab Navigation - Now at the bottom */
.tabs-section .nav-tabs {
    background: #EDD7B4;
    padding: 15px 0;
    margin-bottom: 0;
    border: none;
    z-index: 100;
}

.tabs-section .nav-item {
    margin: 0 5px;
}

.tabs-section .nav-link {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 8px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tabs-section .nav-link:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.tabs-section .nav-link.active {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Image Container with Blurred Background */
.image-container {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(15px) brightness(0.5);
    z-index: 0;
}

/* Centered Image with Glowing Border */
.centered-image {
    position: relative;
    z-index: 1;
    max-width: 80%;
    max-height: 80vh;
    text-align: center;
}

.centered-image img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-section .nav-link {
        padding: 6px 15px;
        font-size: 14px;
    }

    .centered-image {
        max-width: 90%;
    }

    .centered-image img {
        max-height: 60vh;
    }
}
/* Custom Carousel Navigation Arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 1;
    background: none;
}

.nav-arrow {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.carousel-control-prev:hover .nav-arrow,
.carousel-control-next:hover .nav-arrow {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

/* Hide default Bootstrap carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

/*** Custom***/
.img-dotpha{
    box-shadow: 0 0 35px rgba(146, 4, 3, 1)!important;
}
.img-thantoc{
    box-shadow: 0 0 35px rgba(157, 38, 31, 1)!important;
}
.img-dntnv{
    box-shadow: 0 0 35px rgba(207, 52, 44, 1)!important;
}
/* Màu nền mặc định cho các tab */
#galleryTabs .nav-link {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Màu nền cho từng tab khi active */
.active-dotpha,.active-thantoc,.active-dntnv{
    border-radius: 0!important;
    font-family: "TaillingBold", Serif !important;
    font-size: 30px!important;
    padding: 5px 15px 5px 15px!important;
}
#galleryTabs .nav-link.active.active-dotpha {
    background-color: #920403; /* Đỏ đậm */
}

#galleryTabs .nav-link.active.active-thantoc {
    background-color: #9D261F; /* đỏ vừa */
}

#galleryTabs .nav-link.active.active-dntnv {
    background-color: #CF342C; /* đỏ nhạt */
}

/*** End Section 7 ***/

/*** Section 8 ***/
/* Section Background */
.news-section {
    background: url('../images/bg-news.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.news-section .container {
    position: relative;
    z-index: 1;
}

/* Card Styles */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Carousel tweaks */
.carousel-inner {
    overflow: visible;
}

.carousel-item {
    transition: transform .5s ease-in-out;
}

/* Custom Thumbnails */
.thumbnails-container {
    gap: 15px;
}

.thumbnail {
    position: relative;
    width: 320px;
    height: 60px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail .hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.thumbnail:hover .normal {
    opacity: 0;
}

.thumbnail:hover .hover {
    opacity: 1;
}

.thumbnail.active .normal {
    opacity: 0;
}

.thumbnail.active .hover {
    opacity: 1;
}

.thumbnail.active {
    /*box-shadow: 0 0 0 3px #0d6efd, 0 5px 10px rgba(0, 0, 0, 0.3);*/
}

/* Responsive */
@media (max-width: 992px) {
    .card-img-top {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .card-img-top {
        height: 140px;
    }

    .thumbnail {
        width: 100px;
        height: 60px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 120px;
    }

    .thumbnail {
        width: 80px;
        height: 50px;
    }

    .thumbnails-container {
        gap: 10px;
    }
}
.m-title-news{
    text-decoration: none;
    color: #920403;
    font-size: 24px!important;
}

/*** End Section 8 ***/