/*
 * Live Blog Styles — Hum News Features Plugin
 */
:root {
  --lb-black: #000000;
  --lb-red: #e8001d;
  --lb-border: #e4e4e4;
  --lb-muted: #888;
  --lb-text: #222;
}

/* ════════════════════════════════════════
   CATEGORY PAGE — FEATURED HERO SECTION
════════════════════════════════════════ */
.lb-featured-hero {
  padding: 24px 0;
  margin-bottom: 24px;
}

.lb-featured-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lb-featured-text {
  flex: 0 0 55%;
  max-width: 55%;
  min-width: 0;
}

.lb-featured-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: #000000 !important;
  margin: 10px 0 16px 0 !important;
}

.lb-featured-bullets {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lb-featured-bullets li {
  font-size: 14px;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-right: 20px;
  padding-left: 20px;
  position: relative;
}

.lb-featured-bullets li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--lb-red);
  font-size: 20px;
  line-height: 1.4;
}

[dir="rtl"] .lb-featured-bullets li::before {
  left: auto;
  right: 4px;
}

.lb-featured-img {
  flex: 0 0 45%;
  max-width: 45%;
}

.lb-featured-img img {
  width: 100%;
  display: block;
  border-radius: 1px;
  aspect-ratio: 700 / 390;
  object-fit: cover;
}

/* ── LIVE BADGE ── */
.lb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lb-red);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.lb-blink-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: lb-blink 1.2s infinite;
}

@keyframes lb-blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.15
  }
}

/* ── STORY LIST ── */
.lb-story-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lb-story-item {
  list-style: none !important;
  border-bottom: 1px solid var(--lb-border);
  padding: 20px 0;
  scroll-margin-top: 90px;
  position: relative;
}

.lb-story-item:first-child {
  padding-top: 10px;
}

.lb-story-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s;
}

.lb-story-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--lb-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lb-story-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--lb-black) !important;
  margin: 0 0 10px 0 !important;
}

.lb-story-img-wrap {
  margin-bottom: 14px;
}

.lb-story-img {
  border-radius: 3px;
  display: block;
}

.lb-story-body {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  margin-top: 12px;
}

.lb-story-body p {
  margin-bottom: 12px !important;
}

.lb-story-body p:last-child {
  margin-bottom: 0 !important;
}

/* ── SHARE ROW ── */
.lb-share-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

.lb-share-btn {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  text-decoration: none !important;
  color: #fff !important;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.lb-share-btn:hover {
  opacity: 0.82;
  color: #fff !important;
}

.lb-fb {
  background: #1877f2;
}

.lb-tw {
  background: #111;
}

.lb-wa {
  background: #25d366;
}

/* ── TIMELINE (category page right col) ── */
.lb-timeline-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lb-tl-card {
  align-items: flex-start !important;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lb-border);
}

.lb-tl-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  flex-shrink: 0;
  padding-top: 2px;
}

.lb-tl-date {
  font-size: 9px;
  font-weight: 600;
  color: var(--lb-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.lb-tl-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--lb-red);
  line-height: 1.3;
}

.lb-tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lb-border);
  margin-top: 6px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.lb-tl-active .lb-tl-dot {
  background: var(--lb-black);
}

.lb-tl-active .lb-tl-time {
  color: var(--lb-black);
}

.lb-tl-active .lb-tl-link {
  font-weight: 700 !important;
  color: var(--lb-black) !important;
}

.lb-tl-link {
  font-size: 13px !important;
  line-height: 1.45;
  color: #222 !important;
  text-decoration: none !important;
  display: block;
  transition: color 0.15s;
}

.lb-tl-link:hover {
  color: var(--lb-red) !important;
  text-decoration: none !important;
}

/* ── CATEGORY PAGE RESPONSIVE ── */
@media (max-width: 991px) {
  .lb-featured-img {
    flex: 0 0 280px;
    max-width: 280px;
  }

  .lb-featured-title {
    font-size: 22px !important;
  }
}

