/* ============================================================
   JINGULI — CNN-Style Media Layout
   media-layout.css
   Typography: Playfair Display (headlines) + DM Sans (body)
   Theme: ConnectQuest — deep navy / emerald green / white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── TOKENS — ConnectQuest Brand Palette ── */
:root {
  /* Core brand — ConnectQuest navy */
  --navy:      #0D1B2A;
  --navy-mid:  #132336;
  --navy-light:#1C3A5E;

  /* Primary accent — ConnectQuest green */
  --red:       #0F9D58;   /* replaces red throughout — now CQ green */
  --red-hover: #0B8049;   /* darker green on hover */

  /* Secondary accent — teal highlight */
  --gold:      #00ACC1;   /* replaces gold — now CQ teal */

  --white:     #FFFFFF;
  --off-white: #F4F7F6;
  --text:      #0D1B2A;
  --muted:     #5C6E7A;
  --border:    #DDE5E9;
  --card-bg:   #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --shadow:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.15);
  --container:  1320px;
  --transition: .22s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── CONTAINER ── */
.jg-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.jg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0a4d2e;   /* deep CQ green */
  border-bottom: 3px solid #07361f;
  box-shadow: 0 2px 16px rgba(0,0,0,.45);
}

.jg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;   /* compact — was 64px */
  gap: 20px;
}

/* Logo */
.jg-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.jg-logo-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}
.jg-logo-tag {
  font-size: .52rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Nav */
.jg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.jg-nav::-webkit-scrollbar { display: none; }

.jg-nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.jg-nav-link:hover,
.jg-nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.jg-nav-link.active {
  color: #5DFFB2;      /* bright green tint on dark bg */
  background: rgba(15,157,88,.18);
}

/* Header right */
.jg-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.jg-search-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: .82rem;
  transition: border-color var(--transition), color var(--transition);
}
.jg-search-btn:hover { border-color: var(--white); color: var(--white); }

/* ════════════════════════════════════════
   BREAKING NEWS BAR
════════════════════════════════════════ */
.jg-breaking {
  background: #0a4d2e;   /* deep CQ green — matches header */
  color: var(--white);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #07361f;
}
.jg-breaking-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 100%;
}
.jg-breaking-label {
  background: #07361f;
  padding: 0 16px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.jg-breaking-label::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 10px solid #07361f;
  margin-left: 16px;
}
.jg-breaking-ticker {
  flex: 1;
  overflow: hidden;
  padding: 0 20px;
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
}
.jg-breaking-ticker-inner {
  display: inline-flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
}
.jg-breaking-ticker-inner:hover { animation-play-state: paused; }
.jg-breaking-ticker a { color: var(--white); }
.jg-breaking-ticker a:hover { text-decoration: underline; }
.jg-breaking-sep { color: rgba(255,255,255,.4); }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════
   PAGE WRAPPER
════════════════════════════════════════ */
.jg-page { min-height: 100vh; display: flex; flex-direction: column; }
.jg-main { flex: 1; padding: 32px 0 64px; }

/* ════════════════════════════════════════
   SECTION HEADERS
════════════════════════════════════════ */
.jg-section { margin-bottom: 48px; }

.jg-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.jg-section-header::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: var(--red);
}
.jg-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.3px;
}
.jg-section-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.jg-section-link:hover { color: var(--red-hover); }
.jg-section-link::after { content: '→'; }


/* ════════════════════════════════════════
   HERO CAROUSEL — per-category, swipeable
════════════════════════════════════════ */
.jg-hero-carousel {
  position: relative;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}

