/*
Theme Name: elbadil
Theme URI: https://badil.arb4host.net/
Author: Arb4Host Network
Author URI: https://www.arb4host.net/
Description: Premium Multi-purpose WordPress Theme
Version: 57
Text Domain: badil
*/

/* ============================================================
   BADIL THEME â€” MODERN REDESIGN
   Design System: CSS Custom Properties + Bootstrap 5 RTL
   Typography: Tajawal / Cairo (Arabic-first)
   Breakpoints: sm-576 | md-768 | lg-992 | xl-1200 | xxl-1400
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS â€” Root Variables
   ============================================================ */
:root {
    /* --- Spacing & Layout --- */
    --glob-gap:            48px;
    --glob-border-radius:  10px;
    --glob-border-radius-sm: 6px;
    --glob-border-radius-lg: 16px;
    --glob-border-radius-pill: 100px;

    /* --- Post Sizing --- */
    --post-width:          300px;
    --post-row-width:      300px;
    --post-column-width:   250px;
    --post-gap:            20px;
    --content-width:       820px;

    /* --- Typography --- */
    --site-font:           "Tajawal", "Cairo", system-ui, sans-serif;
    --font-size-base:      1rem;
    --font-size-sm:        0.875rem;
    --font-size-lg:        1.125rem;
    --font-weight-normal:  400;
    --font-weight-medium:  500;
    --font-weight-bold:    700;
    --line-height-base:    1.65;
    --line-height-heading: 1.4;

    /* --- Transitions --- */
    --transition-fast:     0.15s ease;
    --transition-base:     0.25s ease;
    --transition-slow:     0.4s ease;

    /* --- Z-index Scale --- */
    --z-header:    90;
    --z-overlay:   100;
    --z-side-menu: 110;
    --z-search:    120;
    --z-sticky-ad: 1000;
}

/* --- Body-level CSS Variables (overridable by settings.php) --- */
body {
    /* Layout */
    --glob-gap:            48px;
    --glob-border-radius:  10px;
    --post-width:          300px;
    --post-row-width:      300px;
    --post-column-width:   250px;
    --post-gap:            20px;
    --content-width:       820px;

    /* Color primitives (overridden by admin settings) */
    --body-color:          #1e293b;
    --body-bg-color:       #f1f5f9;
    --dark-bg-color:       #0f172a;

    /* Text-shadow for overlays */
    --overlay-text-shadow: 0 1px 4px rgba(0,0,0,0.55);

    /* Shadow */
    --glob-shadow-color:   rgba(15,23,42,0.10);
    --glob-shadow-sm:      0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.06);
    --glob-shadow:         0 4px 16px rgba(15,23,42,0.10), 0 1px 4px rgba(15,23,42,0.06);
    --glob-shadow-lg:      0 10px 40px rgba(15,23,42,0.13), 0 2px 8px rgba(15,23,42,0.07);
    --glob-shadow-inner:   inset 0 2px 4px rgba(15,23,42,0.07);

    /* Links */
    --link-color:          unset;
    --link-color-hover:    var(--site-color);

    /* Meta */
    --meta-color:          #64748b;
    --meta-color-hover:    unset;

    /* Light-theme surfaces */
    --light-bg:            #ffffff;
    --light-bg-alt:        var(--body-bg-color);
    --light-color:         var(--body-color);
    --light-color-hover:   var(--site-color);
    --light-border-color:  rgba(15,23,42,0.07);

    /* Dark-theme surfaces */
    --dark-bg:             var(--dark-bg-color);
    --dark-bg-alt:         rgba(0,0,0,0.35);
    --dark-color:          #e2e8f0;
    --dark-color-hover:    #f8fafc;
    --dark-border-color:   rgba(255,255,255,0.07);

    /* Border */
    --border-size:         3px;
}


/* ============================================================
   2. THEME SYSTEM â€” Light / Dark
   ============================================================ */
[data-theme^="light"] {
    --bg-color:      var(--light-bg);
    --bg-color-alt:  var(--light-bg-alt);
    --border-color:  var(--light-border-color);
    --link-color:    var(--light-color);
    --link-color-hover: var(--light-color-hover);
    --bg-hover:      var(--bg-color-alt);
    background-color: var(--bg-color);
    color: var(--light-color);
}

[data-theme^="dark"] {
    --bg-color:      var(--dark-bg);
    --bg-color-alt:  var(--dark-bg-alt);
    --border-color:  var(--dark-border-color);
    --link-color:    var(--dark-color);
    --link-color-hover: var(--dark-color-hover);
    --bg-hover:      rgba(255,255,255,0.06);
    background-color: var(--bg-color);
    color: var(--dark-color);
}

.meta-color {
    color: var(--meta-color);
    --link-color: var(--meta-color);
    --link-color-hover: var(--meta-color-hover);
}

[data-theme] + [data-theme] {
    border-top: 1px solid transparent;
}
[data-theme^="light"] + [data-theme^="light"],
[data-theme^="dark"]  + [data-theme^="dark"] {
    border-color: var(--border-color);
}


/* ============================================================
   3. CONTENT LAYOUT ENGINE
   ============================================================ */
.content-layout-row-inner,
.content-layout-cell {
    max-width: 100%;
}
.content-layout-cell {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.content-layout-cell-empty:not(:nth-child(3)) {
    display: none;
}


/* ============================================================
   4. BOOTSTRAP OVERRIDES â€” Gutters & Container
   ============================================================ */
body,
.row,
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    --bs-gutter-x: calc(var(--glob-gap) * 1) !important;
}

@media (min-width: 576px) {
    body,
    .row,
    .container,
    .container-fluid,
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm {
        --bs-gutter-x: calc(var(--glob-gap) * 0.5) !important;
    }
}

@media (min-width: 1400px) {
    .container { max-width: 1180px; }
}

@media (max-width: 575px) {
    body.design-boxed .glob-container {
        margin-right: var(--offset-x-sm, calc(var(--glob-gap) * -0.5));
        margin-left:  var(--offset-x-sm, calc(var(--glob-gap) * -0.5));
        border-radius: var(--glob-border-radius-sm);
    }
}

@media (min-width: 576px) {
    body.design-boxed .glob-container {
        border-radius: var(--glob-border-radius);
    }
}


/* ============================================================
   5. BASE STYLES â€” Body, Typography, Global
   ============================================================ */
body {
    overflow-y: scroll;
    background-color: var(--body-bg-color);
    color: var(--body-color);
    overflow-wrap: break-word;
    font-family: var(--site-font);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, h1,.h1, h2,.h2, h3,.h3, h4,.h4, h5,.h5, h6,.h6 {
    line-height: var(--line-height-heading);
}

h1,.h1 {
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem) !important;
    letter-spacing: -0.02em;
}

h2,.h2 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.875rem) !important; }
h3,.h3 { font-size: clamp(1.1rem, 1.5vw + 0.4rem, 1.5rem) !important; }
h4,.h4 { font-size: 1.125rem !important; }

.dir-rtl { direction: rtl; }
.dir-ltr { direction: ltr; }

.rtl [type=number] { direction: rtl; }
.table-fixed { table-layout: fixed; }


/* ============================================================
   6. FORM ELEMENTS
   ============================================================ */
input[type="text"],
textarea { width: 100%; }

button, input, optgroup, select, textarea, table { max-width: 100%; }

.form-control,
.form-select {
    border-radius: var(--glob-border-radius-sm);
    border-color: var(--light-border-color);
    background-color: var(--body-bg-color);
    box-shadow: var(--glob-shadow-inner);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-size: var(--font-size-base);
    padding: 0.55rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--body-bg-color);
    border-color: rgba(var(--site-color-rgb), 0.4);
    box-shadow: var(--glob-shadow-inner), 0 0 0 3px rgba(var(--site-color-rgb), 0.15);
    outline: none;
}

.form-check label,
.form-check input { cursor: pointer; }

.form-check-input:focus {
    border-color: rgba(var(--site-color-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--site-color-rgb), 0.2);
}
.form-check-input:checked {
    background-color: rgba(var(--site-color-rgb), 1);
    border-color: rgba(var(--site-color-rgb), 1);
}


/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
    --bs-btn-font-size: unset !important;
    border-radius: var(--glob-border-radius-sm);
    font-weight: var(--font-weight-medium);
    padding: 0.55em 1.3em;
    transition: all var(--transition-base);
    letter-spacing: 0.01em;
}

.btn-primary {
    --bs-btn-bg:             var(--site-color);
    --bs-btn-border-color:   var(--site-color-darker-1);
    --bs-btn-hover-bg:       var(--site-color-darker-2);
    --bs-btn-hover-border-color: rgba(0,0,0,0.15);
    --bs-btn-active-bg:      var(--site-color-darker-3);
    --bs-btn-active-border-color: rgba(0,0,0,0.3);
    --bs-btn-disabled-bg:    var(--site-color-darker-1);
    --bs-btn-disabled-border-color: var(--site-color-darker-1);
    box-shadow: 0 2px 8px rgba(var(--site-color-rgb), 0.35);
}
.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(var(--site-color-rgb), 0.45);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }


/* ============================================================
   8. TABLES
   ============================================================ */
.table { --bs-table-striped-bg: var(--body-bg-color); }
.table-primary {
    --bs-table-color:        #ffffff;
    --bs-table-bg:           var(--site-color);
    --bs-table-border-color: rgba(0,0,0,0.1);
}
.text-primary { color: var(--site-color) !important; }
.progress-bar { --bs-progress-bar-bg: var(--site-color) !important; }

.table-responsive {
    margin-right: calc(var(--glob-gap) * -0.5);
    margin-left:  calc(var(--glob-gap) * -0.5);
    padding-right: calc(var(--glob-gap) * 0.5);
    padding-left:  calc(var(--glob-gap) * 0.5);
}
.floatThead-container { background-color: #ffffff; }
.floatThead-container.floated {
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.4);
}


