/* amir:faq component styles */

.amir-faq-section {
    margin-top: 32px;
    padding: 0;
}

.amir-faq-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #333;
}

.amir-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Separate items */
    border: none;
    border-radius: 0;
    /* Let items handle radius */
    overflow: visible;
}

.amir-faq-item {
    border: 1px solid #e8e8ee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.amir-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.amir-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #f7f8fa;
    /* Light grey by default per screenshot */
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    transition: background-color 0.2s ease;
    font-family: inherit;
    gap: 12px;
}

.amir-faq-question:hover {
    background: #eaebf0;
}

.amir-faq-question[aria-expanded="true"] {
    background: #f5f6fa;
    color: #333;
}

.amir-faq-question-text {
    flex: 1;
}

.amir-faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3d7edb;
    /* Blue by default per screenshot */
    color: #fff;
    transition: transform 0.3s ease;
    /* Custom SVG handling */
}

/* Rotate icon on expand */
.amir-faq-question[aria-expanded="true"] .amir-faq-icon {
    transform: rotate(45deg);
    /* assuming X behavior */
    /* Often X becomes - or vice versa */
}

.amir-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: #fff;
    /* White answer bg */
}

.amir-faq-answer-inner {
    padding: 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #e8e8ee;
}

/* Mobile */
@media (max-width: 768px) {
    .amir-faq-title {
        font-size: 18px;
    }

    .amir-faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .amir-faq-answer-inner {
        padding: 16px;
        font-size: 13px;
    }
}

.amir-faq-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1a1a2e;
}

.amir-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e8e8ee;
    border-radius: 12px;
    overflow: hidden;
}

.amir-faq-item {
    border-bottom: 1px solid #e8e8ee;
}

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

.amir-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    transition: background-color 0.2s ease;
    font-family: inherit;
    gap: 12px;
}

.amir-faq-question:hover {
    background: #f8f9fc;
}

.amir-faq-question[aria-expanded="true"] {
    background: #f5f6fa;
}

.amir-faq-question-text {
    flex: 1;
}

.amir-faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f1f5;
    color: #555;
    transition: transform 0.3s ease, background-color 0.2s ease;
}

.amir-faq-question[aria-expanded="true"] .amir-faq-icon {
    transform: rotate(45deg);
    background: #3d7edb;
    color: #fff;
}

.amir-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.amir-faq-answer-inner {
    padding: 0 20px 16px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

/* Mobile styles for amir:faq component */
@media (max-width: 768px) {

    .amir-faq-section {
        margin-top: 20px;
    }

    .amir-faq-title {
        font-size: 18px;
        margin: 0 0 12px 0;
    }

    .amir-faq-list {
        border-radius: 8px;
    }

    .amir-faq-question {
        padding: 13px 14px;
        font-size: 14px;
        gap: 10px;
    }

    .amir-faq-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .amir-faq-answer-inner {
        padding: 0 14px 13px 14px;
        font-size: 13px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {

    .amir-faq-section {
        margin-top: 16px;
    }

    .amir-faq-title {
        font-size: 16px;
        margin: 0 0 10px 0;
    }

    .amir-faq-list {
        border-radius: 6px;
    }

    .amir-faq-question {
        padding: 12px;
        font-size: 13px;
        gap: 8px;
    }

    .amir-faq-icon {
        width: 22px;
        height: 22px;
    }

    .amir-faq-answer-inner {
        padding: 0 12px 12px 12px;
        font-size: 12px;
    }
}

