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

@keyframes lb-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

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

.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;
}

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

@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 — [live_blog_updates] SHORTCODE
════════════════════════════════════════ */
.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; }

.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;
}


/* ════════════════════════════════════════
   HOMEPAGE HERO — [live_blog_widget]
   DESKTOP: Image LEFT | Text + updates RIGHT
════════════════════════════════════════ */

.lb-hero-wrap {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
  background: #fff;
}

/* ── Split container ── */
.lb-hero-editorial {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid var(--lb-border);
  border-radius: 2px;
  overflow: hidden;
 padding: 15px;
 background: #f5f5f5;
}

/* ── LEFT panel: IMAGE (45%) ── */
.lb-hero-left {
  flex: 0 0 45%;
  max-width: 45%;
  min-height: 420px;
  overflow: hidden;
  order: 1;
  position: relative;
}
.lb-hero-img-link {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  text-decoration: none !important;
  display: block;
}
.lb-hero-img-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;        
} 
.lb-hero-img-overlay {
  position: absolute;
  bottom: auto;      
  top: 30%;           
  left: 0;
  right: 0;
  padding: 16px 14px 12px;
  direction: rtl;
  z-index: 3;          /* ADD — highest, above everything */
  pointer-events: none;
}

/* LIVE pill on image — slightly smaller */
.lb-hero-img-overlay .lb-hero-live-pill {
  font-size: 30px;
  padding: 3px 8px;
  margin-bottom: 8px;
  display: inline-flex;
}

/* Title on image — white text */
.lb-hero-img-overlay .lb-hero-feat-title {
  color: #fff !important;
  font-size: 34px !important;
  margin: 6px 0 0 0 !important;
}

.lb-hero-img-overlay .lb-hero-feat-title a {
  color: #fff !important;
}

.lb-hero-img-overlay .lb-hero-feat-title a:hover {
  color: #f0f0f0 !important;
}

.lb-hero-left a {
  display: block;
  height: 100%;
  text-decoration: none !important;
}

.lb-hero-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
  transition: transform 0.35s ease;
}

.lb-hero-img-link:hover img {
  transform: scale(1.03);
}

.lb-hero-right-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 420px;
  background: #f4f4f4;
  color: #aaa;
  font-size: 14px;
  padding: 20px;
  text-decoration: none !important;
  direction: rtl;
  text-align: center;
}

/* ── RIGHT panel: TEXT + UPDATES (55%) ── */
.lb-hero-right {
  flex: 0 0 55%;
  max-width: 55%;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 0 14px;
  min-width: 0;
  border-right: 1px solid var(--lb-border);
  order: 2;
}

/* ── Top row: LIVE pill ── */
.lb-hero-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  direction: rtl;
}

/* LIVE red pill */
.lb-hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #cc0000;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

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

/* ── Featured title ── */
.lb-hero-feat-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #000 !important;
  margin: 0 0 4px 0 !important;
  text-align: right;
  direction: rtl;
}

.lb-hero-feat-title a {
  color: #000 !important;
  text-decoration: none !important;
}

.lb-hero-feat-title a:hover {
  color: var(--lb-red) !important;
}

/* ── Updates list — scrollable, all 10 posts ── */
.lb-hero-updates-list {
  list-style: none !important;
  margin: 10px 0 0 0 !important;
  padding: 0 !important;
  flex: 1;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Each update item ── */
.lb-hero-update-item {
  list-style: none !important;
  border-bottom: 1px solid #a6a6a6;
  padding: 0;
}

.lb-hero-update-item:last-child {
  border-bottom: none;
}

/* ── Link: stacked — time on top, title below ── */
.lb-hero-update-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  padding: 8px 4px;
  text-decoration: none !important;
  direction: rtl;
  transition: background 0.15s;
}

.lb-hero-update-link:hover {
  background: #fafafa;
}

/* ── Time badge ── */
.lb-hero-update-time {
      flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.03em;
    text-align: right;
    font-family: sans-serif;
    background: #E31010;
    border-radius: 10px;
    width: fit-content;
    font-style: normal;
    font-size: 12px;
    line-height: 16px;
    color: #FFFFFF;
    padding: 0px 6px;
    margin-bottom: 3px;
    align-self: normal;
}

/* ── Title ── */
.lb-hero-update-title {
  flex: 1;
  font-family: 'humurdu-custom-font', sans-serif;
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 0;
  color: #333;
  text-decoration: none;
  transition: color 0.25s ease-in-out;
  line-height: 1.4;
  text-align: right;
  width: 100%;  
}

.lb-hero-update-link:hover .lb-hero-update-title {
  color: var(--lb-red);
}

/* ── More link ── */
.lb-hero-more-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0 12px;
  direction: rtl;
  margin-top: auto;
  border-top: 1px solid var(--lb-border);
}

.lb-hero-more-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--lb-red) !important;
  text-decoration: none !important;
  transition: opacity 0.2s;
}

.lb-hero-more-link:hover { opacity: 0.75; }

/* ── Kill old unused elements ── */
.lb-hero-bg,
.lb-hero-overlay,
.lb-ticker-wrap {
  display: none !important;
}

.lb-hero-bg-link { display: contents; }
.lb-hero-live-label { display: none; }

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


/* ════════════════════════════════════════
   MOBILE HERO (hidden on desktop)
════════════════════════════════════════ */
.lb-mobile-hero      { display: none; }
.lb-mobile-updates   { display: none; }
.lb-mobile-more-wrap { display: none; }

.lb-mobile-img-wrap { position: relative; width: 100%; }
.lb-mobile-img-wrap .lb-mobile-img { display: block; width: 100%; height: 300px; 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 {
  margin: 0 !important; color: #fff !important; padding: 15px;
  font-size: 2rem !important; font-weight: 700; line-height: 1.3;
}

.lb-mobile-updates-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 10px; background: #fff; border-bottom: 2px solid #eee; direction: rtl;
}
.lb-mobile-updates-header .lb-hero-badge { margin: 0; font-size: 28px; padding: 3px 10px; }
.lb-hero-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
	animation: lb-blink 1.2s infinite;}

/* ════════════════════════════════════════
   MOBILE BREAKPOINT
════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Hide desktop editorial layout */
  .lb-hero-editorial { display: none !important; }

  /* Show mobile elements */
  .lb-mobile-hero    { display: block; }
  .lb-mobile-updates { display: block; border-top: none; padding: 5px; }
  .lb-mobile-more-wrap { display: block; }

  .lb-mobile-update-item {
    display: flex; flex-direction: column; gap: 4px; padding: 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: 18px; color: #111; line-height: 1.5; text-align: right; font-weight: 600; }
  .lb-mobile-update-time { font-size: 15px; color: var(--lb-red); direction: rtl; text-align: right; white-space: nowrap; font-family: sans-serif; }

  .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: 26px; padding: 4px 10px;
    display: inline-flex; align-items: center; gap: 6px; direction: rtl; white-space: nowrap; background: var(--lb-red); color: #fff;;
  }
}


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

@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);   }
}

@media (max-width: 767px) {
  .hnf-lb-header-badge { font-size: 13px; padding: 4px 10px; gap: 5px; }
  .hnf-lb-header-dot   { width: 7px; height: 7px; }
}