/* ============================================================
   9. UTILITY CLASSES
   ============================================================ */
.site-color { color: var(--site-color); }

/* Spin animation */
.bi-spin::before {
    animation: spinAnim 0.9s linear infinite;
}
@keyframes spinAnim {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Highlight flash */
@keyframes highlight {
    from { background-color: rgba(var(--site-color-rgb), 0.12); }
    to   { background-color: transparent; }
}

/* Ripple click */
@keyframes rippleIn {
    0%   { transform: scale(0); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0; }
}
.circleIn a,
a.circleIn {
    position: relative;
    overflow: hidden;
}
.circleIn a::before,
a.circleIn::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 140px; height: 140px;
    margin-top: -70px; margin-left: -70px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    display: none;
}
.circleIn a:hover::before,
a.circleIn:hover::before {
    display: block;
    animation: rippleIn 0.4s ease forwards;
}


/* ============================================================
   10. TOC (Table of Contents) Plugins
   ============================================================ */
#ez-toc-container { overflow: hidden; }

#toc_container a,
#ez-toc-container a {
    text-decoration: none !important;
}
#toc_container a:hover,
#ez-toc-container a:hover {
    text-decoration: underline !important;
}

.rtl #toc_container ul ul {
    margin-right: 1.5em;
    margin-left: unset;
}

#toc_container {
    border-radius: var(--glob-border-radius);
    border: 1px solid var(--light-border-color);
    width: 100% !important;
    background: var(--light-bg);
    overflow: hidden;
}
#toc_container .toc_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7em 1.2em;
    border-bottom: 2px solid var(--site-color);
    background: linear-gradient(135deg, rgba(var(--site-color-rgb),0.06), transparent);
    margin-bottom: 0;
    font-size: 1.25em;
}
#toc_container .toc_toggle { font-size: 0.85rem; }
#toc_container .toc_list {
    margin-bottom: 0;
    padding: 1em 1.2em;
    background-color: #fafafa;
    font-size: 0.93em;
    line-height: 1.8;
}

/* AdSense / Google auto-placed */
#site-header .google-auto-placed,
#site-footer .google-auto-placed,
.posts-loop-container .google-auto-placed {
    display: none !important;
}


/* ============================================================
   11. CONTENT TIMER
   ============================================================ */
.time-now {
    display: inline-block;
    text-align: center;
}
.event {
    color: var(--site-color);
    text-decoration: underline dotted !important;
    text-underline-position: under;
}
.timer {
    padding: 1.2em 1.5em;
    background: linear-gradient(135deg, var(--body-bg-color), rgba(var(--site-color-rgb),0.04));
    border-radius: var(--glob-border-radius);
    box-shadow: var(--glob-shadow-sm);
}
.timer .title { margin-bottom: 0.6em; font-weight: var(--font-weight-medium); }
.rtl .timer { border-right: 3px solid var(--site-color); }
.ltr .timer  { border-left:  3px solid var(--site-color); }
.timer .timer-counter {
    display: flex;
    gap: 1.5em;
}
.timer .timer-counter .value {
    color: var(--site-color);
    font-size: 1.4em;
    font-weight: var(--font-weight-bold);
}

body .infinite-scroll-request,
body .infinite-scroll-last { display: none; }


/* ============================================================
   12. SEARCH FORM
   ============================================================ */
.search-form {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
}
.search-field { min-width: 200px; }

.search-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position-y: center;
    background-size: auto 70%;
    background-origin: content-box;
}
.rtl .search-field { background-position-x: left; }
.ltr .search-field { background-position-x: right; }

.search-field:not(:placeholder-shown):focus,
.search-form .search-field:not(:placeholder-shown):hover {
    background-image: none;
}
.search-form-inner {
    display: flex;
    gap: 0.4em;
}
.search-form > label { display: block; }
.search-form .search-submit { display: none; }


/* ============================================================
   13. SOCIAL LINKS
   ============================================================ */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75em;
}
.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -0.35em;
    padding: 0.35em;
    border-radius: var(--glob-border-radius-sm);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.social-links a:hover { opacity: 0.8; }
[data-theme^="light"] .social-links a { color: var(--color) !important; }
.social-links a > * {
    font-size: 1.55em;
    line-height: 1;
    transition: transform var(--transition-fast);
}
.social-links a:hover > * { transform: scale(1.15) translateY(-1px); }
.social-links a span { display: none; }


/* ============================================================
   14. OVERLAY SYSTEM
   ============================================================ */
#site-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15,23,42,0.6);
    backdrop-filter: blur(2px);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}
body.site-overlay-on { overflow: hidden; }
body.site-overlay-on #site-overlay {
    visibility: visible;
    opacity: 1;
}
.overlay-close {
    display: inline-block;
    margin-right: auto;
    margin-left: auto;
    font-size: 2.2em;
    line-height: 1;
}
.open-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    margin: -0.5em !important;
    padding: 0.5em !important;
    line-height: 1;
    border-radius: 50%;
    font-size: 1.5em;
    transition: background-color var(--transition-fast);
}
.open-btn:hover { background-color: var(--bg-hover); }


/* ============================================================
   15. SEARCH OVERLAY
   ============================================================ */
#search-overlay {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    right: 0; left: 0;
    padding: 2em 1.5em;
    background-color: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    transition: transform var(--transition-base), opacity var(--transition-base);
    transform: translateY(-110%);
    text-align: center;
    border-bottom: var(--border-size) solid var(--site-color);
    box-shadow: 0 8px 32px rgba(15,23,42,0.12);
}
body.search-overlay-opened { overflow: hidden; }
body.search-overlay-opened #search-overlay { transform: translateY(0); }
.search-overlay-close { margin-bottom: 1.2em; }


/* ============================================================
   16. SIDE MENU
   ============================================================ */
#side-menu {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    bottom: 0;
    width: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    transition: transform var(--transition-base);
    z-index: var(--z-side-menu);
    background: var(--bg-color, #fff);
    box-shadow: var(--glob-shadow-lg);
}
#side-menu .content-layout { height: 100%; }
#side-menu .content-layout-row { min-height: 100%; }
#side-menu .content-layout-row-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75em;
    --row-padding: 1.2em;
    padding: var(--row-padding);
    padding-bottom: 3em;
}
body.side-menu-opened #side-menu { transform: translateX(0); }

.rtl #side-menu {
    transform: translateX(110%);
    right: 0;
    border-left: var(--border-size) solid var(--site-color);
}
.ltr #side-menu {
    transform: translateX(-110%);
    left: 0;
    border-right: var(--border-size) solid var(--site-color);
}


/* ============================================================
   17. NEWS TICKER
   ============================================================ */
#news-ticker {
    position: fixed;
    right: 0; left: 0; bottom: 0;
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    z-index: 100;
    color: #f1f5f9;
    --link-color: #f1f5f9;
    --link-color-hover: #ffffff;
    transform: translateY(120%);
    transition: transform var(--transition-base);
    border-top: 2px solid rgba(0,0,0,0.3);
}
#news-ticker.active { transform: translateY(0); }
.news-ticker-inner {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.55em 0;
    font-size: clamp(0.9em, 1.5vw, 1.1em);
}
.news-ticker-label {
    color: #fde68a;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}
.news-ticker-content { flex-grow: 1; }
.news-ticker-content a { display: inline-block; }
.news-ticker-close {
    padding: 0.2em 0.45em;
    line-height: 1;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    cursor: pointer;
}
.news-ticker-close:hover { opacity: 1; }


/* ============================================================
   18. SITE STRUCTURE â€” Z-Index & Layout
   ============================================================ */
#site { position: relative; }

#site-header {
    z-index: var(--z-header);
    position: relative;
}
#site-main {
    position: relative;
    min-height: 650px;
    overflow: hidden;
}
#site-footer {
    z-index: 60;
    position: relative;
}
#site-overlay  { z-index: var(--z-overlay); }
#side-menu     { z-index: var(--z-side-menu); }
#search-overlay { z-index: var(--z-search); }
#wpadminbar    { position: fixed !important; }


/* ============================================================
   19. SITE â€” Global Element Styles
   ============================================================ */
#site { font-family: var(--site-font); }

#site img {
    max-width: 100%;
    height: auto;
}
#site iframe,
#site .wp-video,
#site video {
    max-width: 100%;
}
#site a:not(.btn) {
    color: var(--link-color);
    text-decoration: none;
    word-break: break-word;
    transition: color var(--transition-fast);
}
#site a:not(.btn):hover { color: var(--link-color-hover); }


/* ============================================================
   20. HEADER & FOOTER â€” Shadow + Top/Bottom Lines
   ============================================================ */
#site-header,
#site-footer {
    --border-size: 3px;
    box-shadow: var(--glob-shadow);
}

/* Header â€” sticky with slide-in animation */
#site-header {
    border-top: var(--border-size) solid var(--site-color);
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    right: 0; left: 0;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    transform: translateY(0);
    background: var(--bg-color, #fff);
}
body.scroll-down #site-header { transform: translateY(-200%); }

/* Footer */
#site-footer {
    border-bottom: var(--border-size) solid var(--site-color);
    font-size: 0.92em;
}


/* ============================================================
   21. HEADER & FOOTER â€” Inner Row Styles
   ============================================================ */
#site-header .content-layout-row-inner,
#site-footer .content-layout-row-inner {
    display: flex;
    align-items: center;
    gap: 1em;
}
#site-header .content-layout-row-inner {
    --row-padding: 0.85rem;
    padding-top:    var(--row-padding);
    padding-bottom: var(--row-padding);
}
#site-footer .content-layout-row-inner {
    --row-padding: 1.5rem;
    padding-top:    var(--row-padding);
    padding-bottom: var(--row-padding);
}

/* Middle cell grows */
#site-header .content-layout-cell:nth-child(3),
#site-footer .content-layout-cell:nth-child(3) {
    flex-grow: 100;
}

