/* ─── AUTO SCROLL ANIMATIONS (no extra classes needed) ─── */
.sec .sec-label,
.sec .sec-title,
.sec .sec-sub,
.sec .row>[class*="col-"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sec .sec-label.is-visible,
.sec .sec-title.is-visible,
.sec .sec-sub.is-visible,
.sec .row>[class*="col-"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── DESIGN TOKENS ─── */
:root {
  /* Primary brand: #0A3161 and derived shades */
  --brand: #0A3161;
  --brand-dark: #061e3e;
  --brand-mid: #1a5296;
  --brand-light: #dce8f5;
  --brand-xlight: #eef3fa;

  /* Hero gradient */
  --hero-start: #040f1e;
  --hero-mid: #0A3161;
  --hero-end: #1a5296;

  /* CTA gradient */
  --cta-start: #040f1e;
  --cta-mid: #0A3161;
  --cta-end: #1a5296;

  /* Orange CTA buttons */
  --orange: #f07020;
  --orange-dark: #d85e10;
  --orange-light: #fff0e6;

  /* Neutrals */
  --navy: #030c18;
  --body-bg: #f0f3f8;
  --white: #ffffff;
  --border: #cdd8ea;
  --text: #111827;
  --muted: #566070;

  /* Blog detail */
  --sidebar-w: 290px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Urbanist', sans-serif;
  background: var(--body-bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ─── NAVBAR ─── */
.navbar {
  background: #fff !important;
  border-bottom: 1px solid #cdd8ea;
  padding: 0.6rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.nb-icon {
  width: 30px;
  height: 30px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nb-icon i {
  color: #fff;
  font-size: 0.85rem;
}

.brand-word {
  color: var(--text);
}

.brand-hl {
  color: var(--brand);
}

.navbar .nav-link {
  color: #4a6070 !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem !important;
  transition: color 0.15s;
}

.navbar .nav-link:hover {
  color: var(--brand) !important;
}

.btn-nav-demo {
  background: var(--navy);
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.48rem 1.2rem;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-nav-demo:hover {
  background: #0A3161;
  color: #fff;
}

/* ─── HERO (main landing page) ─── */
.hero {
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(155deg, rgba(4, 15, 30, 0.9) 0%, rgba(10, 49, 97, 0.85) 55%, rgba(26, 82, 150, 0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -80px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 82, 150, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.77rem;
  font-weight: 600;
  padding: 0.3rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 1.6rem;
}

.hero-badge i {
  color: var(--orange);
}

.hero h1 {
  font-size: 2.9rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.13;
}

.hero h1 .accent {
  color: var(--orange);
  display: block;
}

.hero-p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  max-width: 500px;
  margin: 1.2rem 0 2.2rem;
  line-height: 1.75;
}

.btn-hero-primary {
  background: var(--orange-dark);
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.72rem 1.55rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s, transform 0.15s;
}

.btn-hero-primary:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}

.btn-hero-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.2s;
}

.btn-hero-outline:hover {
  border-color: #fff;
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.83rem;
  font-weight: 500;
}

.hero-trust-item i {
  color: #fff;
  font-size: 1rem;
}

/* ─── SECTION COMMONS ─── */
.sec {
  padding: 76px 0;
}

.sec-white {
  background: #fff;
}

.sec-gray {
  background: var(--body-bg);
}

.sec-label {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.sec-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.22;
  margin-bottom: 0.7rem;
}

.sec-sub {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.72;
}

/* ─── FEATURE CARD ─── */
.fc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.55rem 1.45rem;
  height: 100%;
  transition: box-shadow 0.22s, transform 0.18s;
}

.fc:hover {
  box-shadow: 0 6px 30px rgba(26, 107, 138, 0.11);
  transform: translateY(-2px);
}

.fc-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.ic-blue {
  background: var(--brand-light);
  color: var(--brand);
}

.ic-orange {
  background: var(--orange-light);
  color: var(--orange);
}

.ic-sky {
  background: #dce8f5;
  color: #1a5296;
}

.ic-purple {
  background: #f2eeff;
  color: #7c3aed;
}

.ic-green {
  background: #e8faf0;
  color: #16a34a;
}

.fc h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.fc p {
  font-size: 0.855rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.62;
}

/* ─── LIFECYCLE NUMBERED ─── */
.lc-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

/* ─── STEPPER ─── */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 2.4rem auto 3.2rem;
  max-width: 620px;
}

.s-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.s-dot .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.s-dot span {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.s-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 38px;
  margin-top: 6px;
}

/* ─── COMPARISON ─── */
.cmp-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  height: 100%;
}

.cmp-card.bad {
  border-color: #fca5a5;
}

.cmp-card.good {
  border-color: var(--brand);
}

.cmp-head {
  padding: 0.95rem 1.45rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.cmp-head.bad {
  background: #fff1f1;
  color: #b91c1c;
}

.cmp-head.good {
  background: var(--brand-xlight);
  color: var(--brand-dark);
}

.cmp-head-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.bad .cmp-head-icon {
  background: #fca5a5;
  color: #b91c1c;
}

.good .cmp-head-icon {
  background: var(--brand);
  color: #fff;
}

.cmp-body {
  background: #fff;
  padding: 0.4rem 0;
}

.cmp-row {
  padding: 0.65rem 1.45rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text);
  border-bottom: 1px solid #f0f5f8;
}

.cmp-row:last-child {
  border-bottom: none;
}

.cmp-row i {
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.i-bad {
  color: #ef4444;
}

.i-good {
  color: var(--brand);
}

/* ─── FROM LAND CARD GRID ─── */
.lc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.45rem 1.5rem;
  height: 100%;
  text-align: left;
  transition: box-shadow 0.22s, transform 0.18s;
}

.lc-card:hover {
  box-shadow: 0 6px 30px rgba(26, 107, 138, 0.11);
  transform: translateY(-2px);
}

.lc-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.lc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lc-step-num {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 50px;
  padding: 0.16rem 0.6rem;
  letter-spacing: 0.04em;
}

.lc-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.lc-card p {
  font-size: 0.855rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.62;
}

/* ─── STAKEHOLDER ─── */
.sk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.45rem 1.6rem;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.22s, transform 0.18s;
}

.sk-card:hover {
  box-shadow: 0 6px 30px rgba(26, 107, 138, 0.11);
  transform: translateY(-2px);
}

.sk-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.95rem;
}

.sk-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.sk-card p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.58;
}

