/* Smart English — FAQ | All Closed + Two-Tone Accordion */
.se-home-faq {
    --faq-deep: #173c63;
    --faq-blue: #0a69d0;
    --faq-blue-dark: #0753aa;
    --faq-cyan: #5bd2f7;
    --faq-gold: #ffc33d;
    position: relative;
    overflow: hidden;
    padding: 108px 0 112px;
    direction: rtl;
    background:
        radial-gradient(circle at 7% 28%, rgba(62, 199, 246, .14), transparent 22%),
        radial-gradient(circle at 92% 82%, rgba(255, 195, 48, .075), transparent 18%),
        linear-gradient(155deg, #f5fbff 0%, #ffffff 54%, #f7fcff 100%);
    font-family: "Tajawal", "Noto Kufi Arabic", Arial, sans-serif;
}

.se-home-faq *,
.se-home-faq *::before,
.se-home-faq *::after {
    box-sizing: border-box;
}

.se-home-faq__container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.se-home-faq__orb {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.se-home-faq__orb--one {
    top: -215px;
    right: -140px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(15, 105, 205, .12);
    box-shadow:
        0 0 0 39px rgba(15, 105, 205, .025),
        0 0 0 78px rgba(15, 105, 205, .012);
}

.se-home-faq__orb--two {
    bottom: -248px;
    left: -175px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 195, 47, .10), transparent 68%);
}

.se-home-faq__dots {
    position: absolute;
    top: 65px;
    left: 0;
    width: 190px;
    height: 380px;
    opacity: .28;
    pointer-events: none;
    background-image: radial-gradient(rgba(33, 144, 223, .72) 1px, transparent 1.7px);
    background-size: 11px 11px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 95%);
}

.se-home-faq__head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.se-home-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 35px;
    padding: 0 16px;
    border: 1px solid rgba(11, 103, 205, .15);
    border-radius: 999px;
    color: #0a65c7;
    background: #eaf6ff;
    font-size: 14px;
    font-weight: 900;
}

.se-home-faq__eyebrow span {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #0a65c7;
    font-size: 13px;
    font-family: Arial, sans-serif;
    font-weight: 900;
}

.se-home-faq__head h2 {
    margin: 18px 0 0;
    color: #183656;
    font-size: clamp(35px, 3.7vw, 54px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.04em;
}

.se-home-faq__head h2 span {
    color: #0a69d0;
}

.se-home-faq__head p {
    max-width: 650px;
    margin: 18px auto 0;
    color: #70839b;
    font-size: 17px;
    line-height: 2;
    font-weight: 500;
}

/* Cards */
.se-home-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
}

.se-home-faq__item {
    position: relative;
    overflow: hidden;
    border: 1px solid #d5e6f7 !important;
    border-radius: 19px;
    background: #ffffff !important;
    box-shadow: 0 12px 27px rgba(17, 74, 142, .065);
    transition:
        transform .32s cubic-bezier(.2,.75,.25,1),
        border-color .32s ease,
        box-shadow .32s ease;
}

.se-home-faq__item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #5bd2f7, #0a69d0);
    transition: width .38s ease;
}

.se-home-faq__item:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 105, 208, .30) !important;
    box-shadow: 0 20px 38px rgba(17, 74, 142, .11);
}

.se-home-faq__item:hover::before,
.se-home-faq__item.is-open::before {
    width: 100%;
}

