/* ==========================================================================
   Al Iman Quran Academy - Admissions FAQ & Help Section CSS
   ========================================================================== */

.sbw-aaf-section * {
    font-family: 'Philosopher', sans-serif;
    box-sizing: border-box;
}

.sbw-aaf-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--sbw-bg-light, #f7faf8);
    color: #1a2923;
    overflow: hidden;
}

.sbw-aaf-container {
    position: relative;
    z-index: 5;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.sbw-aaf-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
}

/* Left Column: Header & Support Card */
.sbw-aaf-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sbw-primary, #058349);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.sbw-aaf-main-title {
    font-size: 38px;
    font-weight: 700;
    color: #1a2923;
    line-height: 1.2;
    margin: 0 0 18px 0;
}

.sbw-aaf-main-title span {
    color: var(--sbw-primary, #058349);
}

.sbw-aaf-desc {
    font-size: 16px;
    color: #55635d;
    line-height: 1.65;
    margin-bottom: 32px;
}

/* Support Box */
.sbw-aaf-support-card {
    background: linear-gradient(135deg, rgba(5, 131, 73, 0.08) 0%, rgba(255, 182, 6, 0.12) 100%);
    border: 2px solid var(--sbw-secondary, #FFB606);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.sbw-aaf-support-title {
    font-size: 22px;
    font-weight: 700;
    color: #091D17;
    margin: 0 0 10px 0;
}

.sbw-aaf-support-desc {
    font-size: 14.5px;
    color: #55635d;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Support Button (Gold default -> Green dual-side fill hover) */
.sbw-aaf-support-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border-radius: 50px;
    background-color: var(--sbw-secondary, #FFB606);
    color: #091D17;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.sbw-aaf-support-btn::before,
.sbw-aaf-support-btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    background-color: var(--sbw-primary, #058349);
    z-index: -1;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.sbw-aaf-support-btn::before {
    left: 0;
    transform: translateX(-100%);
}

.sbw-aaf-support-btn::after {
    right: 0;
    transform: translateX(100%);
}

.sbw-aaf-support-btn:hover::before,
.sbw-aaf-support-btn:hover::after {
    transform: translateX(0);
}

.sbw-aaf-support-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 131, 73, 0.45);
}

.sbw-aaf-support-btn .sbw-btn-text {
    position: relative;
    z-index: 2;
    text-align: center;
    display: inline-block;
    width: 100%;
}

/* Right Column: Accordion Items List */
.sbw-aaf-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sbw-aaf-item {
    background-color: #ffffff;
    border: 2px solid rgba(5, 131, 73, 0.12);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.sbw-aaf-item:hover {
    border-color: var(--sbw-primary, #058349);
}

.sbw-aaf-item.active {
    border-color: var(--sbw-primary, #058349);
    box-shadow: 0 12px 30px rgba(5, 131, 73, 0.14);
}

.sbw-aaf-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    font-size: 17px;
    font-weight: 700;
    color: #1a2923;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.sbw-aaf-item.active .sbw-aaf-question {
    color: var(--sbw-primary, #058349);
}

/* Signature Morphing Plus (+) to Minus (-) Icon */
.sbw-aaf-toggle-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 16px;
}

.sbw-aaf-toggle-icon::before,
.sbw-aaf-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: var(--sbw-primary, #058349);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

/* Horizontal line */
.sbw-aaf-toggle-icon::before {
    top: 10px;
    left: 2px;
    width: 18px;
    height: 2.5px;
}

/* Vertical line (Rotates to 0deg / opacity 0 on active minus) */
.sbw-aaf-toggle-icon::after {
    top: 2px;
    left: 10px;
    width: 2.5px;
    height: 18px;
}

.sbw-aaf-item.active .sbw-aaf-toggle-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

/* Answer Body */
.sbw-aaf-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 24px;
}

.sbw-aaf-item.active .sbw-aaf-answer {
    max-height: 300px;
    padding: 0 24px 24px 24px;
}

.sbw-aaf-answer p {
    font-size: 15px;
    color: #55635d;
    line-height: 1.65;
    margin: 0;
}

/* Responsive Queries */
@media (max-width: 991px) {
    .sbw-aaf-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .sbw-aaf-section {
        padding: 55px 0;
    }
    .sbw-aaf-main-title {
        font-size: 28px;
    }
    .sbw-aaf-support-card {
        padding: 24px 18px;
        text-align: center;
    }
    .sbw-aaf-support-title {
        font-size: 20px;
    }
    .sbw-aaf-support-btn {
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 12px 18px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sbw-aaf-support-btn .sbw-btn-text {
        text-align: center;
        line-height: 1.35;
    }
    .sbw-aaf-question {
        padding: 18px 18px;
        font-size: 15.5px;
    }
    .sbw-aaf-answer {
        padding: 0 18px;
    }
    .sbw-aaf-item.active .sbw-aaf-answer {
        padding: 0 18px 18px 18px;
    }
}
