/* ==========================================================================
   CMS pages + FAQ
   Loaded from front::contents.show and front::contents.faq
   ========================================================================== */

.content-layout {
    display: grid;
    gap: 2.5rem;
    margin-top: 1.25rem;
}

@media (min-width: 1024px) {
    .content-layout {
        grid-template-columns: minmax(0, 1fr) 20.5rem;
        align-items: start;
    }
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.content-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .content-aside {
        position: sticky;
        top: 6.5rem;
    }
}

.content-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
}

.content-crumb a {
    color: #0B1F3A;
    text-decoration: none;
}

.content-crumb a:hover,
.content-crumb a:focus-visible {
    color: #18B7B2;
}

.content-crumb span:last-child {
    flex: 1 1 8rem;
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-article {
    min-width: 0;
    padding: 1.5rem 1.35rem 1.6rem;
    border-radius: 2rem;
    background: #ffffff;
    box-shadow: 0 20px 70px rgba(11, 31, 58, 0.10);
}

@media (min-width: 640px) {
    .content-article {
        padding: 2rem 2.1rem 2.15rem;
    }
}

.content-article-body {
    max-width: 42rem;
}

.content-article-body.page-body > *:first-child,
.faq-item-body.page-body > *:first-child {
    margin-top: 0;
}

.content-panel {
    padding: 1.35rem 1.4rem 1.5rem;
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 1.75rem;
    background: #ffffff;
    box-shadow: 0 20px 70px rgba(11, 31, 58, 0.08);
}

.content-panel-eyebrow {
    margin: 0;
    color: #18B7B2;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

html[dir="rtl"] .content-panel-eyebrow {
    letter-spacing: 0;
}

.content-panel-title {
    margin: 0.45rem 0 0;
    color: #0B1F3A;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

html[lang="ar"] .content-panel-title {
    font-family: 'Cairo', 'Inter', ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 0;
}

.content-panel-text {
    margin: 0.7rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

.content-related {
    display: flex;
    flex-direction: column;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.content-related-item + .content-related-item {
    border-top: 1px solid #f1f5f9;
}

.content-related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
    color: #0B1F3A;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.content-related-item:first-child .content-related-link {
    padding-top: 0;
}

.content-related-item:last-child .content-related-link {
    padding-bottom: 0;
}

.content-related-link:hover,
.content-related-link:focus-visible {
    color: #18B7B2;
}

.content-related-link svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

html[dir="rtl"] .content-related-link svg {
    transform: scaleX(-1);
}

.content-help-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.content-help-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1.1rem;
    background: #F7F5EF;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease, transform .2s ease;
}

.content-help-link:hover,
.content-help-link:focus-visible {
    background: rgba(24, 183, 178, 0.14);
    transform: translateY(-2px);
}

.content-help-link:focus-visible {
    outline: 2px solid #18B7B2;
    outline-offset: 2px;
}

.content-help-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    background: rgba(24, 183, 178, 0.12);
    color: #18B7B2;
}

.content-help-label {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[dir="rtl"] .content-help-label {
    letter-spacing: 0;
}

.content-help-value {
    display: block;
    margin-top: 0.15rem;
    color: #0B1F3A;
    font-size: 0.9rem;
    font-weight: 700;
}

.content-cta {
    padding: 1.5rem 1.45rem 1.6rem;
    border-radius: 1.75rem;
    background: #0B1F3A;
    color: #ffffff;
    box-shadow: 0 20px 70px rgba(11, 31, 58, 0.16);
}

.content-cta .content-panel-eyebrow {
    color: #7ee8e4;
}

.content-cta .content-panel-title {
    color: #ffffff;
}

.content-cta-text {
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.65;
}

.content-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.2rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: #18B7B2;
    color: #0B1F3A;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.content-cta-button:hover,
.content-cta-button:focus-visible {
    background: #ffffff;
    transform: translateY(-2px);
}

.content-cta-button svg {
    width: 1.05rem;
    height: 1.05rem;
}

html[dir="rtl"] .content-cta-button svg {
    transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-search {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 20px 70px rgba(11, 31, 58, 0.08);
}

.faq-search-label {
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(11, 31, 58, 0.55);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[dir="rtl"] .faq-search-label {
    letter-spacing: 0;
}

.faq-search-control {
    position: relative;
}

.faq-search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 1rem;
    display: grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    color: rgba(11, 31, 58, 0.38);
    pointer-events: none;
    transform: translateY(-50%);
}

.faq-search-input {
    width: 100%;
    padding: 0.85rem 1rem;
    padding-inline-start: 2.65rem;
    border: 1px solid rgba(11, 31, 58, 0.12);
    border-radius: 0.9rem;
    background: #F7F5EF;
    color: #0B1F3A;
    font: inherit;
    font-size: 0.9375rem;
}

.faq-search-input:focus,
.faq-search-input:focus-visible {
    outline: 2px solid #18B7B2;
    outline-offset: 1px;
}

.faq-count {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    overflow: hidden;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 20px 70px rgba(11, 31, 58, 0.08);
}

.faq-item[hidden] {
    display: none;
}

.faq-item summary {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker,
.faq-item summary::marker {
    display: none;
    content: '';
}

.faq-item summary:focus-visible {
    outline: 2px solid #18B7B2;
    outline-offset: -4px;
}

.faq-item-index {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 0.8rem;
    background: rgba(24, 183, 178, 0.12);
    color: #18B7B2;
    font-size: 0.8rem;
    font-weight: 800;
}

.faq-item-title {
    flex: 1;
    margin: 0;
    padding-top: 0.35rem;
    color: #0B1F3A;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.03em;
    text-align: start;
}

.faq-item-title [dir="auto"] {
    unicode-bidi: isolate;
}

html[lang="ar"] .faq-item-title {
    font-family: 'Cairo', 'Inter', ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 0;
}

.faq-item-toggle {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    border-radius: 999px;
    background: #F7F5EF;
    color: #0B1F3A;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), background-color .2s ease, color .2s ease;
}

.faq-item-toggle svg {
    width: 1rem;
    height: 1rem;
}

.faq-item[open]:not(.is-collapsing) .faq-item-toggle {
    background: #18B7B2;
    color: #0B1F3A;
    transform: rotate(180deg);
}

.faq-item-panel {
    display: grid;
    grid-template-rows: minmax(0, 0fr);
    overflow: hidden;
    transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1);
}

.faq-item[open]:not(.is-expanding):not(.is-collapsing) .faq-item-panel {
    grid-template-rows: minmax(0, 1fr);
}

.faq-item-body {
    min-height: 0;
    overflow: hidden;
    padding: 0 1.25rem 1.35rem 4.5rem;
}

.faq-item-body img {
    margin-top: 1rem;
    border-radius: 1.15rem;
}

html[dir="rtl"] .faq-item-body {
    padding: 0 4.5rem 1.35rem 1.25rem;
}

@media (max-width: 639px) {
    .faq-item-body {
        padding: 0 1.25rem 1.25rem;
    }

    html[dir="rtl"] .faq-item-body {
        padding: 0 1.25rem 1.25rem;
    }
}

.faq-empty {
    padding: 2.5rem 1.5rem;
    border-radius: 2rem;
    background: #ffffff;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    box-shadow: 0 20px 70px rgba(11, 31, 58, 0.08);
}

.faq-empty[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .content-help-link,
    .content-cta-button,
    .faq-item-toggle,
    .faq-item-panel {
        transition: none;
    }

    .content-help-link:hover,
    .content-help-link:focus-visible,
    .content-cta-button:hover,
    .content-cta-button:focus-visible {
        transform: none;
    }
}
