@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* =====================================================
   TABLET HEADER FIX – PROPER CENTER MENU
   iPad / Tablet only (769px – 1024px)
===================================================== */

@media (min-width: 769px) and (max-width: 1024px) {

  /* Main header row */
  .cm-header-main-row .cm-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .cm-main-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* ===== LEFT: LOGO ===== */
  .cm-header-left-col {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
  }

  .cm-header-left-col img {
    max-height: 42px !important;
  }

  /* ===== FORCE MENU TO CENTER ===== */
  #cm-primary-nav {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
  }

  #cm-primary-menu {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
  }

  #cm-primary-menu > li {
    padding: 0 !important;
  }

  #cm-primary-menu > li > a {
    font-size: 14px !important;
    padding: 8px 4px !important;
    white-space: nowrap !important;
  }

  /* ===== RIGHT: SEARCH + DARK MODE ===== */
  .cm-header-right-col {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* RTL Search */
  .rtl-search-wrap form {
    height: 34px !important;
  }

  .rtl-search-wrap input {
    height: 34px !important;
    font-size: 13px !important;
  }

  .rtl-search-icon {
    width: 34px !important;
    height: 34px !important;
  }

  /* Dark mode */
  #blockit-dark-toggle {
    font-size: 18px !important;
    padding: 6px !important;
  }

  /* Remove extra rows */
  .cm-header-top-row,
  .cm-header-bottom-row {
    display: none !important;
  }
}

/* =================================================
   BLOCKIT – TAG BASED RELATED POSTS (FINAL)
   Desktop: 3 posts in one row
   Mobile: 1 post per row
   No image stretch | No border radius
================================================= */

.blockit-related-posts {
    margin-top: 40px;
}

/* Grid layout */
.blockit-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card */
.blockit-related-item {
    display: block;
    text-decoration: none;
    background: #fff;
}

/* Image – ColorMag default style */
.blockit-related-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

/* Title below image */
.blockit-related-post-title {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #000;
}

/* Hover effect */
.blockit-related-item:hover .blockit-related-post-title {
    color: #f4c400;
}

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

/* Mobile */
@media (max-width: 768px) {
    .blockit-related-grid {
        grid-template-columns: 1fr;
    }
}



/* =================================================
   RTL HEADER SEARCH – FINAL COLOR LOGIC
================================================= */

.rtl-search-wrap {
  display: inline-block;
  margin: 0 !important;
  position: relative;
}

.rtl-search-wrap form {
  height: 40px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease;
}

/* SEARCH ICON */
.rtl-search-icon {
  width: 30px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  background: transparent;
  border: none;
}

/* ICON – NORMAL (BLACK) */
.rtl-search-icon svg {
  stroke: #000;
  width: 18px;
  height: 18px;
  transition: stroke 0.2s ease;
}

/* INPUT */
.rtl-search-wrap input {
  width: 0;
  opacity: 0;
  height: 40px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
  transition: width 0.3s ease, opacity 0.3s ease;
}

/* OPEN STATE */
.rtl-search-wrap form:hover,
.rtl-search-wrap form:focus-within {
  background: #000;
}

/* EXPAND INPUT */
.rtl-search-wrap form:hover input,
.rtl-search-wrap form:focus-within input {
  width: 200px;
  opacity: 1;
}

/* ICON – OPEN / HOVER (ORANGE) */
.rtl-search-wrap form:hover .rtl-search-icon svg,
.rtl-search-wrap form:focus-within .rtl-search-icon svg {
  stroke: #ff7a00;
}

/* DARK MODE – ICON WHITE */
body.blockit-dark-mode .rtl-search-icon svg {
  stroke: #ffffff;
}

