/**
 * Boost FAQ Public CSS
 * Modernized with CSS Variables and Flexbox
 */

:root {
    --boost-primary: #333;
    --boost-accent: #0073aa; /* standard WP blue, change to match brand */
    --boost-bg: #f9f9f9;
    --boost-white: #ffffff;
    --boost-border-radius: 8px;
    --boost-shadow: 0 4px 6px rgba(0,0,0,0.05);
    --boost-shadow-hover: 0 8px 15px rgba(0,0,0,0.1);
    --boost-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.boost-faq-container {
    max-width: 1120px;
    margin: 50px auto;
    font-family: inherit;
}

/* --- Filter Buttons --- */
.boost-faq-filter {
    text-align: center;
    margin-bottom: 40px;
}

.boost-faq-filter a {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: var(--boost-white);
    color: var(--boost-primary);
    text-decoration: none;
    border-radius: 50px;
    box-shadow: var(--boost-shadow);
    transition: var(--boost-transition);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.boost-faq-filter a:hover,
.boost-faq-filter a.current {
    background: var(--boost-accent);
    color: var(--boost-white);
    transform: translateY(-2px);
    box-shadow: var(--boost-shadow-hover);
}

/* --- Accordion List --- */
.accordionArea {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between items */
}

.accordionArea > li {
    background: var(--boost-white);
    border-radius: var(--boost-border-radius);
    box-shadow: var(--boost-shadow);
    overflow: hidden;
    transition: var(--boost-transition);
}

/* Accordion Header */
.accordionArea > li h3 {
    margin: 0;
    padding: 20px 60px 20px 25px; /* Right padding makes room for icon */
    cursor: pointer;
    position: relative;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--boost-primary);
    background: var(--boost-white);
    user-select: none;
    transition: background 0.2s ease;
}

.accordionArea > li h3:hover {
    background: var(--boost-bg);
}

/* Icon Animation (CSS only, no text content change needed) */
.accordionArea > li h3::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--boost-primary);
    border-bottom: 2px solid var(--boost-primary);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
}

/* Active State */
.accordionArea > li h3.active-accordion {
    color: var(--boost-accent);
}

.accordionArea > li h3.active-accordion::after {
    transform: translateY(-50%) rotate(225deg); /* Flips the arrow up */
    border-color: var(--boost-accent);
}

/* Content */
.accordion-content {
    display: none; /* JS toggles this */
    padding: 0 25px 25px 25px;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.accordionArea > li h3.active-accordion + .accordion-content {
    border-top-color: #eee; /* subtle separation line when open */
    padding-top: 20px;
}

/* --- Grid Layout (If using grid shortcode) --- */
.gridArea {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    list-style: none;
    padding: 0;
}

.gridArea li {
    padding: 15px;
    box-sizing: border-box;
}

/* Grid Columns */
.gridArea.col-2 li { width: 50%; }
.gridArea.col-3 li { width: 33.333%; }
.gridArea.col-4 li { width: 25%; }

/* Grid Item Card */
.gridArea .item {
    background: var(--boost-white);
    padding: 30px;
    border-radius: var(--boost-border-radius);
    box-shadow: var(--boost-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--boost-transition);
}

.gridArea .item:hover {
    transform: translateY(-5px);
    box-shadow: var(--boost-shadow-hover);
}

.gridArea h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--boost-accent);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .gridArea.col-4 li { width: 33.33%; }
}

@media (max-width: 768px) {
    .gridArea.col-3 li,
    .gridArea.col-4 li { width: 50%; }
}

@media (max-width: 500px) {
    .gridArea.col-2 li,
    .gridArea.col-3 li,
    .gridArea.col-4 li { width: 100%; }
    
    .boost-faq-filter a {
        display: block;
        margin: 5px auto;
        width: 100%;
        max-width: 300px;
    }
}