:root {
    --be-bg: #f5f1e8;
    --be-surface: #ffffff;
    --be-surface-soft: #fbf7ef;
    --be-text: #1f1c18;
    --be-muted: #70695f;
    --be-border: rgba(31, 28, 24, 0.12);
    --be-accent: #c47a24;
    --be-accent-soft: rgba(196, 122, 36, 0.14);
    --be-accent-2: #245c73;
    --be-accent-2-soft: rgba(36, 92, 115, 0.12);
    --be-shadow: 0 22px 70px rgba(38, 32, 24, 0.10);
    --be-radius-lg: 32px;
    --be-radius-md: 22px;
    --be-max: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 12%, var(--be-accent-soft), transparent 34rem),
        radial-gradient(circle at 92% 16%, var(--be-accent-2-soft), transparent 34rem),
        var(--be-bg);
    color: var(--be-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.be-shell {
    width: min(var(--be-max), calc(100% - 40px));
    margin: 0 auto;
}

.be-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 0;
}

.be-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.be-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--be-accent), var(--be-accent-2));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.be-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.be-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--be-muted);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
}

.be-nav a:hover {
    color: var(--be-text);
    border-color: var(--be-border);
    background: rgba(255, 255, 255, 0.65);
}

.be-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 16px;
}

.be-home-board,
.be-page-board,
.be-article-intro {
    padding: 18px 0 34px;
}

.be-tile {
    min-height: 190px;
    padding: 26px;
    border-radius: var(--be-radius-lg);
    background: var(--be-surface);
    border: 1px solid var(--be-border);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.be-span-2 {
    grid-column: span 2;
}

.be-tall {
    grid-row: span 2;
}

.be-title-tile {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
        linear-gradient(135deg, var(--be-accent-soft), var(--be-accent-2-soft));
}

.be-title-tile h1,
.be-title-tile h2 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.be-title-tile p {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--be-muted);
    font-size: 18px;
}

.be-kicker,
.be-section-head span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--be-accent-soft);
    color: var(--be-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.be-image-tile {
    padding: 0;
    min-height: 280px;
    background: var(--be-accent-2-soft);
}

.be-image-tile img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.be-image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 280px;
    padding: 28px;
    background:
        linear-gradient(135deg, var(--be-accent-soft), var(--be-accent-2-soft));
    color: var(--be-text);
    text-align: center;
    font-weight: 900;
}

.be-contact-tile {
    background: var(--be-text);
    color: #fff;
}

.be-contact-tile p {
    color: rgba(255, 255, 255, 0.72);
    word-break: break-word;
}

.be-contact-tile a,
.be-resource-links a,
.be-article-copy a {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--be-accent);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
}

.be-contact-tile .be-kicker {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.be-mini-tile {
    background: var(--be-surface-soft);
}

.be-mini-tile h2,
.be-contact-tile h2,
.be-resource-tile h2,
.be-meta-tile h2,
.be-note-tile h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.be-mini-tile p,
.be-resource-tile p,
.be-meta-tile p,
.be-note-tile p,
.be-expert-tile p,
.be-content-tile p,
.be-article-copy p,
.be-reading-section p,
.be-faq-tile p,
.be-footer p {
    color: var(--be-muted);
}

.be-resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.be-resource-links a {
    background: var(--be-text);
}

.be-section {
    padding: 38px 0;
}

.be-section-head {
    margin-bottom: 20px;
}

.be-section-head h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.be-expert-board,
.be-page-content-board {
    align-items: stretch;
}

.be-expert-tile,
.be-content-tile {
    min-height: 260px;
}

.be-tile-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: var(--be-accent-soft);
    color: var(--be-accent);
    font-weight: 900;
}

.be-expert-tile h3,
.be-content-tile h2,
.be-reading-section h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.be-article-bento {
    display: grid;
    gap: 16px;
}

.be-article-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    border-radius: var(--be-radius-lg);
    background: var(--be-surface);
    border: 1px solid var(--be-border);
    overflow: hidden;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.06);
}

.be-article-featured {
    grid-template-columns: 360px 1fr;
    min-height: 300px;
}

.be-article-image {
    background: var(--be-accent-soft);
}

.be-article-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.be-article-copy {
    padding: 28px;
}

.be-article-copy span {
    color: var(--be-accent);
    font-size: 13px;
    font-weight: 900;
}

.be-article-copy h3 {
    margin: 10px 0 10px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.be-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.be-faq-tile {
    min-height: 150px;
    padding: 20px;
    border-radius: var(--be-radius-md);
    background: var(--be-surface);
    border: 1px solid var(--be-border);
}

.be-faq-tile:nth-child(2n) {
    background: var(--be-surface-soft);
}

.be-faq-tile summary {
    cursor: pointer;
    font-weight: 900;
    line-height: 1.25;
}

.be-page-board {
    grid-template-columns: 1.4fr 1.4fr 1fr;
}

.be-page-board .be-title-tile {
    grid-column: span 2;
}

.be-page-content-board .be-content-tile:nth-child(3n) {
    background: var(--be-surface-soft);
}

.be-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
    padding: 24px 0 34px;
}

.be-reading-card {
    padding: 34px;
    border-radius: var(--be-radius-lg);
    background: var(--be-surface);
    border: 1px solid var(--be-border);
    box-shadow: var(--be-shadow);
}

.be-reading-section + .be-reading-section {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--be-border);
}

.be-reading-section p {
    font-size: 17px;
}

.be-side-notes {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 18px;
}

.be-note-tile {
    min-height: auto;
}

.be-note-tile a {
    display: block;
    margin: 10px 0;
    color: var(--be-accent);
    font-weight: 800;
    line-height: 1.35;
}

.be-meta-tile {
    background: var(--be-surface-soft);
}

.be-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 0;
    border-top: 1px solid var(--be-border);
}

.be-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.be-footer-links a {
    color: var(--be-muted);
    font-weight: 700;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] body {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
}

@media (max-width: 1040px) {
    .be-board,
    .be-page-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .be-article-layout {
        grid-template-columns: 1fr;
    }

    .be-side-notes {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .be-faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .be-shell {
        width: min(var(--be-max), calc(100% - 24px));
    }

    .be-header,
    .be-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .be-nav,
    .be-footer-links {
        justify-content: flex-start;
    }

    .be-board,
    .be-page-board,
    .be-faq-grid,
    .be-side-notes {
        grid-template-columns: 1fr;
    }

    .be-span-2,
    .be-page-board .be-title-tile {
        grid-column: span 1;
    }

    .be-tall {
        grid-row: span 1;
    }

    .be-tile {
        min-height: auto;
        padding: 22px;
        border-radius: 24px;
    }

    .be-image-tile {
        padding: 0;
    }

    .be-title-tile h1,
    .be-title-tile h2 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .be-article-card,
    .be-article-featured {
        grid-template-columns: 1fr;
    }

    .be-reading-card {
        padding: 24px;
    }
}