/*
Theme Name: NumberBarn Blog
Theme URI: https://www.numberbarn.com
Author: NumberBarn
Author URI: https://www.numberbarn.com
Description: Official blog theme for NumberBarn — phone number tips, news, and guides. Displays all existing posts automatically.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: numberbarn
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ════════════════════════════════════════════
   RESET & VARIABLES
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #144b6e;
  --navy-dark: #11364e;
  --blue:      #63a1c7;
  --orange:    #F7941E;
  --gray:      #535e66;
  --light:     #f5f7fa;
  --white:     #ffffff;
  --border:    #e3e8ee;
  --radius:    12px;
}

body { font-family: 'Inter', sans-serif; color: var(--gray); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════ */
.topbar { background: var(--navy-dark); color: #a8c8e0; font-size: 12px; text-align: center; padding: 9px 24px; letter-spacing: .3px; }
.topbar a { color: var(--orange); font-weight: 600; }

/* ════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { flex-shrink: 0; display: flex; align-items: center; line-height: 0; }
.logo img { height: 40px; width: auto; display: block; }

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a { background: var(--light); color: var(--navy); }
.nav-links .current-menu-item > a { font-weight: 700; }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; font-weight: 700 !important; padding: 8px 18px !important; border-radius: 8px !important; }
.nav-cta:hover { opacity: .88; background: var(--orange) !important; }

/* Right-side icons group */
.nav-actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }

/* Search form in nav */
.nav-search-form { display: flex; align-items: center; position: relative; }
.nav-search-form input[type="search"] {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy);
  transition: width .3s ease, opacity .3s ease, padding .3s ease;
  background: transparent;
}
.nav-search-form.open input[type="search"] {
  width: 180px;
  opacity: 1;
  padding: 6px 10px;
  border-bottom: 1.5px solid var(--border);
}
.nav-search-form button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray);
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-search-form button:hover { background: var(--light); color: var(--navy); }

/* Hamburger button (mobile only) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray);
  border-radius: 8px;
  transition: background .15s, color .15s;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-hamburger:hover { background: var(--light); color: var(--navy); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
  transform-origin: center;
}
/* Animate hamburger → X */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 90px 28px 40px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.mobile-menu ul a {
  display: block;
  padding: 13px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 10px;
  transition: background .15s;
}
.mobile-menu ul a:hover { background: var(--light); }
.mobile-menu ul .nav-cta {
  display: block;
  background: var(--orange) !important;
  color: #fff !important;
  text-align: center;
  margin-top: 8px;
  border-radius: 10px !important;
  padding: 14px 16px !important;
}
.mobile-menu-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: #9ca7b0; }

/* ════════════════════════════════════════════
   SECTION LABEL
════════════════════════════════════════════ */
.section-label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy); margin-bottom: 28px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ════════════════════════════════════════════
   POST CARDS (shared across all templates)
