/* ----------------------------------------------------------
   ADM NEWS — FEATURED IMAGE (LIGHT MODE)
---------------------------------------------------------- */

@media (min-width: 992px) {

  .single .entry-thumbnail-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;

    background: #e5e5e5;
    overflow: hidden;
    border-radius: 2px;

    margin: 30px auto;

    cursor: url(https://abudhabimagazine.ae/wp-content/uploads/2026/01/icons8-zoom-in-24.png) 16 16, zoom-in;
  }

  /* IMAGE */
  .single .entry-thumbnail-area img {
    position: absolute;
    inset: 0;
    margin: auto;

    max-width: 100%;
    max-height: 100%;

    width: auto !important;
    height: auto !important;

    object-fit: contain;
    object-position: center;

    transform: none !important;

    z-index: 2;

    cursor: inherit;
  }
}

/* ----------------------------------------------------------
   DARK MODE FIX (background only)
---------------------------------------------------------- */

[data-theme="dark-mode"] .single .entry-thumbnail-area {
  background: #111;
}

/* optional: subtle border in dark mode */
[data-theme="dark-mode"] .single .entry-thumbnail-area {
  border: 1px solid rgba(255,255,255,0.06);
}

  /* ------------------------------------------------------
     LOGO / EMBLEM CONTROL (FIX OVERSIZED IMAGES)
  ------------------------------------------------------ */

  .single .entry-thumbnail-area img[width],
  .single .entry-thumbnail-area img[height] {
    max-width: 70%;
    max-height: 70%;
  }

  /* extra safeguard for SVG / wide logos */
  .single .entry-thumbnail-area img {
    max-inline-size: 100%;
  }
}

/* ----------------------------------------------------------
   POINTER EVENTS (SAFE ZOOM BEHAVIOR)
---------------------------------------------------------- */

.single .entry-thumbnail-area * {
  pointer-events: none;
}

.single .entry-thumbnail-area img {
  pointer-events: auto;
}

/* ----------------------------------------------------------
   ZOOM STATE
---------------------------------------------------------- */

.single .entry-thumbnail-area.zoom-active img {
  cursor: url(https://abudhabimagazine.ae/wp-content/uploads/2026/01/icons8-zoom-in-24.png) 16 16, zoom-out;
}


/* ----------------------------------------------------------
   UNIVERSAL THUMB BOX
---------------------------------------------------------- */

.adm-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e5e5e5;
}


/* ----------------------------------------------------------
   ARCHIVE TITLES
---------------------------------------------------------- */

.archive .entry-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

@media (max-width: 767px) {
  .archive .entry-title a {
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 768px) {
  .archive .entry-title a {
    -webkit-line-clamp: 3;
  }
}


/* ----------------------------------------------------------
   ARCHIVE FADE OVERLAY (DESKTOP)
---------------------------------------------------------- */

.archive .entry-text {
  position: relative;
}

.archive .entry-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

[data-theme="dark-mode"] .archive .entry-text::after {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    #111
  ) !important;
}

@media (max-width: 1024px) {
  .archive .entry-text::after {
    display: none !important;
  }
}

/* ----------------------------------------------------------
   ARCHIVE CLEANUP
---------------------------------------------------------- */

.rt-cat-description,
.archive .post-read-more {
  display: none !important;
}

.archive .blog-box {
  align-items: flex-start;
  margin-bottom: 0 !important;
}

.archive .blog-box .entry-content {
  display: flex;
  flex-direction: column;
  gap: 10px;

  height: auto !important;
  padding-bottom: 0 !important;
}

.archive .blog-box .entry-text,
.archive .blog-box .entry-meta {
  margin: 0 !important;
}

/* =========================================
   NO IMAGE POSTS = FULL WIDTH CONTENT
========================================= */

/* Remove empty image column */
.archive .blog-box.no-image .blog-img-holder {
    display: none !important;
}

/* Expand content area */
.archive .blog-box.no-image .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Collapse flex layout */
.archive .blog-box.no-image {
    display: block !important;
}

/* ----------------------------------------------------------
   META ALIGN
---------------------------------------------------------- */

.entry-meta {
  display: flex;
  align-items: center;
}