/* RTL/LTR last cells */
.rtl #site-header .content-layout-cell:nth-child(4) > *,
.rtl #site-footer .content-layout-cell:nth-child(4) > *,
.rtl #site-header .content-layout-cell:nth-child(5) > *,
.rtl #site-footer .content-layout-cell:nth-child(5) > * {
    margin-right: auto; margin-left: 0;
}
.ltr #site-header .content-layout-cell:nth-child(4) > *,
.ltr #site-footer .content-layout-cell:nth-child(4) > *,
.ltr #site-header .content-layout-cell:nth-child(5) > *,
.ltr #site-footer .content-layout-cell:nth-child(5) > * {
    margin-left: auto; margin-right: 0;
}


/* ============================================================
   22. COPYRIGHTS & LOGO
   ============================================================ */
.site-copyrights p:last-of-type { margin-bottom: 0; }
.theme-copyrights {
    padding: 1em;
    background-color: #ffffff;
    font-size: var(--font-size-sm);
}
.site-copyrights,
.theme-copyrights { text-align: center; }

.site-logo {
    margin-bottom: 0;
    text-align: center;
}
.site-logo a { display: inline-block; }
.site-logo img {
    min-width: 110px;
    max-width: 170px !important;
    height: auto;
    transition: opacity var(--transition-fast);
}
.site-logo a:hover img { opacity: 0.88; }
.site-logo .title {
    margin-bottom: 0;
    font-weight: var(--font-weight-bold);
    display: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
[data-theme="light"] .site-logo .title { color: var(--site-color); }


/* ============================================================
   23. NAVIGATION MENU â€” Base
   ============================================================ */
.nav-menu {
    --link-padding-y: 0.55em;
    --link-padding-x: 0.9em;
    --sub-menu-offset: 4px;
    --sub-menu-arrow-visibility: hidden;
}
.nav-menu ul {
    position: relative;
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-menu li { position: relative; }
.nav-menu a {
    position: relative;
    display: flex;
    padding: var(--link-padding-y) var(--link-padding-x);
    align-items: center;
    gap: 0.35em 0.7em;
    border-radius: var(--glob-border-radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}
.nav-menu li:hover > a {
    color: var(--link-color-hover) !important;
    box-shadow: var(--highlight-shadow);
}
.nav-menu i {
    line-height: 1;
    font-size: 1.4em;
}
.nav-menu .menu-item-arrow { font-size: 0.75em; }
.nav-menu .title {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3em;
}

/* Active states */
.nav-menu li.current-menu-item,
.nav-menu li.current-menu-parent,
.nav-menu li.current-menu-ancestor,
.nav-menu li.current-post-parent,
.nav-menu li.current-post-ancestor,
.nav-menu li.current-page-parent,
.nav-menu li.current-page-ancestor,
.nav-menu li.current-post-type-archive {
    --color-highlight: var(--link-color-hover);
    --bg-highlight:    var(--bg-hover);
    --highlight-size:  100%;
    --order: -1;
}
.nav-menu li.current-menu-item > a,
.nav-menu li.current-menu-parent > a,
.nav-menu li.current-menu-ancestor > a,
.nav-menu li.current-post-parent > a,
.nav-menu li.current-post-ancestor > a,
.nav-menu li.current-page-parent > a,
.nav-menu li.current-page-ancestor > a,
.nav-menu li.current-post-type-archive > a {
    --link-color: var(--link-color-hover) !important;
    box-shadow: var(--highlight-shadow);
}


/* ============================================================
   24. NAV MENU â€” Widget (vertical list) variant
   ============================================================ */
.widget-nav_menu .nav-menu .menu-item-arrow { display: none; }
.widget-nav_menu .nav-menu ul { flex-direction: column; align-items: unset; }
.widget-nav_menu .nav-menu a { white-space: unset; }
.widget-nav_menu.hor .nav-menu ul { flex-direction: row; }

.nav-menu-outer .menu-header { text-align: center; }
.nav-menu-outer .menu-title {
    margin-bottom: 1em;
    padding: 0.85em 2.5em;
    border-top: 2px solid var(--site-color);
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--glob-border-radius-sm);
    font-weight: var(--font-weight-medium);
}
.nav-menu-outer .nav-menu ul { flex-wrap: wrap; }
.nav-menu-outer .nav-menu a { display: flex !important; }


/* ============================================================
   25. NAV MENU â€” Header/Footer dropdown sub-menus
   ============================================================ */
#site-header .nav-menu ul ul,
#site-footer .nav-menu ul ul {
    flex-direction: column;
    position: absolute;
    padding: 0.75em;
    background: #ffffff;
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base);
    z-index: 10;
    border-radius: var(--glob-border-radius);
    border: 1px solid var(--light-border-color);
}
#site-header .nav-menu ul ul {
    top: calc(100% + var(--sub-menu-offset));
    transform: translateY(8px);
    box-shadow: var(--glob-shadow-lg);
}
#site-footer .nav-menu ul ul {
    bottom: calc(100% + var(--sub-menu-offset));
    transform: translateY(-8px);
    box-shadow: var(--glob-shadow-lg);
}
#site-header .nav-menu ul ul ul,
#site-footer .nav-menu ul ul ul {
    top: -0.75em;
}
#site-footer .nav-menu ul ul ul {
    bottom: unset; top: -0.75em;
}
#site-header .nav-menu li:hover > ul,
#site-footer .nav-menu li:hover > ul {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Sub-menu items */
#site-header .nav-menu li li:hover > a,
#site-footer .nav-menu li li:hover > a {
    background-color: rgba(var(--site-color-rgb), 0.06);
    border-radius: var(--glob-border-radius-sm);
}


/* ============================================================
   26. NAV MENU â€” Desktop header/footer specific
   ============================================================ */
[data-layout="header_layout_desktop"] .nav-menu > ul,
[data-layout="footer_layout_desktop"]  .nav-menu > ul {
    flex-wrap: wrap;
    align-items: flex-end;
}
[data-layout="header_layout_desktop"] .content-layout-cell:nth-child(3) .nav-menu > ul,
[data-layout="footer_layout_desktop"]  .content-layout-cell:nth-child(3) .nav-menu > ul {
    justify-content: center;
}
[data-layout="header_layout_desktop"] .content-layout-cell-empty + .content-layout-cell-empty + .content-layout-cell .nav-menu > ul > li {
    flex-grow: 1;
}

/* Underline indicator on top-level items */
#site-header .nav-menu > ul > li > a::after,
#site-footer .nav-menu > ul > li > a::after {
    content: "";
    position: absolute;
    right: 50%; bottom: 0;
    width: calc(var(--highlight-size, 0px) - 2 * var(--link-padding-x));
    height: 2px;
    transform: translateX(50%);
    transition: width var(--transition-base);
    background: var(--site-color);
    border-radius: 2px;
}
#site-header .nav-menu > ul > li > a:hover::after,
#site-footer .nav-menu > ul > li > a:hover::after {
    width: 100%;
}

/* Pseudo-bridge between item and dropdown */
[data-layout="header_layout_desktop"] .nav-menu > ul > li:hover::before,
[data-layout="footer_layout_desktop"]  .nav-menu > ul > li:hover::before {
    content: "";
    position: absolute;
    right: 0; left: 0;
    height: var(--sub-menu-offset);
    background-color: transparent;
}
[data-layout="header_layout_desktop"] .nav-menu > ul > li:hover::before { top: 100%; }
[data-layout="footer_layout_desktop"]  .nav-menu > ul > li:hover::before { bottom: 100%; }

/* Arrow indicators */
[data-layout="header_layout_desktop"] .nav-menu > ul > li > ul::before,
[data-layout="footer_layout_desktop"]  .nav-menu > ul > li > ul::before {
    content: "";
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    border: 8px solid transparent;
    visibility: var(--sub-menu-arrow-visibility);
}
[data-layout="header_layout_desktop"] .nav-menu > ul > li > ul::before {
    top: -16px;
    border-bottom-color: #ffffff;
}
[data-layout="footer_layout_desktop"]  .nav-menu > ul > li > ul::before {
    bottom: -16px;
    border-top-color: #ffffff;
}

/* Wide mega sub-menus */
[data-layout="header_layout_desktop"] .nav-menu > ul > li.lg > ul,
[data-layout="footer_layout_desktop"]  .nav-menu > ul > li.lg > ul {
    width: 420px !important;
    flex-direction: row !important;
    flex-wrap: wrap;
}
[data-layout="header_layout_desktop"] .nav-menu > ul > li.lg > ul > li,
[data-layout="footer_layout_desktop"]  .nav-menu > ul > li.lg > ul > li {
    flex-basis: 50%;
}
[data-layout="header_layout_desktop"] .nav-menu > ul > li.xl > ul,
[data-layout="footer_layout_desktop"]  .nav-menu > ul > li.xl > ul {
    width: 620px !important;
    flex-direction: row !important;
    flex-wrap: wrap;
}
[data-layout="header_layout_desktop"] .nav-menu > ul > li.xl > ul > li,
[data-layout="footer_layout_desktop"]  .nav-menu > ul > li.xl > ul > li {
    flex-basis: 33.3333%;
}

/* Top-level item direction */
#site-header .nav-menu > ul > li > a,
#site-footer .nav-menu > ul > li > a {
    flex-direction: column;
    justify-content: flex-end;
    font-weight: var(--font-weight-medium);
    font-size: 0.97em;
}

/* Sub-menu RTL/LTR positioning */
.rtl #site-header .nav-menu ul ul { right: -0.75em; }
.ltr #site-header .nav-menu ul ul { left:  -0.75em; }
.rtl #site-footer .nav-menu ul ul { right: -0.75em; }
.ltr #site-footer .nav-menu ul ul { left:  -0.75em; }
.rtl #site-header .nav-menu ul ul ul { right: 100%; }
.ltr #site-header .nav-menu ul ul ul { left:  100%; }
.rtl #site-footer .nav-menu ul ul ul { right: 100%; }
.ltr #site-footer .nav-menu ul ul ul { left:  100%; }
.rtl #site-header .nav-menu li li .menu-item-arrow,
.rtl #site-footer .nav-menu li li .menu-item-arrow { transform: rotate(90deg); }
.ltr #site-header .nav-menu li li .menu-item-arrow,
.ltr #site-footer .nav-menu li li .menu-item-arrow { transform: rotate(-90deg); }


