/* ================================
   MARKET TICKER (RELAXED HEIGHT FIX)
================================ */

.adm-market-ticker {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    margin-top: 5px;
    height: 50px;

    position: relative;
    z-index: 99998;
}

    overflow: hidden;

    background: #0b0f1a;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* inner wrapper */
.adm-tv-inner {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
}

/* ticker container */
#adm-tv-ticker,
#adm-tv-ticker-economy {
    width: 100%;
    height: 100%;
}

/* iframe FIX (this is the important part) */
.adm-market-ticker iframe {
    display: block !important;

    width: 100% !important;
    height: 40px !important;

    margin: auto 0 !important;
}

.entry-banner-content {
    margin-top: px;
}

/* =========================================================
   FIX HEADER POSITION (ACCOUNT FOR TICKER HEIGHT)
========================================================= */

#masthead,
.header-menu,
#header-menu {
    margin-top: 10px !important;
}
.adm-market-ticker {
    margin-top: 10px !important;
}

/* =========================
   NEWS TICKER CONTAINER
========================= */

@media (max-width: 768px) {

.adm-news-ticker {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;

    background: #0b0b0b;
    border-bottom: 1px solid rgba(255,255,255,0.12);

    z-index: 9999999;
    overflow: hidden;
    padding: 0;
}

/* =========================
   SCROLL TRACK
========================= */
#adm-mobile-news {
    display: flex;
    flex-wrap: nowrap;

    width: max-content;
    gap: 40px;

    white-space: nowrap;

    animation: adm-news-scroll 60s linear infinite;
    will-change: transform;
}

/* =========================
   ANIMATION
========================= */
@keyframes adm-news-scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* =========================
   NEWS ITEM
========================= */
.adm-news-item {
    flex: 0 0 auto;

    font-size: 14px;
    color: #fff;
    opacity: 0.95;
    text-decoration: none;

    white-space: nowrap;
    display: inline-block;
}

/* =========================
   BADGE AREA
========================= */
.adm-news-dot,
.adm-news-label {
    background: #222;
    height: 40px;

    display: flex;
    align-items: center;

    margin: 0;
    flex-shrink: 0;

    position: relative;
    z-index: 50;
}

/* DOT */
.adm-news-dot {
    width: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: content-box;

    padding-left: var(--adm-dot-padding, 10px);
}

.adm-news-dot::before {
    content: "";
    display: block;

    width: 8px;
    height: 10px;

    background: url("https://abudhabimagazine.ae/wp-content/uploads/2026/05/red-circle-blink.gif") no-repeat center center;
    background-size: contain;

    animation: none;
}

/* LABEL */
.adm-news-label {
    font-size: 12px;
    color: #fff;
    letter-spacing: 1px;
    padding: 10px;
}

/* =========================
   SAFE OVERLAY (NO TEXT LEAK)
========================= */
.adm-news-ticker::before {
    content: none;
}

    position: absolute;
    top: 0;
    left: 0;

    width: 110px;
    height: 100%;

    background: #0b0b0b;

    z-index: 40;
    pointer-events: none;
}

@media (max-width: 1024px) {
    body {
        padding-top: 38px;
    }
}

/* ==========================================================
   ADM FEATURED IMAGE SYSTEM (MOBILE-FOCUSED)
   - No desktop zoom
   - Mobile safe scaling
   - Clean layout
   - No conflicts
========================================================== */

.single .entry-thumbnail-area {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    background: #e5e5e5;
    overflow: hidden;

    margin: 30px auto;

    cursor: default;

    border-radius: 2px;

    display: block;
}

/* ------------------------------
   IMAGE BASE STATE
------------------------------ */

.single .entry-thumbnail-area img {
    position: absolute;
    top: 50%;
    left: 50%;

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

    width: auto;
    height: auto;

    transform: translate(-50%, -50%);

    transition: none;

    will-change: auto;

    user-select: none;
    -webkit-user-drag: none;
}

/* ------------------------------
   DARK MODE SUPPORT
------------------------------ */

