/*
Theme Name: SunBiz
Theme URI: https://sunbiz.com.ng
Author: SunBiz
Author URI: https://sunbiz.com.ng
Description: The SunBiz theme — deep navy header, gradient hero band, a three-column card grid with a full-width featured lead card on the homepage, styled archive listings, long-form single-post typography and a navy footer. Self-contained: no Bootstrap, no external framework. Presentation only — it never modifies posts, pages, media or URLs.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sunbiz
Tags: news, blog, grid-layout, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --brand-red:        #1B4DFF;
  --brand-red-dark:   #0F35C4;
  --brand-red-light:  #4B74FF;
  --brand-red-hover:  #0F35C4;

  --navbar-bg:        #0A1628;
  --navbar-hover-bg:  #16294A;
  --navbar-text:      #E8EDF7;
  --navbar-text-hover:#FFFFFF;

  --accent-blue:      #1B4DFF;
  --accent-green:     #00A86B;
  --accent-orange:    #F59E0B;

  --card-bg:          #FFFFFF;
  --light-bg:         #F5F7FB;
  --dark-bg:          #0A1628;
  --dark-surface:     #101F38;
  --dark-surface-2:   #16294A;

  --text-primary:     #0F172A;
  --text-secondary:   #4A5568;
  --text-muted:       #7A8699;
  --text-light:       #A9B4C4;

  --border-color:     #E2E8F2;
  --border-light:     #EEF2F8;
  --shadow-sm:        0 1px 2px rgba(10, 22, 40, .06);
  --shadow-md:        0 4px 16px rgba(10, 22, 40, .08);
  --shadow-lg:        0 12px 40px rgba(10, 22, 40, .12);

  --font-headline:    "Inter", "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --section-gap:      2.25rem;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --transition-base:  .25s cubic-bezier(.4, 0, .2, 1);
  --wrap:             1200px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--brand-red-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin: 0 0 .6em;
}

p { margin: 0 0 1.15em; }

::selection { background: var(--accent-blue); color: #fff; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent-blue); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 2px; }

/* ==========================================================================
   3. LAYOUT PRIMITIVES  (own grid — no Bootstrap)
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1 0 auto; padding: 2.5rem 0 3.5rem; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
}

/* Homepage: the listing owns the full width, sidebar drops below */
.layout--full { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================================
   4. HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--navbar-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(10, 22, 40, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}

.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: auto; height: 40px; max-width: 220px; object-fit: contain; }
.custom-logo-link:hover .custom-logo { opacity: .9; }

.site-branding { flex: 0 0 auto; }

.site-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 0;
  line-height: 1.1;
}
.site-title a { color: #fff; }
.site-title a:hover { color: var(--brand-red-light); }

.site-description {
  margin: .15rem 0 0;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --- Primary menu --- */
.main-navigation { margin-left: auto; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: .5rem .7rem;
  cursor: pointer;
  line-height: 1;
}
.menu-toggle:hover { background: var(--navbar-hover-bg); }
.menu-toggle-bars { display: block; width: 22px; height: 2px; background: #fff; position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff;
}
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after  { top: 7px; }

.primary-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li { position: relative; }

.primary-menu a {
  display: block;
  padding: .55rem .85rem;
  font-family: var(--font-headline);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navbar-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}
.primary-menu a:hover,
.primary-menu a:focus {
  background: var(--navbar-hover-bg);
  color: var(--navbar-text-hover);
}
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a {
  background: var(--accent-blue);
  color: #fff;
}

/* Dropdowns */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--dark-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 50;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-menu .sub-menu a {
  text-transform: none;
  letter-spacing: 0;
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem .7rem;
}

/* Search toggle */
.search-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  padding: .5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  line-height: 0;
  margin-left: .5rem;
}
.search-toggle:hover { background: var(--navbar-hover-bg); }
.search-toggle svg { width: 18px; height: 18px; }

.header-search {
  display: none;
  background: var(--dark-surface);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
}
.header-search.is-open { display: block; }
.header-search .search-form { max-width: 640px; margin-inline: auto; }

/* ==========================================================================
   5. HERO BAND
   ========================================================================== */
.page-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 300px at 15% -20%, rgba(75,116,255,.55), transparent 60%),
    linear-gradient(135deg, #0A1628 0%, #16294A 60%, #1B4DFF 150%);
  color: #fff;
  padding: 2.25rem 1.9rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.9rem;
  box-shadow: var(--shadow-md);
}
.page-header::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.page-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  letter-spacing: -.035em;
  line-height: 1.2;
  text-transform: uppercase;
}
.page-header .archive-description {
  position: relative;
  z-index: 1;
  margin: .6rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  max-width: 62ch;
}

/* ==========================================================================
   6. STORY CARD
   ========================================================================== */
.story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cfd9ea;
}

.card-img-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light-bg);
  flex: 0 0 auto;
}
.card-img-wrapper a { display: block; height: 100%; }
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.story-card:hover .card-img-wrapper img { transform: scale(1.045); }

.card-img-wrapper--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.4rem 1.5rem 1.25rem;
}