/* ============================================================
   27. NAV MENU â€” Mobile footer variant
   ============================================================ */
[data-layout="footer_layout_mobile"]  .nav-menu > ul {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
[data-layout="header_layout_mobile"]  .nav-menu ul ul,
[data-layout="footer_layout_mobile"]  .nav-menu ul ul { display: none; }
[data-layout="header_layout_mobile"]  .nav-menu .menu-item-arrow,
[data-layout="footer_layout_mobile"]  .menu-item-arrow { display: none; }


/* ============================================================
   28. NAV MENU â€” Mobile header (horizontal scroll)
   ============================================================ */
[data-layout="header_layout_mobile"] .nav-menu {
    margin-top:    calc(var(--row-padding) * -1);
    margin-bottom: calc(var(--row-padding) * -1);
    --link-padding-y: calc(var(--row-padding) * 1);
    --link-padding-x: 0;
}
[data-layout="header_layout_mobile"] .nav-menu ul {
    margin-right: calc(var(--glob-gap) * -0.5);
    margin-left:  calc(var(--glob-gap) * -0.5);
    padding-right: calc(var(--glob-gap) * 0.5);
    padding-left:  calc(var(--glob-gap) * 0.5);
    align-items: flex-end;
    overflow-y: hidden;
    overflow-x: scroll;
    scrollbar-width: none;
    gap: 0.3em;
}
[data-layout="header_layout_mobile"] .nav-menu ul::-webkit-scrollbar { display: none; }
[data-layout="header_layout_mobile"] .nav-menu li {
    order: var(--order);
    flex-grow: 1;
}
[data-layout="header_layout_mobile"] .nav-menu li.menu-item-home { order: -2; }
[data-layout="header_layout_mobile"] .nav-menu a {
    flex-direction: row !important;
    flex-grow: 1;
    white-space: nowrap;
    font-size: 0.88em;
}
[data-layout="header_layout_mobile"] .nav-menu a .title { justify-content: center; }


/* ============================================================
   29. NAV MENU â€” Side Menu variant
   ============================================================ */
[data-layout="side_menu_layout"] .nav-menu a {
    margin-bottom: 2px;
    background-color: var(--bg-color-alt);
    border-radius: var(--glob-border-radius-sm);
    cursor: pointer;
    font-size: 0.95em;
}
.rtl [data-layout="side_menu_layout"] .nav-menu a {
    border-right: 2px solid var(--border-color);
}
.ltr [data-layout="side_menu_layout"] .nav-menu a {
    border-left: 2px solid var(--border-color);
}
[data-layout="side_menu_layout"] .nav-menu > ul > li > a {
    border-color: var(--color-highlight, var(--border-color)) !important;
}
[data-layout="side_menu_layout"] .nav-menu > ul > li > a:hover,
[data-layout="side_menu_layout"] .nav-menu a:hover {
    border-color: var(--site-color) !important;
    background-color: rgba(var(--site-color-rgb), 0.05);
}
[data-layout="side_menu_layout"] .nav-menu ul { flex-direction: column; }
[data-layout="side_menu_layout"] .nav-menu .menu-item-arrow {
    margin:  calc(var(--link-padding-y) * -1) calc(var(--link-padding-x) * -1);
    padding: calc(var(--link-padding-y) * 1) calc(var(--link-padding-x) * 1);
    transition: transform var(--transition-base);
    color: var(--body-color) !important;
}
[data-layout="side_menu_layout"] .nav-menu li.menu-item-has-children:not(.no-toggle) > .sub-menu {
    display: none;
}
[data-layout="side_menu_layout"] .nav-menu li.menu-item-has-children > a.open > .title .menu-item-arrow {
    transform: rotate(180deg);
}
[data-layout="side_menu_layout"] .nav-menu li.no-toggle .menu-item-arrow { display: none; }
.rtl [data-layout="side_menu_layout"] .nav-menu ul ul { margin-right: 1em; }
.ltr [data-layout="side_menu_layout"] .nav-menu ul ul { margin-left:  1em; }


/* ============================================================
   30. SIDEBARS
   ============================================================ */
.sidebar {
    padding-top:    calc(var(--glob-gap) * 0.25);
    padding-bottom: calc(var(--glob-gap) * 0.25);
}
@media (min-width: 992px) {
    .sidebar-side.sticky > .container {
        position: sticky;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.2em);
    }
}
.sidebar-side {
    flex-basis: 288px;
    flex-grow: 1;
    flex-shrink: 0;
    margin-top:    calc(var(--glob-gap) * -0.5);
    margin-bottom: calc(var(--glob-gap) * -0.5);
}
.sidebar-side > .container {
    padding-right: unset !important;
    padding-left:  unset !important;
}

/* Sidebar section header */
.sidebar-header {
    margin-top:    calc(var(--glob-gap) * 0.25);
    margin-bottom: calc(var(--glob-gap) * 0.25);
}
.sidebar-header h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 0;
    font-size: 1.5em;
    position: relative;
}
.sidebar-header h2::before,
.sidebar-header h2::after {
    content: "";
    flex-grow: 1;
    display: inline-block;
    height: 2px;
    background-color: var(--light-border-color);
    border-radius: 2px;
}


/* ============================================================
   31. WIDGETS
   ============================================================ */
.widget { break-inside: avoid; }
.widget,
.widget-inner { display: flex; }
.widget-inner,
.widget-inner-2 { flex-grow: 1; }
.widget-inner {
    margin-top:    calc(var(--glob-gap) * 0.25);
    margin-bottom: calc(var(--glob-gap) * 0.25);
}
.widget-content ul a,
.widget-content ol a { display: inline-block; }

/* Widget header */
.widget-header { margin-bottom: calc(var(--glob-gap) * 0.45); }
.widget-header h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em;
    margin-bottom: 0;
    font-size: 1.35em;
    font-weight: var(--font-weight-bold);
    position: relative;
}
.widget-header h3 a {
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.widget-title {
    display: flex;
    align-items: center;
    gap: 0.75em;
}
.widget-header > *::before,
.widget-header > *::after {
    content: "";
    flex-grow: 1;
    display: inline-block;
    height: 2px;
    background-color: var(--light-border-color);
    border-radius: 2px;
}
.widget-header > *::before { display: none; }
.widget-title a { display: block; }
.ltr .widget-link-arrow { transform: rotate(180deg); }


/* ============================================================
   32. CONTENT AREAS â€” Primary + Entry
   ============================================================ */
.glob-container-outer {
    padding-top:    calc(var(--glob-gap) * 0.5);
    padding-bottom: calc(var(--glob-gap) * 0.5);
}
.primary-content-inner { gap: calc(var(--glob-gap) * 1); }
body.design-boxed .primary-content-inner { gap: calc(var(--glob-gap) * 0.5); }

.primary-header-inner h2,
.primary-header-inner h3,
.entry-header h2,
.entry-header h3 { font-size: 1em; }

.primary-header-inner-2 > *,
.entry-header > * { margin-bottom: calc(var(--glob-gap) * 0.45); }
.primary-header-inner-2 > *:last-child,
.entry-header > *:last-child { margin-bottom: unset; }

.primary-content-inner-2 { flex-grow: 99999; }
.primary-content-inner-2 > *,
.primary-content-inner-3 > * { margin-bottom: calc(var(--glob-gap) * 0.5); }
.entry-content > * { margin-bottom: calc(var(--glob-gap) * 0.5); }
.primary-content-inner-2 > *:last-child,
.primary-content-inner-3 > *:last-child { margin-bottom: unset; }

/* 404 */
.error-outer .primary-content-inner { text-align: center; }
.error-outer .primary-content-inner > * { margin-bottom: 2.5rem; }
.error-outer .primary-content-inner > *:last-child { margin-bottom: unset; }

/* Max-width constraint for readability */
.entry-outer .primary-content-inner-4 > *:not(.full-width):not(.ad),
.entry-outer .primary-content-inner-3 > *:not(.entry-content):not(.ad),
.comments-inner-2,
.entry-share {
    max-width: var(--content-width);
    margin-right: auto;
    margin-left: auto;
}


/* ============================================================
   33. BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding-top:    calc(var(--glob-gap) * 0.4);
    padding-bottom: calc(var(--glob-gap) * 0.4);
}
body:not(.post-header-design-overlay) .breadcrumbs + .primary-header,
body.design-boxed .breadcrumbs + .primary-content {
    margin-top: calc(var(--glob-gap) * -0.5);
}
.breadcrumbs-inner {
    font-size: 0.82em;
    color: var(--meta-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15em;
}
.breadcrumbs-arrow {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.5;
}
.ltr .breadcrumbs-arrow { transform: rotate(180deg); }


/* ============================================================
   34. GLOB LINKS (tag / category pill lists)
   ============================================================ */
.glob-links > span {
    display: block;
    margin-bottom: calc(var(--glob-gap) * 0.2) !important;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--meta-color);
}
.glob-links-inner {
    --link-padding: 0.5em 1em;
    display: flex;
    align-items: flex-start;
    gap: 0.45em;
    scrollbar-width: none;
    margin: 0; padding: 0;
    list-style: none;
}
.glob-links-inner::-webkit-scrollbar { display: none; }
.glob-links-inner > span,
.glob-links-inner > a,
.glob-links-inner li > a {
    display: flex;
    align-items: center;
    padding: var(--link-padding);
    gap: 8px;
    position: relative;
    border-top: 2px solid rgba(15,23,42,0.12);
    white-space: nowrap;
    box-shadow: var(--glob-shadow-sm);
    background-color: #ffffff;
    border-radius: var(--glob-border-radius-sm);
    text-decoration: none !important;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}
