/* Banner Styles */
.banner {
    position: relative;
    height: 60vh;
    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(40%);
    z-index: -1;
}

.banner-title {
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* FAQ Container */
.faq-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 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: 5px;
    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: 2.5rem;
    }

    .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: 2rem;
        padding: 0 20px;
    }

    .faq-container {
        padding: 40px 15px;
    }

    .faq-intro h2 {
        font-size: 1.7rem;
    }

    .question-text {
        font-size: 1rem;
    }
}