/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: padding 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.nav-logo span { color: var(--green); }
.nav-logo img {
  max-height: 40px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links li a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
}
.nav-links li a:hover { color: #fff; }
.nav-links li.current-menu-item a { color: var(--green); }

/* Navigation CTA button */
.nav-links li:last-child a,
.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s !important;
}
.nav-links li:last-child a:hover,
.nav-cta:hover { background: var(--green-dim) !important; }

/* Mobile Menu Hamburger */
.mobile-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.mobile-hamburger span {
  width: 100%;
  height: 2.5px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.mobile-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Dropdown Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: var(--navy);
  z-index: 99;
  padding: 32px 24px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}
.mobile-menu-overlay.active {
  display: block;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}
.mobile-nav-links li a {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 600;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px;
}
.mobile-nav-links li a:hover {
  color: var(--green);
}
.mobile-nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700 !important;
  font-size: 15px !important;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4a7a 100%);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,196,140,0.12) 0%, transparent 65%);
  bottom: -150px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,196,140,0.15);
  border: 1px solid rgba(0,196,140,0.3);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 9px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--green-dim); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.2s;
  display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* Hero search box */
.hero-search {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 28px;
}
.hero-search h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.search-row {
  display: flex;
  gap: 10px;
}
.search-row input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 11px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.search-row input::placeholder { color: rgba(255,255,255,0.4); }
.search-row input:focus { border-color: var(--green); }
.search-row button {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-row button:hover { background: var(--green-dim); }
.popular-searches {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pop-tag {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.2s;
}
.pop-tag:hover { background: rgba(0,196,140,0.2); color: var(--green); border-color: var(--green); }

/* ─────────────────────────────────────────
   HERO ARCHIVE (Archive header pages)
───────────────────────────────────────── */
.hero-archive {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 0;
  color: #fff;
}
.hero-archive-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-archive-icon {
  font-size: 56px;
  background: rgba(255,255,255,0.08);
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.hero-archive-content {
  flex: 1;
}

/* ─────────────────────────────────────────
   STATS BAR
───────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--light-bg); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.section-head h2 span { color: var(--green); }
.view-all {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}
.view-all:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ─────────────────────────────────────────
   CATEGORY PILLS STRIP
───────────────────────────────────────── */
.cat-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.cat-strip-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-block;
  background: var(--light-bg);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ─────────────────────────────────────────
   POST CARDS - STANDARD GRID
───────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(11,37,69,0.1);
  transform: translateY(-2px);
}
.card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a5c8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-img-placeholder {
  font-size: 40px;
}
.card-featured .card-img { 
  height: 260px; 
}
.card-featured .card-img-placeholder {
  font-size: 56px;
}
.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.card:hover .card-title { color: var(--green-dim); }
.card-featured .card-title { font-size: 22px; }
.card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.card-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* Right side cards container */
.card-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─────────────────────────────────────────
   MINI CARDS (HORIZONTAL)
───────────────────────────────────────── */
.card-mini {
  flex-direction: row !important;
}
.card-mini .card-img {
  width: 120px; 
  height: auto;
  min-height: 100px;
  flex-shrink: 0;
}
.card-mini .card-img-placeholder {
  font-size: 28px;
}
.card-mini .card-body { padding: 16px; }
.card-mini .card-title { font-size: 15px; }
.card-mini .card-excerpt {
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 3-Column Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─────────────────────────────────────────
   CATEGORY BLOCKS
───────────────────────────────────────── */
.cat-blocks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-block {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
}
.cat-block:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(0,196,140,0.12);
  transform: translateY(-2px);
}
.cat-block-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.cat-block-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.cat-block-count {
  font-size: 12px;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   SALARY TICKER
───────────────────────────────────────── */
.ticker-wrap {
  background: var(--navy);
  padding: 14px 0;
  overflow: hidden;
}
.ticker-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 24px;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}
.ticker-item strong { color: var(--green); }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-inner {
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ─────────────────────────────────────────
   POPULAR LAYOUT + SIDEBAR
───────────────────────────────────────── */
.popular-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.post-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.post-list-item:last-child { border-bottom: none; }
.post-rank {
  font-size: 28px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 36px;
  margin-top: 2px;
}
.post-list-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.2s;
}
.post-list-title a:hover { color: var(--green-dim); }
.post-list-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
}

/* Sidebar & widgets styling */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: var(--light-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.widget-head {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 18px;
}
.widget-body { padding: 16px 18px; }
.widget-link-list { list-style: none; }
.widget-link-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.widget-link-list li:last-child { border-bottom: none; }
.widget-link-list a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.widget-link-list a:hover { color: var(--green-dim); }

/* ─────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────── */
.newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2a50 100%);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  margin: 0 0 72px;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,196,140,0.1) 0%, transparent 70%);
  top: -150px; left: -100px;
  border-radius: 50%;
}
.newsletter h2 {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}
.newsletter p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  margin-bottom: 28px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--green); }
.newsletter-form button {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--green-dim); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 260px;
}
.footer h4, .footer-widget-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.footer-links, .footer-widget ul {
  list-style: none;
}
.footer-links li, .footer-widget ul li { 
  margin-bottom: 10px; 
}
.footer-links a, .footer-widget ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-widget ul li a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.footer-logo span { color: var(--green); }

/* ─────────────────────────────────────────
   WP PAGINATION & BREADCRUMBS
───────────────────────────────────────── */
.eip-breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.eip-breadcrumbs a {
  color: var(--navy-mid);
  font-weight: 500;
  transition: color 0.2s;
}
.eip-breadcrumbs a:hover {
  color: var(--green);
}
.eip-breadcrumbs span.sep {
  color: var(--border);
}
.eip-breadcrumbs span.current-crumb {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

.eip-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  transition: all 0.2s;
}
.eip-pagination .page-numbers.current,
.eip-pagination .page-numbers:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ─────────────────────────────────────────
   RESPONSIVE MEDIA QUERIES
───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-search { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .card-mini { flex-direction: column !important; }
  .card-mini .card-img { width: 100%; height: 140px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-blocks { grid-template-columns: repeat(3, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .popular-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-hamburger { display: flex; }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
  .cat-blocks { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .newsletter { padding: 36px 22px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
