/* FAQ Styles - Full Width Alternating with Pop and Separator */

#faq-index {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--primary-color);
    border-radius: 20px;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: var(--white-color);
}

#faq-index h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: white;
}

#index-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#index-list li {
    margin-bottom: 15px;
    text-align: center;
}

#index-list li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

#index-list li a:hover {
    color: var(--white-color);
    border-bottom-style: solid;
}

#faq-container {
    width: 100%;
    /* Changed from 100vw to prevent scrollbar overlap issues */
    max-width: 100%;
    margin: 60px 0 0 0;
    padding: 0 0 100px 0;
    /* Added bottom padding to prevent scrollbar jitter on last item hover */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    /* Ensure z-index context */
}

/* Items */
.faq-item {
    padding: 50px 15vw;
    margin: 0;
    border: none;
    position: relative;
    z-index: 1;
    /* Base level */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

/* Bump Effect */
.faq-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
    /* Pop above everything including separators */
}

.faq-even {
    background-color: color-mix(in srgb, var(--navbar-bg-color) 30%, var(--white-color));
    color: var(--dark-color);
}

.faq-odd {
    background-color: var(--white-color);
    color: var(--dark-color);
}

/* Separator - Targeted Robustly */
#faq-container hr.faq-separator {
    display: block;
    width: 40vw;
    height: 5px;
    /* Slightly thicker */
    background-color: var(--primary-color) !important;
    /* Force color */
    border: none;
    border-radius: 2px;
    margin: 0 auto;
    /* Centered */
    opacity: 1;
    position: relative;
    z-index: 5;
    /* Above items (unless hovered) */
}

.faq-item h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.faq-item p {
    margin-bottom: 0;
    line-height: 1.8;
    color: var(--p-color);
    text-align: justify;
}

.faq-item p a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: underline;
    transition: all 0.2s ease;
    cursor: pointer;
}

.faq-item p a:hover {
    color: var(--primary-color);
    text-decoration: none;
    /* Remove underline on hover for interaction feedback */
}

@media (max-width: 768px) {
    #faq-index h1 {
        font-size: 32px;
    }

    .faq-item {
        padding: 30px 20px;
    }

    .faq-item:hover {
        transform: none;
        box-shadow: none;
    }

    .faq-item h2 {
        font-size: 22px;
    }

    #faq-container hr.faq-separator {
        width: 60vw;
    }
}