/* =================================================================
   GKS LOGISTICS — V3 long-form articles & blog hub (Sprint 13)
   Scoped: body.v3 .article-v3-root
   ================================================================= */

body.v3 .article-v3-root {
  background: #f4f7fb;
  padding-bottom: clamp(3rem, 6vh, 4rem);
}

body.v3 .article-v3-root .container {
  max-width: 72rem;
}

body.v3 .article-v3-root .content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

body.v3 .article-v3-root .article-hero {
  position: relative;
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px rgba(10, 61, 98, 0.12);
}

body.v3 .article-v3-root .article-hero .hero-image {
  position: relative;
  min-height: clamp(14rem, 32vh, 22rem);
}

body.v3 .article-v3-root .article-hero .hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.v3 .article-v3-root .article-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 42, 69, 0.1) 0%, rgba(6, 42, 69, 0.75) 100%);
}

body.v3 .article-v3-root .article-hero .hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
}

body.v3 .article-v3-root .article-title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.15;
  /* Explicit white: overrides the body.v3 h1 dark reset when inside the dark hero overlay */
  color: var(--gks-white, #fff);
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* Article meta inside dark hero overlay */
body.v3 .article-v3-root .article-hero .hero-content .article-meta,
body.v3 .article-v3-root .article-hero .hero-content .meta-item,
body.v3 .article-v3-root .article-hero .hero-content .meta-item span,
body.v3 .article-v3-root .article-hero .hero-content .meta-item i {
  color: rgba(255, 255, 255, 0.82);
}

body.v3 .article-v3-root .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.82rem;
  opacity: 0.95;
}

body.v3 .article-v3-root .article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.v3 .article-v3-root .introduction .lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.88);
  margin: 0 0 1.5rem;
}

body.v3 .article-v3-root .content-section {
  margin-bottom: 2rem;
}

body.v3 .article-v3-root .content-section h2 {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  color: var(--gks-blue, #0a3d62);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 0 0 0.75rem;
}

body.v3 .article-v3-root .content-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.86);
}

body.v3 .article-v3-root .pull-quote {
  border-left: 4px solid var(--gks-red, #e63946);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(10, 61, 98, 0.04);
  border-radius: 0 var(--radius-md, 0.75rem) var(--radius-md, 0.75rem) 0;
}

body.v3 .article-v3-root .pull-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: rgba(15, 23, 42, 0.65);
}

body.v3 .article-v3-root .sidebar-widget {
  background: #fff;
  border: 1px solid rgba(10, 61, 98, 0.08);
  border-radius: var(--radius-md, 0.75rem);
  padding: 1.1rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 28px rgba(10, 61, 98, 0.06);
}

body.v3 .article-v3-root .sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gks-blue, #0a3d62);
  margin: 0 0 0.65rem;
}

body.v3 .article-v3-root .article-sidebar a {
  color: var(--gks-blue, #0a3d62);
  font-weight: 600;
}

body.v3 .article-v3-root img,
body.v3 .article-v3-root table,
body.v3 .article-v3-root iframe {
  max-width: 100%;
}

body.v3 .article-v3-root table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 960px) {
  body.v3 .article-v3-root .content-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blog hub (Blog.html) ---------- */
body.v3 .blog-v3-hero {
  position: relative;
  padding: clamp(5rem, 14vh, 8rem) 0 clamp(2.5rem, 6vh, 3.5rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

body.v3 .blog-v3-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 42, 69, 0.88) 0%, rgba(10, 61, 98, 0.55) 45%, rgba(230, 57, 70, 0.35) 100%),
    url('/assets/entreposage.jpeg') center / cover no-repeat;
  z-index: 0;
}

body.v3 .blog-v3-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

body.v3 .blog-v3-hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

body.v3 .blog-v3-hero__title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--gks-white, #fff);
  margin: 0 0 0.75rem;
}

body.v3 .blog-v3-hero__eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

body.v3 .blog-v3-hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
}

body.v3 .blog-v3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.v3 .blog-v3-hero__actions .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.v3 .blog-v3-newsletter {
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

body.v3 .blog-v3-newsletter__card {
  display: grid;
  grid-template-columns: 1fr minmax(12rem, 22rem);
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--radius-lg, 1rem);
  border: 1px solid rgba(10, 61, 98, 0.1);
  box-shadow: 0 16px 44px rgba(10, 61, 98, 0.1);
}

body.v3 .blog-v3-newsletter__title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: var(--gks-blue, #0a3d62);
}

body.v3 .blog-v3-newsletter__lead {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.75);
}

body.v3 .blog-v3-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.v3 .blog-v3-newsletter__form input[type='email'] {
  flex: 1 1 10rem;
  min-height: 2.65rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 61, 98, 0.15);
  padding: 0 1rem;
  font: inherit;
}

body.v3 .blog-v3-newsletter__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.55);
}

@media (max-width: 720px) {
  body.v3 .article-v3-root .article-hero .hero-content {
    padding: 1rem;
  }

  body.v3 .article-v3-root .article-title {
    font-size: clamp(1.25rem, 6.2vw, 1.6rem);
  }

  body.v3 .article-v3-root .article-meta {
    gap: 0.45rem 0.8rem;
  }

  body.v3 .article-v3-root .introduction .lead,
  body.v3 .article-v3-root .content-section p {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  body.v3 .article-v3-root .sidebar-widget {
    padding: 0.95rem 0.85rem;
  }

  body.v3 .blog-v3-newsletter__card {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   V3 ARTICLE — Modernised component styles (new class names)
   Used by afcfta-logistics-africa.html and future articles.
   ================================================================= */

/* ── Hero extras ── */
body.v3 .article-v3-root .article-byline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 1rem;
}
body.v3 .article-v3-root .article-meta__tag {
  background: var(--gks-red, #e63946);
  color: #fff;
  border-radius: var(--radius-pill, 9999px);
  padding: 0.2em 0.65em;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.v3 .article-v3-root .article-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}
body.v3 .article-v3-root .article-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.85rem;
  transition: background var(--dur-fast, 0.18s);
}
body.v3 .article-v3-root .article-share__btn:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* ── Body sections ── */
body.v3 .article-v3-root .article-section {
  margin-bottom: 2.25rem;
}
body.v3 .article-v3-root .article-lead {
  font-size: 1.08rem;
  line-height: 1.72;
  color: rgba(15,23,42,0.88);
  margin: 0 0 1.5rem;
}
body.v3 .article-v3-root .article-h2 {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  color: var(--gks-blue, #0a3d62);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(10,61,98,0.08);
}
body.v3 .article-v3-root .article-section p {
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(15,23,42,0.86);
  margin: 0 0 1rem;
}
body.v3 .article-v3-root .article-image {
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 12px 32px rgba(10,61,98,0.10);
}
body.v3 .article-v3-root .article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
body.v3 .article-v3-root .article-quote {
  border-left: 4px solid var(--gks-red, #e63946);
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
  background: rgba(10,61,98,0.04);
  border-radius: 0 var(--radius-md, 0.75rem) var(--radius-md, 0.75rem) 0;
}
body.v3 .article-v3-root .article-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gks-blue, #0a3d62);
  margin: 0 0 0.5rem;
}
body.v3 .article-v3-root .article-quote cite {
  font-size: 0.85rem;
  color: rgba(15,23,42,0.6);
  font-style: normal;
}

/* ── Capability cards ── */
body.v3 .article-v3-root .article-capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
body.v3 .article-v3-root .article-capability {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.25rem 0.85rem;
  background: var(--gks-white, #fff);
  border: 1px solid rgba(10,61,98,0.08);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: 0 6px 18px rgba(10,61,98,0.06);
  transition: transform var(--dur-fast, 0.18s), box-shadow var(--dur-fast, 0.18s);
}
body.v3 .article-v3-root .article-capability:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10,61,98,0.12);
}
body.v3 .article-v3-root .article-capability__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gks-blue,#0a3d62), var(--gks-blue-700,#062a45));
  color: #fff;
  font-size: 1.2rem;
}
body.v3 .article-v3-root .article-capability h4 {
  font-family: var(--font-heading,"Montserrat",sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gks-blue, #0a3d62);
  margin: 0;
}

/* ── Author bio ── */
body.v3 .article-v3-root .article-author {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--gks-white, #fff);
  border: 1px solid rgba(10,61,98,0.08);
  border-radius: var(--radius-lg, 1rem);
  margin-top: 2rem;
  box-shadow: 0 6px 18px rgba(10,61,98,0.06);
}
body.v3 .article-v3-root .article-author__avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(10,61,98,0.12);
}
body.v3 .article-v3-root .article-author__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
body.v3 .article-v3-root .article-author__bio h4 {
  font-family: var(--font-heading,"Montserrat",sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gks-blue, #0a3d62);
  margin: 0 0 0.35rem;
}
body.v3 .article-v3-root .article-author__bio p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(15,23,42,0.7);
  margin: 0;
}

/* ── Sidebar new components ── */
body.v3 .article-v3-root .sidebar-cta {
  background: linear-gradient(135deg, #062A45 0%, #0A3D62 100%);
  border-radius: var(--radius-lg, 1rem);
  padding: 1.4rem 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}
body.v3 .article-v3-root .sidebar-cta h3 {
  font-family: var(--font-heading,"Montserrat",sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
body.v3 .article-v3-root .sidebar-cta p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1rem;
}
body.v3 .article-v3-root .sidebar-widget__title {
  font-family: var(--font-heading,"Montserrat",sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gks-blue, #0a3d62);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(10,61,98,0.08);
}
body.v3 .article-v3-root .sidebar-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(10,61,98,0.06);
  color: inherit;
  text-decoration: none;
  transition: opacity var(--dur-fast, 0.18s);
}
body.v3 .article-v3-root .sidebar-post:last-child { border-bottom: none; }
body.v3 .article-v3-root .sidebar-post:hover { opacity: 0.8; }
body.v3 .article-v3-root .sidebar-post__thumb {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm, 0.4rem);
  overflow: hidden;
}
body.v3 .article-v3-root .sidebar-post__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
body.v3 .article-v3-root .sidebar-post__body p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gks-blue, #0a3d62);
  margin: 0 0 0.2rem;
  line-height: 1.35;
}
body.v3 .article-v3-root .sidebar-post__body span {
  font-size: 0.75rem;
  color: rgba(15,23,42,0.5);
}
body.v3 .article-v3-root .sidebar-cats {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
body.v3 .article-v3-root .sidebar-cats a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--gks-grey-700, #374151);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color var(--dur-fast, 0.18s);
}
body.v3 .article-v3-root .sidebar-cats a:hover { color: var(--gks-red, #e63946); }
body.v3 .article-v3-root .sidebar-cats a i { color: var(--gks-red, #e63946); font-size: 0.65rem; }
body.v3 .article-v3-root .sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.v3 .article-v3-root .sidebar-social__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md, 0.75rem);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity var(--dur-fast, 0.18s);
}
body.v3 .article-v3-root .sidebar-social__btn:hover { opacity: 0.85; color: #fff; }
body.v3 .article-v3-root .sidebar-social__btn--linkedin { background: #0a66c2; }
body.v3 .article-v3-root .sidebar-social__btn--twitter  { background: #1da1f2; }
body.v3 .article-v3-root .sidebar-social__btn--facebook { background: #1877f2; }

/* Mobile layout: single column */
@media (max-width: 960px) {
  body.v3 .article-v3-root .article-capabilities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  body.v3 .article-v3-root [style*="font-size: 2.5rem"] {
    font-size: 1.7rem !important;
  }

  body.v3 .article-v3-root [style*="font-size: 1.8rem"] {
    font-size: 1.35rem !important;
  }

  body.v3 .article-v3-root [style*="padding: 3rem"] {
    padding: 1.25rem !important;
  }

  body.v3 .article-v3-root [style*="padding: 2.5rem"] {
    padding: 1.1rem !important;
  }

  body.v3 .article-v3-root [style*="display: grid"][style*="minmax(250px"],
  body.v3 .article-v3-root [style*="display: grid"][style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
  }

  body.v3 .article-v3-root [style*="display: flex"][style*="gap: 3rem"],
  body.v3 .article-v3-root [style*="display: flex"][style*="gap: 2.5rem"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  body.v3 .article-v3-root a.btn-primary,
  body.v3 .article-v3-root .btn-primary,
  body.v3 .article-v3-root .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  body.v3 .blog-v3-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.v3 .blog-v3-hero__actions .btn {
    width: 100%;
  }

  body.v3 .blog-v3-newsletter__form {
    flex-direction: column;
    align-items: stretch;
  }

  body.v3 .blog-v3-newsletter__form .btn {
    width: 100%;
  }
}