@media (max-width: 767px) {
  .lb-featured-inner {
    flex-direction: column;
  }

  .lb-featured-img {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .lb-featured-title {
    font-size: 20px !important;
  }

  .lb-story-item {
    padding: 16px 0;
  }

  .lb-story-title {
    font-size: 17px !important;
  }

  .lb-story-item::before {
    display: none;
  }
}


/* ════════════════════════════════════════
   HOMEPAGE — UPDATES LIST SHORTCODE
   [live_blog_updates]
════════════════════════════════════════ */
.lb-home-updates {
  padding: 14px 16px;
  background: #fff;
}

.lb-home-updates-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 25px;
  font-weight: 700;
  color: var(--lb-red);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.lb-home-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--lb-red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: lb-blink 1.2s infinite;
}

.lb-home-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lb-home-list-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 20px;
  line-height: 1.45;
}

.lb-home-list-item:last-child {
  border-bottom: none;
}

.lb-home-dot-sm {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lb-red);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.lb-home-time {
  color: var(--lb-black);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.lb-home-list-item a {
  color: var(--lb-text) !important;
  text-decoration: none !important;
  font-weight: 500;
}

.lb-home-list-item a:hover {
  color: var(--lb-red) !important;
}


/* ════════════════════════════════════════
   HOMEPAGE — HERO WIDGET
   [live_blog_widget]
════════════════════════════════════════ */
.lb-hero-wrap {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}

.lb-hero-bg-link {
  display: block;
  position: relative;
  text-decoration: none !important;
}

/* ── Background image ── */
.lb-hero-bg {
  width: 100%;
  height: 550px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.lb-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
 background: rgba(0, 0, 0, 0.25);
pointer-events: none;
}

.custom-width {
  max-width: 1320px;
  margin: 0 auto;
}

/* ── Dark gradient overlay ── */
.lb-hero {
    position: relative; 
     overflow: hidden;

}
.lb-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* so it doesn't block clicks */
    background: linear-gradient(
        180deg, 
        transparent, 
        transparent 30%, 
        rgba(0, 0, 0, 0.25) 50%, 
        rgba(0, 0, 0, 0.6) 80%, 
        rgba(0, 0, 0, 0.8)
    );
}
.lb-hero-overlay {
  position: relative;
  left: 0;
  right: 0;
  top: 80px;
  z-index: 1;
}

.lb-hero-overlay-inner {
  max-width: 1320px;
  margin: 0 auto;
}
/* ── LIVE badge ── */
.lb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lb-red);
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin: 0 24px 10px;
  width: fit-content;
  direction: rtl;
}

.lb-hero-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: lb-blink 1.2s infinite;
}

/* ── Title ── */
.lb-hero-title {
  font-size: 48px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin: 0 24px 0 !important;
  direction: ltr;
  text-align: right;
  max-width: 850px;
  margin-left: auto !important;
  margin-right: 24px !important;
}


/* ════════════════════════════════════════
   TICKER — inside overlay at bottom
════════════════════════════════════════ */
.lb-ticker-wrap {
  background: rgba(26, 26, 26, 0.48);
  border-top: none;
  margin-top: 0;
  padding: 0px 40px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
.lb-ticker-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 0px;
}
/* Header row */
.lb-ticker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 28px;
  font-weight: 700;
  color: rgb(255, 255, 255);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  direction: ltr;
  justify-content: flex-end;
}

.lb-ticker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--lb-red);
  animation: lb-blink 1.2s infinite;
  flex-shrink: 0;
}

/* Scrollable track — DESKTOP: show scrollbar, disable touch */
.lb-ticker-track {
  display: flex;
  direction: rtl;

  /* Always scrollable on desktop */
  overflow-x: scroll;
  scroll-snap-type: x mandatory;

  /* Show a styled scrollbar on desktop */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .35) rgba(255, 255, 255, .08);
}

/* Webkit scrollbar styling (Chrome/Safari/Edge) */
.lb-ticker-track::-webkit-scrollbar {
  height: 5px;
}

.lb-ticker-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .08);
}

.lb-ticker-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .35);
  border-radius: 3px;
}

.lb-ticker-track::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .6);
}

/* Individual ticker card */
.lb-ticker-item {
  flex: 0 0 28%;
  /* ~3 visible + half of 4th */
  min-width: 220px;
  padding: 12px 16px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  scroll-snap-align: start;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .15s;
}

.lb-ticker-item:hover {
  background: rgba(255, 255, 255, .08);
}

.lb-ticker-time {
  font-size: 11px;
  color: rgb(200 200 200);
  font-weight: 700;
  direction: rtl;
  white-space: nowrap;
  font-size: 14px;
}

