/* =========================================================================
   K24 Header Refinements — Phase 1
   Non-invasive layout / spacing / alignment fixes for the existing header,
   nav, top bar, ads slot, breaking-news bar, and search overlay.
   No Blade or backend changes; all selectors are scoped to header chrome.
   8pt grid + design system tokens. RTL-safe (logical properties).
   ========================================================================= */

/* ----- Design tokens (scoped to header chrome only) -------------------- */
.main-header,
.breaking-news-ticker-container,
.main-search-form,
.k24-drawer,
#sidebar-wrapper {
    --k24h-bg: #F8FAFC;
    --k24h-surface: #FFFFFF;
    --k24h-subtle: #F9FAFB;
    --k24h-border: #E5E7EB;
    --k24h-ink: #111827;
    --k24h-muted: #6B7280;
    --k24h-red: var(--k24h-accent, #DC2626);
    --k24h-red-soft: #FEF2F2;
    --k24h-blue: #2563EB;

    /* 8pt grid */
    --k24h-s-1: 4px;
    --k24h-s-2: 8px;
    --k24h-s-3: 12px;
    --k24h-s-4: 16px;
    --k24h-s-6: 24px;
    --k24h-s-8: 32px;
    /* --k24h-container / --k24h-logo-height / --k24h-nav-size / --k24h-nav-weight
       are set on :root by header.blade.php from theme options; fallbacks here. */
}

/* Apply brand font to all header chrome (no effect when font fails to load) */
.main-header,
.main-header .top-bar,
.k24-header-navigation,
.k24-menu,
.main-search-form,
.k24-drawer,
.breaking-news-ticker-container,
.breaking-news-ticker-container .breaking-title,
.breaking-news-ticker-container .ticker-item a {
    font-family: 'ItfHuwiyaArabic', var(--font-header, inherit), sans-serif;
}

/* ----- Container width — controlled by --k24h-container from theme options */
.main-header > .top-bar > .container,
.main-header > .header-logo > .container,
.main-header > .header-bottom > .container,
.breaking-news-ticker-container,
.main-search-form > .container {
    max-width: var(--k24h-container, 1320px) !important;
}

/* ----- Utility bar (top-bar) — exact 40px height ----------------------- */
.main-header .top-bar {
    /* Override layout-cleanup.css 0.625rem (10px) */
    padding-block: 0 !important;
    min-height: 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--k24h-border);
    background: var(--k24h-subtle);
    color: var(--k24h-muted);
    font-size: 12px;
    line-height: 1.2;
}

.main-header .top-bar > .container { width: 100%; }
.main-header .top-bar .row { min-height: 40px; align-items: center; }

.main-header .top-bar a {
    color: var(--k24h-muted);
    text-decoration: none;
    transition: color .15s ease;
}
.main-header .top-bar a:hover { color: var(--k24h-ink); }

