/* 
   FAQ Section Styling - Pixel Perfect Reference Match
   Matches the clean, bordered accordion from user screenshot
*/

.faq-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    background: transparent;
}

.faq-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text);
}

/* Main Container to match the "Box" in screenshot */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px; /* Slight rounding on outer box */
    overflow: hidden;
    background: var(--card);
}

.faq-accordion .accordion-item {
    background: transparent;
    border: none;
}

.faq-accordion .accordion-item:last-child {
    border-bottom: none;
}

.faq-accordion .accordion-button {
    background: transparent;
    padding: 1.25rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: none;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Light mode specific colors to match "navy/slate" text in screenshot */
html.light .faq-accordion .accordion-button {
    color: #2d3748; /* Dark slate */
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.03);
}

/* Matching the Chevron from screenshot */
.faq-accordion .accordion-button::after {
    width: 1.25rem;
    height: 1.25rem;
    background-size: contain;
    transition: transform 0.2s ease;
}

html.light .faq-accordion .accordion-button::after {
    filter: brightness(0) opacity(0.5); /* Subtle dark icon */
}

html.dark .faq-accordion .accordion-button::after {
    filter: invert(1) brightness(2);
}

.faq-accordion .accordion-body {
    padding: 0 1.75rem 1.5rem 1.75rem;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Light mode specific colors */
html.light .faq-accordion {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.light .faq-accordion .accordion-item {
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

html.light .faq-accordion .accordion-button:not(.collapsed) {
    background: #f0f7ff;
    color: #2c5282;
}

/* Dark mode specific colors */
html.dark .faq-accordion {
    background: transparent;
    box-shadow: none;
}

html.dark .faq-accordion .accordion-item {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark .faq-accordion .accordion-button {
    color: #ffffff;
}

html.dark .faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

html.dark .faq-accordion .accordion-body {
    color: #cbd5e1;
}

/* Active State Border (Both Modes) */
.faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border: 2px solid var(--accent) !important;
    border-radius: 8px;
    margin: 8px 0;
}

html.light
    .faq-accordion
    .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: #bcd1f5 !important;
}

/* Section Reveal */
.faq-section .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-section .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
