/*
Theme Name: HatzafonNews Pro
Theme URI: https://hatzafon-news.co.il
Author: חדשות הצפון
Description: עיתון דיגיטלי – חדשות הצפון. מה שקורה בצפון, קורה כאן.
Version: 2.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: hfn
Tags: news, rtl, hebrew, north
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --dark:   #0B1D34;
  --navy:   #162B45;
  --slate:  #38506B;
  --red:    #D62828;
  --red2:   #B71C1C;
  --gray:   #8898AA;
  --bg:     #F1F2F4;
  --card:   #FFFFFF;
  --text:   #1A202C;
  --muted:  #64748B;
  --border: #E2E8F0;
  --live:   #D62828;

  --font-head: 'Heebo', 'Rubik', sans-serif;
  --font-body: 'Heebo', sans-serif;

  --wrap:   1240px;
  --radius: 6px;
  --shadow: 0 1px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --t: .2s ease;
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.hf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hf-flex  { display: flex; align-items: center; }
.hf-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.hf-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.hf-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.hf-topbar {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  font-size: 12.5px;
  padding: 6px 0;
}
.hf-topbar-inner { justify-content: space-between; }
.hf-topbar-left { display: flex; align-items: center; gap: 16px; }
.hf-topbar-left a { color: rgba(255,255,255,.65); transition: color var(--t); }
.hf-topbar-left a:hover { color: var(--red); }
.hf-topbar-social { display: flex; gap: 10px; }
.hf-topbar-social a { display: flex; align-items: center; color: rgba(255,255,255,.6); transition: color var(--t); }
.hf-topbar-social a:hover { color: #fff; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.hf-header {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.hf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* LOGO */
.hf-logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.hf-logo-part1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}
.hf-logo-sep {
  font-weight: 300;
  font-size: 24px;
  color: rgba(255,255,255,.3);
  margin: 0 2px;
}
.hf-logo-part2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: var(--red);
  letter-spacing: -0.5px;
}
.hf-logo-tag {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  font-weight: 400;
  margin-top: -4px;
  letter-spacing: 0.3px;
}

/* Header right */
.hf-header-right { display: flex; align-items: center; gap: 16px; }
.hf-search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color var(--t);
}
.hf-search-form:focus-within { border-color: rgba(255,255,255,.3); }
.hf-search-form input {
  border: none; background: none;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  width: 180px;
  outline: none;
  color: #fff;
  direction: rtl;
}
.hf-search-form input::placeholder { color: rgba(255,255,255,.4); }
.hf-search-form button { padding: 8px 12px; color: rgba(255,255,255,.5); display: flex; }
.hf-search-form button:hover { color: #fff; }

/* Live badge */
.hf-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 4px;
  white-space: nowrap;
}
.hf-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: hfPulse 1.4s infinite;
  flex-shrink: 0;
}
@keyframes hfPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