.meta-share-item {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* ----------------------------------------------------------
   FLOATING SHARE (CLEAN — NO PANEL)
---------------------------------------------------------- */

.adm-floating-share {
  position: fixed;
  top: 75%;
  right: 10px;
  transform: translateY(-50%);

  background: none;
  border: none;
  padding: 0;

  display: none;
  z-index: 9999;
  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

.adm-floating-share img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;

  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Mobile and Tablet */
@media (max-width: 768px) {

  .single .entry-thumbnail-area {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    border-radius: 0 !important;
    display: block;
  }

  .single .entry-thumbnail-area img {
    width: 100% !important;
    height: auto !important;

    max-width: 100%;
    display: block;
    margin: 0 auto;
  }

}
/* ----------------------------------------------------------
   REMOVE TAP / CLICK HIGHLIGHT (ALL DEVICES)
---------------------------------------------------------- */

.adm-floating-share {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  background: transparent !important;
}

.adm-floating-share:focus,
.adm-floating-share:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Also protect the image inside */
.adm-floating-share img {
  -webkit-tap-highlight-color: transparent !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.adm-floating-share {
  appearance: none;
  -webkit-appearance: none;
}

.adm-floating-share {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* ----------------------------------------------------------
   SHARE BUTTON (UNIFIED FIX)
---------------------------------------------------------- */

.single-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;

  width: 80px;
  height: 26px;

  gap: 4px; /* 👈 tighter spacing */

  background: #e64946;
  color: #fff;

  border: 0;
  border-radius: 3px;

  font: 600 12px 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;

  cursor: pointer;

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 🔥 Normalize icon everywhere */
.single-share-btn .icon-wrap {
  display: inline-flex !important;
  align-items: center;
  margin: 0; /* 👈 remove any theme spacing */
}

.single-share-btn .icon-wrap img {
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
  max-width: none !important;
  margin: 0; /* 👈 critical fix */
}

/* 🔥 Kill spacing from list item (top button issue) */
.entry-meta .meta-share-item {
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------------------------------------------
   FIX TOP SHARE POSITION + SPACING
--------------------------------------------- */

/* Make meta row behave properly */
.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Push share button to the far right */
.entry-meta .meta-share-item {
  margin-left: auto !important; /* 👈 key fix */
  display: flex;
  align-items: center;
}

/* Fix icon spacing inside button */
.entry-meta .single-share-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}

/* Ensure icon sits tight */
.entry-meta .single-share-btn img {
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
  margin: 0 !important;
}


@media (max-width: 1024px) {

  /* hide bottom share ONLY */
  .single-share-bottom {
    display: none !important;
  }

}

@media (max-width: 1024px) {

  /* remove spacing when bottom share is hidden */
  .single-share-bottom {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 0 !important;
  }

  /* remove spacing from meta area if it becomes empty */
  .entry-meta:empty {
    display: none !important;
  }

  /* tighten last content block spacing */
  .single .entry-content > *:last-child {
    margin-bottom: 0 !important;
  }

  /* remove possible theme footer spacing under content */
  .single .entry-content {
    padding-bottom: 0 !important;
  }

}

/* ----------------------------------------------------------
   BOTTOM ALIGNMENT
---------------------------------------------------------- */

.single-share-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}

/* ----------------------------------------------------------
   IMPORTANT: DO NOT TOUCH BACK-TO-TOP
---------------------------------------------------------- */

/* Ensure it's visible above floating button */
.scroll-wrap {
  z-index: 10000;
}

/* ----------------------------------------------------------
   RELATED POSTS (WAM-STYLE GRID — CLEAN)
---------------------------------------------------------- */

.rt-related-post {
    display: flex;
    flex-direction: column;
    gap: 12px; /* controls space between title + grid */
}

/* REMOVE EXTRA SPACE BELOW TITLE */
.rt-related-post .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
}

.rt-related-post .related-title {
    margin-bottom: 8px;
}

/* GRID */
.adm-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; /* tighter than 20px */
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .adm-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .adm-related-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.adm-related-grid .blog-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* IMAGE (4:3 like WAM) */
.adm-related-grid .blog-img {
    margin-bottom: 6px; /* 🔥 reduced gap image → title */
}

.adm-related-grid .blog-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* CONTENT */
.adm-related-grid .entry-content {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* TITLE */
.adm-related-grid .entry-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 4px 0;

    /* 2-line clamp */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

/* EXCERPT */
.adm-related-grid .entry-excerpt {
    position: relative;
    font-size: 13.5px;
    line-height: 1.5;
    color: #555;
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 8; /* shorter = cleaner grid */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FADE (SUBTLE - LIGHT MODE) */
.adm-related-grid .entry-excerpt {
    position: relative;
}

.adm-related-grid .entry-excerpt::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        #fff
    );

    pointer-events: none;
}

/* DARK MODE OVERRIDE */
[data-theme="dark-mode"] .adm-related-grid .entry-excerpt::after {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0),
        #111
    ) !important;
}