/* TABLET */
@media (max-width: 1024px) {
  .rtl-search-wrap form:hover input,
  .rtl-search-wrap form:focus-within input {
    width: 160px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .rtl-search-wrap form:hover input,
  .rtl-search-wrap form:focus-within input {
    width: 140px;
  }

  .rtl-search-icon svg {
    width: 16px;
    height: 16px;
  }
}


/* =========================================
   HOME PAGE – HIDE CATEGORIES WHEN MENU OPEN
========================================= */
@media (max-width: 768px) {

  body.home.bd-menu-open .post-category {
    display: none !important;
  }

}
@media (max-width: 768px) {
  body.home .post-thumb {
    overflow: hidden !important;
  }

  body.home .post-category {
    max-width: 80%;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

/* ===============================
   TABLET HEADER FIX (iPad)
   Width: 768px – 1024px
================================ */
@media (min-width: 768px) and (max-width: 1024px) {

  /* ORANGE MENU BAR */
  .cm-primary-nav,
  .cm-header-builder .cm-header-bottom-row {
      display: flex !important;
      align-items: center !important;
      flex-wrap: nowrap !important;   /* ❌ second line band */
      overflow: hidden;
  }

  /* MENU ITEMS */
  .cm-primary-nav ul {
      display: flex !important;
      flex-wrap: nowrap !important;
      white-space: nowrap;
  }

  .cm-primary-nav ul li a {
      padding: 0 10px !important;
      font-size: 14px !important;
  }

  /* SEARCH ICON */
  .rtl-search-wrap {
      flex-shrink: 0;
      margin-left: 8px !important;
  }

  /* DARK MODE ICON */
  #blockit-dark-toggle {
      flex-shrink: 0;
      margin-left: 8px;
  }

  /* TICKER ROW – FORCE NEXT LINE */
  .cmc-ticker,
  .coinmarketcap-widget,
  .cm-header-ticker {
      width: 100% !important;
      display: block !important;
      margin-top: 6px;
  }

}

/* =========================================
   HIDE CATEGORIES WHEN MOBILE MENU OPEN
   (AJAX + NORMAL POSTS – SAFE)
========================================= */
@media (max-width: 768px) {

  body.bd-menu-open .post-category,
  body.bd-menu-open .cat-links {
    display: none !important;
  }

}


.cm-footer-top-row{
	display:none;
}
/* ==================================================
   PUSH BODY CONTENT DOWN WHEN MOBILE MENU IS OPEN
   ColorMag – FINAL SAFE FIX
================================================== */

@media (max-width: 768px) {

  /* Default state */
  .site-content,
  .cm-content {
    transition: margin-top 0.25s ease;
  }

  /* WHEN MENU IS OPEN */
  .cm-menu-toggle[aria-expanded="true"] 
  ~ #cm-mobile-nav 
  ~ .site-content,
  
  .cm-menu-toggle[aria-expanded="true"] 
  ~ #cm-mobile-nav 
  ~ .cm-content {

    margin-top: 280px !important; /* menu height space */
  }

}

@media (max-width:768px){
  body.home .post-category{
    display:none!important;
  }
}

/* =========================================
   DESKTOP SHOW – MOBILE HIDE SIDEBAR
========================================= */

/* Desktop & Tablet (show sidebar) */
@media (min-width: 769px){
  .cm-sidebar,
  .sidebar,
  #secondary {
    display: block !important;
  }
}

/* Mobile (hide sidebar) */
@media (max-width: 768px){
  .cm-sidebar,
  .sidebar,
  #secondary {
    display: none !important;
  }
}

.post-category
/* ---------- MOBILE / TABLET PADDING ---------- */
@media (max-width: 1024px){

  .cm-header-main-row{
      padding: 7px 0 10px 0 !important;
  }
}

@media (max-width: 767px) {
  .cm-header-builder .cm-header-top-row {
    padding-top: 20px;
    padding-bottom: -10px;
  }
}

/* ---------- DESKTOP PADDING ZERO ---------- */
@media (min-width: 1025px){

  .cm-header-main-row{
      padding: 0 !important;
  }
}


/* DESKTOP RESET */
@media (min-width: 769px) {
    .cm-primary-nav li > a,
    .main-navigation ul li > a {
        padding: 6px 10px !important;
    }
}

/* MOBILE BEAUTIFUL BIG MENU */
@media (max-width: 768px) {
    .cm-primary-nav li > a,
    .main-navigation ul li > a {
        padding: 14px 12px !important;
    }
}


