@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

.ebfq1-section {
    --ebfq1-bg: #FFFAF3;
    --ebfq1-title: #06266B;
    --ebfq1-title-sub: #2A9658;

    --ebfq1-item-bg: #06266B;
    --ebfq1-item-border: #475569;
    --ebfq1-item-shadow: 0 0.0625rem 0.1875rem 0 rgba(15, 23, 42, .18);
    --ebfq1-item-shadow-active: 0 0.75rem 2rem -0.5rem rgba(37, 99, 235, .20),
        0 0 0 0.0625rem #06266B;

    --ebfq1-question-text: #ffffff;
    --ebfq1-answer-text: #ffffff;

    --ebfq1-icon-mark-1: #2A9658;
    --ebfq1-icon-mark-2: #ffffff;
    --ebfq1-icon-bg: #334155;

    --ebfq1-padding-top: 2rem;
    --ebfq1-padding-bottom: 2rem;
}

*,
.ebfq1-section,
.ebfq1-section *,
.ebfq1-section *::before,
.ebfq1-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ebfq1-section a {
    text-decoration: none;
    color: inherit;
}


.ebfq1-section.en {direction: ltr;}
.ebfq1-section {
    direction: rtl;
    font-family: "El Messiri", sans-serif;
    background-color: var(--ebfq1-bg);
    display: flex;
    justify-content: center;
    padding-top: var(--ebfq1-padding-top);
    padding-bottom: var(--ebfq1-padding-bottom);
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    width: 100%;
}

.ebfq1-container {
    width: 100%;
    margin: 0 auto;
    max-width: 58rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.ebfq1-title {
    text-align: center;
    font-size: clamp(1.65rem, 6vw, 2.4rem);
    color: var(--ebfq1-title);
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 1rem;
}

.ebfq1-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 3rem;
    height: 0.1875rem;
    background: var(--ebfq1-icon-mark-1);
    border-radius: 0.125rem;
}

.ebfq1-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ebfq1-item {
    background-color: var(--ebfq1-item-bg);
    border: 0.0625rem solid var(--ebfq1-item-border);
    border-radius: 0.9rem;
    box-shadow: var(--ebfq1-item-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
    padding: 1.1rem 1.2rem;
    position: relative;
    cursor: pointer;
}

.ebfq1-item:hover {
    border-color: #D1D9E6;
}

.ebfq1-item.ebfq1-active::before,
.ebfq1-item.ebfq1-active::after {
    content: none;
}

.ebfq1-active {
    box-shadow: var(--ebfq1-item-shadow-active);
    border-color: transparent;
}

.ebfq1-question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ebfq1-question {
    font-size: clamp(0.92rem, 3vw, 1.05rem);
    color: var(--ebfq1-question-text);
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.25s ease;
}

.ebfq1-active .ebfq1-question {
    color: var(--ebfq1-icon-mark-1);
}

.ebfq1-toggle {
    background: var(--ebfq1-icon-bg);
    border: none;
    border-radius: 50%;
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ebfq1-icon-mark-2);
    font-size: 0.72rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ebfq1-active .ebfq1-toggle {
    background: var(--ebfq1-icon-mark-1);
    color: #FFFFFF;
    transform: rotate(180deg);
}

.ebfq1-toggle i:nth-child(2) {
    display: none;
}

.ebfq1-active .ebfq1-toggle i:nth-child(1) {
    display: none;
}

.ebfq1-active .ebfq1-toggle i:nth-child(2) {
    display: block;
}

.ebfq1-answer {
    max-height: 0;
    overflow: hidden;
    font-size: clamp(0.83rem, 2.6vw, 0.92rem);
    color: var(--ebfq1-answer-text);
    line-height: 1.75;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding-top 0.4s ease;
}

.ebfq1-active .ebfq1-answer {
    max-height: fit-content;
    padding-top: 0.3rem;
    padding-left: 2.9rem;
}

/* 4. Breakpoints */
@media (min-width: 481px) {
    .ebfq1-item {
        padding: 1.3rem 1.5rem;
    }

    .ebfq1-active .ebfq1-answer {
        padding-left: 3.1rem;
    }
}

@media (min-width: 601px) {
    .ebfq1-container {
        gap: 2.8rem;
    }

    .ebfq1-list {
        gap: 1rem;
    }
}

@media (min-width: 769px) {
    .ebfq1-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .ebfq1-item {
        padding: 1.5rem 1.8rem;
    }
}

@media (min-width: 1025px) {
    .ebfq1-container {
        max-width: 62rem;
    }

    .ebfq1-title {
        font-size: clamp(2rem, 3.2vw, 2.6rem);
    }
}

@media (min-width: 1281px) {
    .ebfq1-section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

@media (min-width: 1441px) {
    .ebfq1-container {
        max-width: 66rem;
    }
}

@media (min-width: 1921px) {
    .ebfq1-container {
        max-width: 72rem;
    }
}