.category-label {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-headline);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: .55rem;
}
.category-label:hover { color: var(--brand-red-dark); }

.card-title {
  font-size: 1.02rem;
  line-height: 1.34;
  margin: 0 0 .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.34em * 3);
}
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--accent-blue); }

.card-text {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--border-light);
  font-size: .78rem;
  color: var(--text-muted);
}
.card-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card-meta svg { width: 13px; height: 13px; opacity: .7; }

/* ==========================================================================
   7. HOMEPAGE GRID
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-grid > li { display: flex; min-width: 0; }
.post-grid > li > .story-card { width: 100%; }

/* Featured lead card — first post spans the full row */
.post-grid > li:first-child { grid-column: 1 / -1; }

.post-grid > li:first-child > .story-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 340px;
}
.post-grid > li:first-child .card-img-wrapper {
  flex: 0 0 56%;
  max-width: 56%;
  aspect-ratio: auto;
  height: auto;
  min-height: 340px;
}
.post-grid > li:first-child .card-img-wrapper img { height: 100%; }
.post-grid > li:first-child .card-body {
  flex: 1 1 auto;
  justify-content: center;
  padding: 2.25rem 2.5rem;
}
.post-grid > li:first-child .card-body::before {
  content: "Featured Review";
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-headline);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-blue);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.post-grid > li:first-child .card-title {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -.03em;
  margin-bottom: .85rem;
  -webkit-line-clamp: 4;
  min-height: 0;
}
.post-grid > li:first-child .card-text {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 46ch;
  -webkit-line-clamp: 4;
}

/* ==========================================================================
   8. ARCHIVE LISTING
   ========================================================================== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.archive-grid > li { display: flex; min-width: 0; }
.archive-grid > li > .story-card { width: 100%; }

/* ==========================================================================
   9. SIDEBAR / WIDGETS
   ========================================================================== */
.widget-area { display: grid; gap: 1.5rem; align-content: start; }

.widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-headline);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--accent-blue);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
}
.widget ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget ul li a { color: var(--text-primary); font-weight: 600; }
.widget ul li a:hover { color: var(--accent-blue); }

.widget .cat-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  margin-right: .55rem;
  flex: 0 0 auto;
}
.widget .cat-count {
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: .1rem .5rem;
  flex: 0 0 auto;
}

.widget select,
.widget input[type="search"],
.widget input[type="text"] {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  background: #fff;
  color: var(--text-primary);
}

/* ==========================================================================
   10. SINGLE POST
   ========================================================================== */
.single-post-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem 2.75rem;
  box-shadow: var(--shadow-sm);
}

.entry-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -.035em;
  margin: 0 0 1rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.1rem;
  font-size: .82rem;
  color: var(--text-muted);
  padding-bottom: 1.4rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}
.entry-meta a { color: var(--text-secondary); font-weight: 600; }
.entry-meta a:hover { color: var(--accent-blue); }
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.entry-meta svg { width: 14px; height: 14px; opacity: .7; }

.post-thumbnail { margin: 0 0 2rem; }
.post-thumbnail img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.entry-content { font-size: 1.05rem; line-height: 1.78; color: #1B2436; }
.entry-content > * + * { margin-top: 1.15em; }

.entry-content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 2.2em 0 .7em;
  padding-left: .8rem;
  border-left: 4px solid var(--accent-blue);
  line-height: 1.3;
}
.entry-content h3 {
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  margin: 1.8em 0 .6em;
  color: var(--text-primary);
}
.entry-content h4 { font-size: 1.05rem; margin: 1.5em 0 .5em; }

.entry-content p { margin: 0 0 1.15em; }

.entry-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--brand-red-dark); text-decoration-thickness: 2px; }

.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.15em; }
.entry-content li { margin-bottom: .5em; }
.entry-content li::marker { color: var(--accent-blue); font-weight: 700; }

.entry-content img { border-radius: var(--radius-md); margin: 1.5em auto; }
.entry-content figure { margin: 1.75em 0; }
.entry-content figcaption {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .6rem;
  font-style: italic;
}

.entry-content blockquote {
  margin: 1.75em 0;
  padding: 1.1rem 1.4rem;
  background: var(--light-bg);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-size: .92rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.entry-content table th {
  background: var(--dark-bg);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  text-align: left;
  padding: .75rem .9rem;
  font-size: .82rem;
  letter-spacing: .03em;
}
.entry-content table td {
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.entry-content table tr:nth-child(even) td { background: #FAFBFD; }
.entry-content table tr:last-child td { border-bottom: 0; }

.entry-content iframe { border-radius: var(--radius-md); max-width: 100%; }
.entry-content .wp-block-embed__wrapper { margin: 1.75em 0; }
.entry-content .wp-block-embed__wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.entry-footer {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.tags-links { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .8rem; }
.tags-links .tags-label {
  font-family: var(--font-headline);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-right: .3rem;
}
.tags-links a {
  display: inline-block;
  padding: .28rem .7rem;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-base);
}
.tags-links a:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* Post navigation */
.post-navigation-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.post-nav-link {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}
.post-nav-link:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-nav-label {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.post-nav-title {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--text-primary);
}
.post-nav-link--next { text-align: right; }

/* Comments */
.comments-area {
  margin-top: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
}
.comments-title, .comment-reply-title {
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
}
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .comment { padding: 1.1rem 0; border-bottom: 1px solid var(--border-light); }
.comment-list .children { list-style: none; padding-left: 1.5rem; margin: .75rem 0 0; }
.comment-author { font-weight: 700; font-size: .9rem; }
.comment-metadata { font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; }
.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--text-primary);
}
.comment-respond textarea:focus,
.comment-respond input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(27,77,255,.14);
}