/* Category tab bar */
.jg-hero-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 12px;
  background: #07361f;
  scrollbar-width: none;
}
.jg-hero-tabs::-webkit-scrollbar { display: none; }
.jg-hero-tab {
  flex-shrink: 0;
  padding: 8px 15px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.55);
  border: none;
  background: transparent;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.jg-hero-tab.active { color: #fff; border-bottom-color: #7fffb5; }
.jg-hero-tab:hover { color: rgba(255,255,255,.9); }

/* Slide track */
.jg-hero-track {
  display: flex;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.jg-hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2px;
  background: var(--navy);
  min-height: 440px;
}

/* Hero main article */
.jg-hero-main {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  cursor: pointer;
  min-height: 440px;
}
.jg-hero-main:hover .jg-hero-img { transform: scale(1.04); }
.jg-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .5s ease;
}
.jg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,25,41,.92) 0%, rgba(10,25,41,.3) 60%, transparent 100%);
}
.jg-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
}
.jg-hero-category {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.jg-hero-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.jg-hero-title a { color: inherit; }
.jg-hero-title a:hover { color: #90CAF9; }
.jg-hero-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .8rem; color: rgba(255,255,255,.7);
}

/* Hero side articles */
.jg-hero-side { display: flex; flex-direction: column; gap: 2px; }
.jg-hero-side-item {
  flex: 1;
  position: relative;
  background: var(--navy);
  overflow: hidden;
  cursor: pointer;
  min-height: 219px;
}
.jg-hero-side-item:hover .jg-hero-side-img { transform: scale(1.06); }
.jg-hero-side-img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .5s ease;
}
.jg-hero-side-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,25,41,.88) 0%, rgba(10,25,41,.2) 70%, transparent 100%);
}
.jg-hero-side-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
}
.jg-hero-side-cat {
  display: inline-block;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 2px 7px; border-radius: 2px; margin-bottom: 6px;
  color: white;
}
.jg-hero-side-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--white); line-height: 1.3;
}
.jg-hero-side-title a { color: inherit; }
.jg-hero-side-title a:hover { color: #90CAF9; }
.jg-hero-side-date { font-size: .72rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* Carousel nav arrows */
.jg-hero-prev, .jg-hero-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 20;
  background: rgba(7,54,31,.85);
  border: 2px solid rgba(255,255,255,.2);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; line-height: 1;
  transition: background .2s, transform .2s;
  user-select: none;
}
.jg-hero-prev { left: 12px; }
.jg-hero-next { right: 12px; }
.jg-hero-prev:hover, .jg-hero-next:hover {
  background: #0a4d2e; transform: translateY(-50%) scale(1.1);
}

/* Dots */
.jg-hero-dots {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 20;
}
.jg-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none; cursor: pointer;
  transition: background .2s, transform .2s; padding: 0;
}
.jg-hero-dot.active { background: #fff; transform: scale(1.35); }



/* ════════════════════════════════════════
   LAYOUT: MAIN + SIDEBAR
════════════════════════════════════════ */
.jg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.jg-content { min-width: 0; }

/* ════════════════════════════════════════
   ARTICLE CARDS — GRID
════════════════════════════════════════ */
.jg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.jg-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.jg-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.jg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.jg-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy-light);
  flex-shrink: 0;
}
.jg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.jg-card:hover .jg-card-img { transform: scale(1.05); }

.jg-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 2px;
}

.jg-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.jg-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0D1B2A;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jg-card-title a { color: #0D1B2A; }
.jg-card-title a:hover { color: #0a4d2e; }
.jg-card-excerpt {
  font-size: .88rem;
  color: #374151;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}
.jg-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: #4B5563;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
  font-weight: 500;
}
.jg-card-meta-dot { color: var(--border); }

/* Read more */
.jg-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 10px;
  transition: gap var(--transition);
}
.jg-read-more:hover { gap: 8px; }
.jg-read-more::after { content: '→'; }

/* ════════════════════════════════════════
   CATEGORY BLOCK
════════════════════════════════════════ */
.jg-cat-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}
.jg-cat-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  position: relative;
}
.jg-cat-block-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--red);  /* CQ green accent */
}
.jg-cat-block-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.jg-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jg-cat-block .jg-grid-4 { gap: 14px; }
.jg-cat-block .jg-card { border-radius: var(--radius-sm); }
.jg-cat-block .jg-card-img-wrap { aspect-ratio: 4/3; }
.jg-cat-block .jg-card-title { font-size: .9rem; -webkit-line-clamp: 2; }
.jg-cat-block .jg-card-excerpt { display: none; }

/* ════════════════════════════════════════
   LATEST NEWS FEED
════════════════════════════════════════ */
.jg-latest { display: flex; flex-direction: column; gap: 0; }
.jg-latest-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.jg-latest-item:last-child { border-bottom: none; }
.jg-latest-item:hover { background: #F8FAFC; border-radius: var(--radius-sm); padding-left: 8px; }
.jg-latest-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  text-align: right;
}
.jg-latest-body { flex: 1; min-width: 0; }
.jg-latest-cat {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--red);
  margin-bottom: 4px;
}
.jg-latest-title {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.jg-latest-title a { color: inherit; }
.jg-latest-title a:hover { color: var(--red); }
.jg-latest-date { font-size: .72rem; color: var(--muted); }

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.jg-sidebar { position: sticky; top: 80px; }

.jg-sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.jg-sidebar-widget-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jg-sidebar-widget-header .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* Trending list */
.jg-trending-list { padding: 8px 0; }
.jg-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.jg-trending-item:last-child { border-bottom: none; }
.jg-trending-item:hover { background: var(--off-white); }
.jg-trending-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  width: 22px;
}
.jg-trending-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.jg-trending-title a { color: inherit; }
.jg-trending-title a:hover { color: var(--red); }
.jg-trending-date { font-size: .7rem; color: var(--muted); margin-top: 3px; }

/* Stats widget */
.jg-stats-widget { padding: 18px; }
.jg-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.jg-stat-row:last-child { border-bottom: none; }
.jg-stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.jg-stat-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.jg-stat-badge {
  display: inline-block;
  background: #E8F5E9;
  color: #1B5E20;
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 6px;
}

/* Categories pill widget */
.jg-cat-pills { padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.jg-cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition), border-color var(--transition);
}
.jg-cat-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.jg-cat-pill-count {
  background: var(--red);
  color: var(--white);
  font-size: .62rem;
  padding: 1px 5px;
  border-radius: 10px;
}

/* ════════════════════════════════════════
   PAGINATION
════════════════════════════════════════ */
.jg-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.jg-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.jg-page-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.jg-page-btn.active { background: var(--red); color: var(--white); border-color: var(--red); } /* CQ green */
.jg-page-btn.disabled { opacity: .4; pointer-events: none; }
.jg-page-current { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0 8px; }

