:root {
    --ld-bg: #f4f6f8;
    --ld-surface: #ffffff;
    --ld-surface-soft: #f8fafc;
    --ld-text: #172033;
    --ld-muted: #64748b;
    --ld-border: rgba(23, 32, 51, 0.12);
    --ld-accent: #2563eb;
    --ld-accent-soft: rgba(37, 99, 235, 0.11);
    --ld-accent-2: #0f766e;
    --ld-accent-2-soft: rgba(15, 118, 110, 0.10);
    --ld-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
    --ld-radius-lg: 28px;
    --ld-radius-md: 18px;
    --ld-max: 1180px;
    --ld-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, var(--ld-accent-soft), transparent 32rem),
        radial-gradient(circle at bottom right, var(--ld-accent-2-soft), transparent 34rem),
        var(--ld-bg);
    color: var(--ld-text);
    font-family: var(--ld-font-sans);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.ld-shell {
    width: min(var(--ld-max), calc(100% - 40px));
    margin: 0 auto;
}

.ld-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 0;
}

.ld-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.ld-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, var(--ld-accent), var(--ld-accent-2));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.ld-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ld-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--ld-muted);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
}

.ld-nav a:hover {
    background: var(--ld-surface);
    color: var(--ld-text);
    border-color: var(--ld-border);
}

.ld-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 22px;
    align-items: stretch;
    padding: 32px;
    border-radius: var(--ld-radius-lg);
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    box-shadow: var(--ld-shadow);
}

.ld-search-copy h1,
.ld-page-heading h1,
.ld-listing-header h1 {
    margin: 0;
    max-width: 830px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.ld-search-copy p,
.ld-page-heading p,
.ld-listing-header p {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--ld-muted);
    font-size: 18px;
}

.ld-kicker,
.ld-section-head span,
.ld-contact-strip span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--ld-accent-soft);
    color: var(--ld-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ld-search-box {
    align-self: center;
    padding: 18px;
    border-radius: 24px;
    background: var(--ld-surface-soft);
    border: 1px solid var(--ld-border);
}

.ld-search-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    color: var(--ld-muted);
    font-weight: 800;
}

.ld-search-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--ld-accent-soft);
    color: var(--ld-accent);
}

.ld-search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ld-search-links a,
.ld-category-card a,
.ld-listing-action a,
.ld-contact-strip a,
.ld-key-info-panel a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--ld-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.ld-search-links a:nth-child(even) {
    background: var(--ld-accent-2);
}

.ld-section {
    padding: 42px 0;
}

.ld-section-head {
    margin-bottom: 20px;
}

.ld-section-head h2,
.ld-help-intro h2,
.ld-contact-strip h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.ld-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ld-category-card {
    min-height: 250px;
    padding: 22px;
    border-radius: var(--ld-radius-md);
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.05);
}

.ld-category-card:nth-child(3n) {
    background: var(--ld-surface-soft);
}

.ld-category-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: var(--ld-accent-soft);
    color: var(--ld-accent);
    font-weight: 900;
}

.ld-category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.ld-category-card p,
.ld-entry-body p,
.ld-listing-main p,
.ld-help-intro p,
.ld-faq-item p,
.ld-contact-strip p,
.ld-sidebar-note p,
.ld-reading-section p,
.ld-footer p {
    color: var(--ld-muted);
}

.ld-directory-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0 42px;
    align-items: start;
}

.ld-filter-panel {
    position: sticky;
    top: 18px;
    padding: 22px;
    border-radius: var(--ld-radius-lg);
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    box-shadow: var(--ld-shadow);
}

.ld-filter-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.ld-filter-list {
    display: grid;
    gap: 8px;
}

.ld-filter-list a {
    padding: 11px 13px;
    border-radius: 14px;
    background: var(--ld-surface-soft);
    color: var(--ld-muted);
    font-weight: 800;
    font-size: 14px;
}

.ld-filter-list a:hover {
    color: var(--ld-text);
    background: var(--ld-accent-soft);
}