/* Question area: pale blue normally, deep blue when open */
.se-home-faq__question {
    width: 100%;
    min-height: 73px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    border: 0;
    color: #163b63 !important;
    background: linear-gradient(135deg, #f6fbff 0%, #eaf6ff 100%) !important;
    cursor: pointer;
    font: inherit;
    text-align: right;
    transition: color .28s ease, background .28s ease;
}

.se-home-faq__item.is-open {
    border-color: rgba(10, 105, 208, .36) !important;
    box-shadow: 0 22px 43px rgba(6, 79, 170, .16);
}

.se-home-faq__item.is-open .se-home-faq__question {
    color: #fff !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(112, 221, 255, .32), transparent 42%),
        linear-gradient(135deg, #0c78dc 0%, #0754ae 100%) !important;
}

.se-home-faq__number {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(10, 105, 208, .11);
    border-radius: 11px;
    color: #0a66c9 !important;
    background: #ffffff !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    transition: color .26s ease, background .26s ease, transform .26s ease;
}

.se-home-faq__question-text {
    flex: 1;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.6;
}

.se-home-faq__toggle {
    position: relative;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(10, 105, 208, .19);
    border-radius: 50%;
    background: #ffffff;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.se-home-faq__toggle::before,
.se-home-faq__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    border-radius: 99px;
    background: #0a66c9;
    transform: translate(-50%, -50%);
    transition: transform .25s ease, background .25s ease;
}

.se-home-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.se-home-faq__item:hover .se-home-faq__toggle {
    border-color: rgba(10, 105, 208, .36);
    background: #edf8ff;
    transform: rotate(8deg);
}

.se-home-faq__item.is-open .se-home-faq__number {
    border-color: rgba(255, 255, 255, .22);
    color: #0754ae !important;
    background: #ffe49a !important;
    transform: rotate(-5deg);
}

.se-home-faq__item.is-open .se-home-faq__toggle {
    border-color: rgba(255, 255, 255, .38);
    background: #ffe49a;
    transform: rotate(90deg);
}

.se-home-faq__item.is-open .se-home-faq__toggle::before,
.se-home-faq__item.is-open .se-home-faq__toggle::after {
    background: #0753aa;
}

.se-home-faq__item.is-open .se-home-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Answer area: intentionally a separate soft white color */
.se-home-faq__answer {
    padding: 0 65px 20px 65px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%) !important;
}

.se-home-faq__answer[hidden] {
    display: none;
}

.se-home-faq__answer p {
    margin: 0;
    padding-top: 17px;
    border-top: 1px solid #dcecf9;
    color: #68809b !important;
    font-size: 14px;
    line-height: 1.95;
    font-weight: 500;
}

/* Help card */
.se-home-faq__help {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 870px;
    margin: 38px auto 0;
    padding: 20px 22px;
    border: 1px solid rgba(11, 102, 201, .14);
    border-radius: 21px;
    background:
        radial-gradient(circle at 2% 100%, rgba(71, 199, 244, .13), transparent 28%),
        linear-gradient(110deg, #eff9ff, #ffffff 74%);
    box-shadow: 0 15px 32px rgba(17, 76, 146, .075);
}

.se-home-faq__help-icon {
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #0754aa;
    background: #ffe49a;
    box-shadow: 0 9px 17px rgba(255, 187, 19, .18);
    font-size: 21px;
}

.se-home-faq__help-copy {
    flex: 1;
}

.se-home-faq__help h3 {
    margin: 0;
    color: #183656;
    font-size: 18px;
    font-weight: 900;
}

.se-home-faq__help p {
    margin: 5px 0 0;
    color: #74869d;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 500;
}

.se-home-faq__help-button {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 14px;
    color: #073f88 !important;
    background: #ffc229 !important;
    box-shadow: 0 12px 23px rgba(255, 184, 14, .24);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 900;
    transition: transform .26s ease, box-shadow .26s ease, background .26s ease;
}

.se-home-faq__help-button:hover {
    color: #073f88 !important;
    background: #ffcf4a !important;
    box-shadow: 0 18px 30px rgba(255, 184, 14, .33);
    transform: translateY(-4px);
}

.se-home-faq__help-button span {
    transition: transform .26s ease;
}

.se-home-faq__help-button:hover span {
    transform: translateX(-4px);
}

/* Entrance */
.se-faq-reveal {
    opacity: 0;
    transform: translateY(27px);
    transition: opacity .72s ease, transform .72s cubic-bezier(.2,.75,.25,1);
    transition-delay: var(--se-faq-delay, 0ms);
}

.se-faq-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 820px) {
    .se-home-faq {
        padding: 84px 0 89px;
    }

    .se-home-faq__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .se-home-faq {
        padding: 67px 0 73px;
    }

    .se-home-faq__container {
        width: min(100% - 28px, 1180px);
    }

    .se-home-faq__head {
        margin-bottom: 31px;
    }

    .se-home-faq__head p {
        font-size: 15px;
        line-height: 1.9;
    }

    .se-home-faq__question {
        min-height: 66px;
        gap: 10px;
        padding: 12px 13px;
    }

    .se-home-faq__question-text {
        font-size: 14px;
    }

    .se-home-faq__number {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
        border-radius: 10px;
        font-size: 11px;
    }

    .se-home-faq__answer {
        padding: 0 54px 17px 44px;
    }

    .se-home-faq__answer p {
        font-size: 13px;
    }

    .se-home-faq__help {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .se-home-faq__help-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .se-faq-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .se-home-faq *,
    .se-home-faq *::before,
    .se-home-faq *::after {
        transition: none !important;
    }
}
