﻿/* =================================
   HERO SECTION
================================= */
.hero-section {
    position: relative;
    height: 350px;
    background-image: url('/Asset/assets/img/information-guide/airport-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 120px;
}

    .hero-section .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .hero-section .hero-content {
        position: relative;
        color: white;
        padding: 0 50px;
        max-width: fit-content;
        z-index: 1;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .hero-section p {
        font-size: 1.2rem;
        max-width: fit-content;
    }

/* =================================
   NAVIGATION CHIPS
================================= */
.nav-chips-container {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    /*position: sticky;*/
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 100;
}

.nav-chip {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #555;
    text-transform: uppercase;
}

    .nav-chip:hover, .nav-chip.active {
        background-color: #1e429a;
        color: white;
        border-color: #0e3cad;
    }

/* =================================
   CONTENT SECTIONS
================================= */
.content-sections {
    background-color: white;
    padding: 20px 0 60px;
}

.content-section {
    display: block; /* Always visible */
    margin-bottom: 80px; /* Add spacing between sections */
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    scroll-margin-top: 120px; /* For smooth scrolling with sticky header */
}

    .content-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .content-section.in-view {
        animation: highlightSection 0.5s ease;
    }

@keyframes highlightSection {
    0% {
        background-color: rgba(106, 61, 232, 0.05);
    }

    100% {
        background-color: transparent;
    }
}

.content-section::before {
    content: '';
    display: block;
    height: 70px; /* This creates space above the section for scrolling */
    margin-top: -70px;
    visibility: hidden;
    pointer-events: none;
}

.section-header {
    margin-bottom: 30px;
}

    .section-header h2 {
        color: #333;
        font-size: 1.8rem;
        font-weight: 700;
        text-transform: uppercase;
        position: relative;
    }

        .section-header h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: #1e429a;
        }

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

}
.text-column {
    flex: 1;
    min-width: 300px;

}
.image-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-image {
    max-height: 300px;
    /* border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);*/
}

.text-column h3 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.text-column p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.link-highlight {
    color: #2196f3;
    font-size: 1.05em;
    font-style: italic;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

/* =================================
   OTHER LINKS SECTION
================================= */
.other-links-section {
    padding: 50px 0;
    background-color: #f9f8f4;
}

    .other-links-section h2 {
        text-align: left;
        margin-bottom: 30px;
        color: #333;
        text-transform: uppercase;
        font-weight: 700;
    }

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.link-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    height: 150px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

    .link-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.link-icon {
    font-size: 2rem;
    color: #1e429a;
    margin-bottom: 15px;
}

.link-title {
    color: #444;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.4;
}


/* =================================
   FAQ SECTION
================================= */
.faq-section {
    padding: 60px 0;
    background-color: white;
}

    .faq-section h2 {
        text-align: center;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

.faq-subtitle {
    text-align: center;
    color: #1e429a;
    font-weight: 600;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
}

.faq-question {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

    .faq-question:hover {
        color: #1e429a;
    }

    .faq-question i {
        font-size: 16px;
        transition: transform 0.3s ease;
        color: #666;
    }

    .faq-question .fa-chevron-down {
        font-size: 16px;
        transform: rotate(0deg);
        transition: transform 0.3s ease, color 0.3s ease;
        color: #666;
    }


.faq-item.active .faq-question {
    color: #1e429a;
    font-weight: 600;
}

    .faq-item.active .faq-question .fa-chevron-down {
        transform: rotate(180deg);
        transition: transform 0.3s ease, color 0.3s ease;
        color: #1e429a;
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 20px 0 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.faq-answer ul, .faq-answer ol {
    margin: 10px 0 15px 20px;
}

.faq-answer li {
    margin-bottom: 5px;
}

/* =================================
   CAROUSEL STYLES
================================= */
.baggage-carousel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
    margin: 0 auto;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #ccc;
        margin: 0 5px;
    }

        .carousel-indicators button.active {
            background-color: #1e429a;
        }

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
    }


/* =================================
   RESPONSIVE STYLES
================================= */
@media (max-width: 992px) {
    .links-container {
        justify-content: center;
    }

    .link-card {
        max-width: 220px;
    }

}

@media (max-width: 992px) {
    /* 1. Giảm padding và font cho section content */
    .content-section {
        padding: 20px 15px;
    }

    .section-header h2 {
        font-size: 20px;
        text-align: center;
    }

    /* 2. Stack ảnh dưới nội dung thay vì 2 cột */
    .section-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .text-column ul {
        padding-left: 18px;
        font-size: 15px;
    }

    .image-column {
        width: 100%;
        text-align: center;
    }

    .section-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 10px;
    }

    /* 3. Thu gọn nút điều hướng chips */
    .nav-chips {
        display: flex;
        flex-wrap: wrap; /* Cho phép xuống dòng */
        justify-content: center; /* Căn giữa nếu muốn */
        gap: 10px;
        padding: 10px 15px;
        overflow-x: unset; /* Tắt cuộn ngang */
        white-space: normal; /* Cho phép ngắt dòng */
    }

    .nav-chip {
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 13px;
        border-radius: 20px;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        flex: none;
    }

        .nav-chip.active {
            background-color: #3A5CA3;
            color: #fff;
            font-weight: bold;
        }
    .nav-chips-container {
        position: relative;
        z-index: 1; /* đảm bảo thấp hơn chatbot */
    }

    /* 4. Thẻ FAQ: điều chỉnh font và spacing */
    .faq-question span {
        font-size: 15px;
    }

    .faq-answer p {
        font-size: 14px;
        line-height: 1.5;
    }

    .faq-section h2 {
        font-size: 20px;
        text-align: center;
    }

    /* 5. Thông tin khác - links nhỏ lại */
    .links-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .link-card {
        padding: 12px;
        font-size: 14px;
    }

    .link-icon {
        font-size: 20px;
    }
}
/* Chỉ áp dụng cho phần Hành lý xách tay - Kiểm tra an ninh */
#section-2 .forbidden-items-grid-modal {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 8px;
}
#section-2 .forbidden-item-card {
    width: 200px;
    margin-bottom: 12px;
}
@media (max-width: 900px) {
    #section-2 .forbidden-items-grid-modal {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 250px;
        margin-top: 140px;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .nav-chips-container {
        top: 145px;
    }


    .section-content {
        flex-direction: column;
    }

    .image-column {
        order: -1; /* Show image first on mobile */
    }

    .link-card {
        min-width: 150px;
        max-width: 200px;
    }

    .faq-section {
        padding: 40px 0;
    }

    .faq-question {
        padding: 15px 0;
        font-size: 15px;
    }

    .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 200px;
        padding: 0 20px;
    }

        .hero-section h1 {
            font-size: 1.2rem;
        }

        .hero-section p {
            font-size: 1rem;
        }

        .hero-section .hero-content {
            padding: 0px;

        }

/*    Hide the overlay on smaller screens*/
    .nav-chips-container {
        top: 0px;
    }

    .nav-chip {
        font-size: 12px;
        padding: 8px 16px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .text-column h3 {
        font-size: 1.1rem;
    }

    .text-column p {
        font-size: 0.9rem;
    }

    .link-card {
        min-width: 130px;
        height: 130px;
        padding: 15px;
    }

    .link-icon {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .link-title {
        font-size: 0.8rem;
    }

    .faq-question {
        padding: 12px 0;
        font-size: 14px;
    }

    .carousel-item img {
        height: 200px;
    }

}