/* ================================
   BLOCKIT MOBILE MENU BEAUTIFY
   Exact selector based on your HTML
================================ */

/* Orange bar ke niche space */
#cm-mobile-header-row.cm-mobile-menu--open {
    padding-top: 14px !important;
	margin-top: 10px !important;
}

/* Main dropdown panel */
#cm-mobile-menu.cm-mobile-menu--open {
    background: #000 !important;
    border-radius: 1px !important;
    margin: 10px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.55) !important;
}

/* Menu items */
#cm-mobile-menu li {
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

/* Last border remove */
#cm-mobile-menu li:last-child {
    border-bottom: none !important;
}

/* Menu text */
#cm-mobile-menu a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
}

/* Arrow toggle icon white */
#cm-mobile-menu .cm-submenu-toggle svg path {
    fill: #ffffff !important;
}

/* Submenu background */
#cm-mobile-menu .sub-menu {
    background: #000 !important;
    border-radius: 10px !important;
    padding: 8px 6px !important;
}

/* Submenu links */
#cm-mobile-menu .sub-menu a {
    color: #eaeaea !important;
    font-size: 14px;
}

/* Remove ugly white highlight background */
#cm-mobile-menu li,
#cm-mobile-menu .sub-menu li {
    background: transparent !important;
}

.cm-mobile-nav.cm-mobile-open-container > .cm-mobile-menu--open {
    padding: 0px;
    background: #000;
}

@media(max-width: 768px){

.tg-mobile-navigation,
.cm-mobile-menu,
.offcanvas-navigation,
.mobile-menu-wrapper{
 background:#fa6e01 !important;
}

.tg-mobile-navigation ul li,
.offcanvas-navigation ul li{
 background:#000 !important;
 color:#fff !important;
}

.tg-mobile-navigation a,
.offcanvas-navigation a{
 color:#fff !important;
}

}

.cm-header-builder.cm-contained .cm-header-bottom-row .cm-container .cm-bottom-row, .cm-header-builder.cm-contained .cm-mobile-row .cm-header-bottom-row {
    background-color: #fff;
}


/* mobile header widget row inline */
@media (max-width: 768px){

  .widget_block, 
  .cm-header-widget, 
  .header-widget-area {
      display:flex !important;
      align-items:center !important;
      justify-content:space-between !important;
      gap:10px !important;
  }

  /* icon size balance */
  .widget_block i {
      font-size:20px;
  }
}
/* =====================================================
   MOBILE MENU – ACTIVE ARROW CLICK FIX (LEVEL 1 ONLY)
===================================================== */

@media (max-width: 768px) {

  /* Base mobile menu */
  #cm-mobile-header-row,
  #cm-mobile-menu {
    background: #111 !important;
  }

  /* Level-1 menu normal state */
  #cm-mobile-menu > li > a {
    background: #111 !important;
    color: #fff !important;
    padding: 14px 16px !important;
    font-weight: 600;
    border-bottom: 1px solid #2a2a2a;
  }

  /* Arrow default */
  #cm-mobile-menu .cm-submenu-toggle svg {
    fill: #ffffff !important;
  }

  /* =================================================
     ✅ ONLY ACTIVE (ARROW CLICKED) LEVEL-1 ITEM
  ================================================= */

  /* When submenu is OPEN */
  #cm-mobile-menu > li.cm-submenu-open > a {
    background: #ffffff !important;   /* WHITE */
    color: #000000 !important;        /* BLACK */
  }

  /* Arrow color when active */
  #cm-mobile-menu > li.cm-submenu-open
  > .cm-submenu-toggle svg {
    fill: #000000 !important;
  }

  /* =================================================
     SUB MENU (LEVEL-2)
  ================================================= */

  #cm-mobile-menu .sub-menu {
    background: #000000 !important;
    padding: 6px 0;
  }

  #cm-mobile-menu .sub-menu li a {
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid #222;
    font-weight: 500;
  }

  #cm-mobile-menu .sub-menu li a:hover {
    background: #1a1a1a !important;
    color: #fa6e01 !important;
  }
}


