/*
Theme Name:  Jukebox Music
Theme URI:   https://jukeboxmusic.com.ng
Author:      Jukebox Music
Description: Custom theme for Jukebox Music — Africa's #1 Music Discovery Website
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: jukebox
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --blue:       #36a5ff;
  --red:        #ff3c36;
  --nav-bg:     #0a0a0a;
  --nav-accent: #89c7fa;
  --white:      #ffffff;
  --off-white:  #f7f7f5;
  --border:     #e8e8e4;
  --border-dot: #d8d8d4;
  --text:       #111111;
  --text-mid:   #555555;
  --text-light: #888888;
  --sidebar-w:  300px;
  --content-w:  660px;
  --wrap-w:     1000px;
  --font-display: 'Oswald', helvetica, sans-serif;
  --font-body:    'Raleway', helvetica, sans-serif;
  --font-title:   'Jost', helvetica, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

img { display: block; max-width: 100%; height: auto; }

ul, ol { list-style: none; }

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
#site { position: relative; overflow-x: hidden; }

.wrap {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 20px;
}

#body-wrapper {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 20px;
}

#main-wrapper {
  display: flex;
  gap: 40px;
  padding: 30px 0 50px;
  align-items: flex-start;
}

#content-main {
  flex: 1;
  min-width: 0;
}

#sidebar-wrapper {
  width: var(--sidebar-w);
  flex-shrink: 0;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -999px;
  left: 20px;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   FLY-OUT MOBILE MENU
   ============================================================ */
#fly-wrap {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--nav-bg);
  z-index: 400;
  transition: left 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#fly-wrap.is-open { left: 0; }

.fly-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 399;
}
.fly-overlay.is-open { display: block; }

.fly-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 20px;
  border: none;
  background: none;
  cursor: pointer;
}
.fly-close span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  opacity: 0;
}
.fly-close::before,
.fly-close::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: absolute;
  right: 20px;
  top: 27px;
}
.fly-close::before { transform: rotate(45deg); }
.fly-close::after  { transform: rotate(-45deg); }

.fly-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fly-logo img { max-width: 180px; }

.fly-nav-menu {
  padding: 16px 0;
}
.fly-nav-menu ul { list-style: none; }
.fly-nav-menu ul li a {
  display: block;
  padding: 11px 24px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s, background 0.15s;
}
.fly-nav-menu ul li a:hover,
.fly-nav-menu ul li.current-menu-item > a {
  color: var(--blue);
  background: rgba(255,255,255,0.04);
}

.fly-social {
  padding: 20px 24px;
  display: flex;
  gap: 16px;
}
.fly-social a {
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  transition: color 0.15s;
}
.fly-social a:hover { color: var(--blue); }

/* ============================================================
   TOP NAV BAR
   ============================================================ */
#nav-wrapper {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 2px solid var(--blue);
}

.nav-inner {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 58px;
  gap: 20px;
}

/* Hamburger */
.fly-but-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
}
.fly-but-wrap span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: opacity 0.2s, transform 0.2s;
}

/* Logo */
#logo-small {
  flex-shrink: 0;
}
#logo-small a { display: block; }
#logo-small img {
  max-height: 38px;
  width: auto;
}

/* Main nav */
#main-nav { flex: 1; }
#main-nav .menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
#main-nav .menu li a {
  display: block;
  padding: 8px 12px;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
#main-nav .menu li a:hover,
#main-nav .menu li.current-menu-item > a {
  color: #fff;
  background: var(--blue);
}

/* Search */
#search-button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
}
#search-button:hover { background: rgba(255,255,255,0.1); }
#search-button svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.7); }

#search-bar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}
#search-bar.is-open { display: block; }
#search-bar form { display: flex; gap: 8px; max-width: var(--wrap-w); margin: 0 auto; }
#search-bar input[type="search"] {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 9px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
#search-bar input[type="search"]::placeholder { color: rgba(255,255,255,0.4); }
#search-bar input[type="search"]:focus { border-color: var(--blue); }
#search-bar button {
  background: var(--blue);
  border: none;
  border-radius: 3px;
  padding: 9px 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
#search-bar button:hover { background: var(--red); }

/* ============================================================
   PAGE HEADER (category/archive/search titles)
   ============================================================ */
