.pg-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    padding: 7px 16px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.pg-hero-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}
.pg-hero-breadcrumb a:hover {
    color: #ffe4d7;
}
.pg-hero-breadcrumb-sep {
    color: rgba(186, 128, 92, 0.95);
    font-size: 0.66rem;
    display: inline-flex;
}
.pg-hero-breadcrumb-sep i {
    transition: transform 0.2s ease;
}
html[dir="rtl"] .pg-hero-breadcrumb-sep i {
    transform: scaleX(-1);
}
.pg-legal-chev {
    font-size: 0.75rem;
    opacity: 0.5;
}
html[dir="rtl"] .pg-legal-chev {
    transform: scaleX(-1);
}
.pg-hero-breadcrumb-current {
    color: #ffe4d7;
    font-weight: 700;
}

/* ── Hero ── */
.pg-hero-section {
    position: relative;
    background: linear-gradient(135deg, #112012 0%, #1e331b 60%, #142513 100%);
    color: #ffffff;
    padding: 64px 0 76px;
    overflow: hidden;
}
.pg-hero-glow-l {
    position: absolute;
    width: 500px; height: 500px;
    background: rgba(69, 95, 58, 0.35);
    border-radius: 50%;
    filter: blur(120px);
    top: -140px; left: -100px;
    pointer-events: none;
}
.pg-hero-glow-r {
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(186, 128, 92, 0.18);
    border-radius: 50%;
    filter: blur(110px);
    bottom: -100px; right: 0;
    pointer-events: none;
}
.pg-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}
.pg-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: #ffe4d7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.pg-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}
.pg-hero-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 24px;
}
.pg-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}
.pg-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.pg-hero-meta-item i {
    color: #ffe4d7;
    font-size: 0.9rem;
}

/* ═══ Hero With Image Card (per-page uploaded image — mirrors homepage slider) ═══ */
.pg-hero-section.with-image {
    padding: 88px 0 96px;
}
.pg-hero-inner.with-image {
    max-width: none;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
}
.pg-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pg-hero-visual .slide-img-frame {
    max-width: 100%;
}
.pg-hero-visual .slide-hero-img {
    border-radius: inherit;
}
.pg-hero-visual .slide-img-badge {
    gap: 8px;
}
.pg-hero-visual .slide-img-badge i {
    font-size: 0.85rem;
}

/* ── Main Layout: Content + Sticky Navigation ── */
.pg-main-section {
    padding: 64px 0 96px;
    background-color: var(--color-bg-body);
}
.pg-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: flex-start;
}

/* Article Card Body */
.pg-article-card {
    background: #ffffff;
    border: 1px solid rgba(144, 113, 85, 0.16);
    border-radius: 22px;
    padding: 44px;
    box-shadow: 0 6px 26px rgba(42, 32, 25, 0.04);
}

/* ── Rich Typography & Editorial Styling ── */
.pg-content-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #3b3028;
}
.pg-content-body h2.content-anchor-heading {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(69, 95, 58, 0.18);
    position: relative;
    scroll-margin-top: 110px;
}
.pg-content-body h2.content-anchor-heading::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--color-primary);
}
.pg-content-body h3.content-anchor-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 28px 0 12px;
    scroll-margin-top: 110px;
}
.pg-content-body p {
    margin-bottom: 20px;
}
.pg-content-body ul,
.pg-content-body ol {
    margin: 16px 0 24px;
    padding-left: 24px;
}
.pg-content-body ul li {
    margin-bottom: 10px;
    list-style: disc;
}
.pg-content-body ol li {
    margin-bottom: 10px;
    list-style: decimal;
}
.pg-content-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: #fff8f5;
    border-left: 4px solid var(--color-accent-terracotta);
    border-radius: 12px;
    font-style: normal;
    color: var(--color-dark-brown);
}
.pg-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(42, 32, 25, 0.04);
}
.pg-content-body th,
.pg-content-body td {
    padding: 12px 16px;
    border: 1px solid rgba(144, 113, 85, 0.16);
    font-size: 0.92rem;
}
.pg-content-body th {
    background: #f4eee8;
    font-weight: 700;
    color: var(--color-primary);
    text-align: left;
}

