/* =========================================================
   Bizventures — Design System
   ========================================================= */

:root {
  --ink:          #0a0e27;
  --ink-soft:     #1a1f3a;
  --ink-muted:    #5a6478;
  --ink-faint:    #8a93a6;
  --paper:        #ffffff;
  --paper-soft:   #f7f8fa;
  --paper-tint:   #eef1f6;
  --line:         #e4e8ef;
  --line-soft:    #f0f2f6;

  --accent:       #c9372c;
  --accent-hover: #a82c22;
  --gold:         #d4a017;
  --gold-soft:    #fef8e7;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(10,14,39,.06);
  --shadow:    0 4px 16px rgba(10,14,39,.08);
  --shadow-lg: 0 12px 40px rgba(10,14,39,.12);

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --container: 1280px;
  --gutter:    24px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 12px 20px; background: var(--ink); color: #fff;
  z-index: 999; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: all .2s var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-soft); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-gold { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn-gold:hover { background: #b8890f; transform: translateY(-1px); box-shadow: var(--shadow); }

/* =========================================================
   HEADER — Row 1: logo + actions. Row 2: nav on 2 lines.
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

/* --- Row 1: logo + actions --- */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark { color: var(--ink); display: inline-flex; flex-shrink: 0; }
.logo-text span { color: var(--accent); }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: #fff; }
.logo-light .logo-text span { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-trigger {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  background: #fff;
  transition: all .15s var(--ease);
  flex-shrink: 0;
}
.search-trigger:hover { border-color: var(--ink); color: var(--ink); }
.search-trigger.open { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- Row 2: nav on 2 lines, centered --- */
.nav-bar {
  border-top: 1px solid var(--line-soft);
  background: #fff;
  padding: 6px 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  max-width: 720px;
  margin: 0 auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all .15s var(--ease);
  white-space: nowrap;
  line-height: 1.2;
}
.nav a:hover { background: var(--paper-tint); color: var(--ink); }
.nav a.nav-home { font-weight: 700; color: var(--ink); }
.nav a.nav-executive { color: #8a6a00; font-weight: 600; }
.nav a.nav-executive svg { color: var(--gold); flex-shrink: 0; }
.nav a.nav-executive:hover { background: var(--gold-soft); color: #6e5400; }
.nav a.active { background: var(--ink); color: #fff; }
.nav a.active.nav-executive { background: var(--gold); color: var(--ink); }

/* Force the 5/4 split on desktop by constraining the max-width */
@media (min-width: 900px) {
  .nav { max-width: 820px; }
}

/* Tablet: let it flow naturally */
@media (max-width: 899px) {
  .nav { max-width: 100%; padding: 0 4px; }
  .nav a { padding: 7px 11px; font-size: 13px; }
}

/* Small tablet / phone: still wraps, still fully visible */
@media (max-width: 640px) {
  .header-top { height: 56px; }
  .logo { font-size: 19px; }
  .logo-mark svg { width: 28px; height: 28px; }
  .nav a { padding: 7px 10px; font-size: 12.5px; }
  .nav { gap: 2px; }
  .header-actions .btn-primary { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 420px) {
  .logo-text { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav a { padding: 7px 9px; font-size: 12px; }
}

/* ---------- Header search panel ---------- */
.header-search {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  animation: slideDown .2s var(--ease);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.header-search .search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}
.header-search input {
  width: 100%;
  padding: 12px 44px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  font-size: 15px;
  transition: all .2s;
}
.header-search input:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,14,39,.06);
}
.header-search .search-icon {
  position: absolute;
  left: 14px;
  color: var(--ink-faint);
  pointer-events: none;
}
.header-search .clear-btn {
  position: absolute;
  right: 12px;
  font-size: 20px;
  color: var(--ink-muted);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.header-search .clear-btn:hover { background: var(--paper-tint); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: stretch;
}

.hero-feature {
  grid-row: span 2;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.hero-feature:hover { transform: translateY(-2px); }

.hero-feature .hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-soft);
  opacity: .55;
  transition: opacity .4s, transform .6s var(--ease);
}
.hero-feature:hover .hero-img { opacity: .7; transform: scale(1.03); }

.hero-feature::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,14,39,.92) 100%);
  z-index: 1;
}

.hero-feature .hero-body {
  position: relative;
  z-index: 2;
  padding: 40px;
}
.hero-feature .hero-body h1 {
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  margin: 12px 0 14px;
}
.hero-feature .hero-body p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  max-width: 540px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-top: 18px;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-mini {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  display: flex;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.hero-mini:hover { border-color: var(--ink-faint); box-shadow: var(--shadow); transform: translateY(-2px); }

.hero-mini .mini-img {
  width: 130px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-tint);
}
.hero-mini .mini-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.hero-mini .mini-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-meta { font-size: 12px; color: var(--ink-muted); font-weight: 500; }

/* =========================================================
   FEED HEADER
   ========================================================= */
.feed-header {
  padding: 32px 0 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.result-count {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}

/* =========================================================
   ARTICLE GRID
   ========================================================= */
.grid {
  display: grid;
  gap: 28px;
  padding-bottom: 40px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .2s var(--ease);
}
.card:hover { transform: translateY(-3px); }

.card-img {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-tint);
  margin-bottom: 16px;
  position: relative;
}
.card-img-inner {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-tint);
  transition: transform .5s var(--ease);
}
.card:hover .card-img-inner { transform: scale(1.04); }

.card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
  margin-top: auto;
  padding-top: 8px;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.card.is-premium .card-img::after {
  content: 'PREMIUM';
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-premium { background: var(--gold); color: var(--ink); }
.badge-premium.static { background: var(--gold-soft); color: #8a6a00; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--paper-soft);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
}
.empty h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty p { color: var(--ink-muted); margin-bottom: 20px; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 48px 0 24px;
  flex-wrap: wrap;
}
.pager-num,
.pager-arrow {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid var(--line);
  transition: all .15s var(--ease);
}
.pager-num:hover,
.pager-arrow:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}
.pager-num.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pager-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.pager-arrow {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.pager-gap {
  padding: 0 4px;
  color: var(--ink-faint);
  font-weight: 600;
  user-select: none;
}

/* =========================================================
   SKELETON
   ========================================================= */
.card.skeleton { pointer-events: none; }
.card.skeleton .card-img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

/* =========================================================
   PREMIUM BANNER
   ========================================================= */
.premium-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  margin: 24px 0 64px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 60%, #2a1414 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.premium-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,160,23,.25), transparent 70%);
  pointer-events: none;
}

.premium-content { position: relative; z-index: 1; max-width: 600px; }
.premium-content h2 { color: #fff; margin: 14px 0 12px; }
.premium-content p { color: rgba(255,255,255,.8); font-size: 15px; }

.premium-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.9);
}
.premium-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
  margin-right: 6px;
}

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  background: var(--paper-soft);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin-bottom: 80px;
  text-align: center;
  border: 1px solid var(--line);
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.newsletter h2 { margin: 14px 0 10px; }
.newsletter p { color: var(--ink-muted); margin-bottom: 24px; }

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  min-width: 0;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,14,39,.06);
}
.form-note {
  font-size: 13px;
  color: var(--accent);
  margin-top: 12px;
  min-height: 20px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.site-footer h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid > div:not(.footer-brand) a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-blurb {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
  max-width: 320px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-links a { margin: 0 2px; }

/* =========================================================
   RESPONSIVE (below header)
   ========================================================= */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-feature { grid-row: auto; min-height: 440px; }
  .hero-side { flex-direction: row; }
  .hero-mini { flex-direction: column; }
  .hero-mini .mini-img { width: 100%; height: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .hero { padding: 28px 0 20px; gap: 16px; }
  .hero-feature { min-height: 380px; }
  .hero-feature .hero-body { padding: 28px; }
  .hero-side { flex-direction: column; gap: 16px; }

  .grid-3 { grid-template-columns: 1fr; gap: 32px; }

  .premium-banner { padding: 32px; text-align: left; }
  .newsletter { padding: 44px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-feature { min-height: 340px; }
  .hero-feature .hero-body { padding: 22px; }
  .section-title { font-size: 1.4rem; }
  .premium-list { flex-direction: column; }
  .pager-num, .pager-arrow {
    min-width: 36px; height: 36px; padding: 0 8px; font-size: 13px;
  }
}

/* =========================================================
   ANIMATION
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card, .hero-mini, .hero-feature { animation: fadeUp .5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}