/* ─── BLOG LISTING CARDS (homepage insights section) ─── */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.22s, transform 0.18s;
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(26, 107, 138, 0.13);
  transform: translateY(-3px);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.blog-img-1 {
  background: linear-gradient(135deg, #0A3161 0%, #1a5296 100%);
}

.blog-img-2 {
  background: linear-gradient(135deg, #040f1e 0%, #0A3161 100%);
}

.blog-img-3 {
  background: linear-gradient(135deg, #0d2550 0%, #1a5296 100%);
}

.blog-body {
  padding: 1.4rem 1.4rem 1.6rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.blog-tag {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-date {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-date i {
  font-size: 0.8rem;
}

.blog-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.blog-card p {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.blog-read-more {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s, color 0.15s;
}

.blog-read-more:hover {
  color: var(--brand-dark);
  gap: 9px;
}

/* ─── CTA SECTION ─── */
.cta-sec {
  background: linear-gradient(155deg, #040f1e 0%, #0A3161 55%, #1a5296 100%);
  padding: 78px 0;
  text-align: center;
}

.cta-sec h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.cta-sec>.container>p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  max-width: 520px;
  margin: 0 auto 2.2rem;
  line-height: 1.72;
}

.btn-cta-orange {
  background: var(--orange-dark);
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 0.93rem;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s, transform 0.15s;
}

.btn-cta-orange:hover {
  background: var(--orange);
  color: #fff;
}

.btn-cta-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.73rem 1.45rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.2s;
}

.btn-cta-outline:hover {
  border-color: #fff;
  color: #fff;
}

.cta-links {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.cta-links a {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.83rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-links a:hover {
  color: var(--orange);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy);
  padding: 1.2rem 0;
}

.ft-brand {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ft-icon {
  width: 26px;
  height: 26px;
  background: var(--brand);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ft-icon i {
  color: #fff;
  font-size: 0.72rem;
}

.ft-brand .tc {
  color: var(--brand-mid);
}

.ft-copy {
  color: #fff;
  font-size: 0.8rem;
}

.ft-rights {
  display: inline;
}


/* ═══════════════════════════════════════════════════════
   BLOG DETAIL PAGE
   All classes below are exclusive to blog-detail.html
   and do not affect the main landing page.
═══════════════════════════════════════════════════════ */

/* ─── Breadcrumb bar ─── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
}

.breadcrumb {
  margin: 0;
  font-size: 0.82rem;
}

.breadcrumb-item a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--muted);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #b0bec5;
}

/* ─── Blog hero ─── */
.blog-hero {
  background: linear-gradient(155deg, #040f1e 0%, #0A3161 52%, #1a5296 100%);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 80% at 78% 35%, rgba(26, 82, 150, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 44px;
}

/* Category tag — swap text & bg colour per post */
.blog-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.3rem;
  background: var(--orange);
  color: #fff;
}

.blog-hero h1 {
  font-size: 2.55rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.17;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

/* Meta pills: date · reading time · views */
.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
}

.meta-pill i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.meta-pill.reading {
  background: rgba(240, 112, 32, 0.18);
  border-color: rgba(240, 112, 32, 0.4);
  color: #ffb380;
  font-weight: 700;
}

.meta-pill.reading i {
  opacity: 1;
  color: var(--orange);
}

/* Feature image */
.blog-feature-wrap {
  position: relative;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  margin-top: 2.2rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
}

.blog-feature-img {
  width: 100%;
  height: 400px;
  background: linear-gradient(140deg, #0A3161 0%, #1a5296 50%, #2563a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.fi-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.fi-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 4%;
  opacity: 0.1;
}

.bldg {
  background: #fff;
  border-radius: 2px 2px 0 0;
  flex-shrink: 0;
}

.fi-centre {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fi-centre i {
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.13);
}

.fi-caption {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ─── 2-column layout ─── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 2.2rem;
  align-items: start;
  padding: 44px 0 80px;
}

/* ─── Article card ─── */
.blog-article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.6rem 2.8rem;
  min-width: 0;
  overflow: hidden;
}

/* ─── Prose typography ─── */
.prose {
  color: #2d3748;
}

.prose h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand);
  margin: 2.4rem 0 0.9rem;
  padding-top: 0.6rem;
  border-top: 2px solid var(--brand-light);
  line-height: 1.28;
  scroll-margin-top: 90px;
}

.prose h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.prose h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.7rem 0 0.55rem;
  scroll-margin-top: 90px;
}

.prose p {
  font-size: 0.975rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
  color: #2d3748;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--brand-dark);
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-left: 1.45rem;
  margin-bottom: 1.1rem;
}

.prose li {
  font-size: 0.975rem;
  line-height: 1.82;
  margin-bottom: 0.4rem;
  color: #2d3748;
}

.prose li::marker {
  color: var(--brand);
  font-weight: 700;
}

/* Lead paragraph */
.prose .lead-p {
  font-size: 1.05rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

/* Blockquote */
.prose blockquote {
  border-left: 4px solid var(--brand);
  background: var(--brand-xlight);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.5rem;
  margin: 1.8rem 0;
}

.prose blockquote p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.65;
  margin: 0;
}

/* Tables */
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border: 1.5px solid var(--brand-light);
  border-radius: 12px;
  /* Shadow scroll indicator */
  background: 
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 0 100%,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.08), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.08), rgba(0,0,0,0)) 0 100%;
  background-repeat: no-repeat;
  background-color: #fff;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

.prose table thead,
.prose table tbody {
  display: table;
  width: 100%;
  min-width: 650px; /* Ensures table has enough space to be readable */
}

@media (max-width: 767px) {
  .prose table thead,
  .prose table tbody {
    min-width: 550px;
  }
}

.prose th {
  background: var(--brand-xlight);
  color: var(--brand-dark);
  font-weight: 800;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--brand-light);
  text-transform: uppercase;
  white-space: nowrap; /* Keep headers on one line for better scroll UX */
}

.prose td {
  padding: 0.95rem 1.25rem;
  font-size: 0.93rem;
  color: #374151;
  border-bottom: 1px solid #f0f5fa;
  line-height: 1.6;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:nth-child(even) {
  background: #fcfdfe;
}

.prose tbody tr:hover {
  background: #f0f7ff;
  transition: background 0.15s;
}

/* Responsive table wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.8rem 0;
  border-radius: 12px;
}

.table-responsive table {
  margin: 0;
}

/* Callout / info box */
.callout {
  background: linear-gradient(135deg, var(--brand-xlight) 0%, #e4edf8 100%);
  border: 1px solid var(--brand-light);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.callout .cl-icon {
  font-size: 1.25rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.callout .cl-body {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.65;
}

/* Definition / key-term box */
.def-box {
  background: #fff;
  border: 1.5px solid var(--brand-light);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin: 1.8rem 0;
}

.def-box .def-label {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.def-box .def-label i {
  font-size: 0.85rem;
}

.def-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.def-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.def-term {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand);
  min-width: 140px;
  flex-shrink: 0;
  line-height: 1.5;
}

.def-desc {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.65;
}

/* Step / option cards */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--brand-xlight);
  border: 1px solid var(--brand-light);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #2d3748;
  line-height: 1.65;
}

.step-item strong {
  color: var(--brand-dark);
}

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.tags-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.tag-pill {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.tag-pill:hover {
  background: var(--brand);
  color: #fff;
}

/* ─── Sidebar ─── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  position: sticky;
  top: 76px;
}

.s-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.s-card-head {
  padding: 0.8rem 1.15rem;
  background: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-card-head h6 {
  font-size: 0.79rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.s-card-head i {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.s-card-body {
  padding: 0.9rem 1rem;
}

/* Reading progress */
.prog-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.prog-row span:last-child {
  color: var(--brand);
  font-weight: 800;
}

.prog-track {
  background: var(--border);
  border-radius: 50px;
  height: 7px;
  overflow: hidden;
}

.prog-fill {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-mid) 100%);
  height: 100%;
  border-radius: 50px;
  width: 0%;
  transition: width 0.15s ease;
}

/* Table of contents */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin: 0;
}

.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.835rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.42;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.toc-link:hover,
.toc-link.active {
  background: var(--brand-xlight);
  color: var(--brand);
  border-left-color: var(--brand);
}

.toc-n {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand-mid);
  min-width: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.toc-link.active .toc-n {
  color: var(--brand);
}

/* Social share */
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.sh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.52rem 0.7rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.14s;
  border: none;
  cursor: pointer;
  font-family: 'Urbanist', sans-serif;
}

.sh-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.sh-twitter {
  background: #000;
  color: #fff;
}

.sh-linkedin {
  background: #0077b5;
  color: #fff;
}

.sh-whatsapp {
  background: #25D366;
  color: #fff;
}

.sh-copy {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.sh-copy.copied {
  background: #e6faf0;
  color: #15803d;
}

/* ─── Related posts ─── */
.related-section {
  padding-bottom: 80px;
}

.related-section h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.rel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.18s;
}

.rel-card:hover {
  box-shadow: 0 6px 28px rgba(10, 49, 97, 0.12);
  transform: translateY(-2px);
}

.rel-img {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.45);
}