.glob-links-inner .current,
.glob-links-inner a:hover {
    color: var(--site-color) !important;
    border-color: var(--site-color);
    background-color: rgba(var(--site-color-rgb), 0.04);
    transform: translateY(-1px);
    box-shadow: var(--glob-shadow);
}
.glob-links-inner > .inactive { color: #aab2bd; }
.glob-links.style-ver .glob-links-inner > * { flex-basis: 100%; }
.glob-links-inner.scroll {
    margin:   -5px calc(var(--glob-gap) * -0.5);
    padding:  5px calc(var(--glob-gap) * 0.5) 10px;
    overflow-x: auto;
}


/* ============================================================
   35. ARCHIVE SORT
   ============================================================ */
.archive-sort a { display: none; }
.archive-sort a.sort-latest,
.archive-sort a.sort-trending { display: block; }


/* ============================================================
   36. TERMS LISTS
   ============================================================ */
.terms-list a { white-space: unset !important; }
.terms-list span.count {
    display: inline-block;
    padding: 0 0.5em;
    color: var(--meta-color);
    background: rgba(15,23,42,0.06);
    border-radius: var(--glob-border-radius-pill);
    font-size: 0.8em;
}
.terms-list .term-title { flex-grow: 1; }

/* All-terms grid */
.terms-all-list {
    grid-gap: 0;
    column-width: var(--post-width);
    margin: calc(var(--post-gap) * -0.5);
}
.terms-all-list .parent-term-outer {
    padding: calc(var(--post-gap) * 0.5);
    break-inside: avoid;
}
.terms-all-list .parent-term-inner {
    box-shadow: var(--glob-shadow);
    background-color: #ffffff;
    border-radius: var(--glob-border-radius);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.terms-all-list .parent-term-inner:hover {
    box-shadow: var(--glob-shadow-lg);
    transform: translateY(-2px);
}
.terms-all-list h3 {
    margin-bottom: 0;
    font-size: 1.3em;
}
.terms-all-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-top:    0.35em;
    padding-bottom: 0.35em;
    transition: color var(--transition-fast);
}
.terms-all-list .parent-term-outer a:hover {
    color: var(--color, var(--link-color-hover)) !important;
}
.terms-all-list .parent-term-link {
    padding: calc(var(--glob-gap) * 0.5);
}
.terms-all-list .parent-term-link i {
    font-size: 1.5em;
    color: var(--color);
}
.terms-all-list .children-terms {
    padding: calc(var(--glob-gap) * 0.4) calc(var(--glob-gap) * 0.5);
    border-top: 2px solid var(--color, var(--light-border-color));
}


/* ============================================================
   37. POST META
   ============================================================ */
.post-meta > * { font-size: var(--font-size-sm); }
.post-meta a:hover {
    text-decoration: underline !important;
    text-underline-position: under;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1.75em;
    color: var(--meta-color);
}
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0 8px;
}
.post-meta-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(var(--site-color-rgb), 0.2);
}
.post-meta-item-icon { display: none; }
.post-meta-date_published .post-date-updated,
.post-meta-date_updated  .post-date-published { display: none; }
.post-meta-date_published .post-meta-item-label,
.post-meta-date_updated  .post-meta-item-label { display: none; }
.post-meta-date_published + .post-meta-date_updated .post-meta-item-label { display: block; }


/* ============================================================
   38. ENTRY TAGS
   ============================================================ */
.entry-tags > * { font-size: 0.88em; }
.entry-tags .label {
    display: inline-block;
    margin-bottom: 0.5em;
    font-weight: var(--font-weight-medium);
    color: var(--meta-color);
}
.entry-tags-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
}
.entry-tags-inner a {
    display: block;
    padding: 0.3em 0.8em;
    background-color: #f1f5f9;
    border-radius: var(--glob-border-radius-pill);
    border: 1px solid var(--light-border-color);
    font-size: 0.88em;
    transition: all var(--transition-fast);
}
.entry-tags-inner a:hover {
    background-color: rgba(var(--site-color-rgb), 0.08);
    border-color: rgba(var(--site-color-rgb), 0.3);
    color: var(--site-color);
    transform: translateY(-1px);
}


/* ============================================================
   39. ENTRY IMAGE & HEADER
   ============================================================ */
.entry-header-outer {
    display: flex;
    flex-direction: column;
    gap: 1.5em 3em;
}
.entry-header,
.entry-image {
    flex-grow: 1;
    flex-basis: 0;
}
.entry-image {
    margin-bottom: 0;
    text-align: center;
}
.entry-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--glob-border-radius);
    box-shadow: var(--glob-shadow-lg);
}
.entry-image-inner {
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--glob-border-radius);
}
.entry-caption {
    padding: 0.75em 1em;
    font-size: 0.8em;
    background: #f8f9fa;
    color: var(--meta-color);
    border-radius: 0 0 var(--glob-border-radius) var(--glob-border-radius);
}
.wp-element-caption,
.wp-caption-text {
    margin-top: 0.5em;
    text-align: center;
    color: var(--meta-color);
    font-size: 0.88em;
}
.wp-caption,
.wp-block-image {
    position: relative;
    max-width: 100%;
    width: auto !important;
}


/* ============================================================
   40. ENTRY CONTENT â€” Article Body
   ============================================================ */
.entry-content {
    position: relative;
    --link-color: var(--link-color-hover);
    font-size: 1.02em;
    line-height: 1.85;
}
.entry-content .entry-image { margin-bottom: calc(var(--glob-gap) * 0.5); }
.entry-content a { --link-color-hover: initial; }

/* Blockquote */
.entry-content blockquote {
    position: relative;
    padding: 1.5em 2em;
    background: linear-gradient(135deg, rgba(var(--site-color-rgb),0.04), rgba(var(--site-color-rgb),0.01));
    border-radius: var(--glob-border-radius);
    font-size: 1.05em;
    font-style: italic;
}
.rtl .entry-content blockquote {
    border-right: 4px solid var(--site-color);
}
.ltr .entry-content blockquote {
    border-left: 4px solid var(--site-color);
}
.entry-content blockquote p:last-of-type { margin-bottom: 0; }

/* Inline links */
#site .entry-content a:not(.btn):not(.no-underline) {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(var(--site-color-rgb), 0.4);
}
#site .entry-content a:not(.btn):not(.no-underline):hover {
    text-decoration-color: var(--site-color);
}

/* Section headings inside article */
.entry-content h1:not(.unstyled),
.entry-content h2:not(.unstyled),
.entry-content h3:not(.unstyled) {
    position: relative;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    padding-right: 1rem;
    border-right: 4px solid var(--site-color);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
}
.ltr .entry-content h1:not(.unstyled),
.ltr .entry-content h2:not(.unstyled),
.ltr .entry-content h3:not(.unstyled) {
    border-right: none;
    padding-right: 0;
    padding-left: 1rem;
    border-left: 4px solid var(--site-color);
}

/* Float alignment */
.aligncenter {
    display: table;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}
.alignleft  { float: left;  margin-right: 1.5em; }
.alignright { float: right; margin-left:  1.5em; }


/* ============================================================
   41. ENTRY AUTHOR BLOCK
   ============================================================ */
.entry-author > .label {
    display: inline-block;
    margin-bottom: 0.5em;
    font-size: 0.88em;
    font-weight: var(--font-weight-medium);
    color: var(--meta-color);
}
.entry-author-inner {
    display: flex;
    gap: 1.25em;
    padding: 1.25em;
    background: linear-gradient(135deg, var(--body-bg-color), #ffffff);
    border: 1px solid var(--light-border-color);
    border-radius: var(--glob-border-radius);
    box-shadow: var(--glob-shadow-sm);
}
.entry-author-avatar { flex-shrink: 0; }
.entry-author-avatar img {
    border-radius: var(--glob-border-radius);
    box-shadow: var(--glob-shadow-sm);
}
.entry-author-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}
.entry-author-description {
    font-size: 0.92em;
    line-height: 1.7;
}
.entry-author-description p:last-of-type { margin-bottom: 0; }
.entry-author-social-links .social-links { justify-content: flex-start; }
.entry-author-social-links .social-links a { color: var(--color) !important; }


/* ============================================================
   42. COMMENTS
   ============================================================ */
html:not(.no-js) body:not(.logged-in) .comment-form .comment-notes,
html:not(.no-js) body:not(.logged-in) .comment-form .comment-form-author,
html:not(.no-js) body:not(.logged-in) .comment-form .comment-form-email {
    display: none;
}