.page-header {
  border-bottom: 3px solid var(--blue);
  margin-bottom: 28px;
  padding-bottom: 14px;
}
.page-header-inner {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.page-header-bar {
  width: 4px;
  height: 26px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: center;
}
.page-header h1,
.page-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}
.page-header .archive-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 6px;
  padding-left: 18px;
}


/* ============================================================
   POST CARDS — HOMEPAGE GRID
   Mobile-first: single column → 2-col on tablet → hero+grid desktop
   ============================================================ */

/* Grid wrapper */
.post-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 10px;
}

/* Base card */
.post-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}
.post-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* Thumbnail wrapper */
.post-card__thumb-link { display: block; overflow: hidden; line-height: 0; }
.post-card__thumb {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  aspect-ratio: 16 / 9;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

/* Placeholder when no image */
.post-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--off-white),
    var(--off-white) 6px,
    var(--border) 6px,
    var(--border) 7px
  );
}

/* Category badge on thumbnail */
.post-card__cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.4;
  transition: background 0.15s;
}
.post-card:hover .post-card__cat { background: var(--red); }

/* Card body */
.post-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta row */
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.post-card__date,
.post-card__read-time {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.post-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* Title */
.post-card__title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  flex: 1;
}
.post-card__title a { color: var(--text); text-decoration: none; transition: color 0.15s; }
.post-card__title a:hover { color: var(--blue); }

/* Excerpt (hero only) */
.post-card__excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 14px;

  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more link */
.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.post-card__read-more:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.post-card__read-more svg { transition: transform 0.15s; }
.post-card__read-more:hover svg { transform: translateX(3px); }

/* ── HERO card (first post — full width, larger) ── */
.post-card--hero {
  flex-direction: row;
  align-items: stretch;
  border-left: 3px solid var(--blue);
}
.post-card--hero .post-card__thumb-link {
  width: 46%;
  flex-shrink: 0;
}
.post-card--hero .post-card__thumb {
  height: 100%;
  aspect-ratio: unset;
  min-height: 220px;
}
.post-card--hero .post-card__body { padding: 20px 22px 22px; }
.post-card--hero .post-card__title { font-size: 20px; }
.post-card--hero .post-card__date,
.post-card--hero .post-card__read-time { font-size: 12px; }

/* ── TABLET: 2-column grid, hero stays full width ── */
@media screen and (min-width: 600px) {
  .post-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  /* Hero spans both columns */
  .post-card--hero {
    grid-column: 1 / -1;
  }
}

/* ── DESKTOP: hero full width, rest in 2 columns ── */
@media screen and (min-width: 800px) {
  .post-card-grid { gap: 20px; }
  .post-card__title { font-size: 14px; }
  .post-card--hero .post-card__title { font-size: 22px; }
}

/* ── SMALL MOBILE: tighten up ── */
@media screen and (max-width: 479px) {
  .post-card--hero {
    flex-direction: column;
  }
  .post-card--hero .post-card__thumb-link {
    width: 100%;
  }
  .post-card--hero .post-card__thumb {
    min-height: unset;
    aspect-ratio: 16 / 9;
  }
  .post-card__body { padding: 14px 14px 16px; }
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--off-white);
  border: 0.5px solid var(--border);
  border-radius: 6px;
}
.share-box__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  flex-shrink: 0;
}
.share-box__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  color: #fff;
  border: none;
  cursor: pointer;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.share-btn svg { flex-shrink: 0; }