/* ================================
   PURE BLACK FOOTER ONLY
   (content area ko touch nahi karega)
================================ */

/* Footer wrapper only */
.cm-footer-desktop-row {
  background:#000 !important;
}

/* Top / main / bottom sections ONLY inside footer */
.cm-footer-desktop-row .cm-footer-top-row,
.cm-footer-desktop-row .cm-footer-main-row,
.cm-footer-desktop-row .cm-footer-bottom-row {
  background:#000 !important;
}

/* inside containers but ONLY footer */
.cm-footer-desktop-row .cm-container,
.cm-footer-desktop-row .cm-footer-col,
.cm-footer-desktop-row .cm-main-row,
.cm-footer-desktop-row .cm-top-row,
.cm-footer-desktop-row .cm-bottom-row {
  background:#000 !important;
}

/* remove Colormag gradient / overlay just in footer */
.cm-footer-desktop-row::before,
.cm-footer-desktop-row::after {
  content:none !important;
  background:none !important;
  box-shadow:none !important;
}

/* footer text + links white so readable */
.cm-footer-desktop-row,
.cm-footer-desktop-row p,
.cm-footer-desktop-row a {
  color:#ffffff !important;
}


/* ================================
   ✅ SINGLE POST – CATEGORY → IMAGE GAP
================================ */
.single-post .cat-links,
.single-post .blockit-taxonomy {
    margin-bottom: 18px !important; /* space added */
}

/* ================================
   ✅ SHARE BUTTONS – TOP SPACE
================================ */
.blockit-social-share {
    margin-top: 18px !important;
    flex-wrap: wrap;
}

.blockit-social-share a {
    margin-bottom: 8px;
}

/* ================================
   ✅ IMAGE FULL WIDTH & SPACE CLEAN
================================ */
.single-post .entry-content img {
    height: auto;
    width: 100%;
}

/* ================================
   PURE BLACK FOOTER ONLY
   (content area ko touch nahi karega)
================================ */

/* Footer wrapper only */
.cm-footer-desktop-row {
  background:#000 !important;
}

/* Top / main / bottom sections ONLY inside footer */
.cm-footer-desktop-row .cm-footer-top-row,
.cm-footer-desktop-row .cm-footer-main-row,
.cm-footer-desktop-row .cm-footer-bottom-row {
  background:#000 !important;
}

/* inside containers but ONLY footer */
.cm-footer-desktop-row .cm-container,
.cm-footer-desktop-row .cm-footer-col,
.cm-footer-desktop-row .cm-main-row,
.cm-footer-desktop-row .cm-top-row,
.cm-footer-desktop-row .cm-bottom-row {
  background:#000 !important;
}

/* remove Colormag gradient / overlay just in footer */
.cm-footer-desktop-row::before,
.cm-footer-desktop-row::after {
  content:none !important;
  background:none !important;
  box-shadow:none !important;
}

/* footer text + links white so readable */
.cm-footer-desktop-row,
.cm-footer-desktop-row p,
.cm-footer-desktop-row a {
  color:#ffffff !important;
}

/* ================================
   ✅ FOOTER – LEFT RIGHT PADDING
================================ */
footer,
.site-footer,
#colophon {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* ================================
   ✅ FOOTER MENU SPACING
================================ */
.site-footer a,
.footer a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 6px;
}

/* ================================
   ✅ FOOTER SOCIAL ICON SPACING
================================ */
.site-footer .social-icons a,
.footer .social-icons a {
    margin-right: 10px !important;
    font-size: 18px !important;
}

/* ================================
   ✅ MOBILE SOCIAL ICON ALIGN FIX
================================ */
@media (max-width: 768px){
    .footer,
    .site-footer,
    #colophon {
        text-align: left !important;
    }

    .footer-social,
    .social-icons {
        margin-top: 10px;
        display: flex;
        gap: 10px;
    }
}

/* ===========================================
   FIX: FOOTER ME JO GREY STRIP DIKHTI HAI
   USE HATAO – PURE FOOTER KO BLACK KARO
=========================================== */