.lb-ticker-title {
  font-size: 19px;
  color: #fff;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "مزید دیکھیں" button */
.lb-ticker-more {
  flex: 0 0 110px;
  min-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 14px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  white-space: nowrap;
  background: rgb(232 28 37);
  transition: background .15s;
}

.lb-ticker-more:hover {
  background: rgba(232, 0, 29, .5);
}

/* ════════════════════════════════════════
   MOBILE HERO SECTION
════════════════════════════════════════ */
.lb-mobile-hero {
  display: none;
}

.lb-mobile-img-wrap {
  position: relative;
  width: 100%;
}

.lb-mobile-img-wrap .lb-mobile-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.lb-mobile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0.85)
  );
}

.lb-mobile-overlay .lb-hero-badge {
  margin: 0 0 8px 0;
}

.lb-mobile-overlay .lb-hero-title {
  font-size: 32px !important;
  margin: 0 !important;
  color: #fff !important;
  padding: 15px;
}

/* ── Update mobile updates header to include LIVE badge ── */
.lb-mobile-updates-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 10px;
  background: #fff;
  border-bottom: 2px solid #eee;
  direction: rtl;
}

.lb-mobile-updates-header .lb-hero-badge {
  margin: 0;
  font-size: 32px;
  padding: 3px 10px;
}

/* Hide mobile elements on desktop */
.lb-mobile-updates {
  display: none;
}

.lb-mobile-more-wrap {
  display: none;
}

/* ── MOBILE: stack layout ── */
@media (max-width: 767px) {
  .lb-hero-bg {
    display: none !important;
  }
  
  .lb-mobile-hero {
    display: block;
  }

  .lb-hero-bg-link {
    position: static;
  }

  .lb-hero-overlay {
    display: none;
  }

  /* Mobile list replaces ticker */
  .lb-ticker-wrap {
    display: none !important;
  }

  .lb-mobile-updates {
    display: block;
    border-top: none;
	  padding:5px;
  }

  .lb-mobile-update-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none !important;
    direction: rtl;
    text-align: right;
    background: #fff;
  }

  .lb-mobile-update-item:hover {
    background: #fafafa;
  }

  .lb-mobile-update-title {
    font-size: 20px;
    color: #111;
    line-height: 1.5;
    text-align: right;
    font-weight: 600;
  }

  .lb-mobile-update-time {
    font-size: 18px;
    color: var(--lb-red);
    direction: rtl;
    text-align: right;
    white-space: nowrap;
  }

  .lb-mobile-more-wrap {
    display: block;
  }

  .lb-mobile-more {
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lb-red) !important;
    border: 1px solid var(--lb-red);
    margin: 10px 16px;
    border-radius: 4px;
    text-decoration: none !important;
  }
   .lb-mobile-updates-header .lb-hero-badge {
    margin: 0;
    font-size: 28px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    white-space: nowrap;   /* 🔥 IMPORTANT */
  }
}

/*
 * ════════════════════════════════════════
 * HEADER LIVE BADGE 
 * ════════════════════════════════════════
 */

.hnf-lb-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8001d;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 3px;
  text-decoration: none !important;
  line-height: 1;
  letter-spacing: 0.03em;
  direction: rtl;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
  /* Subtle pulse shadow to draw attention */
  box-shadow: 0 0 0 0 rgba(232, 0, 29, 0.4);
  animation: hnf-lb-badge-pulse 2.4s infinite;
}

.hnf-lb-header-badge:hover {
  background: #c0001a;
  opacity: 0.92;
  text-decoration: none !important;
  color: #fff !important;
}

.hnf-lb-header-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: lb-blink 1.2s infinite; /* reuses existing keyframe */
}

.hnf-lb-header-label {
  /* inherits font from badge */
}

/* Pulse keyframe for the badge itself */
@keyframes hnf-lb-badge-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(232, 0, 29, 0.4); }
  60%  { box-shadow: 0 0 0 7px rgba(232, 0, 29, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(232, 0, 29, 0);   }
}

/* ── Responsive adjustments ── */
@media (max-width: 767px) {
  .hnf-lb-header-badge {
    font-size: 13px;
    padding: 4px 10px;
    gap: 5px;
  }

  .hnf-lb-header-dot {
    width: 7px;
    height: 7px;
  }
}