/* ==========================================================================
   FAQ PAGE
   The shared top wrapper, .faq-page-master and the FAQ hero section styles live in
   objectways-globals.css (they are also used by the Guide Hub page). Only the FAQ list
   styles are kept here.
   ========================================================================== */

/* ==========================================================================
   FAQ LIST SECTION
   ========================================================================== */

.ow-faq-list-section {
    position: relative;
    width: 100%;
    max-width: 100%;;
    margin: 0 auto;
    background-color: #FDFFF6;
    padding: 64px 48px 96px 48px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.ow-faq-list-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.ow-faq-filter-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.ow-faq-filter-label {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    color: #4C4D4A;
    text-transform: uppercase;
}

.ow-faq-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.ow-faq-pill {
    background-color: #F3F5EC;
    border: none;
    border-radius: 4px;
    height: 36px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #878883;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ow-faq-pill:hover {
    background-color: #e8eadf;
    color: #111111;
}

.ow-faq-pill.active {
    background-color: #CAED57; /* Lime highlight */
    color: #111111;
}

.ow-faq-pill:focus-visible {
    outline: 2px solid #CAED57;
    outline-offset: 2px;
}

.ow-faq-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(17, 17, 17, 0.12);
    border: none;
    margin: 0;
}

/* ==========================================================================
   Category Groups & Accordions
   ========================================================================== */

.ow-faq-groups-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.ow-faq-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.ow-faq-group-title {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    color: #4C4D4A;
    margin: 0;
}

.ow-faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Gap between individual accordion items */
    width: 100%;
}

/* Individual Accordion Block */
.ow-faq-item {
    background-color: #E2DFF8; /* Light purple */
    border-radius: 4px;
    width: 100%;
    margin: 0;
    /* Chamfered top-left and bottom-right corners (fixed 16px cut, so it looks the same at every screen size) */
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.ow-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ow-faq-summary::-webkit-details-marker {
    display: none;
}

.ow-faq-summary:focus-visible {
    outline: 2px solid #7E6DEB;
    outline-offset: -2px;
    border-radius: 4px;
}

.ow-faq-question {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    color: #111111;
    padding-right: 16px;
}

.ow-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Handle Icon Swapping */
.ow-faq-item .icon-close { display: none; }
.ow-faq-item[open] .icon-plus { display: none; }
.ow-faq-item[open] .icon-close { display: block; }

/* Handle SVG Animation (Optional smoothness) */
.ow-faq-item svg {
    transition: transform 160ms ease;
}
.ow-faq-item[open] svg {
    transform: rotate(90deg);
}

.ow-faq-answer {
    padding: 0 24px 24px 24px; /* Padding for the opened state */
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    color: rgba(17, 17, 17, 0.75);
}

.ow-faq-answer p {
    margin: 0 0 12px 0;
}
.ow-faq-answer p:last-child {
    margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 775px) {
    .ow-faq-list-section {
        padding: 48px 24px;
    }

    .ow-faq-summary {
        padding: 16px 20px;
    }

    .ow-faq-answer {
        padding: 0 20px 20px 20px;
    }

    .ow-faq-question {
        font-size: 16px;
    }
}