/* Pure footer + wrapper black */
footer,
#colophon,
.site-footer,
.footer,
.footer-widgets,
.footer-widgets-wrapper,
.widget-area,
#footer-widgets,
#bottom-footer,
#footer,
.cm-footer {
  background:#000 !important;
  background-color:#000 !important;
  background-image:none !important;
  box-shadow:none !important;
}

/* Grey top strip above footer */
#page::after,
.site-content + *,
footer::before,
footer::after,
#colophon::before {
  background:#000 !important;
  background-image:none !important;
  display:none !important;
}

/* Inner containers also black */
.footer .tg-container,
.footer .inner,
.site-footer .container {
  background:#000 !important;
}

/* Remove any accidental image overlay */
.site-footer * {
  background-image:none !important;
}


/* ===============================
   FINAL FOOTER – PURE BLACK FIX
   (removes ALL theme background images)
=============================== */

footer,
#colophon,
.site-footer,
.footer,
.footer-widgets,
.footer-area,
.tg-site-footer {
  background: #000 !important;
  background-color: #000 !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Kill strange overlay / pattern layers */
footer::before,
footer::after,
#colophon::before,
#colophon::after,
.site-footer::before,
.site-footer::after,
.footer::before,
.footer::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  display: none !important;
  opacity: 0 !important;
}

/* Remove inline image backgrounds if theme injects them */
footer * {
  background-image: none !important;
}

/* Make footer text readable */
footer,
footer p,
footer span,
footer a {
  color: #fff !important;
}


/* ================================
   ✅ MOBILE – SIDEBAR SEARCH HIDE
================================ */
@media(max-width:768px){
    .widget_search,
    .sidebar .search-form,
    .cm-sidebar .search-form {
        display:none !important;
    }
}



/* Single post – add space between categories and featured image */
.single-post .cat-links,
.single-post .blockit-taxonomy{
    margin-bottom:30px !important;
}

/* if theme wraps image inside .post-thumbnail */
.single-post .cat-links + .post-thumbnail,
.single-post .blockit-taxonomy + .post-thumbnail{
    margin-top:0 !important;
}


/* ===== ARROWS – SEMI GLASS + PERFECT CENTER ===== */
.bf-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:10;

  width:56px;
  height:56px;

  background:rgba(0,0,0,0.35);      /* 👈 semi */
  backdrop-filter: blur(6px);       /* 👈 glass */
  -webkit-backdrop-filter: blur(6px);

  border:1px solid rgba(255,255,255,0.25);
  border-radius:10px;

  cursor:pointer;
  padding:0;
  margin:0;

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

  font-size:0; /* 👈 kill font shift */
}

/* Arrow icon */
.bf-arrow::before{
  content:'›';
  font-size:36px;
  font-weight:700;
  color:#fff;
  line-height:1;
}

/* Left arrow */
.bf-prev::before{ content:'‹'; }
.bf-prev{ left:12px; }
.bf-next{ right:12px; }

/* Hover */
.bf-arrow:hover{
  background:rgba(250,110,1,0.85);  /* 👈 orange */
  border-color: rgba(250,110,1,1);
}
.bf-arrow:hover::before{
  color:#000;
}

/* Mobile */
@media(max-width:768px){
  .bf-arrow{
    width:40px;
    height:40px;
    border-radius:8px;
  }
  .bf-arrow::before{
    font-size:26px;
  }
}


.rtl-search-icon{
  width:60px;
  height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:none;
  border:none;
  color:#000;
  cursor:pointer;
}

/* =====================================================
   SINGLE POST – CATEGORY BADGES (FINAL)
===================================================== */

/* Category wrapper */
.single-post .blockit-taxonomy,
.single-post .cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

/* Category links as boxes */
.single-post .blockit-taxonomy a,
.single-post .cat-links a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1;
  color: #000 !important;
  background: #f4c400; /* default yellow */
  transition: all 0.25s ease;
}

/* Hover effect */
.single-post .blockit-taxonomy a:hover,
.single-post .cat-links a:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* ================= DIFFERENT COLORS ================= */

/* First category */
.single-post .blockit-taxonomy a:nth-child(1),
.single-post .cat-links a:nth-child(1) {
  background: #f4c400; /* yellow */
}

