/* ==================================================
   ACCORDION (مستقل)
   - هماهنگ با قالب custom-education-theme
   - پیش‌فرض: چندتایی باز
   - با کلاس "custom-education-theme-accordion-single" روی wrapper:
     فقط یکی هم‌زمان باز می‌مونه
   ================================================== */

/* ============ WRAPPER ============ */
.custom-education-theme-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* ============ ITEM ============ */
.custom-education-theme-accordion-item {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.custom-education-theme-accordion-item:hover {
    border-color: var(--accent-glow-25);
}

.custom-education-theme-accordion-item.custom-education-theme-open {
    border-color: var(--accent-glow-35);
    box-shadow: 0 8px 24px var(--accent-glow-12);
}

/* ============ HEADER (دکمه) ============ */
.custom-education-theme-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
}

[dir="ltr"] .custom-education-theme-accordion-header {
    text-align: left;
}

.custom-education-theme-accordion-header:hover {
    background: var(--accent-glow-05);
    color: var(--accent);
}

.custom-education-theme-accordion-header > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.custom-education-theme-accordion-header > span:first-child i {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============ ARROW ============ */
.custom-education-theme-accordion-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.custom-education-theme-accordion-item.custom-education-theme-open .custom-education-theme-accordion-arrow {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: rotate(180deg);
    box-shadow: 0 4px 12px var(--accent-glow-35);
}

/* ============ BODY (محتوا) ============ */
.custom-education-theme-accordion-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.custom-education-theme-accordion-item.custom-education-theme-open .custom-education-theme-accordion-body {
    max-height: 3000px;
    opacity: 1;
    padding: 0 20px 20px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
    .custom-education-theme-accordion-header {
        padding: 14px 16px;
        font-size: 0.88rem;
    }

    .custom-education-theme-accordion-body {
        padding: 0 16px;
    }

    .custom-education-theme-accordion-item.custom-education-theme-open .custom-education-theme-accordion-body {
        padding: 0 16px 16px;
    }

    .custom-education-theme-accordion-arrow {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}