/* MetaPrime Blog — Desktop Full Header, Mobile 2-Line Menu & Pure B&W Article Theme */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a2433;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #556073;
  line-height: 1.7;
}
h1, h2, h3 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: #1a2433;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.18;
}
h2 {
  font-size: clamp(22px, 3vw, 28px);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* =====================================================
   1. HEADER: Full Nav on Desktop, Compact 2-Line on Mobile
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a55, #e85d3d);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
}
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #1a2433;
  line-height: 1.1;
}
.logo-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.3px;
}

/* Desktop Navigation (Default) */
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.site-nav a {
  font-weight: 600;
  font-size: 15px;
  color: #1a2433;
  transition: color 0.15s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Compact 2-Line Button: Hidden on Desktop */
.menu-toggle-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.menu-toggle-btn:hover {
  background: #f8fafc;
  border-color: #9ca3af;
}
.menu-toggle-btn .hline {
  width: 16px;
  height: 1.8px;
  background: #1a2433;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.menu-toggle-btn.is-open .hline:first-child {
  transform: translateY(2.9px) rotate(45deg);
}
.menu-toggle-btn.is-open .hline:last-child {
  transform: translateY(-2.9px) rotate(-45deg);
}

/* General Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}
.btn-dark {
  background: #1a2433;
  color: #ffffff;
}
.btn-dark:hover {
  background: #0f172a;
}
.btn-light {
  background: #ffffff;
  color: #1a2433;
}

/* =====================================================
   2. HERO & BLOG LISTING CARDS
   ===================================================== */
.blog-hero {
  position: relative;
  padding: 52px 0 44px;
  color: #ffffff;
  background: #0b0e1a url('../img/hero-banner.jpg') center/cover no-repeat;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 24, 0.76), rgba(8, 10, 24, 0.62));
}
.hero-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}
.eyebrow-light {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.blog-hero h1 {
  color: #ffffff;
  margin-bottom: 10px;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}
.filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.pill:hover {
  border-color: #ffffff;
}
.pill.active {
  background: #ffffff;
  color: #1a2433;
  border-color: #ffffff;
}

/* Compact Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 40px 0 44px;
}
a.card-link {
  display: block;
  border-radius: 16px;
}
a.card-link[hidden] {
  display: none !important;
}
a.card-link .card {
  height: 100%;
}
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #9ca3af;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
}
.card[hidden] {
  display: none !important;
}
.card-media {
  position: relative;
  margin: 0;
}
.card-media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: #1a2433;
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
}
.card-body {
  padding: 16px;
}
.card-body h2 {
  font-size: 16.5px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.card-body p {
  font-size: 14px;
  margin-bottom: 12px;
}
.card-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
}
.soon {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1a2433;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 999px;
}
.no-results {
  text-align: center;
  color: #556073;
  padding: 0 0 56px;
}

/* Topics Strip */
.topics {
  padding: 4px 0 48px;
}
.topics h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.topics-sub {
  font-size: 15px;
  max-width: 720px;
}
.topics-sub a {
  color: #1a2433;
  font-weight: 600;
  text-decoration: underline;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.topic-tile {
  display: block;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.topic-tile:hover {
  transform: translateY(-2px);
  border-color: #1a2433;
}
.topic-tile strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #1a2433;
  margin-bottom: 4px;
}
.topic-tile span {
  display: block;
  font-size: 13.5px;
  color: #556073;
  line-height: 1.5;
}
.topic-tile.active {
  background: #f8fafc;
  border-color: #1a2433;
}

/* CTA Band */
.cta-band {
  background: #111827;
  color: #ffffff;
  padding: 40px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner h2 {
  color: #ffffff;
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 6px;
  font-weight: 800;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 14.5px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* =====================================================
   3. ARTICLE PAGE: Strictly Black & White (No Red Text)
   ===================================================== */
.article-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.article-wrap h1,
.article-wrap h2,
.article-wrap h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.5px;
}
.article-crumb {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 12px;
  text-align: center;
}
.article-crumb a {
  color: #1a2433;
  font-weight: 600;
  text-decoration: none;
}
.article-crumb a:hover {
  text-decoration: underline;
}
.article-wrap h1 {
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.22;
  margin: 8px 0 10px;
  text-align: center;
}
.article-meta {
  color: #64748b;
  font-size: 13.5px;
  margin: 0 0 24px;
  text-align: center;
}
.article-wrap figure {
  margin: 0 0 28px;
}
.article-wrap figure img {
  width: 100%;
  max-width: 560px;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.article-hero-cap {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-top: 8px;
}
.article-wrap h2 {
  font-size: 23px;
  margin: 36px 0 12px;
}
.article-wrap h3 {
  font-size: 18.5px;
  margin: 24px 0 10px;
}
.article-wrap p {
  color: #334155;
  font-size: 16.5px;
  line-height: 1.78;
}
.article-wrap ul {
  margin: 0 0 20px;
  padding-left: 22px;
}
.article-wrap li {
  color: #334155;
  font-size: 16.5px;
  line-height: 1.78;
  margin-bottom: 8px;
}
/* Pure Black & White Links inside Article and More from the Blog */
.article-wrap p a,
.article-wrap li a {
  color: #1a2433;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-wrap p a:hover,
.article-wrap li a:hover {
  color: #000000;
}
.hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
}
.hub-chips li {
  margin: 0;
}
.hub-chips a {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a2433;
  text-decoration: none !important;
}
.hub-chips a:hover {
  border-color: #1a2433;
}
.more-articles {
  margin-top: 44px;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
}
.more-articles h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.more-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.more-articles li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  color: #64748b;
}
.more-articles li a {
  color: #1a2433;
  font-weight: 600;
  text-decoration: none;
}
.more-articles li a:hover {
  text-decoration: underline;
}
.more-articles li:last-child {
  border-bottom: 0;
}
.more-articles .soon {
  margin-left: 8px;
}

/* =====================================================
   4. FOOTER: Clean Dark Monochrome
   ===================================================== */
.footer,
.footer.footer-dark {
  background: #0b0e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 0 28px;
  color: #ffffff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 32px;
}
.footer .logo-text {
  color: #ffffff;
}
.footer .logo-sub {
  color: rgba(255, 255, 255, 0.55);
}
.footer-desc {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
  margin: 14px 0 18px;
  font-size: 14px;
  max-width: 340px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.contact-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.6px;
}
.contact-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}
.contact-val:hover {
  color: #cbd5e1;
}
.footer-col h3 {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #ffffff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links li {
  font-size: 13.5px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.copyright-text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
.legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.legal-links a {
  color: rgba(255, 255, 255, 0.8);
}
.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.legal-links span {
  color: rgba(255, 255, 255, 0.3);
}

/* =====================================================
   5. RESPONSIVE BREAKPOINTS (Mobile Only 2-Line Dropdown)
   ===================================================== */
@media (max-width: 960px) {
  .cards,
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  /* Hide WhatsApp button on mobile header & show compact 2-line button */
  .site-header .btn {
    display: none !important;
  }
  .menu-toggle-btn {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 210px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    z-index: 120;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #1a2433;
    text-decoration: none !important;
  }
  .site-nav a:hover {
    background: #f8fafc;
  }
  .site-nav a.active {
    background: #f1f5f9;
    color: #000000;
    font-weight: 700;
  }

  .blog-hero {
    padding: 40px 0 34px;
  }
  .cards {
    grid-template-columns: 1fr;
    padding: 28px 0 36px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .article-wrap {
    padding: 28px 16px 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .contact-list {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Logo image (gold rings) — replaces the "M" logo-mark, 40px like .logo-mark */
.logo-img{height:40px;width:auto;display:block}
/* Cookie consent banner (JS-injected, shown until accepted) */
.mp-cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:10000;background:#0b0e1a;color:rgba(255,255,255,.88);border-top:1px solid rgba(255,255,255,.12);padding:14px 20px;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;font-family:'Inter',system-ui,-apple-system,sans-serif;font-size:13.5px;line-height:1.5}
.mp-cookie-banner p{margin:0;color:rgba(255,255,255,.88);font-size:13.5px;line-height:1.5}
.mp-cookie-banner a{color:#ffb59e;text-decoration:underline}
.mp-cookie-banner a:hover{color:#ffffff}
.mp-cookie-accept{flex:none;font-family:'Poppins',system-ui,-apple-system,sans-serif;font-size:13px;font-weight:700;color:#ffffff;background:linear-gradient(180deg,#ff7a55,#e85d3d 60%,#d84f31);border:1px solid #c94a2e;border-radius:10px;padding:9px 20px;cursor:pointer}
.mp-cookie-accept:hover{filter:brightness(1.06)}
@media (max-width:640px){.mp-cookie-banner{padding:12px 14px;gap:10px;font-size:13px;text-align:center}.mp-cookie-banner p{flex:1 1 100%}}
/* MetaPrime logo badge on article images (top-right, no image files changed) */
.article-wrap figure { position: relative; width: fit-content; max-width: 100%; }
.article-wrap figure img.mp-logo-badge {
  position: absolute; top: 10px; right: 10px;
  width: 44px; max-width: 44px; height: auto;
  aspect-ratio: auto; object-fit: contain; margin: 0;
  padding: 3px; background: rgba(255,255,255,.88);
  border-radius: 8px; opacity: .94; pointer-events: none; z-index: 2;
}
@media (max-width: 560px) {
  .article-wrap figure img.mp-logo-badge { width: 32px; max-width: 32px; top: 8px; right: 8px; }
}
@media (max-width:640px){html,body{overflow-x:hidden}}
.article-wrap pre{overflow-x:auto}
.article-wrap table{display:block;overflow-x:auto}