/* Second category */
.single-post .blockit-taxonomy a:nth-child(2),
.single-post .cat-links a:nth-child(2) {
  background: #00e5ff; /* cyan */
}

/* Third category */
.single-post .blockit-taxonomy a:nth-child(3),
.single-post .cat-links a:nth-child(3) {
  background: #fa6e01; /* orange */
  color: #fff !important;
}

/* Fourth category (if any) */
.single-post .blockit-taxonomy a:nth-child(4),
.single-post .cat-links a:nth-child(4) {
  background: #6cff8d; /* green */
}

/* Mobile spacing tweak */
@media (max-width: 768px) {
  .single-post .blockit-taxonomy a,
  .single-post .cat-links a {
    font-size: 12px;
    padding: 5px 10px;
  }
}


/* =========================================
   SINGLE POST – HIDE DEFAULT THEME TITLE
========================================= */
.single-post .entry-title,
.single-post h1.entry-title,
.single-post .cm-entry-title {
  display: none !important;
}

.share-btn.tg { background: #229ED9; }

/* =========================================
   SINGLE POST – AUTHOR & DATE ALIGN FIX
========================================= */
.blockit-top-meta {
  display: flex;
  justify-content: space-between; /* 👈 author left, date right */
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.blockit-top-meta span {
  white-space: nowrap;
}


/* =========================================
   LOAD MORE BUTTON – PERFECT CENTER
========================================= */
#blockit-load-more {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;

  margin: 40px auto !important;   /* 👈 REAL CENTER */
  left: 50%;
  transform: translateX(-50%);

  padding: 12px 36px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid black;
  cursor: pointer;
  transition: 0.25s;
  position: relative;
}

#blockit-load-more:hover {
  background: #fa6e01;
  color: #000;
}

/* =================================================
   BLOCKIT – FINAL ADDITIONAL CSS (CLEANED & MERGED)
   ✔ No duplicates
   ✔ All features preserved
   ✔ Mobile + Desktop safe
================================================= */




/* =================================================
   DISABLE COMMENTS (Global)
================================================= */
.comments-area,
.comment-respond,
#comments,
.wp-block-comments {
  display: none !important;
}


/* =================================================
   POST GRID (Category / Search / Archive)
================================================= */
.ajax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .ajax-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .ajax-grid { grid-template-columns: 1fr; }
}

.ajax-post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.post-thumb {
  position: relative;
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Category badge inside image - TOP LEFT */
.post-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f4c400;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 10;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Post thumbnail wrapper fix (iOS safe) */
.post-thumb {
  position: relative !important;
  display: block !important;
  line-height: 0;              /* iOS inline spacing fix */
  overflow: visible !important;
}

/* Image styling */
.post-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;         /* optional */
}

/* Category badge – polished pill style */
.post-category {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;

  background: #f4c400;
  color: #000;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;

  padding: 6px 16px;
  border-radius: 5px;        /* pill button */
  line-height: 1;

  white-space: nowrap;
  z-index: 999;
  pointer-events: none;

  /* iOS Safari rendering fix */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);

  /* subtle depth */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Mobile fine-tune */
@media (max-width: 768px) {
  .post-category {
    font-size: 13px;
    padding: 5px 12px;
  }
}


/* =====================================================
   FIX: MENU ITEM EXTRA HEIGHT (ColorMag)
===================================================== */

.cm-primary-nav li {
  padding: 9px 16px !important;   /* 👈 your required padding */
}

/* Hover / active state bhi lock */
.cm-primary-nav li:hover,
.cm-primary-nav li.current-menu-item,
.cm-primary-nav li.current-menu-ancestor {
  padding: 9px 16px !important;
}

/* Anchor ko bhi freeze karo */
.cm-primary-nav li > a {
  padding: 0 !important;
  line-height: normal !important;
}

/* Kill pseudo spacing */
.cm-primary-nav li::before,
.cm-primary-nav li::after {
  display: none !important;
}


.post-content { padding: 14px; }
.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
}
.post-title {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
}

 
    .cm-header-builder .cm-mobile-row .cm-menu-toggle svg {
      
        margin-top: 5px;
    
}

