/*
 * 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: 65vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

/* ── Dark gradient overlay ── */
.lb-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  /* NOT inset:0 — only bottom half */
  background: linear-gradient(to top,
      rgba(0, 0, 0, .88) 0%,
      rgba(0, 0, 0, .5) 60%,
      transparent 100%);
}

.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: 38px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin: 0 24px 0 !important;
  direction: ltr;
  text-align: right;
}

/* ════════════════════════════════════════
   TICKER — inside overlay at bottom
════════════════════════════════════════ */
.lb-ticker-wrap {
  background: #1a1a1a;
  border-top: none;
  margin-top: 0;
  padding: 0px 40px;
}
.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: #fff;
  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: var(--lb-red);
  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: stack layout ── */
@media (max-width: 767px) {
  .lb-hero-bg {
    display: none;
  }

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

  .lb-hero-overlay {
    position: static;
    background: none;
    padding: 0;
  }

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

  .lb-hero-badge {
    margin: 12px 16px 8px;
  }

  .lb-hero-title {
    font-size: 24px !important;
    margin: 0 16px 12px !important;
    color: #111 !important;
  }

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

  .lb-mobile-updates {
    display: block;
    border-top: 1px solid #eee;
  }

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

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

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

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

  .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: 12px 16px;
    border-radius: 4px;
    text-decoration: none !important;
  }
}

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

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

.lb-mobile-img {
  display: none;
}

@media (max-width: 767px) {
  .lb-mobile-updates {
    display: block;
  }

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

  .lb-mobile-img {
    display: block;
  }

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