/* Buttons */
.btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-blue);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}
.btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   11. PAGINATION
   ========================================================================== */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .7rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: .85rem;
  transition: all var(--transition-base);
}
.pagination .page-numbers:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.pagination .page-numbers.current {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
  font-size: .85rem;
  border-top: 3px solid var(--accent-blue);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo img { height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.footer-about { margin: 1rem 0 0; color: var(--text-light); line-height: 1.7; max-width: 34ch; }

.site-footer h6, .footer-heading {
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer a {
  color: var(--text-light);
  transition: color var(--transition-base), padding-left var(--transition-base);
  display: inline-block;
}
.site-footer a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-light);
}
.back-to-top svg { width: 14px; height: 14px; transition: transform var(--transition-base); }
.back-to-top:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   13. SEARCH FORM
   ========================================================================== */
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1 1 auto; margin: 0; }
.search-form .search-field {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  background: #fff;
  color: var(--text-primary);
}
.search-form .search-submit {
  flex: 0 0 auto;
  padding: .65rem 1.1rem;
  font-size: .8rem;
}

/* ==========================================================================
   14. 404 / EMPTY STATE
   ========================================================================== */
.empty-state {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.empty-state h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.empty-state p { color: var(--text-secondary); max-width: 46ch; margin-inline: auto; }
.empty-state .search-form { max-width: 420px; margin: 1.5rem auto 0; }

/* ==========================================================================
   15. WORDPRESS CORE ALIGNMENTS
   ========================================================================== */
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide { margin-inline: -2rem; max-width: calc(100% + 4rem); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: .5rem; }

.sticky .card-title::after {
  content: "Pinned";
  display: inline-block;
  margin-left: .5rem;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-orange);
  padding: .15rem .45rem;
  border-radius: 999px;
  vertical-align: middle;
}

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1199.98px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .post-grid > li:first-child .card-body { padding: 1.75rem 1.9rem; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 991.98px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .widget-area { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

  .post-grid > li:first-child > .story-card { flex-direction: column; min-height: 0; }
  .post-grid > li:first-child .card-img-wrapper {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .post-grid > li:first-child .card-body { padding: 1.5rem 1.4rem; }

  .single-post-content { padding: 2rem 1.75rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Mobile navigation */
  .menu-toggle { display: block; margin-left: auto; }
  .main-navigation { margin-left: 0; }
  .header-inner { flex-wrap: wrap; }

  .primary-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: .5rem 0 1rem;
  }
  .primary-menu.is-open { display: flex; }
  .primary-menu a { padding: .75rem .5rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    padding-left: .75rem;
    display: none;
  }
  .primary-menu li.is-open > .sub-menu { display: block; }
  .search-toggle { margin-left: 0; }
}

@media (max-width: 767.98px) {
  .wrap { padding-inline: 1.1rem; }
  .site-content { padding: 1.75rem 0 2.5rem; }

  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .post-grid > li:not(:first-child) .card-title { -webkit-line-clamp: 2; min-height: 0; }
  .post-grid > li:first-child .card-title { font-size: 1.3rem; }

  .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }

  .page-header { padding: 1.5rem 1.25rem; border-radius: var(--radius-md); }
  .page-title { font-size: 1.3rem; }

  .single-post-content { padding: 1.5rem 1.15rem; border-radius: var(--radius-md); }
  .entry-content { font-size: 1rem; line-height: 1.72; }
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }

  .post-navigation-wrapper { grid-template-columns: minmax(0, 1fr); }
  .post-nav-link--next { text-align: left; }

  .comments-area { padding: 1.5rem 1.15rem; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .custom-logo { height: 34px; }
  .header-inner { min-height: 64px; }
}

@media (max-width: 400px) {
  .wrap { padding-inline: .9rem; }
  .card-body { padding: 1.15rem 1.15rem 1rem; }
}

/* ==========================================================================
   17. ACCESSIBILITY & PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .story-card:hover { transform: none; }
  .story-card:hover .card-img-wrapper img { transform: none; }
}

@media print {
  .site-header, .site-footer, .widget-area, .pagination,
  .post-navigation-wrapper, .comments-area, .search-toggle, .menu-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .layout, .post-grid, .archive-grid { display: block !important; }
  .post-grid > li, .archive-grid > li { margin-bottom: 1.5rem; }
  .single-post-content { border: 0; box-shadow: none; padding: 0; }
  .entry-content a { text-decoration: underline; }
  .entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