[data-theme="dark-mode"] .single .entry-thumbnail-area {
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ------------------------------
   MOBILE BEHAVIOR ONLY
------------------------------ */

@media (max-width: 768px) {

    .single .entry-thumbnail-area {
        aspect-ratio: 4 / 3;

        width: 100vw;
        max-width: 100vw;

        margin: 0 0 12px 0;

        border-radius: 0;

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

    .single .entry-thumbnail-area img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ------------------------------
   SAFETY LOCK (LAYOUT ONLY)
------------------------------ */

.single .entry-thumbnail-area,
.single .entry-thumbnail-area * {
    box-sizing: border-box;
}
/* ==========================================================
   OFFCANVAS ICON SAFETY (NO THEME BREAKAGE)
========================================================== */

/* default: inherit theme */
.menu-btn-icon .line {
    background: currentColor !important;
}

/* dark mode override (ONLY if theme doesn't handle it) */
[data-theme="dark-mode"] .menu-btn-icon .line {
    background: #fff !important;
}

/* ----------------------------------------------------------
   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;
}

/* ----------------------------------------------------------
   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: 77px;
  height: 25px;

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

  background: #e64946;
  color: #fff;

  border: 0;
  border-radius: 20px;

  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: 20px; /* 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) {

    /* =========================
       HARD RESET HEADER FLOW
    ========================= */

    .single .entry-header {
        margin: 0 !important;
        padding: 0 !important;
    }

    .single .main-wrap,
    .single .adm-share-scope {
        margin: 0 !important;
        padding: 0 !important;
    }

    .single #primary {
        padding-top: 10px !important;
    }


    /* =========================
       TITLE BECOMES IMAGE ATTACHED
    ========================= */

    .single .entry-title {
        margin-top: 0 !important;     /* CRITICAL */
        padding-top: 0 !important;
        margin-bottom: 6px !important;
    }

    /* =========================
       META BELOW TITLE
    ========================= */

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

}

@media (max-width: 768px) {

    /* =========================
       REMOVE CATEGORY (CLEANLY)
       - no layout impact
    ========================= */

    .single .entry-categories {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
    }

    /* =========================
       PREVENT CATEGORY SPACE RESERVATION
       (theme sometimes keeps empty wrapper space)
    ========================= */

    .single .entry-header .entry-categories + * {
        margin-top: 0 !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: 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;
}



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

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

/* 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;
  }

}






/* ==========================================================
   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;
}



/* ==============================
   FIX OFFCANVAS HAMBURGER ICON
============================== */

.side-menu-trigger {
    background: transparent !important;
    border: 0 !important;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-btn-icon {
    width: 30px !important;
    height: 22px !important;
    position: relative !important;
    display: block !important;
}

.menu-btn-icon .line {
    position: absolute !important;
    left: 0;
    width: 100% !important;
    height: 2px !important;
    background: #111 !important;
    border-radius: 2px;
    display: block !important;
    opacity: 1 !important;
}

/* spacing (prevents collapse into one line) */
.menu-btn-icon .line1 { top: 0 !important; }
.menu-btn-icon .line2 { top: 9px !important; }
.menu-btn-icon .line3 { top: 18px !important; }

/* optional hover */
.side-menu-trigger:hover .line {
    background: #e60023 !important;
}

/* =========================================
   FORCE OFFCANVAS OUTSIDE STICKY HEADER
========================================= */

/* remove sticky transform trapping */
.rt-sticky,
.header-menu,
#header-menu,
.site-header,
#masthead {
    transform: none !important;
    -webkit-transform: none !important;
}

/* make offcanvas truly viewport based */
.sidenav.sidecanvas {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
}

/* keep panel independent */
.canvas-content {
    position: relative !important;
    min-height: 100vh !important;
    z-index: 999999 !important;
    background: inherit;
}

/* overlay */
.rt-cover {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999998 !important;
}

.adm-market-ticker {
    position: relative;
    z-index: 9999;
    width: 100%;
}


@media (max-width: 991px) {

    /* hide whole sidebar column */
    .fixed-bar-coloum,
    .sidebar-widget-area,
    .theiaStickySidebar {
        display: none !important;
    }

    /* make main content full width */
    .content-area,
    .primary-content,
    .col-xl-8,
    .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}


 /* =========================================
   ARCHIVE BANNER HEIGHT CONTROL
========================================= */

/* Main banner container (safe control) */
.entry-banner-content {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}

/* Remove duplicate text (keep heading only) */
.entry-banner-content {
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Restore heading */
.entry-banner-content .entry-title {
    font-size: 45px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

/* MOBILE HEIGHT CONTROL */
@media (max-width: 768px) {
    .entry-banner-content {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .entry-banner-content .entry-title {
        font-size: 28px !important;
    }
}

.adm-news-ticker {
    display: none;
}

@media (max-width: 768px) {
    .adm-news-ticker {
        display: flex;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .adm-news-ticker {
        display: flex;
    }
}

/* =========================================================
   PRELOADER — FIX DARK MODE FLASH
========================================================= */

/* Default */
#preloader,
.preloader,
.site-preloader,
#loader-wrapper {
    background: #fff;
}

/* Respect system dark mode immediately */
@media (prefers-color-scheme: dark) {
    #preloader,
    .preloader,
    .site-preloader,
    #loader-wrapper {
        background: #0b0b0b !important;
    }
}

/* Theme dark mode override */
[data-theme="dark-mode"] #preloader,
[data-theme="dark-mode"] .preloader,
[data-theme="dark-mode"] .site-preloader,
[data-theme="dark-mode"] #loader-wrapper {
    background: #0b0b0b !important;
}