/* assets/css/components/accordion.css */
/* Container cleaning */
.gtm-accordion .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 12px;
}

/* 
 * Accordion Button (Header) 
 * Default State: Inactive / Collapsed 
 */
.gtm-accordion .accordion-button {
    background-color: transparent;        /* Transparent background */
    color: var(--c-primary, #342E37);
    font-family: "Figtree", sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    
    /* Requested sizing */
    padding: var(--8, 8px) var(--32, 32px);
    border-radius: var(--96, 96px);
    
    /* ADDED: Outline border for inactive state */
    border: 1px solid var(--c-primary, #342E37);
    
    box-shadow: none;
    transition: all 0.3s ease;
}
.gtm-accordion .accordion-button:hover{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 
 * Active State: Expanded 
 */
.gtm-accordion .accordion-button:not(.collapsed) {
    background-color: var(--c-primary, #342E37); /* Black background */
    border-color: var(--c-primary, #342E37);     /* Border matches background */
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 
 * CRITICAL FIX: Override Bootstrap's specific selectors 
 * Bootstrap forces the first item to have flat bottom corners and the 
 * last item to have flat top corners. We force them all to be pills (96px).
 */
.gtm-accordion .accordion-item:first-of-type .accordion-button,
.gtm-accordion .accordion-item:last-of-type .accordion-button.collapsed {
    border-radius: var(--96, 96px) !important;
}

/* Chevron Icon Colors */
.gtm-accordion .accordion-button::after {
    filter: brightness(0); /* Black icon on transparent bg */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.gtm-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* White icon on black bg */
}

/* Remove default blue focus ring */
.gtm-accordion .accordion-button:focus {
    box-shadow: none;
    /* Keep the border color on focus, don't let BS make it blue */
    border-color: var(--c-primary, #342E37); 
}

/* Content Body Styles */
.gtm-accordion .accordion-collapse {
    border: none;
}

.gtm-accordion .accordion-body {
    background-color: #E2E2E2;
    color: var(--c-text, #333);
    padding: 16px 24px 24px 24px;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 16px; /* Rounded body */
    margin-top: 8px;     /* Small gap between pill header and body */
}

.gtm-accordion .gtm-btn {
    margin-top: 16px;
    font-size: 14px;
    min-width: 160px;
    padding: 10px 20px;
}