.share-btn--twitter   { background: #000000; }
.share-btn--facebook  { background: #1877f2; }
.share-btn--whatsapp  { background: #25d366; }
.share-btn--copy      { background: var(--text-mid); color: #fff; }
.share-btn--copy:hover { background: var(--blue); color: #fff; }

@media screen and (max-width: 479px) {
  .share-box { gap: 10px; padding: 14px; }
  .share-btn span { display: none; }
  .share-btn { padding: 9px 12px; }
  .share-btn svg { width: 17px; height: 17px; }
}

/* ============================================================
   POST LIST — MINIMAL (homepage)
   title, category badge, date — no excerpt, no image
   ============================================================ */
.post-list { width: 100%; }

.post-list-item {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.12s;
}
.post-list-item:first-child { border-top: 1px solid var(--border); }

.post-list-item a.post-list-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 12px 16px 0;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.post-list-item a.post-list-link:hover { color: var(--blue); }
.post-list-item a.post-list-link:hover .post-list-cat { background: var(--red); }

.post-list-cat {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.15s;
  align-self: center;
}

.post-list-title {
  flex: 1;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
}

.post-list-date {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.3px;
  white-space: nowrap;
  align-self: center;
}

/* Hover accent line */
.post-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--blue);
  transition: width 0.2s ease;
}
.post-list-item:hover::before { width: 3px; }
.post-list-item:hover a.post-list-link { padding-left: 10px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 0 10px;
  flex-wrap: wrap;
}
.nav-links .page-numbers,
.nav-links .prev,
.nav-links .next {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.15s;
}
.nav-links .page-numbers:hover,
.nav-links .prev:hover,
.nav-links .next:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.nav-links .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.nav-links .prev, .nav-links .next { color: var(--red); border-color: var(--red); }
.nav-links .prev:hover, .nav-links .next:hover { background: var(--red); color: #fff; }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.single-post-header { margin-bottom: 28px; }

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.single-post-cat {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
}
.single-post-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-light);
}
.single-post-author {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-light);
}
.single-post-author::before { content: '· '; }

h1.story-title {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0;
}

.single-post-thumb {
  margin: 24px 0;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}
.single-post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post content area */
#post-area {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
#post-area p { margin-bottom: 20px; }
#post-area p:last-child { margin-bottom: 0; }
#post-area h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 14px;
  color: var(--text);
}
#post-area h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
#post-area h4 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}
#post-area ul, #post-area ol {
  margin: 0 0 20px 24px;
}
#post-area ul { list-style: disc; }
#post-area ol { list-style: decimal; }
#post-area li { margin-bottom: 6px; }
#post-area blockquote {
  border-left: 4px solid var(--blue);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--off-white);
  font-style: italic;
  color: var(--text-mid);
  border-radius: 0 4px 4px 0;
}
#post-area blockquote p:last-child { margin-bottom: 0; }
#post-area a { color: var(--blue); text-decoration: underline; }
#post-area a:hover { color: var(--red); }
#post-area img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}
#post-area .wp-block-embed {
  margin: 28px 0;
}
#post-area .wp-block-embed iframe {
  max-width: 100%;
}

/* Content area */
#content-area { padding-bottom: 10px; }

/* Post tags */
.post-tags {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.post-tags-header {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
}
.tag-cloud a, .post-tags a {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
  transition: all 0.15s;
}
.tag-cloud a:hover, .post-tags a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Prev/Next post links */
.prev-next-wrapper {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.prev-post, .next-post {
  flex: 1;
  font-size: 13px;
}
.prev-post { text-align: left; }
.next-post { text-align: right; }
.prev-post span, .next-post span {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 5px;
}
.prev-post a, .next-post a {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.prev-post a:hover, .next-post a:hover { color: var(--blue); }

/* Author box */
.author-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-top: 32px;
}
.author-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}
.author-info h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.author-info p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* Related posts */
.related-posts {
  margin-top: 40px;
}
.related-posts-header {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
}
.related-posts ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
}
.related-posts ul li a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.related-posts ul li a:hover { color: var(--blue); }
.related-posts ul li img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============================================================
   COMMENTS
   ============================================================ */
#comments {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 3px solid var(--blue);
}
h3.comment-header {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}
.comment-inner {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dotted var(--border-dot);
}
.comment-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.commentmeta {
  display: block;
  margin-bottom: 6px;
}
.commentmeta .comment-author { font-weight: 700; font-size: 13px; color: var(--text); }
.commentmeta .comment-date  { font-size: 12px; color: var(--text-light); margin-left: 8px; }
.comment-text p { font-size: 14px; color: var(--text-mid); margin: 0; line-height: 1.6; }
.comment-reply a {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 3px 10px;
  border-radius: 2px;
  transition: all 0.15s;
}
.comment-reply a:hover { background: var(--blue); color: #fff; }

/* Comment form */
#respond {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
#respond h3 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
#respond form p { margin-bottom: 14px; }
#respond label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 5px;
}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
#respond input:focus,
#respond textarea:focus { border-color: var(--blue); }
#respond textarea { min-height: 120px; resize: vertical; }
#respond input[type="submit"] {
  background: var(--blue);
  border: none;
  border-radius: 3px;
  padding: 11px 28px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
