/* =========================================
   1. CÀI ĐẶT CƠ BẢN (RESET)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI Variable', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* HERO */
.hero {
    height: 70vh;
    background: url("../img/diadiem1.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-label {
    display: block;
    font-family: 'Caveat', cursive;
    color: #6fe9ff;
    font-size: clamp(4rem, 4.5vw, 160rem);
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
}

.hero-content h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(5rem, 7vw, 9rem);
    line-height: 0.8;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== INTRO SECTION (NHẤT QUÁN VỚI INDEX) ===== */
.intro-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.intro-section h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.intro-section .subtitle {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.95;
}

.intro-section .description {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== HIGHLIGHTS SECTION (CARD GRID - NHẤT QUÁN VỚI INDEX) ===== */
.highlights-section {
    padding: 80px 5%;
    background: #f8f9fa;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.highlight-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.highlight-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c0392b;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ===== EXPLORATION SECTION (INTERACTIVE) ===== */
.exploration-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.exploration-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.exploration-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.exploration-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.exploration-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.exp-card-left {
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.exp-card-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.exploration-card:hover .exp-card-left img {
    transform: scale(1.05);
}

.exp-card-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 15px;
}

.exp-card-right h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.exp-card-right p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.exp-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.exp-info span {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== GALLERY SECTION (CẬP NHẬT) ===== */
.gallery-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #c0392b;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 250px;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px 20px;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 80%;
}

.lightbox-caption h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.lightbox-caption p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #c0392b;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #c0392b;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-section {
        padding: 60px 20px;
    }

    .intro-section h1 {
        font-size: 32px;
    }

    .intro-section .subtitle {
        font-size: 18px;
    }

    .intro-section .description {
        font-size: 15px;
    }

    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .exploration-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .exp-card-left {
        min-height: 250px;
    }

    .exp-card-right {
        padding: 30px 20px;
    }

    .exp-card-right h3 {
        font-size: 22px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px;
    }

    .gallery-card {
        height: 220px;
    }

    .card-overlay {
        padding: 20px 15px 15px;
    }

    .card-overlay h3 {
        font-size: 16px;
    }

    .card-overlay p {
        font-size: 12px;
    }

    .lightbox-content {
        max-width: 90%;
        max-height: 70%;
    }

    .lightbox-caption {
        bottom: 10px;
        padding: 10px 15px;
    }

    .lightbox-caption h3 {
        font-size: 20px;
    }

    .lightbox-caption p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .intro-section {
        padding: 50px 15px;
    }

    .intro-section h1 {
        font-size: 26px;
    }

    .intro-section .subtitle {
        font-size: 16px;
    }

    .intro-section .description {
        font-size: 14px;
        line-height: 1.6;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .exploration-container {
        gap: 40px;
    }

    .exp-card-right {
        padding: 25px 15px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 35px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-card {
        height: 200px;
    }
}

/* Hover Effects */
.gallery-card.hovered {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Animation Classes */
.animate-in {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA */
.cta {
    padding: 100px 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/anh1.jpg') center/cover no-repeat;
}

/* FOOTER */

footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #222;
    color: #ddd;
    padding: 50px 5%;
}

.footer-container {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    text-align: center;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: white;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* ===== GALLERY SECTION (ĐƠN GIẢN) ===== */
.gallery-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #c0392b;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 25px 20px 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 80%;
}

.lightbox-caption h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.lightbox-caption p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #c0392b;
}



/* Mobile Menu Styles */
@media screen and (max-width: 900px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }
}
