/* ==========================================================================
   Global System Typography (Multilingual & Zero Network Overhead)
   ========================================================================== */
body {
    color: #16202a;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* العربية والاتجاه RTL */
html[dir="rtl"] body,
html[lang="ar"] body {
    font-family: "Segoe UI", "Dubai", system-ui, -apple-system, "Geeza Pro", sans-serif;
    line-height: 1.75;
}

/* الأردو */
html[lang="ur"] body {
    font-family: "Urdu Typesetting", "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Geeza Pro", "Dubai", Tahoma, sans-serif;
    line-height: 2;
}

/* الفارسي والكردي */
html[lang="fa"] body,
html[lang="ku"] body {
    font-family: "Segoe UI", "Tahoma", "Geeza Pro", Arial, sans-serif;
    line-height: 1.85;
}

/* اللغات LTR */
html[dir="ltr"] body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: #0f6b63;
}

a:hover {
    color: #0b4f49;
}

.front-detail-page {
    background: #f6f8fb;
}

.front-breadcrumb {
    font-size: 0.9rem;
}

.front-breadcrumb .breadcrumb {
    gap: 0.15rem;
}

.front-breadcrumb a {
    text-decoration: none;
}

.front-detail,
.front-panel,
.front-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.front-detail {
    overflow: hidden;
}

.front-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
}

.front-detail__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #0f6b63;
    font-size: 0.85rem;
    font-weight: 700;
}

.front-detail__title {
    max-width: 52rem;
    margin: 0;
    font-size: clamp(1.75rem, 2.5vw, 2.75rem);
    line-height: 1.25;
}

.front-detail__meta {
    min-width: 7.5rem;
    padding: 0.85rem 1rem;
    text-align: center;
    background: #eef7f5;
    border: 1px solid #d4ebe6;
    border-radius: 8px;
}

.front-detail__meta span,
.front-card__meta {
    color: #64748b;
    font-size: 0.85rem;
}

.front-detail__meta strong {
    display: block;
    color: #0f6b63;
    font-size: 1.35rem;
}

.front-detail__media {
    margin: 0;
    background: #dfe7ef;
}

.front-detail__media img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

.front-featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.front-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.85;
}

.front-content--lead {
    padding: 0 2rem 2rem;
    color: #475569;
    font-size: 1.15rem;
}

.front-panel {
    padding: 1.5rem;
}

.front-detail .front-panel {
    margin: 2rem;
}

.front-section-title {
    margin: 0 0 1rem;
    color: #16202a;
    font-size: 1.25rem;
    font-weight: 700;
}

.front-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.front-tags span,
.front-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    color: #0f6b63;
    background: #eef7f5;
    border: 1px solid #d4ebe6;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.front-options {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.front-options li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.front-metadata {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.front-metadata div {
    display: grid;
    grid-template-columns: minmax(8rem, 14rem) 1fr;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.front-metadata dt {
    color: #0f6b63;
    font-weight: 700;
}

.front-metadata dd {
    margin: 0;
    color: #334155;
    overflow-wrap: anywhere;
}

.front-related {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.front-card {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
}

.front-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #dfe7ef;
}

.front-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.front-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.45;
}

.front-card h3 a {
    color: #16202a;
    text-decoration: none;
}

.front-card p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.front-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
}

.subcategories-tree a {
    color: #16202a;
}

@media (max-width: 767.98px) {
    .front-detail__header {
        flex-direction: column;
        padding: 1.25rem;
    }

    .front-detail__meta {
        width: 100%;
        text-align: start;
    }

    .front-detail__meta strong {
        display: inline;
        margin-inline-start: 0.35rem;
    }

    .front-content--lead {
        padding: 0 1.25rem 1.25rem;
        font-size: 1.05rem;
    }

    .front-detail .front-panel {
        margin: 1.25rem;
    }

    .front-options li,
    .front-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .front-metadata div {
        grid-template-columns: 1fr;
    }
}

/* Subheader */
.front-subheader {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    font-size: 0.85rem;
}

.front-subheader .nav-link {
    color: #475569;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    transition: color 0.15s ease-in-out;
}

.front-subheader .nav-link:hover,
.front-subheader .nav-link:focus {
    color: #0f6b63;
}

.front-subheader .dropdown-menu {
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
}

/* ==========================================================================
   Language Dropdown Menu (Scrollable for Desktop & Mobile)
   ========================================================================== */
.dropdown-menu.language-dropdown-menu {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.dropdown-menu.language-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu.language-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu.language-dropdown-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.dropdown-menu.language-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
    .dropdown-menu.language-dropdown-menu {
        max-height: 220px;
    }
}