.ri-1 {
  background: linear-gradient(135deg, #040f1e 0%, #0A3161 100%);
}

.ri-2 {
  background: linear-gradient(135deg, #0A3161 0%, #1a5296 100%);
}

.ri-3 {
  background: linear-gradient(135deg, #0e2350 0%, #1a5296 100%);
}

.rel-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.rel-tag {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 0.38rem;
}

.rel-card h5 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.rel-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}


/* ═══════════════════════════════════════════════════════
   BLOG LISTING PAGE (archive.php)
   All classes prefixed with .arch- or .apc-
═══════════════════════════════════════════════════════ */

/* ─── Archive Hero ─── */
.arch-hero {
  background: linear-gradient(155deg, #040f1e 0%, #0A3161 55%, #1a5296 100%);
  padding: 52px 0 56px;
  position: relative;
  overflow: hidden;
}

.arch-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 80% 30%, rgba(26, 82, 150, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(10, 49, 97, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.arch-hero-inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.arch-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.arch-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.arch-breadcrumb a:hover {
  color: #fff;
}

.arch-bc-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
}

.arch-breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Label pill */
.arch-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.24rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.arch-hero-label i {
  color: var(--orange);
  font-size: 0.8rem;
}

/* Title + desc */
.arch-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.arch-hero-h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 0.65rem;
  max-width: 680px;
}

.arch-hero-desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.96rem;
  line-height: 1.72;
  max-width: 600px;
  margin: 0;
}

/* Stats pills */
.arch-hero-stats {
  display: flex;
  gap: 0.9rem;
  flex-shrink: 0;
  align-self: flex-end;
  flex-wrap: wrap;
}

.arch-stat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.65rem 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.arch-stat-pill i {
  color: var(--orange);
  font-size: 1rem;
}

.arch-stat-pill strong {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.arch-stat-pill span {
  color: rgba(255, 255, 255, 0.6);
}

/* Search bar */
.arch-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(4, 15, 30, 0.22);
  max-width: 680px;
}

.arch-search-icon {
  color: var(--muted);
  font-size: 1rem;
  padding: 0 1rem 0 1.2rem;
  flex-shrink: 0;
}

.arch-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  padding: 0.9rem 0;
  background: transparent;
  min-width: 0;
}

.arch-search-input::placeholder {
  color: #a0aec0;
}

.arch-search-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.arch-search-btn:hover {
  background: var(--orange-dark);
}

/* ─── Filter bar ─── */
.arch-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(10, 49, 97, 0.05);
}