/* MOBILE */
@media (max-width: 1024px) {
    .adm-related-grid .entry-excerpt::after {
        display: none !important;
    }
}
/* RELATED POSTS DATE (FORCE OVERRIDE) */
.adm-related-grid .entry-date {
    margin-top: 10px !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    color: #888 !important;
}

/* LIGHT MODE EXCERPT */
.adm-related-grid .entry-excerpt {
    color: rgba(0,0,0,0.90) !important;
}

/* LIGHT MODE DATE */
.adm-related-grid .entry-date {
    color: rgba(0,0,0,0.7) !important;
}

/* DARK MODE EXCERPT */
[data-theme="dark-mode"] .adm-related-grid .entry-excerpt {
    color: rgba(255,255,255,0.78) !important;
}

/* DARK MODE DATE */
[data-theme="dark-mode"] .adm-related-grid .entry-date {
    color: rgba(255,255,255,0.5) !important;
}

/* ICON + SIZE CONTROL (CLEAN WAM STYLE) */
.adm-related-grid .entry-date i:before,
.adm-related-grid .post-date i:before {
    content: "\f017" !important;
    font-family: FontAwesome !important;
    font-size: 10px !important;
    margin-right: 0px;
    display: inline-block;
}

.adm-related-grid .entry-date i {
    font-size: 11px;
}

/* =========================================
   SINGLE POST HEADER MOBILE CLEANUP
========================================= */
@media (max-width: 768px) {

    /* REMOVE CATEGORY */
    .single .entry-categories {
        display: none !important;
    }

    /* TIGHTEN HEADER TOP SPACE */
    .single .entry-header {
        padding-top: 0px !important;
        margin-top: 0 !important;
    }

    /* REDUCE GAP ABOVE TITLE AREA WRAPPER */
    .single .main-wrap,
    .single .adm-share-scope {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* OPTIONAL: tighten whole content wrapper */
    .single #primary {
        padding-top: 10px !important;
    }
}

@media (max-width: 768px) {

    .single .entry-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-top: 8px !important;
    }

    .single .entry-meta {
        margin-bottom: 10px !important;
    }
}

/* =========================================
   MOBILE READING EXPERIENCE (HEADER + TYPOGRAPHY)
========================================= */
@media (max-width: 768px) {

    /* ------------------------------
       TYPOGRAPHY (POST CONTENT)
    ------------------------------ */

    .single .entry-content {
        font-size: 15px;
        line-height: 1.70;
        letter-spacing: 0.1px;
    }

    .single .entry-content p {
        margin-bottom: 12px;
    }

    /* Title balance */
    .single .entry-title {
        font-size: 20px;
        line-height: 1.3;
    }

    /* Container spacing control */
    .single #primary,
    .single .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}


