﻿:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #F4A460;
    --dark-color: #2C1810;
    --light-color: #FFF8DC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

.fancybox__container {
    z-index: 9999 !important; /* hoặc cao hơn nếu modal của bạn đang dùng 1050 (Bootstrap) */
}

/* Header */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: var(--accent-color) !important;
        transform: translateY(-2px);
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background: var(--accent-color);
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
        left: 0;
    }

.logoNav {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, rgba(139,69,19,0.9), rgba(210,105,30,0.8)), 
                        url('/img/cover.JPG'); */
    background: linear-gradient(135deg, rgba(68, 67, 67, 0.699), rgba(77, 76, 76, 0.637)), url('/img/cover.JPG');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    border: 1px solid var(--accent-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .hero-content:hover {
        box-shadow: 0 8px 32px rgba(244,164,96,0.25);
    }

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.btn-custom {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 1s both;
}

    .btn-custom:hover {
        background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
        transform: translateY(-5px);
        color: white !important;
    }

.btn-navigation-custom {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 5px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1s both;
}

    .btn-navigation-custom:hover {
        background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
        transform: translateY(-5px);
        color: white !important;
    }

/* Section Styles */
.section {
    padding: 50px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

    .section-title h2 {
        font-size: 3rem;
        font-weight: bold;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
        border-radius: 2px;
    }

/* Location Cards */
.location-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}

    .location-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    }

.location-card-img {
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

    .location-card-img::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .location-card-img img {
        width: 100%;
        height: 100%;
    }

.location-card:hover .location-card-img::before {
    left: 100%;
}

.location-card-body {
    padding: 2rem;
    height: 300px;
}

.location-card h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-card p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Artifact Cards */
.artifact-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    cursor: pointer;
}

    .artifact-card:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        filter: drop-shadow(0 0 20px var(--accent-color)) brightness(1.05);
    }

.artifact-img {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.artifact-card img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.artifact-card:hover .artifact-img img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.artifact-card-body {
    height: 180px;
    ;
    padding: 1.5rem;
}

    .artifact-card-body h6 {
        color: var(--primary-color);
        font-weight: bold;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .artifact-card-body p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: bold;
    font-size: 1.5rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
    height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #f5f5f5;
}

    /* Custom scrollbar for Webkit browsers */
    .modal-body::-webkit-scrollbar {
        width: 8px;
        background: #f5f5f5;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 8px;
    }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: var(--secondary-color);
        }

.artifact-info {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.artifact-3d-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.artifact-3d-iframe {
    width: 100%;
    height: 50vh;
    border: none;
    border-radius: 10px;
}

/* Document Section */
.document-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}

    .document-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    }

.document-card-img {
    height: 60vh;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

    .document-card-img::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .document-card-img img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

.document-card:hover .document-card-img::before {
    left: 100%;
}

.document-card-body {
    padding: 2rem;
    height: 30vh;
}

.document-card h5 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-card p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    cursor: pointer;
}

.gallery-img {
    height: 300px;
    background: linear-gradient(45deg, #8b451338, #d2691e94);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    transition: all 0.3s ease;
}

.gallery-modal-img {
    height: 250px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    transition: all 0.3s ease;
}

.gallery-img img {
    box-shadow: 0 0 20px rgba(0, 0, 0, 4.5);
    width: 90%;
    object-fit: contain;
}

.gallery-modal-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139,69,19,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Video Section */
.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

    .video-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

    .video-card h5 {
        color: var(--primary-color);
        font-weight: bold;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .video-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.video-thumbnail {
    height: 300px;
    /* background: linear-gradient(135deg, var(--dark-color), var(--primary-color)); */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    width: 100%;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: absolute;
    top: 45%;
    left: 45%;
}

    .play-button:hover {
        background: white;
        transform: scale(1.1);
    }

.video-info {
    height: 150px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 3rem 0 1rem;
}

    .footer h5 {
        color: var(--accent-color);
        margin-bottom: 1rem;
    }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .footer-links a:hover {
        color: var(--accent-color);
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

    .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }

/* Start - Copy CSS cho danh sách tài liệu và chi tiết tài liệu (Các progress) */

.bg-light {
    background-color: #016498 !important;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 30px;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.description-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

a {
    text-decoration: none !important;
}

.slide-document {
    overflow: hidden;
    top: -110px;
    position: relative;
    height: 230px;
    display: flex;
    justify-content: center;
    margin: auto;
}

.parallelogram-block.parallelogram-action {
    display: block;
    display: flex;
    z-index: 5;
    flex-wrap: wrap;
    width: 320px;
    background-color: #0D6EFD;
    transition: transform 0.5s ease-in-out;
}

.slide-document li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto 10px;
    list-style-type: none;
    transition: 0.5s;
}

.parallelogram-block {
    white-space: normal;
    width: 100px;
    height: 100%;
    z-index: 3;
    background-color: #016498;
    transform: skew(-20deg);
    transition: width 0.5s ease;
    cursor: pointer;
}

    .parallelogram-block.parallelogram-action h3 {
        font-size: 24px;
    }

    .parallelogram-block h3 {
        font-size: 18px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: yellow;
    }

.header-clamped {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parallelogram-block span {
    display: none;
}

.spacing-btn-slidedoc {
    top: 52%;
    z-index: 10;
    position: absolute;
    display: flex;
    width: 83.333%;
}

.btn-slide-document {
    border: none;
    background: transparent;
    font-size: 40px;
    color: #ED1C24;
    position: relative;
    z-index: 0;
}

#documentModal .swiper-slide img {
    display: block;
    width: 100%;
    height: 500px !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.modal-body .row {
    min-height: 0px !important;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    outline: 0;
}

.audio-doc {
    width: 100%;
    display: flex;
    margin: 20px auto;
}

    .audio-doc audio {
        width: 90%;
        margin: auto;
    }

.card-img, .card-img-top, .card-img-bottom {
    flex-shrink: 0;
    width: 100%;
}

.card-img {
    object-fit: cover;
    object-position: center;
}

.card-img-bg {
    position: relative;
    border-radius: 10px;
    height: auto;
    width: 100%;
    background-color: #C1C2C3;
    overflow: auto;
    margin-left: auto;
    transition: 0.5s;
}

.btn-hiden-show {
    background: #C1C2C3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: absolute;
    transform: translate(-10px, 10px);
    z-index: 99;
}

    .btn-hiden-show i {
        color: black;
        font-size: 18px;
        margin: auto 0;
        transform: translate(10px, 10px);
    }

.btn-primary-location {
    color: #fff;
    background-color: #ED1C24;
    border-color: #ED1C24;
}

    .btn-primary-location:hover {
        color: #fff;
        background-color: #d21118;
        border-color: #c61017;
    }

#viewer {
    height: 100vh;
    width: auto;
    margin: 0 auto;
}

.swiper-slide {
    pointer-events: auto !important;
}