.arch-filter-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.7rem 0;
}

.arch-filter-wrap::-webkit-scrollbar {
  display: none;
}

.arch-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.arch-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.arch-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--body-bg);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.arch-filter-pill:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}

.arch-filter-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.arch-pill-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.06rem 0.45rem;
  min-width: 20px;
  text-align: center;
}

.arch-filter-pill:not(.active) .arch-pill-count {
  background: var(--border);
  color: var(--muted);
}

/* ─── Page body layout ─── */
.arch-body {
  padding: 44px 0 80px;
}

.arch-layout {
  display: block;
}

/* ─── Grid heading ─── */
.arch-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  margin-top: 2.4rem;
}

.arch-grid-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

/* ─── Featured post card ─── */
.apc-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.18s;
}

.apc-featured:hover {
  box-shadow: 0 10px 40px rgba(10, 49, 97, 0.13);
  transform: translateY(-3px);
}

.apc-featured-img-wrap {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.apc-featured-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apc-featured-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
}

.apc-featured-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.26rem 0.8rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.15s;
}

.apc-featured-cat-badge:hover {
  background: var(--orange-dark);
}

.apc-featured-body {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apc-featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.apc-featured-date,
.apc-featured-read {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--muted);
}

.apc-featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.28;
  margin-bottom: 0.85rem;
}

.apc-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.apc-featured-title a:hover {
  color: var(--brand);
}

.apc-featured-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 1.4rem;
}

.apc-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: gap 0.2s, color 0.15s;
}

.apc-featured-link:hover {
  color: var(--brand-dark);
  gap: 10px;
}

/* ─── Post grid ─── */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ─── Mobile Category Dropdown ─── */
.arch-filter-mobile {
  display: none;
  margin-top: 1rem;
}

.arch-cat-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230A3161' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
}

.arch-cat-select:focus {
  border-color: var(--brand);
}

/* ─── Standard post card ─── */
.apc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.18s;
}

.apc-card:hover {
  box-shadow: 0 8px 32px rgba(10, 49, 97, 0.12);
  transform: translateY(-3px);
}

.apc-card-img-wrap {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.apc-card-img-real {
  width: 100%;
  height: 188px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.apc-card:hover .apc-card-img-real {
  transform: scale(1.04);
}

.apc-card-img-placeholder {
  width: 100%;
  height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.22);
  transition: transform 0.4s ease;
}

.apc-card:hover .apc-card-img-placeholder {
  transform: scale(1.04);
}

.apc-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.apc-card-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.apc-card-cat {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s;
}

.apc-card-cat:hover {
  color: var(--orange);
}

.apc-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: auto;
}