.comments-content { font-size: 0.92em; }
.comments-item    { margin-bottom: 2em; }
.comments-wrapper { margin-bottom: 2em; }
.comments-list { position: relative; }
.comments-list,
.comments-list .children {
    list-style: none;
    margin: 0; padding: 0;
}
.comments-list .comment-body {
    margin-bottom: 0.6em;
    padding: calc(var(--glob-gap) * 0.45);
    background: var(--body-bg-color);
    border: 1px solid var(--light-border-color);
    border-radius: var(--glob-border-radius);
    transition: border-color var(--transition-fast);
}
.comments-list .comment-body:hover {
    border-color: rgba(var(--site-color-rgb), 0.2);
}
.comments-list .comment-body p:last-of-type { margin-bottom: 0; }
.comments-list .comment-content {
    padding-top:    0.85em;
    padding-bottom: 0.85em;
    line-height: 1.75;
}
.comments-list .says { display: none; }
.comments-list .comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.comments-list .comment-metadata {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85em;
    --link-color: var(--meta-color);
    color: var(--link-color);
}
.comments-list .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--font-weight-medium);
}
.comments-list .comment-author img {
    width: 34px; height: 34px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(var(--site-color-rgb), 0.15);
}
.comment-reply-title {
    position: relative;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
.comment-reply-title h3 { font-size: 1.25em; }
.comments-list .comment.byteam > .comment-body,
.comments-list .comment.bypostauthor > .comment-body {
    border-color: var(--site-color);
    background: linear-gradient(135deg, rgba(var(--site-color-rgb),0.03), transparent);
}
.comments-list .comment.byteam > .comment-body .comment-author::after,
.comments-list .comment.bypostauthor > .comment-body .comment-author::after {
    content: "\F26A";
    font-family: bootstrap-icons;
    color: #1877f2;
}
#cancel-comment-reply-link { display: inline-block; font-size: 1rem; }
.nav-pages-comments { margin-bottom: 2em; }
.comments-title { margin-bottom: 1em; }
.comments-title h2 { margin-bottom: 0; }
.comments-title,
.comment-reply-title {
    display: flex;
    align-items: center;
    gap: 1.25em;
}
.comments-title::after,
.comment-reply-title::after {
    content: "";
    flex-grow: 1;
    display: inline-block;
    height: 2px;
    background-color: var(--light-border-color);
    border-radius: 2px;
}
.rtl .comments-list .children { margin-right: 2em; }
.ltr .comments-list .children { margin-left:  2em; }
.rtl #cancel-comment-reply-link { margin-right: 10px; }
.ltr #cancel-comment-reply-link { margin-left:  10px; }


/* ============================================================
   43. SHARE BUTTONS
   ============================================================ */
.entry-share { text-align: initial; }
.entry-share.entry-share-inside { margin-top: 1.75em; }
.share-links > * { font-size: 0.9em; }
.share-links .label {
    display: inline-block;
    margin-bottom: 0.5em;
    font-weight: var(--font-weight-medium);
}
.share-links-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1;
}
.share-links-inner a {
    flex-grow: 1;
    flex-basis: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    color: var(--color) !important;
    border-radius: var(--glob-border-radius-sm);
    white-space: nowrap;
    background-color: rgba(var(--color-rgb, 0,0,0), 0.06);
    border-bottom: 2px solid var(--color);
    overflow: hidden;
    text-decoration: none !important;
    transition: all var(--transition-base);
}
.share-links-inner a:hover {
    background-color: var(--color);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-rgb, 0,0,0), 0.35);
}
.share-links-inner .icon { font-size: 1.35em; transition: transform var(--transition-fast); }
.share-links-inner a:hover .icon { transform: scale(1.1); }
.share-links-inner .title { font-size: 0.75em; display: none; }
@media (min-width: 992px) {
    .share-links-inner .title { display: block; }
}
.share-links-inner a.sl-copylink,
.share-links-inner a.sl-shortlink,
.share-links-inner a.sl-telegram { display: none; }
.share-links-inner a.sl-shortlink { flex-direction: row; }
.share-links-inner .sl-break { flex-basis: 100%; flex-shrink: 0; }


/* ============================================================
   44. CONTINUE READING
   ============================================================ */
.entry-content.continue-reading-on {
    max-height: 520px;
    overflow: hidden;
}
.continue-reading {
    position: absolute;
    right: 0; left: 0; bottom: 0;
    padding-top: 120px;
    margin-bottom: 0 !important;
    padding-bottom: 24px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.75) 30%, #ffffff 70%);
    z-index: 50;
}
.continue-reading i {
    display: inline-block;
    transition: transform var(--transition-base);
}
.continue-reading a:hover i { transform: translateY(3px); }


/* ============================================================
   45. SCROLL TO TOP
   ============================================================ */
#scroll-top {
    position: fixed;
    bottom: 16px;
    z-index: 105;
    display: none;
    padding: 10px 12px;
    background: #ffffff;
    box-shadow: var(--glob-shadow-lg);
    border-radius: var(--glob-border-radius-sm);
    font-size: 1.45em;
    line-height: 1;
    transition: all var(--transition-base);
    border: 1px solid var(--light-border-color);
}
#scroll-top:hover {
    background: var(--site-color);
    color: #ffffff;
    border-color: var(--site-color);
    transform: translateY(-2px);
}
.rtl #scroll-top { right: 24px; }
.ltr #scroll-top { left:  24px; }


/* ============================================================
   46. ADVERTISEMENT BLOCKS
   ============================================================ */
.ad {
    margin-bottom: calc(var(--glob-gap) * 0.5);
    text-align: center;
}
.ad[data-ad-location="header_before"],
.ad[data-ad-location="header_after"],
.ad[data-ad-location="footer_before"],
.ad[data-ad-location="footer_after"],
.ad[data-ad-location="singular_outer_after"] {
    margin-top: calc(var(--glob-gap) * 0.5);
}
.ad[data-ad-location="widget"]              { margin-bottom: unset; }
.ad[data-ad-location="archive_posts_loop_end"] { margin-top: 1em; column-span: all; }
.ad[data-ad-location="singular_header_start"] { margin-top: 1em; margin-bottom: 0; }

.ad.sticky {
    position: fixed;
    right: 0; bottom: 0; left: 0;
    margin: 0 !important;
    padding: calc(var(--glob-gap) * 0.2) calc(var(--glob-gap) * 0.5);
    background-color: #ffffff;
    box-shadow: var(--glob-shadow-lg);
    border-top: 2px solid var(--site-color);
    z-index: var(--z-sticky-ad);
    transform: translateY(200%);
    transition: transform var(--transition-base);
}
.ad.sticky.active { transform: translateY(0); }
.ad.sticky .ad-close {
    position: absolute;
    bottom: 100%; left: 0;
    padding: 0.45em 1em;
    line-height: 1;
    background: var(--site-color);
    border-top-right-radius: var(--glob-border-radius-sm);
    color: #ffffff;
    cursor: pointer;
    font-size: var(--font-size-sm);
}
.content-layout-cell .ad { margin: unset; }


/* ============================================================
   47. DESIGN MODES â€” Normal / Boxed
   ============================================================ */