#respond input[type="submit"]:hover { background: var(--red); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  margin-bottom: 32px;
}
h3.sidebar-widget-header {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
h3.sidebar-widget-header::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Sidebar search */
.sidebar-search form {
  display: flex;
  gap: 0;
}
.sidebar-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}
.sidebar-search input[type="search"]:focus { border-color: var(--blue); }
.sidebar-search button {
  background: var(--blue);
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 9px 14px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-search button:hover { background: var(--red); }
.sidebar-search button svg { width: 14px; height: 14px; fill: #fff; display: block; }

/* Sidebar recent posts (JB widget will also use .jb-recent-posts styles) */
.sidebar-widget ul.home-list {
  list-style: none;
}
.sidebar-widget ul.home-list li {
  padding: 12px 0;
  border-bottom: 1px dotted var(--border-dot);
}
.sidebar-widget ul.home-list li:last-child { border-bottom: none; }
.sidebar-widget ul.home-list li a {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.sidebar-widget ul.home-list li a:hover { color: var(--blue); }
.sidebar-widget ul.home-list li img {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Sidebar categories */
.sidebar-widget ul.cat-list li {
  border-bottom: 1px dotted var(--border-dot);
}
.sidebar-widget ul.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.15s;
}
.sidebar-widget ul.cat-list li a:hover { color: var(--blue); }
.sidebar-widget ul.cat-list li a .count {
  font-size: 11px;
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--text-light);
}

/* WP default widget compatibility */
.widget_search .search-form { display: flex; gap: 0; }
.widget_search .search-field {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}
.widget_search .search-field:focus { border-color: var(--blue); }
.widget_search .search-submit {
  background: var(--blue);
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 9px 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.widget_search .search-submit:hover { background: var(--red); }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mid);
}
.search-no-results p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* ============================================================
   CATEGORY PAGE — featured top post
   ============================================================ */
.cat-featured {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--blue);
}
.cat-featured-img {
  width: 260px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}
.cat-featured-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.cat-featured-content { flex: 1; }
.cat-featured-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.cat-featured-content h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.cat-featured-content h2 a { color: var(--text); }
.cat-featured-content h2 a:hover { color: var(--blue); }
.cat-featured-content p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}
.cat-featured-content .read-more {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.cat-featured-content .read-more:hover { color: var(--red); border-color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer-wrapper {
  background: var(--nav-bg);
  margin-top: 40px;
}
#footer-top {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 40px 20px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-widget h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: all 0.15s;
}
.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.footer-nav-list li { margin-bottom: 2px; }
.footer-nav-list li a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.footer-nav-list li a:hover { color: var(--blue); }

#footer-nav {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bottom-inner {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.copyright a { color: rgba(255,255,255,0.5); }
.copyright a:hover { color: var(--blue); }
#footer-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
#footer-nav .menu li a {
  display: block;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.15s;
}
#footer-nav .menu li a:hover { color: var(--blue); }

/* ============================================================
   WP ADMIN BAR OFFSET
   ============================================================ */
.admin-bar #nav-wrapper { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #nav-wrapper { top: 46px; } }

/* ============================================================
   WORDPRESS CORE COMPATIBILITY
   ============================================================ */