.apc-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.38;
  margin-bottom: 0.55rem;
}

.apc-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.apc-card-title a:hover {
  color: var(--brand);
}

.apc-card-excerpt {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.apc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin-top: auto;
}

.apc-card-read {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--muted);
}

.apc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: gap 0.2s, color 0.15s;
}

.apc-card-link:hover {
  color: var(--brand-dark);
  gap: 8px;
}

/* Gradient placeholder backgrounds — cycling */
.apc-img-1 {
  background: linear-gradient(135deg, #0A3161 0%, #1a5296 100%);
}

.apc-img-2 {
  background: linear-gradient(135deg, #040f1e 0%, #0A3161 100%);
}

.apc-img-3 {
  background: linear-gradient(135deg, #0d2550 0%, #1a5296 100%);
}

.apc-img-4 {
  background: linear-gradient(135deg, #061e3e 0%, #2563a8 100%);
}

.apc-img-5 {
  background: linear-gradient(135deg, #0c2a4a 0%, #1a5296 100%);
}

.apc-img-6 {
  background: linear-gradient(135deg, #040f1e 0%, #0d2550 100%);
}

/* ─── Pagination ─── */
.arch-pagination {
  margin-top: 2.8rem;
}

.arch-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.arch-pagination .page-numbers li {
  margin: 0;
}

.arch-pagination .page-numbers a,
.arch-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Urbanist', sans-serif;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
}

.arch-pagination .page-numbers a:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}

.arch-pagination .page-numbers .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 800;
}

.arch-pagination .page-numbers .dots {
  border: none;
  background: transparent;
  color: var(--muted);
}

.arch-pagination .page-numbers .prev,
.arch-pagination .page-numbers .next {
  gap: 6px;
  padding: 0 1rem;
  background: var(--brand-xlight);
  border-color: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
}

.arch-pagination .page-numbers .prev:hover,
.arch-pagination .page-numbers .next:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ─── Empty state ─── */
.arch-empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 4rem 2rem;
  text-align: center;
}

.arch-empty-icon {
  width: 72px;
  height: 72px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.4rem;
}

.arch-empty-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.arch-empty-desc {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 1.8rem;
  line-height: 1.72;
}

/* ─── Sidebar cards ─── */
.arch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  position: sticky;
  top: 60px;
}

.arch-sb-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.arch-sb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.1rem;
  background: var(--brand);
}

.arch-sb-head h5 {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.arch-sb-head i {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.arch-sb-body {
  padding: 1rem;
}

.arch-sb-body-flush {
  padding: 0.3rem 0;
}

/* Search in sidebar */
.arch-sb-search {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--body-bg);
  transition: border-color 0.18s;
}

.arch-sb-search:focus-within {
  border-color: var(--brand);
  background: #fff;
}

.arch-sb-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  min-width: 0;
}

.arch-sb-search-btn {
  background: var(--brand);
  border: none;
  color: #fff;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.18s;
  flex-shrink: 0;
}

.arch-sb-search-btn:hover {
  background: var(--brand-dark);
}

/* Category list */
.arch-sb-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arch-sb-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-left: 2.5px solid transparent;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.arch-sb-cat-link:hover,
.arch-sb-cat-link.active {
  background: var(--brand-xlight);
  color: var(--brand);
  border-left-color: var(--brand);
}

.arch-sb-cat-count {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 50px;
  min-width: 22px;
  text-align: center;
}

.arch-sb-cat-link.active .arch-sb-cat-count,
.arch-sb-cat-link:hover .arch-sb-cat-count {
  background: var(--brand);
  color: #fff;
}

/* Recent posts */
.arch-sb-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arch-sb-recent-item {
  border-bottom: 1px solid var(--border);
}

.arch-sb-recent-item:last-child {
  border-bottom: none;
}

.arch-sb-recent-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 0.8rem 1.1rem;
  text-decoration: none;
  transition: background 0.14s;
}

.arch-sb-recent-link:hover {
  background: var(--brand-xlight);
}

.arch-sb-recent-thumb {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}

.arch-sb-recent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arch-sb-recent-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.35);
}

