/* --- FAQ Section --- */

.faq-container {
    max-width: 1480px;
    margin: 4rem auto 6rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.faq-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Media Query layout strictly requested.
   Mobile defaults to 1 column. Breaks into exactly 2 columns above 800px.
*/
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Semantically pure Details Tag Styling */
.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden; /* Vital to contain the smooth JS height animation visually */
}

.faq-item:hover {
    border-color: var(--brand-blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Premium Open State with Glow */
.faq-item[open] {
    border-color: var(--brand-blue-500);
    box-shadow: var(--glow-blue);
    background: #f7f9ff;
}

/* Summary Tag (The Clickable Question) */
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: normal; /* Updated from bold */
    text-align: left;
    color: var(--dark-text);
    cursor: pointer;
    list-style: none; /* Removes default triangle */
    gap: 1rem;
    user-select: none;
    transition: color 0.3s ease;
}

/* Hide default marker in Safari/Webkit */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    color: var(--brand-blue-700);
    margin-bottom: 1rem;
}

/* Custom Animated Plus/Cross Icon */
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-blue-50);
    color: var(--brand-blue-600);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy premium rotation */
}

.faq-item:hover .faq-icon {
    background: var(--brand-blue-100);
}

.faq-item[open] .faq-icon {
    transform: rotate(135deg); /* Rotates the Plus into a smooth 'X' */
    background: var(--brand-blue-600);
    color: var(--white);
}

/* Answer Content Container */
.faq-answer {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.6;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-100);
}