════════════════════════════════════════════ */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--white); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: 0 8px 28px rgba(20,75,110,.11); transform: translateY(-3px); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--light); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb .no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--light); }
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.38; margin-bottom: 8px; flex: 1; }
.post-card h3 a:hover { color: var(--orange); }
.post-excerpt { font-size: 13px; color: var(--gray); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); gap: 8px; }
.author-chip { display: flex; align-items: center; gap: 8px; }
.author-av { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-av img { width: 100%; height: 100%; object-fit: cover; }
.author-av-i { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; background: var(--blue); }
.author-name { font-size: 12px; font-weight: 600; color: var(--navy); }
.post-date { font-size: 11px; color: #9ca7b0; }
.read-time { font-size: 11px; color: #9ca7b0; white-space: nowrap; }

/* Wide card (featured on homepage) */
.post-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.post-card-wide .post-card-thumb { aspect-ratio: unset; min-height: 230px; }
.post-card-wide .post-card-body { padding: 28px; }
.post-card-wide h3 { font-size: 19px; }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 40px; }
.load-more-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 14px; padding: 11px 28px; border-radius: 10px; transition: all .15s; font-family: inherit; background: transparent; cursor: pointer; }
.load-more-btn:hover { background: var(--navy); color: #fff; }

/* WordPress pagination */
.nb-pagination { text-align: center; margin-top: 40px; }
.nb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 3px; transition: all .15s; }
.nb-pagination .page-numbers:hover,
.nb-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.nb-pagination .page-numbers.dots { border: none; background: none; }

/* ════════════════════════════════════════════
   CATEGORY TAGS
════════════════════════════════════════════ */
.cat-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.cat-general        { background: #e8f4fd; color: #1561a0; }
.cat-askpig         { background: #fce8f3; color: #c0147a; }
.cat-bynumbers      { background: #e8eafd; color: #3040c8; }
.cat-featured       { background: #eaf7ed; color: #1a8a3a; }
.cat-tollfree       { background: #fef3e2; color: #b45309; }
.cat-voip           { background: #f0e8fd; color: #6b21a8; }
.cat-business       { background: #e8f4fd; color: #1561a0; }
.cat-guides         { background: #e8eafd; color: #3040c8; }
.cat-news           { background: #fce8f3; color: #c0147a; }
.cat-default        { background: #e8f4fd; color: #1561a0; }

/* ════════════════════════════════════════════
   SIDEBAR (shared)
════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.widget-head { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 13px 20px; }
.widget-body { padding: 20px; }

/* Search widget */
.search-box { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.search-box input[type="search"] { flex: 1; border: none; outline: none; padding: 10px 14px; font-size: 14px; font-family: inherit; color: var(--navy); }
.search-box button { background: var(--orange); border: none; padding: 0 16px; cursor: pointer; color: #fff; }

/* Popular posts widget */
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; }
.popular-num { font-size: 22px; font-weight: 800; color: var(--border); line-height: 1; flex-shrink: 0; min-width: 28px; }
.popular-item h4 { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 3px; }
.popular-item h4 a:hover { color: var(--orange); }
.popular-item span { font-size: 11px; color: #9ca7b0; }

/* Newsletter widget */
.newsletter-widget { background: linear-gradient(135deg, var(--navy), #1e6a96); border: none; }
.newsletter-widget .widget-head { background: transparent; border-bottom: 1px solid rgba(255,255,255,.15); }
.newsletter-widget .widget-body { padding: 24px 20px; }
.newsletter-widget p { color: #a8cde0; font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
.nl-input { width: 100%; padding: 10px 14px; border-radius: 8px; border: none; font-size: 14px; font-family: inherit; margin-bottom: 10px; outline: none; }
.nl-btn { width: 100%; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; padding: 11px; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; transition: opacity .15s; }
.nl-btn:hover { opacity: .88; }

/* Tag cloud widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a,
.tag-pill { padding: 5px 14px; border-radius: 20px; font-size: 12px !important; font-weight: 500; color: var(--navy); background: var(--light); border: 1px solid var(--border); transition: all .15s; }
.tag-cloud a:hover,
.tag-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ════════════════════════════════════════════
   HOMEPAGE HERO
════════════════════════════════════════════ */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1b6696 100%); padding: 60px 24px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-tag { display: inline-block; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; color: var(--white); line-height: 1.2; letter-spacing: -.8px; margin-bottom: 16px; }
.hero p { color: #a8cde0; font-size: 16px; margin-bottom: 28px; max-width: 480px; line-height: 1.65; }
.hero-meta { display: flex; align-items: center; gap: 12px; color: #7ab3cf; font-size: 13px; }
.hero-meta .avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.25); flex-shrink: 0; }
.hero-meta .avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta strong { color: #d0e9f5; }
.read-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: 10px; margin-bottom: 28px; transition: opacity .15s; }
.read-btn:hover { opacity: .88; }
.hero-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; position: relative; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════════════
   CATEGORY FILTER BAR
════════════════════════════════════════════ */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 24px; }
.filter-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn { white-space: nowrap; padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--gray); border: 1.5px solid var(--border); background: var(--white); cursor: pointer; transition: all .15s; font-family: inherit; text-decoration: none; display: inline-block; }
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ════════════════════════════════════════════
   MAIN LAYOUT WRAPPERS
════════════════════════════════════════════ */
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 64px; display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.article-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 64px; display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.author-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 64px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; }

/* ════════════════════════════════════════════
   MEET THE AUTHORS — SLIDER
════════════════════════════════════════════ */
.authors-section { background: var(--light); padding: 64px 24px; border-top: 1px solid var(--border); }
.authors-inner { max-width: 1200px; margin: 0 auto; }
.authors-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.authors-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.authors-header-text h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.authors-header-text p { color: var(--gray); font-size: 15px; margin-top: 8px; max-width: 560px; }
.authors-slider-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.slider-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.slider-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.slider-arrow:disabled { opacity: .35; cursor: default; }
.slider-dots { display: flex; align-items: center; gap: 6px; }
.slider-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: all .2s; }
.slider-dot.active { background: var(--navy); transform: scale(1.3); }

/* Slider track */
.authors-slider-wrap { position: relative; overflow: hidden; }
.authors-slider { display: flex; gap: 0; transition: transform 0.4s ease; }

/* Cards */
.author-card {
  flex: 0 0 calc(25% - 15px);
  min-width: calc(25% - 15px);
  margin-right: 20px;
  box-sizing: border-box;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.author-card:hover { box-shadow: 0 8px 28px rgba(20,75,110,.10); }
.author-card-photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; border: 3px solid var(--border); flex-shrink: 0; }
.author-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.author-card .author-role { font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.author-card p { font-size: 12px; color: var(--gray); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.view-posts { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--navy); transition: color .15s; margin-top: auto; }
.view-posts:hover { color: var(--orange); }
.authors-view-all { text-align: center; margin-top: 32px; }
.view-all-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--navy); transition: color .15s; }
.view-all-link:hover { color: var(--orange); }

/* Authors full page grid */
.authors-page-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px)  { .authors-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .authors-page-grid { grid-template-columns: 1fr; } }
.authors-page-grid .author-card h3 a { color: var(--navy); text-decoration: none; }
.authors-page-grid .author-card h3 a:hover { color: var(--orange); }

/* ════════════════════════════════════════════
   SINGLE POST — TITLE STACK (inside article-wrap)
════════════════════════════════════════════ */
.article-title-stack { grid-column: 1 / -1; margin-bottom: 8px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca7b0; margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--navy); font-weight: 500; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb svg { flex-shrink: 0; }

.article-cat-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px; }
.article-title-stack h1 { font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; color: var(--navy); line-height: 1.18; letter-spacing: -.8px; margin-bottom: 18px; }
.article-deck { font-size: 18px; color: var(--gray); line-height: 1.65; margin-bottom: 28px; }

.article-byline { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 0; }
.byline-av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--border); }
.byline-av img { width: 100%; height: 100%; object-fit: cover; }
.byline-meta { flex: 1; }
.byline-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.byline-name a:hover { color: var(--orange); }
.byline-details { font-size: 12px; color: #9ca7b0; margin-top: 2px; }
.byline-share { display: flex; align-items: center; gap: 10px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--light); color: var(--gray); border: 1px solid var(--border); transition: all .15s; cursor: pointer; }
.share-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Featured image — moved to top, contained within nav margins */
.post-hero-img-wrap { padding: 28px 24px 0; background: var(--white); }
.post-hero-img-inner { max-width: 1200px; margin: 0 auto; border-radius: 16px; overflow: hidden; aspect-ratio: 16/6; }
.post-hero-img-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .post-hero-img-inner { aspect-ratio: 16/9; border-radius: 10px; }
}

/* ════════════════════════════════════════════
   SINGLE POST — ARTICLE CONTENT TYPOGRAPHY
════════════════════════════════════════════ */
.article-content h2 { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.article-content h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.article-content h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 20px 0 8px; }
.article-content p { font-size: 16px; line-height: 1.78; color: var(--gray); margin-bottom: 20px; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 20px; }
.article-content li { font-size: 16px; line-height: 1.75; color: var(--gray); margin-bottom: 6px; }
.article-content strong { color: var(--navy); font-weight: 700; }
.article-content a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(20,75,110,.3); }
.article-content a:hover { color: var(--orange); text-decoration-color: var(--orange); }
.article-content img { border-radius: var(--radius); margin: 24px 0; }
.article-content figure { margin: 24px 0; }
.article-content figcaption { font-size: 13px; color: #9ca7b0; text-align: center; margin-top: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
.article-content th { background: var(--navy); color: #fff; padding: 10px 16px; text-align: left; font-size: 13px; font-weight: 700; }
.article-content td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--light); }

.article-content blockquote { border-left: 4px solid var(--orange); background: #fff8f2; padding: 18px 24px; border-radius: 0 8px 8px 0; margin: 28px 0; }
.article-content blockquote p { color: var(--navy); font-size: 17px; font-style: italic; margin: 0; }

/* Callout box */
.callout { background: #e8f4fd; border: 1px solid #b8d9f0; border-radius: 10px; padding: 20px 24px; margin: 28px 0; display: flex; gap: 14px; align-items: flex-start; }
.callout-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.callout p { margin: 0; font-size: 14px; line-height: 1.65; color: #1561a0; }
.callout strong { color: #0d3e6e; }

/* Inline CTA */
.inline-cta { background: linear-gradient(135deg, var(--navy), #1b6696); border-radius: 14px; padding: 32px; text-align: center; margin: 40px 0; }
.inline-cta h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.inline-cta p { color: #a8cde0; font-size: 14px; margin-bottom: 20px; }
.inline-cta a { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: 8px; transition: opacity .15s; }
.inline-cta a:hover { opacity: .88; text-decoration: none; }

/* Numbered steps */
.steps-list { list-style: none; padding: 0; counter-reset: steps; margin: 24px 0; }
.steps-list li { counter-increment: steps; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.steps-list li::before { content: counter(steps); min-width: 32px; height: 32px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.steps-list li div { font-size: 15px; line-height: 1.7; color: var(--gray); }
.steps-list li strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* Article tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.article-tag { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; color: var(--navy); background: var(--light); border: 1px solid var(--border); transition: all .15s; }
.article-tag:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Author bio box */
.author-bio { margin-top: 48px; padding: 32px; background: var(--light); border-radius: var(--radius); border: 1px solid var(--border); display: flex; gap: 24px; }
.author-bio-photo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--border); }
.author-bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-text { flex: 1; }
.author-bio-name { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.author-bio-name a:hover { color: var(--orange); }
.author-bio-role { font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.author-bio p { font-size: 14px; line-height: 1.7; color: var(--gray); margin-bottom: 14px; }
.author-bio-links { display: flex; align-items: center; gap: 10px; }
.author-bio-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--navy); padding: 6px 14px; border-radius: 6px; background: var(--white); border: 1px solid var(--border); transition: all .15s; }
.author-bio-link:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Related posts */
.related-section { padding: 0 24px 64px; }
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 28px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-list a { display: block; font-size: 13px; color: var(--gray); padding: 6px 10px; border-radius: 6px; transition: all .15s; border-left: 2px solid transparent; line-height: 1.4; }
.toc-list a:hover, .toc-list a.active { color: var(--navy); background: var(--light); border-left-color: var(--orange); }

/* Sidebar related posts (links) */
.sidebar-related-item { padding: 16px 0; border-top: 1px solid var(--border); }
.sidebar-related-item:first-child { border-top: none; padding-top: 0; }
.sidebar-related-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; margin-bottom: 5px; }
.sidebar-related-item a.sidebar-related-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; display: block; transition: color .15s; }
.sidebar-related-item a.sidebar-related-title:hover { color: var(--orange); }
.sidebar-related-date { font-size: 11px; color: #9ca7b0; margin-top: 3px; }

/* ════════════════════════════════════════════
   AUTHOR PAGE
════════════════════════════════════════════ */
.author-hero { background: linear-gradient(135deg, var(--navy) 0%, #1b6696 100%); padding: 56px 24px; }
.author-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.author-hero-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,.25); flex-shrink: 0; }
.author-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-hero-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #7ab3cf; font-weight: 500; margin-bottom: 16px; transition: color .15s; }
.author-hero-back:hover { color: var(--orange); }
.author-hero-role { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.author-hero-name { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--white); letter-spacing: -.6px; margin-bottom: 14px; }
.author-hero-bio { color: #a8cde0; font-size: 15px; line-height: 1.7; max-width: 640px; margin-bottom: 24px; }
.author-hero-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.12); color: #d0e9f5; border: 1px solid rgba(255,255,255,.2); transition: all .15s; }
.social-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

.author-stats { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; }
.stat-item { padding: 20px 32px; text-align: center; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #9ca7b0; margin-top: 3px; }

/* About card (author sidebar) */
.about-card { text-align: center; }
.about-card-photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; border: 3px solid var(--border); }
.about-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.about-card .role { font-size: 11px; color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.about-card p { font-size: 12px; color: var(--gray); line-height: 1.6; }

/* Other authors list (author sidebar) */
.other-authors-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.other-author-item { display: flex; align-items: center; gap: 12px; }
.other-author-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--border); }
.other-author-av img { width: 100%; height: 100%; object-fit: cover; }
.other-author-item h4 { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 1px; }
.other-author-item h4 a:hover { color: var(--orange); }
.other-author-item span { font-size: 11px; color: #9ca7b0; }

/* ════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════ */
.banner-cta { background: linear-gradient(135deg, #1b6696 0%, var(--navy) 100%); padding: 64px 24px; text-align: center; }
.banner-cta h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: #fff; letter-spacing: -.5px; margin-bottom: 12px; }
.banner-cta p { color: #a8cde0; font-size: 16px; margin-bottom: 28px; }
.banner-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; padding: 14px 32px; border-radius: 10px; transition: opacity .15s; }
.banner-btn:hover { opacity: .88; }

/* ════════════════════════════════════════════
   ARCHIVE / SEARCH HEADER
════════════════════════════════════════════ */
.archive-header { background: linear-gradient(135deg, var(--navy) 0%, #1b6696 100%); padding: 48px 24px; }
.archive-header-inner { max-width: 1200px; margin: 0 auto; }
.archive-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.archive-header h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--white); letter-spacing: -.6px; margin-bottom: 10px; }
.archive-header p { color: #a8cde0; font-size: 16px; max-width: 560px; }
.search-header-form { margin-top: 24px; display: flex; max-width: 480px; border-radius: 10px; overflow: hidden; }
.search-header-form input[type="search"] { flex: 1; padding: 13px 18px; border: none; font-size: 15px; font-family: inherit; outline: none; }
.search-header-form button { background: var(--orange); border: none; padding: 0 24px; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }

/* No results */
.no-results { text-align: center; padding: 64px 24px; }
.no-results h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.no-results p { color: var(--gray); font-size: 16px; }

/* ════════════════════════════════════════════
   BACK TO TOP BUTTON
════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(20,75,110,.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .15s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--orange); }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer { background: #333333; color: #7ab3cf; padding: 52px 24px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 28px; }
.footer-logo img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.75; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13px; color: #7ab3cf; transition: color .15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 12px; color: #5a8eaa; }
.footer-bottom a { color: #7ab3cf; margin-left: 16px; }
.footer-bottom a:hover { color: var(--orange); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-wrap, .author-wrap { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .author-card { flex: 0 0 calc(50% - 10px); min-width: calc(50% - 10px); }
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  /* Tablet nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: block; aspect-ratio: 16/9; margin-top: 28px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card-wide { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* Prevent search input from expanding and shifting hamburger on mobile */
  .nav-search-form.open input[type="search"] { width: 0; opacity: 0; padding: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .author-card { flex: 0 0 calc(80% - 10px); min-width: calc(80% - 10px); }
  .authors-header { flex-direction: column; align-items: flex-start; }
  .article-title-stack { max-width: 100%; }
  .article-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; }
  .byline-share { display: none; }
  .author-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .author-hero-photo { margin: 0 auto; }
  .author-hero-bio { margin: 0 auto 24px; }
  .author-hero-socials { justify-content: center; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { padding: 16px 20px; flex: 1 1 40%; border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .author-card { flex: 0 0 calc(90% - 10px); min-width: calc(90% - 10px); }
}