.design-normal .entry-outer .primary-content,
.design-normal .error-outer .primary-content,
.design-normal .comments { background: #ffffff; }
.design-normal .entry-outer { margin-top: 1.75em; }
.design-normal .entry-outer:first-child { margin-top: unset; }
.design-normal #site-footer { margin-top: 1.75em; }

.design-boxed .glob-container {
    padding: calc(var(--glob-gap) * 0.5);
    background-color: #ffffff;
    border-radius: var(--glob-border-radius);
}
.design-boxed .primary .primary-header + .primary-content,
.design-boxed .primary .primary-content + .primary-content {
    margin-top: calc(var(--glob-gap) * -0.5);
}


/* ============================================================
   48. POST CARDS â€” Base Structure
   ============================================================ */
.post,
.post .post-content,
.post .post-link,
.post .post-thumb,
.post .post-thumb picture {
    display: flex;
    flex-grow: 1;
}
.post {
    --dark-column-thumb-min-height: 200px;
    --row-thumb-order: 1;
    --row-thumb-width: 40%;
    flex-basis: var(--post-width);
    flex-shrink: 0;
    padding: calc(var(--post-gap) * 0.5);
    break-inside: avoid;
}
.post .post-content {
    flex-direction: column;
    box-shadow: var(--glob-shadow);
    background-color: #ffffff;
    overflow: hidden;
    border-radius: var(--glob-border-radius);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.post .post-content:hover {
    box-shadow: var(--glob-shadow-lg);
    transform: translateY(-3px);
}
.post .post-content .post-thumb {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.post .post-content .post-thumb img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}
.post .post-content:hover .post-thumb img {
    transform: scale(1.04);
}
.post .post-content .post-link { position: relative; }
.post .post-content .post-title {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1em 1.1em;
    overflow: hidden;
    z-index: 1;
    gap: 0.5em;
}
.post .post-content .post-title h3 {
    margin: 0;
    font-size: 1em;
    font-weight: var(--font-weight-bold);
    line-height: 1.45;
}
.post .post-content .post-excerpt p { margin-bottom: 0; }


/* ============================================================
   49. POST CARDS â€” Responsive Layouts
   ============================================================ */
@media (max-width: 575px) {
    .posts-loop { --post-row-width: 250px !important; }
}

@media (max-width: 991px) {
    .posts-loop.style-sm-column { --post-width: var(--post-column-width); }
    .posts-loop.style-sm-row    { --post-width: var(--post-row-width); }
    .posts-loop-container .style-sm-column .post .post-link { flex-direction: column; }
    .posts-loop-container .style-sm-row .post .post-thumb {
        flex-basis: var(--row-thumb-width);
        order: var(--row-thumb-order);
    }
    .posts-loop-container .style-sm-row .post .post-thumb img { object-fit: cover; }
    .posts-loop-container .style-sm-row .post .post-title { flex-grow: 9999; }
}

@media (min-width: 992px) {
    .posts-loop.style-lg-column { --post-width: var(--post-column-width); }
    .posts-loop.style-lg-row    { --post-width: var(--post-row-width); }
    .posts-loop-container.headings-side .posts-loop.style-lg-row { --post-width: var(--post-column-width); }
    .posts-loop-container .style-lg-column .post .post-link { flex-direction: column; }
    .posts-loop-container .style-lg-row .post .post-thumb {
        flex-basis: var(--row-thumb-width);
        order: var(--row-thumb-order);
    }
    .posts-loop-container .style-lg-row .post .post-thumb img { object-fit: cover; }
    .posts-loop-container .style-lg-row .post .post-title { flex-grow: 9999; }
}


/* ============================================================
   50. POSTS LOOP CONTAINER
   ============================================================ */
.posts-loop-container {
    position: relative;
    gap: calc(var(--post-gap) * 1);
    --headings-width: 50%;
}
.widget.col-lg-8 .posts-loop-container,
.widget.col-lg-9 .posts-loop-container {
    --headings-width: 60%;
}
.posts-headings {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: calc(var(--headings-width) + calc(var(--post-gap) * 0.5));
    margin: calc(var(--post-gap) * -0.5);
}
.posts-loop { flex-grow: 99999; }
.posts-loop {
    grid-template-columns: repeat(auto-fill, minmax(var(--post-width), 1fr));
    grid-gap: 0;
    column-width: var(--post-width);
    margin: calc(var(--post-gap) * -0.5);
}
.posts-loop + .posts-loop {
    margin-top: calc(var(--post-gap) * 0.5) !important;
}

/* Grid display mode */
.posts-loop.style-grid { display: grid !important; }
.posts-loop.style-grid .post-thumb { flex-grow: 0 !important; }
.widget.grid .posts-loop { display: grid !important; }
.widget.grid .posts-loop .post .post-content .post-thumb { flex-grow: 0 !important; }
.widget.columns .posts-loop { display: block !important; }
.widget.columns .posts-loop .post .post-content .post-thumb { flex-grow: 1 !important; }

/* Featured (headings) large posts */
@media (min-width: 992px) {
    .posts-loop-container .posts-headings.style-lg-column .post .post-content .post-thumb {
        min-height: 300px;
        flex-grow: 99999;
    }
    .posts-loop-container .posts-headings.style-lg-column .post .post-content .post-thumb img {
        object-fit: cover;
    }
    .posts-loop-container .posts-headings .post .post-content .post-title h3 {
        font-size: 1.55em;
    }
}

/* Mobile slider mode */
@media (max-width: 575px) {
    .widget.slider .widget-inner {
        display: block !important;
        max-width: 100%;
    }
    .widget.slider .posts-loop {
        display: flex !important;
        overflow-x: scroll;
        --post-width: 250px;
        margin:  calc(var(--glob-gap) * -0.5);
        padding: calc(calc(var(--glob-gap) * 0.5) - calc(var(--post-gap) * 0.5));
    }
}

/* Widget variants */
.widget.hide-thumb .posts-loop    { --post-row-width: var(--post-column-width) !important; }
.widget.hide-thumb .posts-loop .post-thumb { display: none !important; }
.widget.hide-meta  .posts-loop .post-meta-item { display: none !important; }

/* Sticky widget */
.widget.sticky {
    position: fixed;
    bottom: 0; right: 0; left: 0;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: var(--glob-shadow-lg);
    border-top: 2px solid var(--site-color);
    transform: translateY(150%);
    transition: transform var(--transition-base);
}
.widget.sticky .widget-inner-2 { padding: 0; }
.widget.sticky.active { transform: translateY(0); }
.widget-close {
    position: absolute;
    bottom: 100%; left: 0;
    padding: 0.45em 1em;
    line-height: 1;
    background: var(--site-color);
    border-top-right-radius: var(--glob-border-radius-sm);
    color: #ffffff;
    cursor: pointer;
    font-size: var(--font-size-sm);
}


/* ============================================================
   51. DARK OVERLAY POSTS (Dark card mode)
   ============================================================ */
.posts-loop-container {
    --dark-overlay-color:     0,0,0;
    --dark-background-row:    rgba(var(--dark-overlay-color), 0.88);
    --dark-background-column: linear-gradient(to bottom, transparent 0%, rgba(var(--dark-overlay-color), 0.9) 100%);
}

@media (max-width: 991px) {
    .posts-loop-container .theme-dark-sm { --meta-color: #e2e8f0; }
    .posts-loop-container .theme-dark-sm .post-content { background-color: transparent; }
    .posts-loop-container .theme-dark-sm .post-link { text-shadow: var(--overlay-text-shadow); }
    .posts-loop-container .theme-dark-sm.style-sm-row .post-title,
    .posts-loop-container .theme-dark-sm.style-sm-row .post-thumb {
        color: #ffffff;
        background: var(--dark-background-row);
    }
    .posts-loop-container .theme-dark-sm.style-sm-column .post-title {
        position: absolute;
        top: 25%; right: 0; bottom: 0; left: 0;
        color: #ffffff;
        background: var(--dark-background-column);
        justify-content: flex-end;
    }
    .posts-loop-container .theme-dark-sm.style-sm-column .post-thumb {
        min-height: var(--dark-column-thumb-min-height);
        flex-grow: 1 !important;
    }
    .posts-loop-container .theme-dark-sm.style-sm-column .post-thumb img { object-fit: cover; }
}

@media (min-width: 992px) {
    .posts-loop-container .theme-dark-lg { --meta-color: #e2e8f0; }
    .posts-loop-container .theme-dark-lg .post-content { background-color: transparent; }
    .posts-loop-container .theme-dark-lg .post-link { text-shadow: var(--overlay-text-shadow); }
    .posts-loop-container .theme-dark-lg.style-lg-row .post-title,
    .posts-loop-container .theme-dark-lg.style-lg-row .post-thumb {
        color: #ffffff;
        background: var(--dark-background-row);
    }
    .posts-loop-container .theme-dark-lg.style-lg-column .post-title {
        position: absolute;
        top: 25%; right: 0; bottom: 0; left: 0;
        color: #ffffff;
        background: var(--dark-background-column);
        justify-content: flex-end;
    }
    .posts-loop-container .theme-dark-lg.style-lg-column .post-thumb {
        min-height: var(--dark-column-thumb-min-height);
        flex-grow: 1 !important;
    }
    .posts-loop-container .theme-dark-lg.style-lg-column .post-thumb img { object-fit: cover; }
}


/* ============================================================
   52. POST HEADER DESIGNS â€” Overlay / Top / Inside
   ============================================================ */
.design-boxed.post-header-design-overlay .primary-header {
    margin-bottom: calc(var(--glob-gap) * 0.5);
}
.design-boxed.post-header-design-overlay .primary-header-inner-2 {
    margin: unset !important;
    padding: unset !important;
    box-shadow: unset !important;
}
.design-boxed.post-header-design-overlay #sidebar-header {
    margin-bottom: calc(var(--glob-gap) * 0.5);
}
.post-header-design-overlay .primary-header,
.post-header-design-overlay .primary-header-inner { position: relative; }

.post-header-design-overlay .primary-header {
    --meta-color: #cbd5e1;
    --meta-color-hover: #ffffff;
    --link-color-hover: #ffffff;
    color: #ffffff;
    --overlay-color: #0f172a;
    --overlay-depth: 50%;
    background: var(--overlay-color);
}
.post-header-design-overlay .primary-header-inner {
    background-position: center 20%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 50vh;
    text-shadow: var(--overlay-text-shadow);
}
body:not(.post-header-design-overlay) .primary-header-inner { background-image: unset; }
.post-header-design-overlay .primary-header-inner-2 {
    position: relative;
    background-color: transparent !important;
    z-index: 10;
}
.post-header-design-overlay .primary-header-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right,  #0f172a 0, rgba(0,0,0,0) var(--overlay-depth)),
        linear-gradient(to top,    var(--overlay-color) 0, rgba(0,0,0,0) var(--overlay-depth)),
        linear-gradient(to left,   var(--overlay-color) 0, rgba(0,0,0,0) var(--overlay-depth));
}


/* ============================================================
   53. CITATIONS (Ù…Ø±Ø§Ø¬Ø¹)
   ============================================================ */
.entry-citations {
    border-radius: var(--glob-border-radius);
    border: 1px solid var(--light-border-color);
    overflow: hidden;
}
.entry-citations .entry-citations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7em 1.2em;
    border-bottom: 2px solid var(--site-color);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(var(--site-color-rgb),0.05), transparent);
    transition: background-color var(--transition-fast);
}
.entry-citations .entry-citations-header:hover {
    background: rgba(var(--site-color-rgb), 0.08);
}
.entry-citations .entry-citations-header h3,
.entry-citations .entry-citations-header h2 {
    margin-bottom: 0;
    font-size: 1.3em;
}
.entry-citations .entry-citations-content {
    padding: 1em 1.2em;
    display: none;
    font-size: 0.92em;
    line-height: 1.75;
}
.entry-citations .citations-toggle { transition: transform var(--transition-base); }
.entry-citations.open .citations-toggle { transform: rotate(180deg); }
.entry-citations .citation-note { padding: 4px 0; }
.entry-citations .citation-note.active { animation: 3s linear highlight; }
.entry-citations .citation-note .sep { display: inline-block; margin: 0 6px; }
.entry-citations .citation-note .sep::after { content: "-"; }
.entry-citations .citation-id { text-decoration: none !important; }


/* ============================================================
   54. FAQ / Q&A (Ø£Ø³Ø¦Ù„Ø© ÙˆØ£Ø¬ÙˆØ¨Ø©)
   ============================================================ */