.arch-sb-recent-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.arch-sb-recent-cat {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.arch-sb-recent-title {
  font-size: 0.835rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arch-sb-recent-link:hover .arch-sb-recent-title {
  color: var(--brand);
}

.arch-sb-recent-meta {
  font-size: 0.73rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Tags cloud */
.arch-sb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.arch-sb-tag {
  background: var(--body-bg);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.24rem 0.7rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.arch-sb-tag:hover,
.arch-sb-tag.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   MOBILE TOC TOGGLE
   Shown only on screens ≤ 991px via media query below.
   Hidden on desktop — .toc-collapsible always visible there.
═══════════════════════════════════════════════════════ */
.toc-mobile-toggle {
  display: none;
  /* changed to flex inside ≤991px media query */
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.72rem 1.1rem;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.4rem;
  transition: background 0.2s;
}

.toc-mobile-toggle:hover {
  background: var(--brand-dark);
}

.toc-mobile-toggle .chevron {
  transition: transform 0.25s;
}

.toc-mobile-toggle.open .chevron {
  transform: rotate(180deg);
}

/* Desktop: TOC list always visible */
.toc-collapsible {
  display: block;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP  ≤ 1199px
═══════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  :root {
    --sidebar-w: 265px;
  }

  /* Blog hero */
  .blog-hero h1 {
    font-size: 2.2rem;
  }

  .blog-article {
    padding: 2.2rem 2rem;
  }

  /* Archive */
  .arch-layout {
    grid-template-columns: 1fr 245px;
    gap: 1.8rem;
  }

  .arch-hero-h1 {
    font-size: 2rem;
  }

  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET LANDSCAPE  ≤ 991px
   • Single-column layout
   • Sidebar becomes a 2-col horizontal strip below article
   • Mobile TOC toggle appears
═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  /* Blog layout: stack into single column */
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 32px 0 60px;
  }

  /* Sidebar: no longer sticky, sits BELOW article */
  .blog-sidebar {
    position: static;
    top: auto;
    order: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Progress card spans full width */
  .blog-sidebar>.s-card:first-child {
    grid-column: 1 / -1;
  }

  /* Show mobile TOC toggle button */
  .toc-mobile-toggle {
    display: flex;
  }

  /* TOC collapsible: closed by default on mobile */
  .toc-collapsible {
    display: none;
  }

  .toc-collapsible.open {
    display: block;
  }

  /* Share: 4 buttons in one row on tablet */
  .share-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Blog hero */
  .blog-hero {
    padding: 48px 0 0;
  }

  .blog-hero-content {
    padding-bottom: 36px;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-feature-img {
    height: 320px;
  }

  .blog-feature-wrap {
    margin-top: 1.8rem;
  }

  .blog-article {
    padding: 2rem 1.8rem;
  }

  /* Archive: sidebar drops below */
  .arch-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .arch-sidebar {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .arch-sidebar .arch-sb-card:first-child {
    grid-column: 1 / -1;
  }

  .arch-body {
    padding: 28px 0 52px;
  }

  .arch-hero {
    padding: 40px 0 44px;
  }

  .arch-hero-h1 {
    font-size: 1.85rem;
  }

  .arch-hero-stats {
    display: none;
  }

  .apc-featured {
    grid-template-columns: 1fr;
  }

  .apc-featured-img-wrap {
    min-height: 220px;
  }

  .apc-featured-body {
    padding: 1.6rem 1.5rem;
  }

  .apc-featured-title {
    font-size: 1.25rem;
  }

  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .arch-filter-pills {
    display: none;
  }

  .arch-filter-mobile {
    display: block;
  }

  .arch-filter-wrap {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET PORTRAIT / LARGE MOBILE  ≤ 767px
═══════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── Landing page ── */
  .hero {
    padding: 56px 0 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-p {
    font-size: 0.92rem;
  }

  .hero-trust {
    gap: 1rem;
  }

  .sec {
    padding: 52px 0;
  }

  .sec-title {
    font-size: 1.55rem;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .ft-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .ft-rights {
    display: block;
  }

  /* ── Blog hero ── */
  .blog-hero {
    padding: 40px 0 0;
  }

  .blog-hero-content {
    padding-bottom: 30px;
  }

  .blog-hero h1 {
    font-size: 1.75rem;
    line-height: 1.22;
    margin-bottom: 1rem;
  }

  .blog-cat-tag {
    font-size: 0.68rem;
    margin-bottom: 0.95rem;
  }

  .blog-meta-row {
    gap: 0.4rem;
  }

  .meta-pill {
    font-size: 0.78rem;
    padding: 0.22rem 0.7rem;
  }

  .blog-feature-wrap {
    margin-top: 1.4rem;
    border-radius: 14px 14px 0 0;
  }

  .blog-feature-img {
    height: 210px;
  }

  .fi-centre i {
    font-size: 3.5rem;
  }

  .fi-caption {
    font-size: 0.7rem;
  }

  /* ── Blog layout ── */
  .blog-layout {
    padding: 22px 0 48px;
    gap: 1.1rem;
  }

  /* Sidebar: single column on mobile */
  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-sidebar>.s-card:first-child {
    grid-column: auto;
  }

  /* Share: 2 × 2 */
  .share-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ── Article ── */
  .blog-article {
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
  }

  /* ── Prose ── */
  .prose h2 {
    font-size: 1.2rem;
    margin: 2rem 0 0.7rem;
  }

  .prose h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
  }

  .prose p,
  .prose li {
    font-size: 0.925rem;
    line-height: 1.78;
  }

  .prose .lead-p {
    font-size: 0.975rem;
  }

  .prose blockquote {
    padding: 0.9rem 1.1rem;
    margin: 1.4rem 0;
  }

  .prose blockquote p {
    font-size: 0.92rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25rem;
  }

  /* ── Callout ── */
  .callout {
    padding: 1rem 1.1rem;
    gap: 10px;
    margin: 1.4rem 0;
  }

  .callout .cl-body {
    font-size: 0.875rem;
  }

  /* ── Def box ── */
  .def-box {
    padding: 1.1rem;
    margin: 1.4rem 0;
  }

  .def-item {
    flex-direction: column;
    gap: 3px;
    padding: 0.6rem 0;
  }

  .def-term {
    min-width: unset;
    font-size: 0.84rem;
  }

  .def-desc {
    font-size: 0.84rem;
  }

  /* ── Step cards ── */
  .step-item {
    padding: 0.85rem 1rem;
  }

  .step-item p {
    font-size: 0.875rem;
  }

  /* ── Article tags ── */
  .article-tags {
    margin-top: 2rem;
    padding-top: 1.1rem;
  }

  .tag-pill {
    font-size: 0.72rem;
  }

  /* ── Related ── */
  .related-section {
    padding-bottom: 52px;
  }

  .related-section h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .rel-img {
    height: 130px;
  }

  /* ── Landing stepper ── */
  .stepper {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0;
    padding-bottom: 4px;
  }

  .s-dot span {
    font-size: 0.62rem;
    white-space: normal;
    text-align: center;
    max-width: 56px;
    line-height: 1.2;
  }

  .s-line {
    min-width: 18px;
  }

  /* ── Archive ── */
  .arch-hero {
    padding: 32px 0 36px;
  }

  .arch-hero-h1 {
    font-size: 1.6rem;
  }

  .arch-hero-desc {
    font-size: 0.88rem;
  }

  .arch-search-bar {
    max-width: 100%;
  }

  .arch-filter-label {
    display: none;
  }

  .arch-body {
    padding: 20px 0 44px;
  }

  .arch-sidebar {
    grid-template-columns: 1fr;
  }

  .arch-sidebar .arch-sb-card:first-child {
    grid-column: auto;
  }

  .arch-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .apc-featured-title {
    font-size: 1.15rem;
  }

  .apc-featured-excerpt {
    font-size: 0.875rem;
  }

  .arch-grid-head {
    margin-top: 1.8rem;
    margin-bottom: 1rem;
  }

  .arch-grid-title {
    font-size: 1.05rem;
  }

  .arch-empty {
    padding: 2.5rem 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  ≤ 480px
═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Landing page ── */
  .hero {
    background-position: 70% center;
    padding: 44px 0 52px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-p {
    margin: 1rem 0 1.8rem;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    font-size: 0.86rem;
    padding: 0.65rem 1.1rem;
  }

  .sec {
    padding: 44px 0;
  }

  .sec-title {
    font-size: 1.35rem;
  }

  .cta-sec {
    padding: 52px 0;
  }

  .cta-sec h2 {
    font-size: 1.5rem;
  }

  /* ── Stepper ── */
  .s-line {
    min-width: 6px;
  }

  .s-dot span {
    font-size: 0.56rem;
    max-width: 44px;
  }

  /* ── Blog hero ── */
  .blog-hero {
    padding: 32px 0 0;
  }

  .blog-hero h1 {
    font-size: 1.5rem;
  }

  .blog-feature-img {
    height: 175px;
  }

  .fi-centre i {
    font-size: 2.8rem;
  }

  /* ── Article ── */
  .blog-article {
    padding: 1.2rem 1rem;
    border-radius: 10px;
  }

  /* ── Prose ── */
  .prose h2 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.6rem;
  }

  .prose h3 {
    font-size: 1rem;
  }

  .prose p,
  .prose li {
    font-size: 0.9rem;
  }

  .prose .lead-p {
    font-size: 0.935rem;
  }

  /* ── Callout: stack icon + text ── */
  .callout {
    flex-direction: column;
    gap: 6px;
    padding: 0.9rem;
  }

  .callout .cl-icon {
    margin-top: 0;
    font-size: 1.1rem;
  }

  .callout .cl-body {
    font-size: 0.855rem;
  }

  /* ── Def box ── */
  .def-box {
    padding: 0.9rem;
  }

  .def-box .def-label {
    font-size: 0.66rem;
  }

  /* ── Sidebar cards ── */
  .s-card-head h6 {
    font-size: 0.74rem;
  }

  .toc-link {
    font-size: 0.79rem;
    padding: 0.42rem 0.45rem;
  }

  .sh-btn {
    font-size: 0.76rem;
    padding: 0.48rem 0.5rem;
  }

  .share-grid {
    gap: 0.45rem;
  }

  /* Breadcrumb: truncate on tiny screens */
  .breadcrumb-item.active {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
  }

  /* Related: single column */
  .related-section .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Blog layout */
  .blog-layout {
    padding: 16px 0 36px;
  }

  /* Archive */
  .arch-hero {
    padding: 24px 0 28px;
  }

  .arch-hero-h1 {
    font-size: 1.4rem;
  }

  .arch-hero-label {
    font-size: 0.68rem;
  }

  .arch-search-input {
    font-size: 0.86rem;
  }

  .arch-search-btn {
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
  }

  .apc-card-img-real,
  .apc-card-img-placeholder {
    height: 160px;
  }

  .arch-pagination .page-numbers a,
  .arch-pagination .page-numbers span {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — EXTRA SMALL  ≤ 360px
═══════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .blog-hero h1 {
    font-size: 1.3rem;
  }

  .blog-feature-img {
    height: 148px;
  }

  .meta-pill {
    font-size: 0.7rem;
    padding: 0.18rem 0.55rem;
  }

  .blog-article {
    padding: 1rem 0.85rem;
  }

  .prose h2 {
    font-size: 1rem;
  }

  .prose p,
  .prose li {
    font-size: 0.875rem;
  }

  .share-grid {
    grid-template-columns: 1fr;
  }

  .toc-mobile-toggle {
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
  }

  /* Archive */
  .arch-hero-h1 {
    font-size: 1.25rem;
  }

  .arch-search-btn {
    display: none;
  }

  .arch-search-input {
    padding: 0.75rem;
  }

  .arch-filter-pill {
    font-size: 0.72rem;
    padding: 0.26rem 0.7rem;
  }
}

/* ─── BLOG SIDEBAR: hide progress + TOC on tablet & mobile ─── */
@media (max-width: 991px) {

  #progress-card,
  #toc-card {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT MODAL
═══════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.ct-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.ct-overlay.ct-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal card ── */
.ct-modal {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(4, 15, 30, 0.5);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.ct-overlay.ct-open .ct-modal {
  transform: translateY(0) scale(1);
}

/* ── Close button ── */
.ct-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0a3161;
  border: 1px solid #0a3161;
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

/* ── Panels ── */
.ct-panel {
  display: flex;
  flex-direction: column;
}

/* Left — brand */
.ct-panel-left {
  flex: 0 0 38%;
  background: linear-gradient(155deg, #040f1e 0%, #0A3161 55%, #1a5296 100%);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.ct-panel-left::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.ct-brand-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 22px;
}

.ct-panel-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.28;
  margin-bottom: 12px;
}

.ct-panel-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin-bottom: 28px;
}

.ct-trust-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct-trust-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.ct-trust-list li i {
  color: #64d980;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ct-panel-badge {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.ct-panel-badge i {
  color: #64d980;
  font-size: 0.95rem;
}

/* Right — form */
.ct-panel-right {
  flex: 1;
  background: #fff;
  padding: 36px 36px 32px;
  overflow-y: auto;
}

.ct-form-head {
  margin-bottom: 24px;
}

.ct-form-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}

.ct-form-head p {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
}

/* ── CF7 field overrides (scoped to modal) ── */
.ct-cf7-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ct-cf7-wrap .cf7-field-group {
  margin-bottom: 16px;
}

.ct-cf7-wrap label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.ct-cf7-wrap label .required {
  color: #ef4444;
  margin-left: 2px;
}

.ct-cf7-wrap input[type="text"],
.ct-cf7-wrap input[type="email"],
.ct-cf7-wrap input[type="tel"],
.ct-cf7-wrap textarea {
  width: 100%;
  border: 1.5px solid #d1dce8;
  border-radius: 9px;
  padding: 10px 14px;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: #f8fafc;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  resize: none;
}

.ct-cf7-wrap input[type="text"]:focus,
.ct-cf7-wrap input[type="email"]:focus,
.ct-cf7-wrap input[type="tel"]:focus,
.ct-cf7-wrap textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 49, 97, 0.09);
}

.ct-cf7-wrap textarea {
  min-height: 90px;
}

.ct-cf7-wrap .btn-contact-submit,
.ct-cf7-wrap input[type="submit"] {
  width: 100%;
  background: var(--brand);
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ct-cf7-wrap .btn-contact-submit:hover,
.ct-cf7-wrap input[type="submit"]:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.ct-cf7-wrap .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 3px;
  display: block;
}

.ct-cf7-wrap .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-family: 'Urbanist', sans-serif;
  border: none !important;
}

.ct-cf7-wrap .wpcf7-mail-sent-ok {
  background: #e8faf0;
  color: #15803d;
}

.ct-cf7-wrap .wpcf7-validation-errors,
.ct-cf7-wrap .wpcf7-mail-sent-ng {
  background: #fff1f1;
  color: #b91c1c;
}

/* ── Mobile: stack panels ── */
@media (max-width: 680px) {
  .ct-modal {
    flex-direction: column;
    max-height: 96vh;
    border-radius: 16px;
  }

  .ct-panel-left {
    flex: none;
    padding: 28px 24px 24px;
  }

  .ct-panel-sub,
  .ct-trust-list,
  .ct-panel-badge {
    display: none;
  }

  .ct-brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .ct-panel-title {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  .ct-panel-right {
    padding: 24px 20px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   THANK YOU PAGE
═══════════════════════════════════════════════════════════ */
.thank-you-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 40px 20px;
}

.thank-you-page .container {
  padding: 0;
  width: 100%;
}

.success-icon-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: #10b981;
  color: #fff;
  font-size: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.success-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border: 2px solid #10b981;
  border-radius: 50%;
  opacity: 0.2;
  animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

.next-steps-card {
  background: var(--brand-xlight);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 32px;
}

.next-steps-card h6 {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
}

.next-steps-card li {
  font-size: 0.9rem;
  color: var(--muted);
}

.next-steps-card li i {
  color: var(--brand);
}

@media (max-width: 767px) {
  .cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-actions .ms-md-3 {
    margin-left: 0 !important;
  }
}

.btn-outline-dark {
  background: transparent;
  color: var(--brand);
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 1.5px solid var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}

.btn-outline-dark:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}