/* FAQ Page Styles */
.faq-page-wrapper {
    border-radius: 1.25rem;
    margin: 3.75rem auto;
    position: relative;
    margin-top: 6.25rem;
}

/* Hero Section */
.faq-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5625rem;
}

.faq-eyebrow {
    font-family: "Dubai", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1rem;
    text-align: center;
    letter-spacing: 0.4375rem;
    text-transform: uppercase;
    background: var(--enaya-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.625rem;
    position: relative;
}

.faq-eyebrow::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 0.5625rem);
    width: 6.375rem;
    height: 0.125rem;
    background: var(--enaya-gradient);
}

.faq-title {
    font-family: "Lexend", sans-serif;
    font-weight: 400;
    font-size: 4.375rem;
    line-height: 4.625rem;
    text-align: center;
    letter-spacing: -0.0625rem;
    color: #000000;
    max-width: 79.375rem;
    margin: 0;
}

/* Search Bar */
.faq-search-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    width: 41.875rem;
    height: 5rem;
    background: #ffffff;
    border-radius: 1.25rem;
    margin: 2.1875rem auto;
    margin-bottom: 3.75rem;
    box-shadow: 0px 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
}

.faq-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-family: "Lexend", sans-serif;
    font-size: 1.125rem;
    color: #000000;
    background: transparent;
}

.faq-search-input::placeholder {
    color: #000000;
}

.faq-search-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Content Container */
.faq-content-card {
    background: #ffffff;
    border-radius: 1.25rem;
    margin: 0 6.8125rem;
    padding: 2.8125rem;
}

/* Tabs Navigation */
.faq-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.125rem;
    justify-content: center;
    position: relative;
    max-width: 100%;
}

.faq-tabs-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0; /* Removed scrollbar space as we hide it */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    margin-bottom: 0; /* Wrapper handles margin */
}

/* Hide scrollbar */
.faq-tabs-nav::-webkit-scrollbar {
    display: none;
}

.faq-tab-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;

    font-family: "Lexend", sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.375rem;
    letter-spacing: -0.05em;
    text-transform: capitalize;
    color: #000000;
    transition: all 0.3s ease;
    flex: none;
}

.faq-tab-btn.active {
    background: linear-gradient(
        90deg,
        #00818d -13.84%,
        #0b828d 3.25%,
        #288790 33.49%,
        #588e94 72.94%,
        #97989a 117.64%
    );
    color: #ffffff;
}

/* Nav Buttons */
.faq-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #37818d;
    transition: all 0.3s ease;
}

.faq-nav-btn:hover {
    background: #37818d;
    color: #ffffff;
    border-color: #37818d;
}

.faq-nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.faq-nav-btn:disabled,
.faq-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(0, 0, 0, 0.05);
    color: #ccc;
}

/* Tabs Content */
.faq-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}
.faq-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ List Container */
.faq-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: none; /* User didn't specify scroll for list, allowing full height */
    overflow-y: visible;
    padding-right: 0;
}

/* Accordion Item */
.faq-item {
    display: flex;
    flex-direction: row; /* Changed to row */
    align-items: flex-start;
    padding: 2.0625rem 1.25rem;
    gap: 1.25rem;
    background: rgba(55, 129, 141, 0.1);
    border-radius: 0.75rem;
    border: none; /* Override previous border */
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1; /* Take remaining space */
}

.faq-item-question {
    font-family: "Dubai", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.875rem; /* 30px */
    line-height: 2.375rem;
    color: #000000;
    margin: 0;
}

.faq-item-icon {
    width: 2.375rem; /* 38px */
    height: 2.375rem;
    background: transparent; /* Default transparent */
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.open .faq-item-icon {
    background: rgba(55, 129, 141, 0.1);
}

.faq-item-icon img {
    width: 1.25rem; /* 20px */
    height: 1.25rem;
    transition: all 0.3s ease;
}

.faq-item-icon .icon-close {
    display: none;
}
.faq-item.open .faq-item-icon .icon-open {
    display: none;
}
.faq-item.open .faq-item-icon .icon-close {
    display: block;
}

.faq-item-body {
    display: none; /* Javascript will slideDown */
    width: 100%;
    margin-top: 0.625rem;
}

.faq-item-answer {
    font-family: "Dubai", sans-serif;
    font-weight: 400;
    font-size: 1.25rem; /* 20px - guessing readable size since not specified, or match 30px ratio? */
    line-height: 1.4;
    color: #000000;
    opacity: 0.8;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .faq-content-card {
        padding: 1.875rem;
        margin: 0 1.875rem;
    }

    .faq-columns-wrapper {
        flex-direction: column;
    }

    .faq-title {
        font-size: 3rem;
        line-height: 1.2;
    }

    .faq-search-container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .faq-content-card {
        padding: 1.25rem;
        margin: 0 1rem;
    }
    .faq-item {
        gap: 1.25rem;
    }
}