.entry-questions {
    border-radius: var(--glob-border-radius);
    border: 1px solid var(--light-border-color);
    overflow: hidden;
}
.entry-questions .entry-questions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7em 1.2em;
    border-bottom: 2px solid var(--site-color);
    background: linear-gradient(135deg, rgba(var(--site-color-rgb),0.05), transparent);
}
.entry-questions .entry-questions-header h3,
.entry-questions .entry-questions-header h2 {
    margin-bottom: 0;
    font-size: 1.3em;
}
.entry-questions .entry-questions-content { margin: 0.6em; }
.entry-questions .question-toggle { transition: transform var(--transition-base); }
.entry-questions .question-item {
    border: 1px solid var(--light-border-color);
    border-radius: var(--glob-border-radius-sm);
    margin-bottom: 0.4em;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.entry-questions .question-item:hover {
    border-color: rgba(var(--site-color-rgb), 0.3);
    box-shadow: var(--glob-shadow-sm);
}
.entry-questions .question-item .question-title {
    padding: 0.75em 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: background-color var(--transition-fast);
}
.entry-questions .question-item .question-title:hover {
    background-color: rgba(var(--site-color-rgb), 0.04);
}
.entry-questions .question-item .question-answer {
    padding: 0.75em 1em;
    display: none;
    background: #fafcff;
    border-top: 1px solid var(--light-border-color);
    font-size: 0.95em;
    line-height: 1.75;
}
.entry-questions .question-item.active .question-toggle { transform: rotate(180deg); }


/* ============================================================
   55. CONTENT GRID (Ø´Ø¨ÙƒØ© Ù…Ø­ØªÙˆÙ‰ Ù…Ø®ØµØµØ©)
   ============================================================ */
.content-grid {
    display: grid;
    gap: 1rem;
    position: relative;
}
.content-grid-item {
    position: relative;
    padding: 1.2em;
    background-color: #ffffff;
    box-shadow: var(--glob-shadow);
    border-radius: var(--glob-border-radius);
    z-index: 1;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.content-grid-item:hover {
    box-shadow: var(--glob-shadow-lg);
    transform: translateY(-2px);
}
.content-grid-item p:last-of-type { margin-bottom: 0; }
.content-grid-item h1:not(.unstyled),
.content-grid-item h2:not(.unstyled),
.content-grid-item h3:not(.unstyled) {
    margin: -1.2rem;
    margin-bottom: 1em;
    border-radius: var(--glob-border-radius) var(--glob-border-radius) 0 0;
}

/* Columns grid */
.content-grid.columns {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (min-width: 992px) {
    .content-grid.columns {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Timeline grid */
.content-grid.timeline {
    grid-template-columns: 1fr;
    max-width: 420px !important;
    margin-right: auto;
    margin-left: auto;
    padding-top: 1em;
    padding-bottom: 1em;
}
.content-grid.timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    right: 50%;
    width: 4px;
    transform: translateX(50%);
    background: linear-gradient(to bottom, var(--site-color), rgba(var(--site-color-rgb), 0.2));
    border-radius: 4px;
}
@media (min-width: 992px) {
    .content-grid.timeline .content-grid-item:nth-of-type(odd)  { transform: translateX(22%); }
    .content-grid.timeline .content-grid-item:nth-of-type(even) { transform: translateX(-22%); }
}


/* ============================================================
   56. FOLLOW WIDGET
   ============================================================ */
.follow-widget-content {
    margin: 0 auto;
    max-width: 380px;
    padding: 2em;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--glob-shadow-lg);
    border-radius: var(--glob-border-radius-lg);
    border: 1px solid var(--light-border-color);
}
.follow-widget-content .follow-icon { display: inline-block; }
.follow-widget-content .follow-icon a { display: block; }
.follow-widget-content .follow-icon svg {
    width: 90px;
    height: auto;
    color: var(--color);
}
.follow-widget-content .follow-description,
.follow-widget-content .follow-button { margin-top: 1.5em; }
.follow-widget-content .follow-description p:last-of-type { margin-bottom: 0; }
.follow-widget-content .follow-button a {
    display: block;
    background: var(--color);
    border: none;
    border-radius: var(--glob-border-radius-sm);
    padding: 0.7em 1.5em;
    color: #ffffff;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
}
.follow-widget-content .follow-button a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* ============================================================
   57. PAGINATION
   ============================================================ */
.nav-pages {
    margin-top: calc(var(--glob-gap) * 0.5);
}
.nav-pages .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75em;
    border-radius: var(--glob-border-radius-sm);
    border: 1px solid var(--light-border-color);
    background: #ffffff;
    font-weight: var(--font-weight-medium);
    font-size: 0.92em;
    transition: all var(--transition-fast);
    box-shadow: var(--glob-shadow-sm);
}
.nav-pages .page-numbers:hover {
    border-color: var(--site-color);
    color: var(--site-color);
    background: rgba(var(--site-color-rgb), 0.04);
}
.nav-pages .page-numbers.current {
    background: var(--site-color);
    color: #ffffff;
    border-color: var(--site-color);
    box-shadow: 0 2px 8px rgba(var(--site-color-rgb), 0.4);
}


/* ============================================================
   58. READING PROGRESS BAR
   ============================================================ */
#reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--site-color), rgba(var(--site-color-rgb), 0.6));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}


/* ============================================================
   59. ACCESSIBILITY & FOCUS
   ============================================================ */
:focus-visible {
    outline: 2px solid rgba(var(--site-color-rgb), 0.7);
    outline-offset: 3px;
    border-radius: 2px;
}
.skip-link {
    position: absolute;
    top: -999px; left: -999px;
    background: var(--site-color);
    color: #ffffff;
    padding: 0.5em 1em;
    border-radius: var(--glob-border-radius-sm);
    z-index: 9999;
    font-weight: var(--font-weight-medium);
}
.skip-link:focus { top: 0.5em; left: 0.5em; }


/* ============================================================
   60. RESPONSIVE MEDIA QUERIES â€” Fine-tuning
   ============================================================ */

/* Extra small â€” phones */
@media (max-width: 575px) {
    :root {
        --glob-gap: 32px;
        --glob-border-radius: 8px;
    }
    .post-meta { gap: 0.3em 1.2em; }
    .entry-content { font-size: 1em; }
    .share-links-inner a { padding: 10px 8px; }
}

/* Small â€” landscape phones */
@media (min-width: 576px) and (max-width: 767px) {
    :root { --glob-gap: 36px; }
}

/* Medium â€” tablets */
@media (min-width: 768px) {
    .entry-header-outer {
        flex-direction: row;
        align-items: flex-start;
    }
    .entry-image { max-width: 50%; }
}

/* Large â€” desktops */
@media (min-width: 992px) {
    :root {
        --glob-gap: 48px;
        --content-width: 820px;
    }
}

/* Extra large */
@media (min-width: 1200px) {
    :root { --glob-gap: 52px; }
}

/* Print */
@media print {
    #site-header, #site-footer, #side-menu, #news-ticker,
    #search-overlay, #scroll-top, .ad, .share-links, .entry-tags {
        display: none !important;
    }
    body { font-size: 12pt; color: #000; background: #fff; }
    .entry-content { font-size: 11pt; line-height: 1.6; }
}

/* ============================================================
   ELBADIL ADDITIONS — News Typography & Article Headings
   ============================================================ */

/* === 1. Best Arabic News Font System ===
   Tajawal: best balance of readability + modern look for news
   Cairo: authoritative for headlines
   Base 17px (= 1.0625rem) — optimal for Arabic reading on screens
   Line-height 1.75 — Arabic text needs more vertical space than Latin
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&family=Cairo:wght@600;700;900&display=swap');

body {
    font-size: 1.0625rem;          /* 17px — sweet spot for Arabic news */
    font-family: "Tajawal", "Cairo", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.75;             /* Arabic needs more breathing room */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Article/post body text */
.entry-content {
    font-size: 1.0625rem;
    line-height: 1.85;             /* Even more for long-form reading */
    color: var(--body-color);
}

.entry-content p {
    margin-bottom: 1.4em;
}

/* Fluid heading scale — Cairo for authority */
h1, .h1 {
    font-family: "Cairo", "Tajawal", sans-serif;
    font-weight: 900;
    font-size: clamp(1.55rem, 3vw + 0.5rem, 2.2rem) !important;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

h2, .h2 {
    font-family: "Cairo", "Tajawal", sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw + 0.4rem, 1.75rem) !important;
    line-height: 1.3;
}

h3, .h3 {
    font-family: "Cairo", "Tajawal", sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.5vw + 0.3rem, 1.4rem) !important;
    line-height: 1.35;
}

h4, .h4 {
    font-family: "Cairo", "Tajawal", sans-serif;
    font-weight: 700;
    font-size: 1.15rem !important;
}

h5, .h5, h6, .h6 {
    font-family: "Tajawal", sans-serif;
    font-weight: 700;
    font-size: 1rem !important;
}

/* === 2. Distinctive Article Headings (h2 & h3) ===
   Professional Arabic news style: colored left-border + subtle bg
   =========================================================== */

/* h2 inside article content */
.entry-content h2 {
    position: relative;
    margin-top: 2em;
    margin-bottom: 0.75em;
    padding: 0.55em 1em 0.55em 0;
    background: linear-gradient(
        135deg,
        rgba(var(--site-color-rgb), 0.06) 0%,
        transparent 70%
    );
    border-radius: 0 var(--glob-border-radius-sm) var(--glob-border-radius-sm) 0;
}

/* RTL: right border */
.rtl .entry-content h2 {
    border-right: 4px solid var(--site-color);
    padding-right: 1em;
    padding-left: 0;
    border-radius: 0 var(--glob-border-radius-sm) var(--glob-border-radius-sm) 0;
}

/* LTR: left border */
.ltr .entry-content h2 {
    border-left: 4px solid var(--site-color);
    padding-left: 1em;
    padding-right: 0;
    border-radius: var(--glob-border-radius-sm) 0 0 var(--glob-border-radius-sm);
}

/* h3 inside article — lighter treatment */
.entry-content h3 {
    margin-top: 1.6em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    position: relative;
}

.entry-content h3::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 3em;
    background: var(--site-color);
    border-radius: 2px;
    opacity: 0.6;
}

.rtl .entry-content h3::after { right: 0; }
.ltr .entry-content h3::after { left: 0; }

/* h4 — simple bold divider */
.entry-content h4 {
    margin-top: 1.4em;
    margin-bottom: 0.4em;
    color: var(--site-color);
}

/* Dark mode heading adjustments */
[data-theme^="dark"] .entry-content h2 {
    background: linear-gradient(
        135deg,
        rgba(var(--site-color-rgb), 0.12) 0%,
        transparent 70%
    );
}

/* === 3. Post date fallback (always visible) ===
   JS replaces text content; data-short holds the "X ago" string
   =========================================================== */
.post-date { transition: none; }

/* Short-time enhancement: JS reads data-short and swaps text */
body.js-loaded .post-date[data-short] {
    /* JS will set .textContent = dataset.short */
}

/* === 4. Default font option in theme ===
   Keeps Tajawal as permanent default regardless of admin choice
   =========================================================== */
#site {
    font-family: "Tajawal", "Cairo", system-ui, sans-serif;
}