.blockit-social-share .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.blockit-social-share svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #000000; }
.share-btn.tg { background: #229ED9; }

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cm-header-builder .cm-top-row {
    height: 50px;
  }
}
@media (max-width: 576px) {
  .cm-header-builder .cm-top-row {
    height: 50px;
  }
}
@media (max-width: 768px) {
  .cm-content {
    padding-top: 20px;
  }
}
@media (max-width: 576px) {
  .cm-content {
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .cm-container {
    padding-left: 6px;
  }
}

@media (max-width: 576px) {
  .cm-container {
    padding-left: 6px;
  }
}


.cm-entry-summary p {
    margin-top: 20px;
   
}

/* =====================================================
   POST TITLE – REMOVE EXTRA SPACE
===================================================== */

.ajax-post-card .post-title,
.ajax-post-card h2,
.ajax-post-card h3 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 1.35;
}

/* space only from content wrapper */
.ajax-post-card .post-content {
  padding-top: 10px;
}


/* =================================================
   SIDEBAR – RECENT POSTS WIDGET
================================================= */
.widget_recent_entries {
  background: #1f2a30;
  padding: 15px;
  border-radius: 8px;
}
.widget_recent_entries ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.widget_recent_entries li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.widget_recent_entries li a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: #e5f7ff;
  font-size: 14px;
}
.widget_recent_entries li a img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.widget_recent_entries li a:hover {
  color: #00e5ff;
}


/* =================================================
   SINGLE POST – HIDE DUPLICATE FEATURED IMAGE
================================================= */
.single-post .post-thumbnail,
.single-post .entry-content img.wp-post-image {
  display: none !important;
}