/* Hamburger */
.hf-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hf-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.hf-nav { background: var(--navy); border-bottom: 2px solid var(--red); }
.hf-nav-list { display: flex; align-items: center; }
.hf-nav-list > li > a {
  display: block;
  color: rgba(255,255,255,.78);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 16px;
  transition: color var(--t), background var(--t);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.hf-nav-list > li > a:hover,
.hf-nav-list > li.current > a {
  color: #fff;
  border-bottom-color: var(--red);
  background: rgba(255,255,255,.05);
}

/* ═══════════════════════════════════════════
   BREAKING TICKER
═══════════════════════════════════════════ */
.hf-breaking {
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hf-breaking-inner { display: flex; align-items: center; height: 38px; }
.hf-breaking-label {
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11.5px;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hf-breaking-scroll { overflow: hidden; flex: 1; position: relative; }
.hf-breaking-track {
  display: flex;
  gap: 36px;
  animation: hfScroll 35s linear infinite;
  width: max-content;
  white-space: nowrap;
}
.hf-breaking-track a { font-size: 13.5px; color: var(--text); font-weight: 600; transition: color var(--t); }
.hf-breaking-track a:hover { color: var(--red); }
.hf-breaking-track .sep { color: var(--gray); opacity: .5; }
@keyframes hfScroll {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ═══════════════════════════════════════════
   HERO – Full-width featured
═══════════════════════════════════════════ */
.hf-hero { background: #000; position: relative; }
.hf-hero-inner {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.hf-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .65;
  transition: transform 8s ease;
}
.hf-hero:hover .hf-hero-img { transform: scale(1.03); }
.hf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,29,52,.95) 0%, rgba(11,29,52,.4) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
.hf-hero-content { max-width: 680px; color: #fff; }
.hf-hero-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.hf-hero-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hf-hero-excerpt {
  font-size: 16px;
  opacity: .85;
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hf-hero-meta { display: flex; align-items: center; gap: 20px; font-size: 14px; opacity: .75; }
.hf-hero-meta svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════ */
.hf-section { padding: 40px 0; }
.hf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--dark);
}
.hf-section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hf-section-title::before {
  content: '';
  display: block;
  width: 4px; height: 20px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.hf-see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t);
}
.hf-see-all:hover { gap: 8px; }
.hf-see-all svg { width: 14px; height: 14px; transform: rotate(180deg); }

/* ═══════════════════════════════════════════
   NEWS CARDS
═══════════════════════════════════════════ */
.hf-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.hf-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.hf-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.hf-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.hf-card:hover .hf-card-img img { transform: scale(1.06); }

.hf-card-cat {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
/* Category colors */
.hf-cat-security  { background: #1A237E !important; }
.hf-cat-economy   { background: #1B5E20 !important; }
.hf-cat-society   { background: #4A148C !important; }
.hf-cat-sport     { background: #E65100 !important; }
.hf-cat-culture   { background: #880E4F !important; }
.hf-cat-politics  { background: #37474F !important; }

.hf-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.hf-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t);
}
.hf-card:hover .hf-card-title { color: var(--red); }
.hf-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.hf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.hf-card-time { display: flex; align-items: center; gap: 4px; }
.hf-card-time svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════
   LARGE CARD (for second featured)
═══════════════════════════════════════════ */
.hf-card-lg {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--t);
}
.hf-card-lg:hover { box-shadow: var(--shadow-md); }
.hf-card-lg-img { height: 240px; overflow: hidden; }
.hf-card-lg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hf-card-lg:hover .hf-card-lg-img img { transform: scale(1.04); }
.hf-card-lg-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.hf-card-lg-cat { display: inline-block; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 3px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.hf-card-lg-title { font-family: var(--font-head); font-weight: 800; font-size: 21px; line-height: 1.3; color: var(--text); margin-bottom: 10px; }
.hf-card-lg-title:hover { color: var(--red); }
.hf-card-lg-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; }
.hf-card-lg-time { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ═══════════════════════════════════════════
   LIVE UPDATES SECTION
═══════════════════════════════════════════ */
.hf-live-section {
  background: var(--dark);
  padding: 36px 0;
  margin: 0;
}
.hf-live-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hf-live-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}
.hf-live-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.hf-live-item {
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 16px;
  border-right: 3px solid var(--red);
  transition: background var(--t);
}
.hf-live-item:hover { background: rgba(255,255,255,.1); }
.hf-live-item-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hf-live-item-title:hover { color: #ffb3b3; }
.hf-live-item-time { font-size: 11px; color: rgba(255,255,255,.45); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.hf-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 52px 0 0; }
.hf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.hf-footer-logo { margin-bottom: 14px; }
.hf-footer-desc { font-size: 14px; line-height: 1.75; opacity: .7; max-width: 260px; }
.hf-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.hf-footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.hf-footer-social a:hover { background: var(--red); }
.hf-footer-social svg { width: 15px; height: 15px; color: #fff; }
.hf-footer-col-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.hf-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.hf-footer-col ul a { font-size: 14px; color: rgba(255,255,255,.65); transition: color var(--t); }
.hf-footer-col ul a:hover { color: var(--red); }
.hf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  text-align: center;
  font-size: 12.5px;
  opacity: .45;
}

/* ═══════════════════════════════════════════
   SINGLE ARTICLE
═══════════════════════════════════════════ */
.hf-single { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding-top: 32px; padding-bottom: 60px; }
.hf-article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; }
.hf-article-cat { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 3px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.hf-article-title { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1.25; color: var(--dark); margin-bottom: 12px; }
.hf-article-meta { display: flex; gap: 20px; color: var(--muted); font-size: 13.5px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.hf-article-hero { border-radius: 6px; overflow: hidden; margin-bottom: 28px; }
.hf-article-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.hf-article-body { font-size: 17px; line-height: 1.85; }
.hf-article-body p { margin-bottom: 18px; }
.hf-article-body h2 { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--dark); margin: 28px 0 12px; }

/* Sidebar */
.hf-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 20px; }
.hf-sidebar-widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hf-sidebar-title { background: var(--dark); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; padding: 11px 16px; }
.hf-sidebar-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background var(--t); }
.hf-sidebar-item:last-child { border-bottom: none; }
.hf-sidebar-item:hover { background: var(--bg); }
.hf-sidebar-thumb { width: 68px; height: 50px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.hf-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hf-sidebar-item-title { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--text); transition: color var(--t); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hf-sidebar-item-title:hover { color: var(--red); }
.hf-sidebar-item-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ═══════════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════════ */
.hf-mobile-nav {
  position: fixed; top: 0; right: -100%;
  width: 270px; height: 100vh;
  background: var(--dark);
  z-index: 9999;
  transition: right .28s ease;
  overflow-y: auto;
}
.hf-mobile-nav.open { right: 0; }
.hf-mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hf-mobile-logo { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #fff; }
.hf-mobile-logo span { color: var(--red); }
.hf-mobile-close { color: rgba(255,255,255,.6); font-size: 20px; cursor: pointer; }
.hf-mobile-links a { display: block; padding: 12px 20px; color: rgba(255,255,255,.8); font-family: var(--font-head); font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.05); transition: background var(--t), color var(--t); }
.hf-mobile-links a:hover { background: rgba(255,255,255,.06); color: #fff; }
.hf-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .28s; }
.hf-overlay.open { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */
.hf-pagination { display: flex; justify-content: center; gap: 6px; padding: 36px 0; }
.hf-pagination a, .hf-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 4px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text);
  transition: var(--t);
}
.hf-pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.hf-pagination .current { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hf-grid-4 { grid-template-columns: repeat(2,1fr); }
  .hf-live-grid { grid-template-columns: repeat(2,1fr); }
  .hf-single { grid-template-columns: 1fr; }
  .hf-sidebar { display: none; }
  .hf-footer-grid { grid-template-columns: 1fr 1fr; }
  .hf-card-lg { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hf-hamburger { display: flex; }
  .hf-search-form, .hf-live-badge { display: none; }
  .hf-topbar { display: none; }
  .hf-nav { display: none; }
  .hf-grid-4, .hf-grid-3 { grid-template-columns: 1fr; }
  .hf-live-grid { grid-template-columns: repeat(2,1fr); }
  .hf-hero-inner { height: 300px; }
  .hf-hero-title { font-size: 24px; }
  .hf-hero-overlay { padding: 24px; }
  .hf-footer-grid { grid-template-columns: 1fr; }
  .hf-article { padding: 20px; }
  .hf-article-title { font-size: 24px; }
}

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.hfn-topbar {
  background: var(--dark);
  color: var(--gray);
  font-size: .78rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hfn-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}
.hfn-topbar__date { color: var(--gray); }
.hfn-topbar__social { display: flex; gap: .6rem; }
.hfn-topbar__social-link {
  color: var(--gray);
  transition: color .2s;
  display: flex;
  align-items: center;
}
.hfn-topbar__social-link:hover { color: #fff; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.hfn-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  border-bottom: 2px solid var(--red);
  transition: box-shadow .3s;
}
.hfn-header--scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.5); }
.hfn-header__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 62px;
}

/* Logo */
.hfn-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.hfn-logo__text { display: flex; align-items: baseline; gap: .25rem; }
.hfn-logo__main  { font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.hfn-logo__sep   { font-size: 1.3rem; color: var(--red); font-weight: 300; margin: 0 .1rem; }
.hfn-logo__accent{ font-size: 1.45rem; font-weight: 800; color: var(--red); letter-spacing: -.5px; }

/* Live badge */
.hfn-live-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(214,40,40,.15);
  border: 1px solid rgba(214,40,40,.4);
  color: #ff6b6b;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hfn-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: hfn-pulse 1.4s ease infinite;
}
@keyframes hfn-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

/* Header actions */
.hfn-header__actions { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.hfn-header__search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gray); padding: .4rem; display: flex; align-items: center;
  transition: color .2s;
}
.hfn-header__search-btn:hover { color: #fff; }
.hfn-btn-report {
  display: flex; align-items: center; gap: .4rem;
  background: var(--red); color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: .45rem 1rem; border-radius: 4px;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.hfn-btn-report:hover { background: var(--red2); }
.hfn-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.hfn-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray); border-radius: 2px; transition: .3s;
}

/* Search bar */
.hfn-search-bar {
  background: var(--navy);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.hfn-search-bar--open { max-height: 70px; padding: .6rem 0; }
.hfn-search-bar form {
  display: flex; gap: .5rem;
}
.hfn-search-bar input {
  flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; padding: .5rem 1rem; border-radius: 4px; font-family: inherit; font-size: .9rem;
  outline: none; direction: rtl;
}
.hfn-search-bar input::placeholder { color: var(--gray); }
.hfn-search-bar button {
  background: var(--red); border: none; color: #fff; padding: .5rem .9rem;
  border-radius: 4px; cursor: pointer; display: flex; align-items: center;
}

/* ── NAV ── */
.hfn-nav {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hfn-nav__inner {
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.hfn-nav__inner::-webkit-scrollbar { display: none; }
.hfn-nav__link {
  display: inline-block;
  color: rgba(255,255,255,.75);
  font-size: .85rem; font-weight: 500;
  padding: .65rem 1rem; white-space: nowrap;
  text-decoration: none; border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.hfn-nav__link:hover,
.hfn-nav__link--home { color: #fff; border-bottom-color: var(--red); }

/* ── TICKER ── */
.hfn-ticker {
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; overflow: hidden; height: 38px;
}
.hfn-ticker__label {
  display: flex; align-items: center; gap: .5rem;
  background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 800;
  padding: 0 1rem; white-space: nowrap; height: 100%;
  flex-shrink: 0; text-transform: uppercase; letter-spacing: .05em;
}
.hfn-ticker__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: hfn-pulse 1.4s ease infinite;
}
.hfn-ticker__track-wrap { flex: 1; overflow: hidden; }
.hfn-ticker__track {
  display: flex; align-items: center; gap: 2rem;
  animation: hfn-ticker 35s linear infinite;
  white-space: nowrap; padding: 0 1.5rem;
}
@keyframes hfn-ticker {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hfn-ticker__item {
  color: var(--text); font-size: .82rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.hfn-ticker__item:hover { color: var(--red); }
.hfn-ticker__sep { color: var(--red); font-size: .6rem; }

/* ── MOBILE NAV ── */
.hfn-mobile-nav {
  position: fixed; top: 0; right: -320px;
  width: 300px; height: 100vh; background: var(--dark);
  z-index: 1000; transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -4px 0 30px rgba(0,0,0,.5);
}
.hfn-mobile-nav--open { right: 0; }
.hfn-mobile-nav__header {
  display: flex; align-items: center; padding: 1.2rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hfn-mobile-nav__close {
  margin-right: auto; background: none; border: none;
  color: var(--gray); font-size: 1.1rem; cursor: pointer;
}
.hfn-mobile-nav__links { padding: 1rem 0; overflow-y: auto; }
.hfn-mobile-nav__links a {
  display: block; padding: .85rem 1.4rem;
  color: rgba(255,255,255,.8); text-decoration: none; font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.05); transition: color .2s, background .2s;
}
.hfn-mobile-nav__links a:hover { color: #fff; background: rgba(255,255,255,.05); }

.hfn-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 999; backdrop-filter: blur(2px);
}
.hfn-overlay--visible { display: block; }
.hfn-hamburger { display: none; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hfn-hero {
  background: var(--bg);
  padding: 2rem 0;
}
.hfn-hero__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
.hfn-hero__main { position: relative; border-radius: 8px; overflow: hidden; }
.hfn-hero__img-wrap {
  position: relative; height: 480px;
  background: var(--slate);
}
.hfn-hero__img-wrap--placeholder { background: var(--slate); }
.hfn-hero__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hfn-hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,29,52,.95) 0%, rgba(11,29,52,.4) 50%, transparent 100%);
}
.hfn-hero__content {
  position: absolute; bottom: 0; right: 0; left: 0;
  padding: 1.8rem; color: #fff;
}
.hfn-hero__title { font-size: 2rem; font-weight: 800; line-height: 1.25; margin: .5rem 0 .8rem; }
.hfn-hero__title a { color: inherit; text-decoration: none; }
.hfn-hero__excerpt { font-size: .95rem; opacity: .85; margin-bottom: 1rem; line-height: 1.6; }
.hfn-hero__meta { display: flex; align-items: center; gap: 1rem; }
.hfn-hero__time { font-size: .8rem; opacity: .7; }
.hfn-hero__read-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--red); color: #fff; font-size: .82rem; font-weight: 700;
  padding: .5rem 1.1rem; border-radius: 4px; text-decoration: none;
  transition: background .2s; margin-right: auto;
}
.hfn-hero__read-btn:hover { background: var(--red2); }

/* Hero sidebar */
.hfn-hero__side {
  background: #fff; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
}
.hfn-hero__side-header {
  background: var(--dark); padding: .85rem 1.2rem;
}
.hfn-hero__side-header .hfn-section-title {
  color: #fff; margin: 0; font-size: .95rem;
  border-right: 3px solid var(--red); padding-right: .7rem;
}
.hfn-side-card {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.hfn-side-card:last-child { border-bottom: none; }
.hfn-side-card:hover { background: #f8f9fa; }
.hfn-side-card__img-link { flex-shrink: 0; }
.hfn-side-card__img {
  width: 70px; height: 55px; object-fit: cover;
  border-radius: 4px; display: block;
}
.hfn-side-card__body { flex: 1; min-width: 0; }
.hfn-side-card__title {
  font-size: .82rem; font-weight: 600; line-height: 1.4;
  margin: .2rem 0 .3rem;
}
.hfn-side-card__title a { color: var(--text); text-decoration: none; }
.hfn-side-card__title a:hover { color: var(--red); }
.hfn-side-card__time { font-size: .72rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.hfn-section { padding: 2.5rem 0; }
.hfn-section--live {
  background: var(--dark);
  padding: 2.5rem 0;
}
.hfn-section__header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.hfn-section-title {
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  border-right: 4px solid var(--red); padding-right: .75rem;
  white-space: nowrap;
}
.hfn-section__line {
  flex: 1; height: 1px; background: var(--border);
}
.hfn-section__line--light { background: rgba(255,255,255,.12); }

/* Live section */
.hfn-live__header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.hfn-live__header .hfn-live-badge { font-size: .78rem; }
.hfn-live-list { display: flex; flex-direction: column; gap: 0; }
.hfn-live-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.hfn-live-item:last-child { border-bottom: none; }
.hfn-live-item__time {
  flex-shrink: 0; font-size: .75rem; color: var(--red);
  font-weight: 700; padding-top: .2rem; min-width: 80px;
}
.hfn-live-item__title { font-size: .95rem; font-weight: 700; margin: 0 0 .4rem; }
.hfn-live-item__title a { color: #fff; text-decoration: none; }
.hfn-live-item__title a:hover { color: #ff8c8c; }
.hfn-live-item__excerpt { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.6; margin: 0; }

/* ═══════════════════════════════════════════
   CARD GRID
═══════════════════════════════════════════ */
.hfn-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.hfn-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.hfn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.hfn-card__img-link { display: block; overflow: hidden; }
.hfn-card__img {
  width: 100%; height: 190px; object-fit: cover;
  transition: transform .4s;
}
.hfn-card:hover .hfn-card__img { transform: scale(1.05); }
.hfn-card__img-placeholder {
  height: 190px; background: linear-gradient(135deg, var(--slate) 0%, var(--navy) 100%);
}
.hfn-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.hfn-card__title {
  font-size: .9rem; font-weight: 700; line-height: 1.45;
  margin: .4rem 0 .5rem; flex: 1;
}
.hfn-card__title a { color: var(--text); text-decoration: none; }
.hfn-card__title a:hover { color: var(--red); }
.hfn-card__excerpt { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 0 0 .8rem; }
.hfn-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.hfn-card__time { font-size: .72rem; color: var(--muted); }
.hfn-card__link { font-size: .75rem; color: var(--red); font-weight: 600; text-decoration: none; }
.hfn-card__link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   CATEGORY BADGES
═══════════════════════════════════════════ */
.hfn-badge {
  display: inline-block;
  font-size: .68rem; font-weight: 800;
  padding: .22rem .7rem; border-radius: 50px;
  text-decoration: none; letter-spacing: .03em; text-transform: uppercase;
  background: var(--red); color: #fff;
  transition: opacity .2s;
}
.hfn-badge:hover { opacity: .85; }
.hfn-badge--politics,.hfn-badge--פוליטיקה   { background: #2563eb; }
.hfn-badge--economy,.hfn-badge--כלכלה        { background: #16a34a; }
.hfn-badge--sports,.hfn-badge--ספורט         { background: #ea580c; }
.hfn-badge--culture,.hfn-badge--תרבות        { background: #7c3aed; }
.hfn-badge--tech,.hfn-badge--טכנולוגיה       { background: #0891b2; }
.hfn-badge--local,.hfn-badge--מקומי          { background: #059669; }
.hfn-badge--security,.hfn-badge--ביטחון      { background: #dc2626; }
.hfn-badge--world,.hfn-badge--עולם           { background: #1d4ed8; }

/* ═══════════════════════════════════════════
   SINGLE ARTICLE
═══════════════════════════════════════════ */
.hfn-single-wrap { padding: 2.5rem 0; }
.hfn-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto auto;
  gap: 2rem;
}
.hfn-single { grid-column: 1; }
.hfn-related { grid-column: 1; }
.hfn-sidebar { grid-column: 2; grid-row: 1 / 3; }

.hfn-single__header { margin-bottom: 1.5rem; }
.hfn-single__title { font-size: 2rem; font-weight: 900; line-height: 1.25; margin: .6rem 0 .9rem; color: var(--dark); }
.hfn-single__meta {
  display: flex; align-items: center; gap: 1.2rem;
  font-size: .8rem; color: var(--muted);
  padding-bottom: 1rem; border-bottom: 2px solid var(--border);
}
.hfn-single__meta > span { display: flex; align-items: center; gap: .3rem; }
.hfn-single__hero-img { margin: 0 0 2rem; border-radius: 8px; overflow: hidden; }
.hfn-single__hero-img img { width: 100%; height: auto; display: block; }
.hfn-single__img-caption { font-size: .78rem; color: var(--muted); padding: .5rem .5rem 0; }
.hfn-single__content {
  font-size: 1.05rem; line-height: 1.85; color: var(--text);
}
.hfn-single__content p { margin: 0 0 1.4rem; }
.hfn-single__content h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 .8rem; color: var(--dark); }
.hfn-single__content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .6rem; }
.hfn-single__content blockquote {
  border-right: 4px solid var(--red);
  padding-right: 1.2rem; margin: 1.5rem 0;
  color: var(--slate); font-style: italic;
}

.hfn-single__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0 1.5rem; }
.hfn-single__tags-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hfn-single__tag {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--slate); font-size: .75rem; padding: .2rem .7rem;
  border-radius: 50px; text-decoration: none; transition: background .2s;
}
.hfn-single__tag:hover { background: var(--red); color: #fff; border-color: var(--red); }

.hfn-single__share {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.2rem 0; border-top: 1px solid var(--border);
}
.hfn-single__share-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hfn-share-btn {
  font-size: .78rem; font-weight: 700; padding: .4rem .9rem;
  border-radius: 4px; text-decoration: none; color: #fff; transition: opacity .2s;
}
.hfn-share-btn:hover { opacity: .85; }
.hfn-share-btn--fb { background: #1877f2; }
.hfn-share-btn--tw { background: #1da1f2; }
.hfn-share-btn--wa { background: #25d366; }

/* Related */
.hfn-related { padding-top: 2rem; border-top: 2px solid var(--border); }
.hfn-related .hfn-section-title { margin-bottom: 1.2rem; }
.hfn-related__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }

/* Sidebar widgets */
.hfn-sidebar { padding-top: .5rem; }
.hfn-widget { background: #fff; border-radius: 8px; padding: 1.2rem; margin-bottom: 1.4rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.hfn-widget__title {
  font-size: .88rem; font-weight: 800; color: var(--dark);
  padding-bottom: .6rem; margin-bottom: .9rem;
  border-bottom: 2px solid var(--red);
}

/* ═══════════════════════════════════════════
   ARCHIVE / CATEGORY
═══════════════════════════════════════════ */
.hfn-archive-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.hfn-archive-header__label {
  font-size: .72rem; font-weight: 800; color: var(--red);
  text-transform: uppercase; letter-spacing: .08em;
}
.hfn-archive-header__title { font-size: 1.8rem; font-weight: 900; margin: .3rem 0; }
.hfn-archive-header__desc { color: var(--muted); font-size: .9rem; }
.hfn-no-posts { color: var(--muted); text-align: center; padding: 3rem; }

/* Pagination */
.hfn-pagination { padding: 2rem 0; text-align: center; }
.hfn-pagination .nav-links { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.hfn-pagination .page-numbers {
  display: inline-block; padding: .45rem .85rem; border-radius: 4px;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-size: .85rem; transition: .2s;
}
.hfn-pagination .page-numbers.current,
.hfn-pagination .page-numbers:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ═══════════════════════════════════════════
   PAGE
═══════════════════════════════════════════ */
.hfn-page-wrap { padding: 2.5rem 0; }
.hfn-page__header { border-bottom: 2px solid var(--border); margin-bottom: 2rem; padding-bottom: 1rem; }
.hfn-page__title { font-size: 2rem; font-weight: 900; }
.hfn-page__hero { margin: 0 0 2rem; border-radius: 8px; overflow: hidden; }
.hfn-page__hero img { width: 100%; height: auto; display: block; }
.hfn-page__content { font-size: 1.05rem; line-height: 1.85; }
.hfn-page__content p { margin: 0 0 1.4rem; }

/* ═══════════════════════════════════════════
   404
═══════════════════════════════════════════ */
.hfn-404 { padding: 5rem 0; text-align: center; }
.hfn-404__inner { max-width: 480px; margin: auto; }
.hfn-404__code { font-size: 8rem; font-weight: 900; color: var(--red); line-height: 1; }
.hfn-404__title { font-size: 1.8rem; font-weight: 800; margin: 1rem 0 .5rem; }
.hfn-404__text { color: var(--muted); margin-bottom: 2rem; }
.hfn-404__btn {
  display: inline-block; background: var(--red); color: #fff;
  padding: .8rem 2rem; border-radius: 6px; text-decoration: none;
  font-weight: 700; transition: background .2s;
}
.hfn-404__btn:hover { background: var(--red2); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.hfn-footer {
  background: var(--dark);
  border-top: 3px solid var(--red);
  padding: 3rem 0 0;
  margin-top: 3rem;
  color: rgba(255,255,255,.7);
}
.hfn-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hfn-footer__brand {}
.hfn-logo--footer .hfn-logo__main,
.hfn-logo--footer .hfn-logo__sep,
.hfn-logo--footer .hfn-logo__accent { /* inherits header styles */ }
.hfn-footer__tagline { font-size: .82rem; color: rgba(255,255,255,.45); margin: .8rem 0 1.2rem; line-height: 1.6; }
.hfn-footer__social { display: flex; gap: .8rem; }
.hfn-footer__social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.hfn-footer__social-link:hover { background: var(--red); color: #fff; }
.hfn-footer__col-title {
  font-size: .82rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 1rem; padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hfn-footer__list { list-style: none; margin: 0; padding: 0; }
.hfn-footer__list li { margin-bottom: .5rem; }
.hfn-footer__list a {
  color: rgba(255,255,255,.55); font-size: .85rem;
  text-decoration: none; transition: color .2s;
}
.hfn-footer__list a:hover { color: #fff; }
.hfn-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 0; font-size: .78rem; color: rgba(255,255,255,.3);
}
.hfn-footer__credit { font-style: italic; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hfn-card-grid { grid-template-columns: repeat(3, 1fr); }
  .hfn-hero__grid { grid-template-columns: 1fr 300px; }
}

@media (max-width: 900px) {
  .hfn-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hfn-hero__grid { grid-template-columns: 1fr; }
  .hfn-hero__side { display: none; }
  .hfn-single-layout { grid-template-columns: 1fr; }
  .hfn-sidebar { grid-column: 1; grid-row: auto; }
  .hfn-related__grid { grid-template-columns: repeat(2,1fr); }
  .hfn-footer__grid { grid-template-columns: 1fr 1fr; }
  .hfn-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .hfn-topbar { display: none; }
  .hfn-header__inner { height: 56px; }
  .hfn-live-badge { display: none; }
  .hfn-btn-report span { display: none; }
  .hfn-hamburger { display: flex; }
  .hfn-nav { display: none; }
  .hfn-hero__img-wrap { height: 320px; }
  .hfn-hero__title { font-size: 1.4rem; }
  .hfn-card-grid { grid-template-columns: 1fr; }
  .hfn-related__grid { grid-template-columns: 1fr; }
  .hfn-single__title { font-size: 1.5rem; }
  .hfn-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hfn-footer__bottom { flex-direction: column; gap: .4rem; text-align: center; }
}