/* ── Sticky Sidebar ── */
.pg-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pg-sidebar-widget {
    background: #ffffff;
    border: 1px solid rgba(144, 113, 85, 0.16);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(42, 32, 25, 0.04);
}
.pg-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(144, 113, 85, 0.14);
    margin-bottom: 18px;
}
.pg-widget-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(69, 95, 58, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.pg-widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin: 0;
}

/* Table of Contents Nav */
.pg-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pg-toc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--color-text-body);
    transition: all 0.2s ease;
    text-decoration: none;
}
.pg-toc-bullet {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(144, 113, 85, 0.4);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.pg-toc-link:hover {
    color: var(--color-primary);
    background: rgba(69, 95, 58, 0.05);
}
.pg-toc-link:hover .pg-toc-bullet {
    background: var(--color-primary);
    transform: scale(1.3);
}
.pg-toc-link.active {
    color: var(--color-primary);
    font-weight: 700;
    background: rgba(69, 95, 58, 0.08);
}
.pg-toc-link.active .pg-toc-bullet {
    background: var(--color-primary);
    width: 8px; height: 8px;
}

/* Other Legal Pages List */
.pg-legal-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pg-legal-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-body);
    transition: all 0.2s ease;
    text-decoration: none;
}
.pg-legal-item a:hover {
    background: rgba(69, 95, 58, 0.06);
    color: var(--color-primary);
}
.pg-legal-item.active a {
    background: var(--color-primary);
    color: #ffffff;
}

/* Contact & Compliance Card */
.pg-compliance-box {
    background: #fdfaf7;
    border: 1px solid rgba(144, 113, 85, 0.18);
    border-radius: 14px;
    padding: 16px;
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.pg-compliance-box strong {
    display: block;
    color: var(--color-text-title);
    margin-bottom: 4px;
}
.btn-pg-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 11px 18px;
    border-radius: 9999px;
    background: rgba(69, 95, 58, 0.08);
    border: 1px solid rgba(69, 95, 58, 0.22);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.86rem;
    transition: all 0.22s ease;
    text-decoration: none;
}
.btn-pg-contact:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .pg-layout-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .pg-hero-inner.with-image {
        gap: 28px;
    }
    .pg-sidebar {
        position: static;
    }
    .pg-article-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .pg-hero-section { padding: 48px 0 56px; }
    .pg-hero-section.with-image { padding: 56px 0 64px; }
    .pg-hero-inner.with-image {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .pg-hero-visual .slide-img-frame {
        border-radius: var(--radius-md);
    }
    .pg-article-card { padding: 22px 18px; }
    .pg-content-body { font-size: 0.98rem; }
    .pg-content-body h2.content-anchor-heading { font-size: 1.45rem; }
}

/* ════════════════════════════════════════════════════════════════
   ARABIC RTL — reversed values collected here for the ar locale
   ============================================================== */
html:lang(ar) {

    /* master.css sets body { text-align: left } — force right alignment
       on every text container so Arabic reads & hugs the right edge */
    .pg-hero-content,
    .pg-hero-pill,
    .pg-hero-title,
    .pg-hero-lead,
    .pg-sidebar,
    .pg-widget-header,
    .pg-widget-title,
    .pg-toc-link,
    .pg-legal-item a,
    .pg-compliance-box,
    .pg-content-body,
    .pg-content-body p,
    .pg-content-body li,
    .pg-content-body h2.content-anchor-heading,
    .pg-content-body h3.content-anchor-heading {
        text-align: right;
    }

    .pg-hero-meta {
        text-align: right;
    }

    /* Legal-pages chevron points in the reading direction */
    .pg-legal-item a .fa-chevron-right {
        transform: scaleX(-1);
    }

    /* Hero image badge → reading-side corner */
    .pg-hero-visual .slide-img-badge {
        left: auto;
        right: 18px;
    }

    /* Section heading underline accent → right edge */
    .pg-content-body h2.content-anchor-heading::before {
        left: auto;
        right: 0;
    }

    /* Lists indent from the right */
    .pg-content-body ul,
    .pg-content-body ol {
        padding-left: 0;
        padding-right: 24px;
    }

    /* Blockquote border on the right */
    .pg-content-body blockquote {
        border-left: none;
        border-right: 4px solid var(--color-accent-terracotta);
    }

    /* Table header alignment right */
    .pg-content-body th {
        text-align: right;
    }
}