/* =================================================
   SINGLE POST – CATEGORY BADGES (Colored Boxes)
================================================= */
.single-post .cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.single-post .cat-links a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1;
  color: #000 !important;
}
.single-post .cat-links a:nth-child(1) { background: #f4c400; }
.single-post .cat-links a:nth-child(2) { background: #00e5ff; }
.single-post .cat-links a:nth-child(3) { background: #fa6e01; color:#fff!important; }
.single-post .cat-links a:nth-child(4) { background: #6cff8d; }

@media (max-width: 768px) {
  .single-post .cat-links a {
    font-size: 12px;
    padding: 5px 10px;
  }
}


/* =================================================
   SLIDER – META (Author + Date) TIGHT FIX
================================================= */
.blockit-slide-meta {
  background: #000 !important;
  color: #fff !important;
  padding: 2px 16px !important;
  margin: 0 !important;
  font-size: 14px;
  display: flex;
  align-items: center;
}


/* =================================================
   RTL HEADER SEARCH – 40px HEIGHT
================================================= */
.rtl-search-wrap {
  display: inline-block;
  margin: 0 !important;
}
.rtl-search-wrap form {
  height: 40px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}
.rtl-search-icon {
  width: 30px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
	 border-radius: 0 !important;
    transition: opacity 0.25s ease;
}
.rtl-search-wrap.active .rtl-search-icon {
    opacity: 0;
    pointer-events: none;
}

.rtl-search-wrap input {
  width: 0;
  opacity: 0;
  height: 50px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: #fff;
  transition: .3s;
}
.rtl-search-wrap form:hover,
.rtl-search-wrap form:focus-within {
  background: #000;
}
.rtl-search-wrap form:hover input,
.rtl-search-wrap form:focus-within input {
  width: 200px;
  opacity: 1;
}

@media (max-width: 768px) {
    .rtl-search-icon {
        height: 55px;   /* mobile height */
        border-radius: 0 !important;
    }
}
/* ===== REMOVE WHITE BORDER FROM SEARCH ===== */
.rtl-search-wrap form {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.rtl-search-wrap input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Chrome / iOS focus outline fix */
.rtl-search-wrap input:focus,
.rtl-search-wrap form:focus,
.rtl-search-wrap form:focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ===== SEARCH INPUT CROSS ICON COLOR FIX ===== */

/* Chrome / Safari */
.rtl-search-wrap input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 14px;
    width: 14px;
    cursor: pointer;
    background-color: #000;   /* BLACK */
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M18.3 5.7a1 1 0 0 0-1.4 0L12 10.6 7.1 5.7a1 1 0 1 0-1.4 1.4L10.6 12l-4.9 4.9a1 1 0 1 0 1.4 1.4L12 13.4l4.9 4.9a1 1 0 0 0 1.4-1.4L13.4 12l4.9-4.9a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* Firefox fallback (hide default, optional) */
.rtl-search-wrap input[type="search"]::-moz-search-clear {
    display: none;
}

/* ===== AUTOFILL / AUTOSAVE COLOR FIX ===== */

/* Chrome / Edge / Safari */
.rtl-search-wrap input:-webkit-autofill,
.rtl-search-wrap input:-webkit-autofill:hover,
.rtl-search-wrap input:-webkit-autofill:focus,
.rtl-search-wrap input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #000 inset !important; /* background BLACK */
    box-shadow: 0 0 0 1000px #000 inset !important;
    -webkit-text-fill-color: #fff !important; /* text WHITE */
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

/* Autofill suggestion dropdown (Chrome) */
input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Remove blue focus glow */
.rtl-search-wrap input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* =================================================
   MOBILE CONTENT – 5px SIDE GAP
================================================= */
@media (max-width: 768px) {
  .site-content,
  .content-area,
  .cm-primary {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}


/* =================================================
   MOBILE SLIDER – FULL WIDTH WITH 5px GAP
================================================= */
@media (max-width: 768px) {
  .blockit-slider {
    width: calc(100% - 10px);
    margin: 0 auto;
    border-radius: 8px;
  }
}


/* =================================================
   MOBILE SOCIAL ICONS – UNDER LOGO
================================================= */
@media (max-width: 768px) {
  .blockit-mobile-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 6px 0;
  }
	.rtl-search-wrap form {
    height:57px;

}
	.cm-header-builder .cm-header-top-row{
		background-color: #000;
	}
	.cm-header-left-col{
		margin-top:
	}
	
  .blockit-mobile-social a {
    width: 32px;
    height: 32px;
    background: #fa6e01;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }
}


/* =================================================
   COINMARKETCAP WIDGET – MOBILE ONLY FULL WIDTH
================================================= */
.blockit-cmc-mobile { display: none; }

@media (max-width: 767px) {
  .blockit-cmc-mobile {
    display: block;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #fff;
    padding: 4px 0;
  }
	
	.widget_block {
		margin-top:-7px;
	}
  #coinmarketcap-widget-marquee {
    width: 100vw !important;
    border: none !important;
  }
}

/* =========================================================
   🔥 FINAL COLOR MAG MOBILE HEADER FIX (HARD OVERRIDE)
   - Search radius removed completely
   - Toggle button breathing space
   - No layout break
========================================================= */
@media (max-width: 768px) {

  /* ==============================
     SEARCH BAR – FORCE FLAT
  ============================== */

  .rtl-search-wrap,
  .rtl-search-wrap form,
  .rtl-search-wrap input,
  .header-search,
  .header-search form,
  .header-search input {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .rtl-search-wrap form {
    border: none !important;
    outline: none !important;
    background-clip: border-box !important;
  }

  /* Remove fake inner curve */
  .rtl-search-wrap form::before,
  .rtl-search-wrap form::after {
    display: none !important;
  }

  /* ==============================
     TOGGLE BUTTON – SAFE SPACE
  ============================== */

  .menu-toggle,
  .tg-mobile-menu-toggle,
  .main-navigation .menu-toggle {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: 6px !important;
    margin-right: 6px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ==============================
     HEADER ROW ALIGNMENT
  ============================== */

  .main-navigation,
  .main-navigation .cm-row,
  .main-navigation .tg-wrap {
    display: flex !important;
    align-items: center !important;
  }

}

/* =================================================
   FOOTER – FORCE BLACK
================================================= */
footer,
.site-footer,
#colophon,
.footer,
.footer-widgets {
  background: #000 !important;
  background-image: none !important;
}