/* ════════════════════════════════════════
   CATEGORY PAGE HEADER
════════════════════════════════════════ */
.jg-cat-hero {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 36px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.jg-cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 80% 50%, rgba(28,58,94,.6) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(15,157,88,.12) 0%, transparent 50%);
}
.jg-cat-hero-inner { position: relative; z-index: 1; }
.jg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.jg-breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.jg-breadcrumb a:hover { color: var(--white); }
.jg-breadcrumb-sep { color: rgba(255,255,255,.3); }

.jg-cat-hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
}
.jg-cat-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 620px;
  line-height: 1.6;
}
.jg-cat-stats-bar {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.jg-cat-stat { display: flex; flex-direction: column; gap: 2px; }
.jg-cat-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.jg-cat-stat-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.5); }

/* Category page grid */
.jg-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.jg-footer {
  background: #0a4d2e;   /* deep CQ green */
  color: var(--white);
  padding: 56px 0 0;
  margin-top: auto;
  border-top: 4px solid #07361f;
}
.jg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Footer brand */
.jg-footer-brand {}
.jg-footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.jg-footer-tagline {
  font-size: .8rem;
  color: #90CAF9;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.jg-footer-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}
.jg-footer-operated {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.jg-footer-operated a { color: #90CAF9; }
.jg-footer-operated a:hover { color: var(--white); }

/* Footer social */
.jg-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.jg-social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.jg-social-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); } /* CQ green */

/* Footer columns */
.jg-footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.jg-footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.jg-footer-col-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
}
.jg-footer-col-links a:hover { color: var(--white); padding-left: 4px; }

/* Footer bottom */
.jg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 12px;
  background: #07361f;   /* darkest CQ green — bottom bar */
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.jg-footer-copy { font-size: .78rem; color: rgba(255,255,255,.55); }
.jg-footer-bottom-links { display: flex; gap: 20px; }
.jg-footer-bottom-links a { font-size: .78rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.jg-footer-bottom-links a:hover { color: rgba(255,255,255,.9); }

/* ════════════════════════════════════════
   UTILITY
════════════════════════════════════════ */
.jg-empty {
  text-align: center;
  padding: 64px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}
.jg-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.jg-empty-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.jg-empty-text { font-size: .9rem; color: var(--muted); }

/* Category color accents */
.jg-accent-linux     { --cat-color: #EF4444; }
.jg-accent-android   { --cat-color: #10B981; }
.jg-accent-security  { --cat-color: #F59E0B; }
.jg-accent-servers   { --cat-color: #8B5CF6; }
.jg-accent-sports    { --cat-color: #3B82F6; }
.jg-accent-technology{ --cat-color: #6366F1; }
.jg-accent-webdev    { --cat-color: #14B8A6; }
.jg-accent-news      { --cat-color: #64748B; }
.jg-accent-history   { --cat-color: #EC4899; }
.jg-accent-travel    { --cat-color: #06B6D4; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1200px) {
  .jg-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .jg-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .jg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  .jg-layout { grid-template-columns: 1fr; }
  .jg-sidebar { position: static; }
  .jg-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .jg-hero { grid-template-columns: 1fr 260px; }
}

@media (max-width: 768px) {
  .jg-header-inner { height: 56px; }
  .jg-logo-name { font-size: 1.6rem; }
  .jg-logo-tag { display: none; }
  .jg-nav { display: none; } /* Show hamburger instead */
  .jg-hero { grid-template-columns: 1fr; }
  .jg-hero-main { min-height: 280px; }
  .jg-hero-side { flex-direction: row; }
  .jg-hero-side-item { min-height: 160px; }
  .jg-grid-3,
  .jg-grid-4,
  .jg-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .jg-cat-hero-title { font-size: 1.7rem; }
  .jg-cat-stats-bar { gap: 20px; flex-wrap: wrap; }
  .jg-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .jg-grid-3,
  .jg-grid-4,
  .jg-cat-grid { grid-template-columns: 1fr; }
  .jg-hero-side { flex-direction: column; }
  .jg-hero-title { font-size: 1.4rem; }
  .jg-footer-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   MOBILE NAV (hamburger)
════════════════════════════════════════ */
.jg-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.jg-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: all .2s;
}
@media (max-width: 768px) {
  .jg-mobile-toggle { display: flex; }
  .jg-nav.open { 
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 12px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
}

/* Stats bar — PROMINENT */
.jg-stats-strip {
  background: linear-gradient(135deg, #0a4d2e 0%, #0d6b3e 100%);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(10,77,46,.35);
  border: 1px solid rgba(255,255,255,.1);
}
.jg-strip-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jg-strip-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jg-strip-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.65);
}
.jg-strip-divider { width: 1px; height: 44px; background: rgba(255,255,255,.2); }

/* Today badge */
.jg-today-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.18);
  color: #ffffff;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.3);
}
.jg-today-badge::before { content: '●'; font-size: .45rem; color: #7fffb5; animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }