/* ==========================================================================
   PRISM ACCORDION & BLOCK DETAILS
   ========================================================================== */

.ctc-styled-details,
.ctc-accordion {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    scroll-margin-top: var(--ctc-scroll-offset);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.ctc-styled-details[open],
.ctc-accordion.active {
    background-color: var(--surface);
    border-color: var(--primary);
    box-shadow: var(--shadow-bloom), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.ctc-styled-details>summary,
.ctc-accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: start;
    transition: var(--transition-fast);
    user-select: none;
    outline: none;
    position: relative;
    z-index: 2;
}

.ctc-styled-details>summary::-webkit-details-marker {
    display: none;
}

.ctc-styled-details>summary:hover,
.ctc-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--primary-readable);
}

.ctc-styled-details[open]>summary,
.ctc-accordion.active .ctc-accordion-header {
    border-bottom: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.02);
}

html[data-theme="dark"] .ctc-styled-details[open]>summary,
html[data-theme="dark"] .ctc-accordion.active .ctc-accordion-header {
    background-color: rgba(255, 255, 255, 0.02);
}

.ctc-details-title-wrap,
.ctc-accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ctc-details-icon,
.ctc-accordion-icon {
    color: var(--primary-readable);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--primary-glow);
    border-radius: var(--radius-sm);
}

.ctc-accordion-chevron {
    color: var(--text-secondary);
    font-size: 0.9em;
    transition: transform 0.4s var(--ease-prism);
}

.ctc-styled-details[open] .ctc-details-icon,
.ctc-accordion.active .ctc-accordion-chevron {
    transform: rotate(180deg);
    color: var(--primary-readable);
}

/* Content Area inside Details & Accordion */
.ctc_details_content,
.ctc-accordion-inner {
    padding: 1.5rem;
    background-color: transparent;
    animation: fadeSlideIn 0.4s var(--ease-prism) forwards;
}

.ctc-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-prism);
    will-change: max-height;
}

.ctc_details_content .description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.ctc_details_content .description:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================================
   FAQ COMPONENT (Dedicated FAQ layout without Box UI)
   ========================================================================== */
.ctc-faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0px;
}

.ctc-faq-item:last-child {
    border-bottom: none;
}

.ctc-faq-header {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: start;
    transition: var(--transition-fast);
}

.ctc-faq-header:hover {
    color: var(--primary-readable);
}

.ctc-faq-item.active .ctc-faq-header {
    color: var(--primary-readable);
}

.ctc-faq-chevron {
    color: var(--text-secondary);
    font-size: 0.9em;
    transition: transform 0.3s var(--ease-prism);
}

.ctc-faq-item.active .ctc-faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-readable);
}

.ctc-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-prism);
}

.ctc-faq-inner {
    padding: 0 0 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