.main-header .top-bar .header-social-network {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--k24h-ub-icon-gap, var(--k24h-s-2));
}
.main-header .top-bar .header-social-network li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Social icon appearance — controlled by CSS vars from theme options */
.main-header .top-bar .social-icon {
    color: var(--k24h-ub-icon-color, var(--k24h-muted));
    background: var(--k24h-ub-icon-bg, transparent);
    padding: var(--k24h-ub-icon-padding, 4px);
    border-radius: var(--k24h-ub-icon-radius, 4px);
    transition: color .15s ease, background .15s ease, transform .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.main-header .top-bar .social-icon:hover {
    color: var(--k24h-ub-icon-hover-color, var(--k24h-red));
    background: var(--k24h-ub-icon-hover-bg, transparent);
    transform: translateY(-1px);
}
.main-header .top-bar .social-icon .k24-icon,
.main-header .top-bar .social-icon .k24-brand-icon {
    font-size: var(--k24h-ub-icon-size, 16px) !important;
    width: var(--k24h-ub-icon-size, 16px) !important;
    height: var(--k24h-ub-icon-size, 16px) !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-header .top-bar .social-icon .k24-brand-icon__image {
    width: var(--k24h-ub-icon-size, 16px) !important;
    height: var(--k24h-ub-icon-size, 16px) !important;
    object-fit: contain;
}

.main-header .top-bar .vline-space {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: var(--k24h-border);
    margin-inline: var(--k24h-s-3);
    vertical-align: middle;
}

.main-header .top-bar .font-small {
    font-size: 12px;
    line-height: 1.2;
}

/* RTL/LTR safe text alignment in the top bar */
.main-header .top-bar .text-left  { text-align: start  !important; }
.main-header .top-bar .text-right { text-align: end    !important; }

/* ----- Top leaderboard ad slot — subordinate to nav -------------------- */
.main-header .header-logo.background-white.pt-20.pb-20 {
    /* Editorial hierarchy: ad must NOT dominate. Tight 12px vertical band, neutral surface. */
    padding-block: 12px !important;
    background: var(--k24h-bg) !important;
    border-bottom: 1px solid var(--k24h-border);
    opacity: .98;
}

.main-header .header-ads-slot {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 96px;                   /* cap visual weight; spec says ad never overpowers branding */
    overflow: hidden;
}

.main-header .header-ads-slot img,
.main-header .header-ads-slot iframe,
.main-header .header-ads-slot picture {
    display: block;
    max-width: 100%;
    max-height: 96px;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* ----- Brand row (style-1) — premium logo presence --------------------- */
.main-header.header-style-1 .header-brand-row {
    padding-block: 16px !important;
    background: var(--k24h-surface);
    border-bottom: 1px solid var(--k24h-border);
}

.main-header.header-style-1 .header-brand-row .img-logo {
    max-height: 48px;
    width: auto;
}

.main-header.header-style-1 .header-brand-row .header-brand-fallback {
    color: var(--k24h-red);
    font-family: 'ItfHuwiyaArabic', var(--font-header, inherit), sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    min-height: 0;
}

/* style-2 inline brand */
.main-header.header-style-2 .header-bottom .col-lg-2 .header-logo .img-logo,
.main-header.header-style-3 .header-logo .img-logo {
    max-height: 48px;
    width: auto;
}

/* style-3 brand row alignment fix (logical) */
.main-header.header-style-3 .header-logo .row > [class*="col-"] {
    display: flex;
    align-items: center;
}
.main-header.header-style-3 .header-logo .text-left  { text-align: start !important; }
.main-header.header-style-3 .header-logo .text-right { text-align: end   !important; }

.main-header.header-style-3 .header-logo .mb-30 { margin-bottom: 0 !important; }

/* ----- Header-bottom (primary nav row) --------------------------------- */
.main-header .header-bottom {
    background: var(--k24h-surface);
    border-bottom: 1px solid var(--k24h-border);
}

/* ----- k24 navigation: tighter rhythm + 8pt grid ----------------------- */
.k24-header-navigation {
    min-height: 64px;
    gap: var(--k24h-s-2);
    /* Inline padding scaled to 8pt; trigger is positioned absolutely. */
    padding-inline: 56px var(--k24h-s-6);
}

/* style-1 has the trigger positioned absolutely on the start side; mirror end-padding for the search button. */
.header-style-1 .k24-header-navigation { padding-inline: 56px 56px; }

.k24-menu--desktop-root { gap: var(--k24h-s-1); }

.k24-menu--desktop-root > .k24-menu__item > .k24-menu__item-row > .k24-menu__link {
    /* layout-cleanup.css drops to 0.8125rem; spec wants 15/600. */
    padding: var(--k24h-s-6) var(--k24h-s-3);
    font-size: var(--k24h-nav-size, 15px);
    font-weight: var(--k24h-nav-weight, 600);
    line-height: 1.1;
    color: var(--k24h-ink);
    position: relative;
}

/* layout-cleanup.css globally sets nav links to 13px — undo for our menu */
.main-header .main-nav .k24-menu__link {
    font-size: var(--k24h-nav-size, 15px);
    line-height: 1.2;
    padding-block: var(--k24h-s-6);
    padding-inline: var(--k24h-s-3);
}

.k24-menu--desktop-root > .k24-menu__item > .k24-menu__item-row > .k24-menu__link::after {
    content: "";
    position: absolute;
    inset-inline: var(--k24h-s-3);
    bottom: 14px;
    height: 2px;
    background: var(--k24h-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}
.k24-menu--desktop-root > .k24-menu__item:hover > .k24-menu__item-row > .k24-menu__link::after,
.k24-menu--desktop-root > .k24-menu__item.is-open > .k24-menu__item-row > .k24-menu__link::after,
.k24-menu--desktop-root > .k24-menu__item.current-menu-item > .k24-menu__item-row > .k24-menu__link::after {
    transform: scaleX(1);
}
.k24-menu--desktop-root > .k24-menu__item.current-menu-item > .k24-menu__item-row > .k24-menu__link {
    color: var(--k24h-red);
}

/* ----- All Sections trigger — pill, premium, deterministic ------------- */
.k24-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    height: 44px;
    min-height: 44px;
    min-width: 180px;
    padding-inline: 18px;
    border-radius: 999px;
    border: 1px solid var(--k24h-border);
    background: var(--k24h-surface);
    color: var(--k24h-ink);
    font-family: 'ItfHuwiyaArabic', var(--font-header, inherit), sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.k24-nav-trigger:hover,
.k24-nav-trigger:focus-visible {
    background: var(--k24h-red-soft);
    border-color: var(--k24h-red);
    color: var(--k24h-red);
    box-shadow: 0 2px 6px rgba(220, 38, 38, .12);
}
.k24-nav-trigger:active { transform: translateY(1px); }
.k24-nav-trigger__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1;
    flex: 0 0 auto;
}

.k24-nav-trigger__icon,
.k24-nav-trigger .k24-icon { font-size: 20px; line-height: 1; }

/* Dual icon (menu + grid_view): both glyphs visible, gapped, vertically centered. */
.k24-nav-trigger__icon--primary,
.k24-nav-trigger__icon--secondary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}
.k24-nav-trigger__icon--primary {
    width: 20px;
    height: 20px;
}
.k24-nav-trigger__icon--secondary {
    display: none !important;
}
.k24-nav-trigger__icon--primary .k24-icon { font-size: 20px !important; width: 20px; height: 20px; }
.k24-nav-trigger:hover .k24-nav-trigger__icon--secondary,
.k24-nav-trigger:focus-visible .k24-nav-trigger__icon--secondary {
    display: none !important;
}

/* Mobile: collapse to a square icon-only button (label hides, secondary hides) */
@media (max-width: 991.98px) {
    .k24-nav-trigger {
        min-width: 44px;
        width: 44px;
        padding-inline: 0;
        gap: 0;
        justify-content: center;
    }
    .k24-nav-trigger__label,
    .k24-nav-trigger__icon--secondary { display: none !important; }
}

/* ----- Search button — integrated into the navigation cluster ---------- */
.search-button {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}
.search-button .search-icon {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--k24h-border);
    border-radius: 999px;
    background: var(--k24h-surface);
    color: var(--k24h-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.search-button .search-icon:hover,
.search-button .search-icon:focus-visible {
    background: var(--k24h-red-soft);
    border-color: var(--k24h-red);
    color: var(--k24h-red);
    box-shadow: 0 2px 6px rgba(220, 38, 38, .12);
}
.search-button .search-icon:active { transform: translateY(1px); }
.search-button .search-icon .k24-icon { font-size: 20px; line-height: 1; }
.search-button .search-close {
    margin-inline-start: 8px;
    color: var(--k24h-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ----- Search overlay (Phase 1: spacing/alignment only) ---------------- */
.main-search-form {
    background: var(--k24h-surface);
    border-bottom: 1px solid var(--k24h-border);
}
.main-search-form .main-search-form-cover {
    padding-block: var(--k24h-s-6) var(--k24h-s-8) !important;
}
.main-search-form .search-form { display: flex; align-items: center; }
.main-search-form .search-form-icon {
    position: absolute;
    inset-inline-start: var(--k24h-s-4);
    color: var(--k24h-muted);
    font-size: 22px;
}
.main-search-form .search_field {
    width: 100%;
    height: 56px;
    padding-inline: 56px var(--k24h-s-4);
    border: 1px solid var(--k24h-border);
    border-radius: 12px;
    background: var(--k24h-bg);
    font-size: 18px;
    color: var(--k24h-ink);
    outline: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.main-search-form .search_field:focus {
    border-color: var(--k24h-red);
    background: var(--k24h-surface);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .08);
}
.main-search-form .suggested-area {
    margin-top: var(--k24h-s-4);
    color: var(--k24h-muted);
    font-size: 13px;
}
.main-search-form .suggested-area .suggested { color: var(--k24h-ink); margin-inline-end: var(--k24h-s-2); }
.main-search-form .suggested-area ul { padding: 0; margin: 0; }
.main-search-form .suggested-area li {
    margin-inline-end: var(--k24h-s-2) !important;
    margin-bottom: var(--k24h-s-2) !important;
}
.main-search-form .suggested-area li a {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--k24h-border);
    border-radius: 999px;
    color: var(--k24h-muted);
    text-decoration: none;
    font-size: 12px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.main-search-form .suggested-area li a:hover {
    background: var(--k24h-red-soft);
    border-color: var(--k24h-red);
    color: var(--k24h-red);
}

/* ----- Breaking news ticker — re-skin to brand ------------------------- */
/* Higher specificity than the partial's inline <style> */
body .breaking-news-ticker-container {
    display: flex;
    align-items: center;
    height: 44px;                      /* spec: 44 */
    background: var(--k24h-red);
    color: #fff;
    border-bottom: 0;
    font-family: 'ItfHuwiyaArabic', var(--font-header, inherit), sans-serif;
    overflow: hidden;
}
body .breaking-news-ticker-container .breaking-title {
    background: rgba(0, 0, 0, .12);
    color: #fff;
    padding: 0 var(--k24h-s-6);
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: var(--k24h-s-2);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}
body .breaking-news-ticker-container .pulse-icon {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin-inline-end: var(--k24h-s-2);
    margin-inline-start: 0;
}
body .breaking-news-ticker-container .ticker-content { color: #fff; }
body .breaking-news-ticker-container .ticker-item a {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .15s ease;
}
body .breaking-news-ticker-container .ticker-item a:hover { opacity: .85; }

/* ----- Drawer (mobile/all-sections) — tighten alignment ---------------- */
#sidebar-wrapper.offcanvas-sidebar {
    width: min(420px, 100vw);
}
.k24-drawer__header {
    padding: var(--k24h-s-6) var(--k24h-s-6) var(--k24h-s-4);
    border-bottom-color: var(--k24h-border);
}
.k24-drawer__title { font-size: 22px; }
.k24-drawer__body { padding: var(--k24h-s-4) var(--k24h-s-6) var(--k24h-s-6); gap: var(--k24h-s-3); }

/* ----- Material symbols sizing — 24x24 wrapper / 20px glyph ------------ */
.main-header .k24-icon,
.k24-header-navigation .k24-icon,
.main-search-form .k24-icon,
.k24-drawer .k24-icon {
    width: 24px;
    height: 24px;
    font-size: 20px !important;
    line-height: 1;
}

/* ----- Logo block fallback heights (override layout-cleanup) ----------- */
.main-header .header-logo .img-logo { max-height: var(--k24h-logo-height, 56px); }
.main-header.header-style-2 .header-bottom .header-logo .img-logo,
.main-header.header-style-3 .header-logo .img-logo { max-height: 48px; }

/* ----- Responsive (Phase 1: tighten only, no behavioural change) ------- */
@media (max-width: 1199.98px) {
    .k24-header-navigation { padding-inline: 48px var(--k24h-s-4); }
    .header-style-1 .k24-header-navigation { padding-inline: 48px 48px; }
}

@media (max-width: 991.98px) {
    .main-header .top-bar { display: none; }   /* utility bar hides on small screens */
    .main-header .header-logo.background-white.pt-20.pb-20 { padding-block: var(--k24h-s-3) !important; }
    .main-header.header-style-1 .header-brand-row { padding-block: var(--k24h-s-2) !important; }
    .main-header.header-style-1 .header-brand-row .img-logo,
    .main-header.header-style-2 .header-bottom .header-logo .img-logo,
    .main-header.header-style-3 .header-logo .img-logo { max-height: 40px; }

    .k24-header-navigation { min-height: 56px; padding-inline: 48px var(--k24h-s-3); }
    .header-style-1 .k24-header-navigation { padding-inline: 48px 48px; }

    body .breaking-news-ticker-container { height: 40px; }
    body .breaking-news-ticker-container .breaking-title { padding: 0 var(--k24h-s-4); font-size: 13px; }
}

@media (max-width: 575.98px) {
    .main-header.header-style-1 .header-brand-row .header-brand-fallback { font-size: 30px; }
    .main-search-form .search_field { height: 48px; font-size: 16px; padding-inline: 48px var(--k24h-s-3); }
    .main-search-form .search-form-icon { inset-inline-start: var(--k24h-s-3); font-size: 20px; }
    .k24-nav-trigger { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
}

/* =========================================================================
   Phase 4: editorial search overlay
   ========================================================================= */
body.open-search-form {
    /* Legacy theme scripts write inline overflow:visible on body. */
    overflow: hidden !important;
    touch-action: none;
}

.main-search-form {
    --k24-search-admin-offset: 0px;
    position: fixed;
    inset: 0;
    z-index: 10000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: calc(var(--k24-search-admin-offset) + 24px) 24px;
    padding-inline: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: transparent;
    border-bottom: 0;
    overflow: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.show-admin-bar .main-search-form {
    --k24-search-admin-offset: 40px;
}

body.open-search-form .main-search-form {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    z-index: 10000001;
    background: transparent;
    overflow: hidden;
    transform: none;
}

.k24-search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .52);
}

.k24-search-overlay__viewport {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100dvh - var(--k24-search-admin-offset) - 48px);
}

.main-search-form .main-search-form-cover.k24-search-overlay__panel {
    width: min(1100px, calc(100vw - 32px));
    max-width: 1100px;
    max-height: calc(100dvh - var(--k24-search-admin-offset) - 48px);
    margin: 0;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(223, 224, 230, .9);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
    position: relative;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.k24-search-overlay__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.k24-search-overlay__eyebrow {
    margin: 0 0 6px;
    color: var(--k24h-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.k24-search-overlay__title {
    margin: 0;
    color: var(--k24h-ink);
    font-family: 'ItfHuwiyaArabic', var(--font-header, inherit), sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: normal;
}

.k24-search-overlay__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid var(--k24h-border);
    border-radius: 14px;
    background: #fff;
    color: var(--k24h-ink);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.k24-search-overlay__close:hover,
.k24-search-overlay__close:focus-visible {
    border-color: var(--k24h-red);
    color: var(--k24h-red);
    background: rgba(220, 38, 38, .06);
    transform: translateY(-1px);
}

.k24-search-overlay__body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 20px;
    align-items: start;
}

.k24-search-overlay__primary,
.k24-search-overlay__secondary {
    min-width: 0;
    display: grid;
    gap: 16px;
    align-content: start;
}

.k24-search-overlay__search-copy {
    display: grid;
    gap: 8px;
}

.k24-search-overlay__label {
    display: block;
    margin: 0;
    color: var(--k24h-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: start;
}

.k24-search-overlay__helper {
    margin: 0;
    color: var(--k24h-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: start;
}

.main-search-form .k24-search-overlay__form {
    margin: 0;
    position: relative;
}

.main-search-form .k24-search-overlay__field-wrap {
    position: relative;
    width: 100%;
}

.main-search-form .k24-search-overlay__form .search-form-icon {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 18px;
    transform: translateY(-50%);
    color: var(--k24h-muted);
    font-size: 20px;
    z-index: 1;
}

.main-search-form .k24-search-overlay__form .search_field {
    display: block;
    width: 100%;
    min-width: 0;
    height: 62px;
    margin: 0;
    padding-block: 0;
    padding-inline: 52px 20px;
    border: 1px solid var(--k24h-border);
    border-radius: 18px;
    background: #fff;
    color: var(--k24h-ink);
    font-size: 18px;
    font-weight: 600;
    text-align: start;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.main-search-form .k24-search-overlay__form .search_field::placeholder {
    color: var(--k24h-muted);
    opacity: 1;
    text-align: start;
}

.main-search-form .k24-search-overlay__form .search_field:focus {
    background: #fff;
    border-color: var(--k24h-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
    outline: none;
}

.k24-search-overlay__section {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--k24h-border);
    border-radius: 20px;
    background: #fff;
}

.k24-search-overlay__section-title {
    margin: 0 0 14px;
    color: var(--k24h-ink);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: start;
}

.k24-search-overlay__section-title::before {
    content: "";
    width: 4px;
    height: 14px;
    background: var(--k24h-red);
    border-radius: 2px;
    flex: 0 0 auto;
}

.k24-search-overlay__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k24-search-overlay__chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding-inline: 16px;
    border: 1px solid var(--k24h-border);
    border-radius: 999px;
    background: #fff;
    color: var(--k24h-ink-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.k24-search-overlay__chips a:hover,
.k24-search-overlay__chips a:focus-visible {
    border-color: var(--k24h-red);
    color: var(--k24h-red);
    background: rgba(220, 38, 38, .04);
}

.k24-search-overlay__quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k24-search-overlay__quick-link {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    min-height: 64px;
    padding: 16px;
    border: 1px solid var(--k24h-border);
    border-radius: 16px;
    background: #fff;
    color: var(--k24h-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: start;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.k24-search-overlay__quick-link .k24-icon {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--k24h-muted);
    transition: color .2s ease;
}

.k24-search-overlay__quick-link:hover {
    border-color: var(--k24h-red);
    background: rgba(220, 38, 38, .04);
    color: var(--k24h-red);
}

.k24-search-overlay__quick-link:hover .k24-icon {
    color: var(--k24h-red);
}

[dir=rtl] .k24-search-overlay__header,
[dir=rtl] .k24-search-overlay__label,
[dir=rtl] .k24-search-overlay__helper,
[dir=rtl] .k24-search-overlay__section-title,
[dir=rtl] .k24-search-overlay__quick-link {
    text-align: start;
}

[dir=rtl] .main-search-form .k24-search-overlay__form .search_field {
    text-align: start;
}

@media (max-width: 991.98px) {
    .main-search-form {
        padding-block: calc(var(--k24-search-admin-offset) + 20px) 20px;
    }

    .k24-search-overlay__body {
        grid-template-columns: 1fr;
    }

    .k24-search-overlay__quick-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .show-admin-bar .main-search-form {
        --k24-search-admin-offset: 46px;
    }

    .main-search-form {
        padding-inline: 12px;
        padding-block: calc(var(--k24-search-admin-offset) + 16px) 16px;
    }

    .k24-search-overlay__viewport {
        min-height: calc(100dvh - var(--k24-search-admin-offset) - 32px);
    }

    .main-search-form .main-search-form-cover.k24-search-overlay__panel {
        width: calc(100% - 24px);
        max-height: calc(100dvh - var(--k24-search-admin-offset) - 32px);
        padding: 20px;
        border-radius: 22px;
    }

    .k24-search-overlay__header {
        align-items: center;
        margin-bottom: 20px;
    }

    .k24-search-overlay__title {
        font-size: 26px;
    }

    .main-search-form .k24-search-overlay__form .search_field {
        height: 56px;
        padding-inline: 46px 16px;
        font-size: 16px;
    }

    .main-search-form .k24-search-overlay__form .search-form-icon {
        inset-inline-start: 16px;
        font-size: 18px;
    }

    .k24-search-overlay__section {
        padding: 16px;
    }

    .k24-search-overlay__quick-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Header shell — DETERMINISTIC desktop layout (overlap fix)
   Keep style-2/style-3 header compact, predictable, with no overlap.
   ----------------------------------------------------------------------
   Layout contract:
     style-1 → logo lives above the nav row.
              The nav row has [abs trigger] [in-flow brand] [in-flow nav links] [abs search].
              Trigger AND search are absolutely positioned at row start/end;
              the nav reserves explicit padding for both.
     style-2 → logo lives in col-lg-2, nav in col-lg-10 (same row).
              The nav row has [in-flow trigger] [in-flow brand] [in-flow nav links] [abs search].
              Trigger is in flex flow (NEVER absolute); only search is abs at row end.
     style-3 → identical layout contract to style-2.
   The previous rule that made the trigger absolute for ALL header styles
   collided with the col-lg-2 logo column and overlapped the first menu link
   in style-2/3 because the 56px start padding could not contain a
   ~130px wide pill. This file reverts that and uses pure flexbox.
   ========================================================================= */
.main-header.header-style-2,
.main-header.header-style-3 {
    background: var(--k24h-surface);
}

.main-header.header-style-2 .header-logo.background-white.pt-20.pb-20,
.main-header.header-style-3 .header-logo.background-white.pt-20.pb-20 {
    padding-block: 12px !important;
}

.main-header .header-ads-slot {
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden;
}

.main-header .header-ads-slot a,
.main-header .header-ads-slot picture {
    display: block;
}

.main-header .header-ads-slot img {
    display: block;
    width: min(100%, 970px);
    max-height: 96px;
    margin-inline: auto;
    border-radius: 8px;
    object-fit: contain;
}

.main-header.header-style-2 .header-bottom,
.main-header.header-style-3 .header-bottom {
    height: auto !important;
    min-height: 72px;
    border-top: 0 !important;
}

.main-header.header-style-2 .header-bottom > .container > .row,
.main-header.header-style-3 .header-bottom > .container > .row {
    display: flex;
    align-items: center;
    min-height: 72px;
    flex-wrap: nowrap;
}

.main-header.header-style-2 .header-bottom .col-lg-2,
.main-header.header-style-3 .header-bottom .col-lg-2 {
    display: flex !important;
    align-items: center;
    flex: 0 0 180px;
    max-width: 180px;
    padding-inline-end: 16px;          /* visual gap into nav column */
}

.main-header.header-style-2 .header-bottom .col-lg-10,
.main-header.header-style-3 .header-bottom .col-lg-10 {
    flex: 1 1 0;
    min-width: 0;                       /* allow nav children to shrink */
    max-width: calc(100% - 180px);
    padding-inline-start: 0;
}

.main-header.header-style-2 .header-bottom .header-logo,
.main-header.header-style-3 .header-bottom .header-logo {
    display: flex;
    align-items: center;
    min-height: 64px;
    margin: 0;
}

.main-header.header-style-2 .header-bottom .header-logo a,
.main-header.header-style-3 .header-bottom .header-logo a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.main-header.header-style-2 .header-bottom .header-logo .img-logo,
.main-header.header-style-3 .header-bottom .header-logo .img-logo {
    display: block;
    max-height: 48px !important;
    width: auto;
}

/* ---------- Style-2 / style-3 nav row: flex, in-flow trigger ----------- */
.main-header.header-style-2 .k24-header-navigation,
.main-header.header-style-3 .k24-header-navigation {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 64px;
    padding-inline: 0 56px;             /* end padding reserves room for the abs search button */
    overflow: visible;
}

/* Trigger is in-flow for style-2/3 — defeat the absolute rule that
   navigation.css (legacy) and earlier override blocks set. */
.main-header.header-style-2 .k24-header-navigation__drawer-trigger,
.main-header.header-style-3 .k24-header-navigation__drawer-trigger {
    position: static !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: auto;
    flex: 0 0 auto;
    display: none;
}

/* ---------- Style-1 nav row: keep trigger absolute, reserve padding ---- */
.main-header.header-style-1 .k24-header-navigation {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 64px;
    padding-inline: 160px 56px;         /* room for abs trigger (~140px pill) and abs search */
    overflow: visible;
}

.main-header.header-style-1 .k24-header-navigation__drawer-trigger {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    flex: 0 0 auto;
}

/* ---------- Search button -----------------------------------------------
   Style-1: nav row has [abs trigger] ... [abs search] — keep absolute.
   Style-2 / Style-3: nav row is fully in-flow — search becomes the LAST
   flex item, sitting beside the menu links so it reads as part of the
   cluster instead of an abandoned floater. */
.main-header .k24-header-navigation .search-button {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    flex: 0 0 auto;
}

.main-header.header-style-2 .k24-header-navigation .search-button,
.main-header.header-style-3 .k24-header-navigation .search-button {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin-inline-start: 8px;           /* gap from the last menu link */
    z-index: auto;
}

/* Style-2 / Style-3 nav: drop the right-side abs reservation now that
   search lives in the cluster. */
.main-header.header-style-2 .k24-header-navigation,
.main-header.header-style-3 .k24-header-navigation {
    padding-inline: 0 8px;
}

/* ---------- Main nav: fills space, shrinks safely ---------------------- */
.main-header .k24-header-navigation .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
}

[dir=rtl] .main-header .k24-header-navigation .main-nav {
    justify-content: flex-end;
}

.main-header .k24-header-navigation .k24-site-navigation {
    width: 100%;
    overflow: hidden;
}

.main-header .k24-header-navigation .k24-menu--desktop-root {
    flex-wrap: nowrap;
    width: 100%;
}

/* ---------- All Sections pill: keep label inline, never wrap ----------- */
.main-header .k24-nav-trigger {
    white-space: nowrap;
    flex-wrap: nowrap;
    line-height: 1;
}

.main-header .k24-nav-trigger__label,
.main-header .k24-nav-trigger__icon {
    display: inline-flex;
    align-items: center;
}

/* ---------- Sticky brand: TRUE zero footprint when not sticky ---------- */
.main-header .header-bottom:not(.sticky-bar) .k24-sticky-brand {
    flex: 0 0 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.main-header .header-bottom.header-sticky.sticky-bar .k24-sticky-brand {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 240px !important;
    height: 36px !important;
    padding: 0 12px !important;
    margin-inline-end: 16px !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ---------- Mobile: collapse logo column, single-column layout --------- */
@media (max-width: 991.98px) {
    .main-header.header-style-2 .header-bottom,
    .main-header.header-style-3 .header-bottom {
        min-height: 64px;
    }

    .main-header.header-style-2 .header-bottom > .container > .row,
    .main-header.header-style-3 .header-bottom > .container > .row {
        min-height: 64px;
    }

    .main-header.header-style-2 .header-bottom .col-lg-2,
    .main-header.header-style-3 .header-bottom .col-lg-2 {
        padding-inline-end: 0;
    }

    .main-header.header-style-2 .header-bottom .col-lg-10,
    .main-header.header-style-3 .header-bottom .col-lg-10 {
        max-width: 100%;
        padding-inline-start: 0;
    }

    .main-header.header-style-2 .k24-header-navigation,
    .main-header.header-style-3 .k24-header-navigation {
        min-height: 56px;
        padding-inline: 0 52px;
    }

    .main-header.header-style-1 .k24-header-navigation {
        padding-inline: 132px 52px;
    }
}

@media (max-width: 575.98px) {
    .main-header.header-style-1 .k24-header-navigation {
        /* Mobile collapses the trigger label, so 64px is enough. */
        padding-inline: 64px 52px;
    }
}

/* =========================================================================
   Alignment + Typography CSS vars applied globally to header chrome
   ========================================================================= */

/* Logo alignment — brand rows */
.main-header .header-brand-row .col-12,
.main-header.header-style-1 .header-brand-row .col-12 {
    display: flex;
    justify-content: var(--k24h-logo-justify, center);
}

/* Nav link alignment */
.k24-menu--desktop-root {
    justify-content: var(--k24h-nav-justify, center);
}

/* Nav link text transform + letter spacing */
.k24-menu--desktop-root > .k24-menu__item > .k24-menu__item-row > .k24-menu__link,
.main-header .main-nav .k24-menu__link {
    text-transform: var(--k24h-nav-transform, none);
    letter-spacing: var(--k24h-nav-spacing, 0em);
}

/* =========================================================================
   Style 5 — Minimal single-row header
   ========================================================================= */
.main-header.header-style-5 .header-style-5__bar {
    border-bottom: 1px solid var(--k24h-border);
}

.main-header.header-style-5 .header-style-5__row {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: var(--k24h-s-4);
}

.main-header.header-style-5 .header-style-5__brand { flex-shrink: 0; }

.main-header.header-style-5 .header-style-5__logo-link {
    display: inline-flex;
    align-items: center;
}

.main-header.header-style-5 .header-style-5__logo-img {
    max-height: var(--k24h-logo-height, 48px);
    width: auto;
}

.main-header.header-style-5 .header-style-5__logo-text {
    font-family: 'ItfHuwiyaArabic', var(--font-header, inherit), sans-serif;
    font-size: 22px; font-weight: 900; color: var(--k24h-ink); white-space: nowrap;
}

.main-header.header-style-5 .header-style-5__nav {
    flex: 1 1 0;
    justify-content: var(--k24h-nav-justify, center);
    min-width: 0;
}

.main-header.header-style-5 .header-style-5__nav .k24-menu--style-5 {
    gap: 0; flex-wrap: nowrap; justify-content: inherit;
}

.main-header.header-style-5 .header-style-5__actions {
    flex-shrink: 0; display: flex; align-items: center; gap: var(--k24h-s-2);
}

@media (max-width: 991.98px) {
    .main-header.header-style-5 .header-style-5__row { min-height: 60px; }
    .main-header.header-style-5 .header-style-5__brand { flex: 1; }
}

/* =========================================================================
   Style 6 — Magazine stack (brand row + accent nav bar)
   ========================================================================= */
.main-header.header-style-6 .header-style-6__brand-row {
    border-bottom: 1px solid var(--k24h-border);
    padding-block: var(--k24h-s-3);
}

.main-header.header-style-6 .header-style-6__brand-inner {
    display: flex; align-items: center; justify-content: space-between; min-height: 64px;
}

.main-header.header-style-6 .header-style-6__trigger,
.main-header.header-style-6 .header-style-6__actions {
    flex-shrink: 0; min-width: 120px;
}

.main-header.header-style-6 .header-style-6__actions {
    display: flex; justify-content: flex-end; align-items: center;
}

.main-header.header-style-6 .header-style-6__logo-link {
    display: flex; justify-content: center; align-items: center; flex: 1;
}

.main-header.header-style-6 .header-style-6__logo-img {
    max-height: var(--k24h-logo-height, 52px); width: auto;
}

.main-header.header-style-6 .header-style-6__logo-text {
    font-family: 'ItfHuwiyaArabic', var(--font-header, inherit), sans-serif;
    font-size: 26px; font-weight: 900; color: var(--k24h-ink);
}

.main-header.header-style-6 .header-style-6__nav-bar {
    background: var(--k24h-ink);
    border-bottom: 3px solid var(--k24h-red);
}

.main-header.header-style-6 .header-style-6__nav-inner {
    display: flex; align-items: center; min-height: 52px; gap: var(--k24h-s-4);
}

.main-header.header-style-6 .header-style-6__nav {
    flex: 1; justify-content: var(--k24h-nav-justify, center); min-width: 0;
}

.main-header.header-style-6 .k24-menu--style-6 > .k24-menu__item > .k24-menu__item-row > .k24-menu__link {
    color: rgba(255,255,255,.85);
}
.main-header.header-style-6 .k24-menu--style-6 > .k24-menu__item:hover > .k24-menu__item-row > .k24-menu__link,
.main-header.header-style-6 .k24-menu--style-6 > .k24-menu__item.current-menu-item > .k24-menu__item-row > .k24-menu__link {
    color: #fff;
}
.main-header.header-style-6 .k24-menu--style-6 > .k24-menu__item > .k24-menu__item-row > .k24-menu__link::after {
    background: var(--k24h-red);
}
.main-header.header-style-6 .k24-menu--style-6 .k24-menu__toggle { color: rgba(255,255,255,.6); }

.main-header.header-style-6 .header-style-6__sticky-brand { display: none; }

.main-header.header-style-6 .header-style-6__mobile {
    display: flex; align-items: center; gap: var(--k24h-s-2);
    width: 100%; justify-content: space-between; padding-block: var(--k24h-s-2);
}

@media (max-width: 991.98px) {
    .main-header.header-style-6 .header-style-6__brand-row { display: none !important; }
    .main-header.header-style-6 .header-style-6__nav-inner { min-height: 60px; }
}

/* =========================================================================
   Drawer Style 3 — Fullscreen overlay
   ========================================================================= */
.drawer--style-3 #sidebar-wrapper { background: #0d2340 !important; }

.k24-drawer--fullscreen {
    background: #0d2340;
    color: #fff;
}

.k24-drawer--fullscreen .k24-drawer__header--fullscreen {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.k24-drawer-fs__brand { text-decoration: none; }
.k24-drawer-fs__logo { max-height: 40px; filter: brightness(0) invert(1); }
.k24-drawer-fs__site-name {
    font-family: 'ItfHuwiyaArabic', var(--font-header, inherit), sans-serif;
    font-size: 22px; font-weight: 900; color: #fff;
}

.k24-drawer-fs__close {
    color: #fff !important; background: rgba(255,255,255,.1); border-radius: 8px;
    padding: 8px; border: none; cursor: pointer; transition: background .15s ease;
    display: inline-flex; align-items: center; justify-content: center;
}
.k24-drawer-fs__close:hover { background: rgba(255,255,255,.2); }

.k24-drawer-fs__body {
    display: flex; flex-direction: column; justify-content: center;
    flex: 1; overflow-y: auto; padding: 32px;
}

.k24-drawer-fs__nav { margin-bottom: 32px; }

.k24-menu--fs > .k24-menu__item > .k24-menu__item-row > .k24-menu__link {
    font-size: clamp(20px, 3vw, 32px); font-weight: 800;
    color: rgba(255,255,255,.75); padding: 10px 0; line-height: 1.2;
    letter-spacing: -.02em; transition: color .15s ease, padding-inline-start .15s ease;
}
.k24-menu--fs > .k24-menu__item:hover > .k24-menu__item-row > .k24-menu__link,
.k24-menu--fs > .k24-menu__item.current-menu-item > .k24-menu__item-row > .k24-menu__link {
    color: #fff; padding-inline-start: 12px;
}
.k24-menu--fs > .k24-menu__item > .k24-menu__item-row > .k24-menu__toggle {
    color: rgba(255,255,255,.5);
}

.k24-drawer-fs__extras {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
    opacity: .7;
}

/* =========================================================================
   Drawer Style 4 — Compact list + recent posts
   ========================================================================= */
.k24-drawer--compact .k24-drawer-compact__body {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; flex: 1; overflow: hidden;
}

@media (max-width: 575.98px) {
    .k24-drawer--compact .k24-drawer-compact__body { grid-template-columns: 1fr; }
}

.k24-drawer-compact__menu {
    overflow-y: auto; padding: 16px;
    border-inline-end: 1px solid var(--k24h-border, #E5E7EB);
}

.k24-drawer-compact__recent { overflow-y: auto; padding: 16px; background: #F9FAFB; }

.k24-drawer-compact__cats-label,
.k24-drawer-compact__recent-label {
    font-size: 10px; font-weight: 800; color: #6B7280;
    text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 8px;
}

.k24-drawer-compact__cats-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.k24-drawer-compact__cat-chip {
    display: inline-block; padding: 3px 10px;
    background: #F3F4F6; color: #374151; border-radius: 999px;
    font-size: 12px; font-weight: 600; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.k24-drawer-compact__cat-chip:hover { background: var(--k24h-red, #DC2626); color: #fff; }

.k24-menu--compact > .k24-menu__item > .k24-menu__item-row > .k24-menu__link {
    font-size: 14px; font-weight: 700; padding-block: 8px; color: #111827;
}
.k24-menu--compact > .k24-menu__item:hover > .k24-menu__item-row > .k24-menu__link {
    color: var(--k24h-red, #DC2626);
}

.k24-drawer-compact__list { display: flex; flex-direction: column; gap: 10px; }

.k24-drawer-compact__item {
    display: flex; align-items: flex-start; gap: 10px;
    text-decoration: none; color: #111827; padding: 4px;
    border-radius: 6px; transition: background .15s ease;
}
.k24-drawer-compact__item:hover { background: #F3F4F6; }

.k24-drawer-compact__thumb {
    flex-shrink: 0; width: 52px; height: 52px;
    object-fit: cover; border-radius: 6px; background: #E5E7EB; display: block;
}
.k24-drawer-compact__thumb--placeholder { background: #E5E7EB; }

.k24-drawer-compact__title {
    font-size: 13px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================================================
   Hero Slider Style-3 — Center content overlay vertically in slide
   Problem: .post-content-overlay was bottom: 2rem which put the title and
   meta directly behind the thumbnail strip (bottom-right corner).
   Fix: stretch the overlay to fill the full slide height and use flexbox
   to center the inner .container vertically. Thumbnail strip stays put.
   ========================================================================= */
.featured-slider-2 .post-content-overlay {
    top: 0 !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-inline: 24px;
    /* Slide gradient already darkens the image — no extra overlay needed */
}

/* Keep inner container full-width; remove any max-width that clips Arabic titles */
.featured-slider-2 .post-content-overlay > .container {
    width: 100%;
    max-width: 900px; /* comfortable reading width, not full 1320px */
    padding: 0;
}

/* Post title: allow up to full container width for long Arabic headlines */
.featured-slider-2 .post-content-overlay .post-title,
.featured-slider-2 .post-content-overlay .shortcode-card-title {
    max-width: 100% !important;
    margin-block-end: 0.75rem !important;
}

/* Thumbnail strip: raise z-index above the content overlay so it stays
   visually on top (it's in a sibling/separate container but overlaps
   the slide visually through absolute positioning) */
.featured-slider-2-nav-cover {
    z-index: 510;
}

/* Responsive: on smaller viewports keep the content centered */
@media (max-width: 991.98px) {
    .featured-slider-2 .post-content-overlay {
        padding-inline: 16px;
    }
    .featured-slider-2 .post-content-overlay > .container {
        max-width: 100%;
    }
}

/* RTL: content sits on the right side — logical properties already handle
   this but make align-items explicit for RTL flex container */
[dir="rtl"] .featured-slider-2 .post-content-overlay {
    align-items: flex-end !important;
}