@media (max-width: 768px) {

  /* ==========================================================
     REMOVE THEME SPACING INFLUENCE (SAFE CLEANUP)
  ========================================================== */

  /* header spacing control */
  .single .entry-header {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* title spacing controlled by theme */
  .single .entry-title {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  /* remove container side padding influence (ONLY mobile) */
  .single #primary {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

}
/* =========================================
   MOBILE: REDUCE IMAGE → CONTENT GAP
========================================= */
@media (max-width: 768px) {

    /* Reduce space under featured image */
    .single .entry-thumbnail-area {
        margin-bottom: 10px !important;
    }

    /* Remove extra top space before content */
    .single .entry-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* If theme adds gap via wrapper */
    .single .main-wrap {
        gap: 0 !important;
    }
}

/* =========================================
   MOBILE: REMOVE META COMPLETELY
========================================= */
@media (max-width: 768px) {

    .single .entry-meta {
        display: none !important;
    }

}

/* =========================================
   REMOVE ADM NEWS + PIPE (CSS ONLY)
========================================= */
@media (max-width: 768px) {

    /* Hide ADM + NEWS spans */
    .single .entry-content span[style*="E64946"],
    .single .entry-content span[style*="747474"] {
        display: none !important;
    }

    /* Remove the pipe that follows */
    .single .entry-content span[style*="color:#000"] {
        display: none !important;
    }

    /* Fix leftover spacing at start of first paragraph */
    .single .entry-content p:first-child {
        margin-top: 0 !important;
    }

}

.adm-og-preview-frame {
    width: 100%;
    aspect-ratio: 1200 / 630;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.adm-og-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-og-loading,
.adm-og-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.adm-og-preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.og-studio-template-selector {
    padding: 12px;
    font-family: system-ui, sans-serif;
}

.og-studio-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.og-studio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.og-template-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.og-template-card:hover {
    transform: translateY(-1px);
    border-color: #999;
}

.og-template-card.active {
    border: 2px solid #000;
}

.og-template-preview {
    height: 80px;
    background: linear-gradient(135deg, #111, #444);
    position: relative;
}

.tpl-category {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
}

.tpl-title {
    position: absolute;
    bottom: 18px;
    left: 10px;
    width: 70%;
    height: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
}

.tpl-footer {
    position: absolute;
    bottom: 6px;
    left: 10px;
    width: 40%;
    height: 5px;
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
}

.og-template-label {
    padding: 8px 10px;
    font-size: 12px;
}

.adm-og-studio-canvas-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* THE KEY FIX */
.adm-og-studio-frame {
    width: 420px;
    height: 220px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 1px solid #333;
}

/* IMAGE FIT INSIDE FRAME */
.adm-og-studio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* LOADING OVERLAY */
.adm-og-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.7);
    color: #fff;
}

/* ACTION BAR */
.adm-og-studio-actions {
    display: flex;
    gap: 10px;
}


/* ==========================================================
   SAFE ZOOM FIX (DO NOT OVERRIDE JS TRANSFORM)
========================================================== */

.single .entry-thumbnail-area img {
  transform: none; /* IMPORTANT: no !important */
  transition: transform 0.25s ease;
  will-change: transform;
}

/* ensure zoom state still works */
.single .entry-thumbnail-area.zoom-active img {
  transform: scale(2.2);
}


/* ==========================================================
   FLOATING SHARE — SAFE VISIBILITY FIX
========================================================== */

.adm-floating-share {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ensure it never blocks footer area */
footer,
.site-footer {
  position: relative;
  z-index: 10;
}

/* keep it above content but not footer */
.adm-share-scope {
  position: relative;
  z-index: 1;
}

/* MOBILE VISIBILITY (share icon consistency) */

@media (max-width: 1024px) {

  body.single .adm-floating-share {
    display: block;
  }

  .adm-floating-share {
    opacity: 0;
    pointer-events: none;
  }

}


/* ==========================================================
   FIX ZOOM — PREVENT IMAGE ESCAPING FRAME
========================================================== */

.single .entry-thumbnail-area {
  overflow: hidden !important;
  position: relative;
}

.single .entry-thumbnail-area img {
  transform-origin: center center;
  will-change: transform;
}

.single .entry-thumbnail-area.zoom-active img {
  transform: scale(2.2);
}



/* ==========================================================
   SAFE FULL WIDTH — IMAGE ONLY (KEEP CONTENT SAFE)
========================================================== */

@media (max-width: 768px) {

  /* FULL BLEED IMAGE ONLY */
  .single .entry-thumbnail-area {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    border-radius: 0 !important;
  }

  /* IMAGE FIT */
  .single .entry-thumbnail-area img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* ❌ IMPORTANT: DO NOT TOUCH CONTAINER ANYMORE */
}



/* ==========================================================
   DEFINE TRUE ARTICLE END (BEFORE RELATED POSTS)
========================================================== */

.single .adm-share-scope {
  position: relative;
}

/* 👇 THIS is the real fix */
.single .adm-share-scope > .entry-content {
  position: relative;
}

/* mark related posts as OUTSIDE share scope visually */
.single .rt-related-post,
.single .adm-related-grid {
  position: relative;
  z-index: 2;
}
}


/* ==========================================================
   STOP SHARE BEFORE RELATED POSTS STARTS
========================================================== */

.single .rt-related-post {
  margin-top: 40px;
  position: relative;
}


/* =========================================
   MOBILE HEADER DARK MODE
========================================= */

[data-theme="dark-mode"] .mean-bar {
    background: #111 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

/* Hamburger bars */
[data-theme="dark-mode"] .mean-bar .sidebarBtn .bar {
    background: #fff !important;
}

/* Search icon */
[data-theme="dark-mode"] .mean-bar .search-icon svg,
[data-theme="dark-mode"] .mean-bar .search-icon path {
    fill: #fff !important;
}

/* =========================================
   MOBILE LOGO SWITCH
========================================= */

/* default */
.mobile-logo .logo-light {
    display: block !important;
}

.mobile-logo .logo-dark {
    display: none !important;
}

/* dark mode */
[data-theme="dark-mode"] .mobile-logo .logo-light {
    display: none !important;
}

[data-theme="dark-mode"] .mobile-logo .logo-dark {
    display: block !important;
}

/* prevent stacked inline images */
.mobile-logo img {
    max-height: 60px;
    width: auto;
}

/* =========================================
   MeanMenu SAFE OVERRIDE (FIXED)
========================================= */

/* LIGHT MODE only */
body:not([data-theme="dark-mode"]) .mean-bar .mobile-logo .logo-light-wrap {
    display: inline-block !important;
}
body:not([data-theme="dark-mode"]) .mean-bar .mobile-logo .logo-dark-wrap {
    display: none !important;
}

/* DARK MODE only */
body[data-theme="dark-mode"] .mean-bar .mobile-logo .logo-light-wrap {
    display: none !important;
}
body[data-theme="dark-mode"] .mean-bar .mobile-logo .logo-dark-wrap {
    display: inline-block !important;
}

#meanmenu .mean-bar > a:not(.mobile-logo) {
    display: none !important;
}
/* =========================================
   OFFCANVAS MENU (DARK MODE)
========================================= */

[data-theme="dark-mode"] .rt-slide-nav,
[data-theme="dark-mode"] .offscreen-navigation {
    background: #111 !important;
}

[data-theme="dark-mode"] .offscreen-navigation ul li a {
    color: #fff !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

[data-theme="dark-mode"] .offscreen-navigation ul li ul {
    background: #161616 !important;
}

/* dropdown toggle */
[data-theme="dark-mode"] .mean-expand {
    color: #fff !important;
    background: transparent !important;
}

/* =========================================
   SEARCH OVERLAY DARK MODE
========================================= */

[data-theme="dark-mode"] #header-search {
    background: rgba(0,0,0,0.96) !important;
}

[data-theme="dark-mode"] #header-search input[type="search"] {
    background: #161616 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark-mode"] #header-search input::placeholder {
    color: rgba(255,255,255,0.5) !important;
}

[data-theme="dark-mode"] #header-search .close,
[data-theme="dark-mode"] #header-search .search-btn {
    color: #fff !important;
}

/* =========================================
   SMOOTHER DARK MODE SWITCH
========================================= */

/* instant header repaint */
.mean-bar,
.rt-slide-nav,
.offscreen-navigation,
#header-search {
    transition:
        background-color 0s !important,
        border-color 0s !important,
        color 0s !important;
}

/* instant logo swap */
.mobile-logo .logo-light,
.mobile-logo .logo-dark {
    transition: none !important;
}

/* prevent fade lag */
[data-theme="dark-mode"] .mean-bar,
[data-theme="dark-mode"] .rt-slide-nav,
[data-theme="dark-mode"] .offscreen-navigation {
    background: #111 !important;
}