/* Banner Styles */
.banner {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../Images/banner/banner-FAQ.webp);
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    filter: contrast(80%) brightness(60%);
    z-index: -1;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.banner-title {
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Container */
.faq-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* FAQ Search */
.faq-search-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    animation: fadeInUp 1s ease;
}
.faq-search-wrap .search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}

.faq-search {
    width: 100%;
    padding: 14px 18px 14px 48px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.faq-search::placeholder {
    color: var(--text-muted);
}
.faq-search:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.faq-count {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.faq-no-results {
    text-align: center;
    margin-top: 25px;
    font-size: 1rem;
    color: var(--text-muted);
}
.faq-no-results a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FAQ Item */
.faq-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: left;
}

.faq-question:hover {
    background-color: white
}

.faq-question:focus {
    outline-offset: -2px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 20px;
}

.question-text:hover {
    color: red;
}

/* FAQ Icon (Plus/Minus) */
.faq-icon {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent-color);
    min-width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: red;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: white;
}

.faq-answer p {
    padding: 0 30px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px 0;
}

.faq-answer .inline-btn {
    display: inline-block;
    padding: 0.3rem 0.6rem !important;
    background: var(--book-btn-bg);
    border-radius: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
    font-size: small;
    font-weight: bold;
    vertical-align: middle;
}

.faq-answer .inline-btn:hover {
    background: var(--book-btn-hover);
    transform: translateY(-0px);
    color: var(--white) !important;
}

.faq-answer .inline-link {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.faq-answer .inline-link:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-bg {
        background-attachment: scroll;
    }

    .banner-title {
        font-size: 2rem;
    }

    .faq-intro h2 {
        font-size: 2rem;
    }

    .faq-intro p {
        font-size: 1rem;
    }

    .faq-question {
        padding: 20px 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .faq-icon {
        font-size: 1.5rem;
    }

    .faq-answer p {
        padding: 0 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 40vh;
    }

    .banner-title {
        font-size: 1.6rem;
        padding: 0 20px;
    }

    .faq-container {
        padding: 40px 15px;
    }

    .faq-intro h2 {
        font-size: 1.7rem;
    }

    .question-text {
        font-size: 1rem;
    }
}