.wp-block-image img { border-radius: 4px; }
.aligncenter { display: block; margin: 20px auto; }
.alignleft  { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 6px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — TABLET (768px – 1000px)
   ============================================================ */
@media screen and (max-width: 1000px) {
  #main-wrapper { gap: 28px; }
  #sidebar-wrapper { width: 260px; }

  #main-nav .menu li a {
    padding: 8px 9px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .cat-featured { flex-direction: column; }
  .cat-featured-img { width: 100%; }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
@media screen and (max-width: 767px) {
  :root { --sidebar-w: 100%; }

  #main-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 20px 0 40px;
  }

  #content-main { order: 1; }

  #sidebar-wrapper {
    order: 2;
    width: 100%;
    border-top: 3px solid var(--blue);
    padding-top: 28px;
    margin-top: 28px;
  }

  #main-nav { display: none; }

  .nav-inner { gap: 14px; }

  h1.story-title { font-size: 24px; }

  .post-list-title { font-size: 14px; }
  .post-list-date { display: none; }

  .related-posts ul { grid-template-columns: 1fr; }

  .prev-next-wrapper { flex-direction: column; gap: 20px; }
  .next-post { text-align: left; }

  #footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }

  .cat-featured-img { width: 100%; }

  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (< 480px)
   ============================================================ */
@media screen and (max-width: 479px) {
  .post-list-cat { display: none; }
  h1.story-title { font-size: 21px; }
  .author-wrapper { flex-direction: column; }
}

/* ============================================================
   SINGLE POST HERO IMAGE
   Full-bleed image with gradient overlay, title on top — desktop.
   Stacks cleanly on mobile with image above, content below.
   ============================================================ */

.single-hero {
  position: relative;
  margin-bottom: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #0a0a0a;
}

.single-hero__img-wrap {
  position: relative;
  width: 100%;
  /* 16:9 on mobile, taller on desktop */
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.single-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* dim slightly so text overlays read cleanly */
  filter: brightness(0.75);
  transition: filter 0.3s ease;
}

/* gradient overlay — bottom-up dark fade */
.single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.90) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.10) 100%
  );
  pointer-events: none;
}

/* Title block — absolutely positioned over image on desktop */
.single-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 30px;
}

.single-hero__cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.single-hero__cat:hover { background: var(--red); color: #fff; }

.single-hero__title {
  font-family: var(--font-title);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff !important;
  margin: 0 0 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.single-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.single-hero__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* Mobile: stack image above, content below (out of overlay) */
@media screen and (max-width: 600px) {
  .single-hero { border-radius: 0; margin-left: -20px; margin-right: -20px; }
  .single-hero__img-wrap { aspect-ratio: 16 / 9; }
  .single-hero__content {
    position: static;
    background: var(--white);
    padding: 18px 20px 0;
  }
  .single-hero__title { color: var(--text) !important; text-shadow: none; font-size: 22px; }
  .single-hero__cat { }
  .single-hero__meta { color: var(--text-light); }
  .single-hero__overlay { display: none; }
  .single-hero__img { filter: none; }
}

/* ============================================================
   STATIC PAGES (About, DMCA, etc.)
   ============================================================ */
.static-page #post-area {
  font-size: 16px;
  line-height: 1.75;
}
.static-page #post-area h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.static-page #post-area h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.static-page #post-area h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text);
}
.static-page #post-area ul,
.static-page #post-area ol {
  margin: 10px 0 18px 22px;
}
.static-page #post-area ul { list-style: disc; }
.static-page #post-area ol { list-style: decimal; }
.static-page #post-area li { margin-bottom: 6px; }
.static-page #post-area a { color: var(--blue); text-decoration: underline; }
.static-page #post-area a:hover { color: var(--red); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: flex-start;
}

.contact-form-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 28px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
}

.contact-form { display: flex; flex-direction: column; gap: 0; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__field { margin-bottom: 16px; }
.contact-form__field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.contact-form__field label span { color: var(--red); }
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54, 165, 255, 0.12);
}
.contact-form__field textarea { min-height: 130px; resize: vertical; }
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  border: none;
  border-radius: 3px;
  padding: 12px 28px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  align-self: flex-start;
}
.contact-form__submit:hover { background: var(--red); transform: translateY(-1px); }

.contact-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 4px;
  padding: 16px 18px;
  color: #166534;
  font-size: 14px;
  font-weight: 500;
}
.contact-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 12px 16px;
  color: #991b1b;
  font-size: 13px;
  margin-bottom: 16px;
}

.contact-info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  position: sticky;
  top: 80px;
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
}
.contact-info-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 18px;
}
.contact-info-list { list-style: none; margin: 0 0 20px; }
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--border-dot);
  font-size: 13px;
  color: var(--text-mid);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list svg { flex-shrink: 0; color: var(--blue); }
.contact-info-list a { color: var(--blue); text-decoration: none; }
.contact-info-list a:hover { color: var(--red); }
.contact-social p {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}