.ld-directory-content {
    display: grid;
    gap: 14px;
}

.ld-directory-entry {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    padding: 26px;
    border-radius: var(--ld-radius-lg);
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.05);
}

.ld-entry-meta {
    color: var(--ld-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ld-entry-meta span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: var(--ld-accent-soft);
    color: var(--ld-accent);
}

.ld-entry-body h2,
.ld-reading-section h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.ld-listing-list {
    display: grid;
    gap: 14px;
}

.ld-listing-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 140px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--ld-radius-lg);
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.05);
}

.ld-listing-image {
    margin: 0;
    height: 120px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ld-accent-soft);
}

.ld-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.ld-listing-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--ld-surface-soft);
    color: var(--ld-muted);
    font-size: 12px;
    font-weight: 800;
}

.ld-listing-main h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.ld-help-block {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 22px;
    margin: 20px 0 42px;
    padding: 28px;
    border-radius: var(--ld-radius-lg);
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    box-shadow: var(--ld-shadow);
}

.ld-faq-list {
    display: grid;
    gap: 10px;
}

.ld-faq-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--ld-surface-soft);
    border: 1px solid var(--ld-border);
}

.ld-faq-item summary {
    cursor: pointer;
    font-weight: 900;
}

.ld-contact-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 26px 0 50px;
    padding: 30px;
    border-radius: var(--ld-radius-lg);
    background: var(--ld-text);
    color: #fff;
}

.ld-contact-strip p {
    color: rgba(255, 255, 255, 0.72);
}

.ld-page-heading {
    padding: 42px 0 28px;
}

.ld-page-directory {
    padding-top: 0;
}

.ld-sidebar-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: var(--ld-accent-soft);
}

.ld-sidebar-note strong {
    display: block;
    margin-bottom: 6px;
}

.ld-listing-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: stretch;
    padding: 42px 0 24px;
}

.ld-key-info-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: var(--ld-radius-lg);
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    box-shadow: var(--ld-shadow);
}

.ld-key-info-panel span {
    display: block;
    color: var(--ld-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.ld-key-info-panel strong {
    display: block;
    margin-top: 4px;
}

.ld-article-cover {
    margin: 0 0 24px;
    border-radius: var(--ld-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ld-border);
    box-shadow: var(--ld-shadow);
}

.ld-article-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.ld-article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.ld-reading-content {
    padding: 30px;
    border-radius: var(--ld-radius-lg);
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    box-shadow: var(--ld-shadow);
}

.ld-reading-section + .ld-reading-section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--ld-border);
}

.ld-related-list {
    display: grid;
    gap: 10px;
}

.ld-related-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
}

.ld-related-row span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--ld-accent-soft);
    color: var(--ld-accent);
    font-weight: 900;
}

.ld-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 42px 0;
    border-top: 1px solid var(--ld-border);
}

.ld-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.ld-footer-links a {
    color: var(--ld-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) {
    .ld-search-panel,
    .ld-directory-layout,
    .ld-help-block,
    .ld-listing-header,
    .ld-article-layout {
        grid-template-columns: 1fr;
    }

    .ld-filter-panel {
        position: static;
    }

    .ld-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ld-listing-card {
        grid-template-columns: 150px 1fr;
    }

    .ld-listing-action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .ld-shell {
        width: min(var(--ld-max), calc(100% - 24px));
    }

    .ld-topbar,
    .ld-footer,
    .ld-contact-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .ld-nav,
    .ld-footer-links {
        justify-content: flex-start;
    }

    .ld-search-panel,
    .ld-help-block,
    .ld-contact-strip,
    .ld-reading-content {
        padding: 22px;
        border-radius: 22px;
    }

    .ld-category-grid,
    .ld-listing-card,
    .ld-directory-entry,
    .ld-related-row {
        grid-template-columns: 1fr;
    }

    .ld-search-copy h1,
    .ld-page-heading h1,
    .ld-listing-header h1 {
        font-size: clamp(34px, 12vw, 52px);
    }
}