/*
Theme Name: Airway Connect
Theme URI: https://airwayconnect.example
Author: Airway Connect
Description: Dark navy blog/resources theme for the Airway Connect aviation dispatcher career platform. Includes a custom blog CPT, custom taxonomy, ACF field groups, and an ACF options page for the blog listing.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airway-connect
*/

/* ============================================================
   CSS VARIABLES (mirrors the original static design)
   ============================================================ */
:root {
  --navy-950: #070e1b;
  --navy-900: #0b1526;
  --navy-850: #0d1a30;
  --navy-800: #101e38;
  --card: #16243f;
  --card-2: #18294a;
  --card-line: rgba(255, 255, 255, .07);
  --card-line-hover: rgba(99, 131, 255, .45);
  --blue: #2b40d8;
  --blue-700: #2536c4;
  --blue-section: #3742d6;
  --blue-icon: #3a52e6;
  --black: #05080f;
  --white: #fff;
  --muted: #a9b7cf;
  --muted-2: #8b9bb7;
  --muted-on-blue: #d6dbf7;
  --accent-blue: #7e96ff;
  --read: #c4cfe2;
  --maxw: 1536px;
  --readw: 740px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-850);
  color: var(--white);
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.14;
}

p {
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background .16s, transform .12s, border-color .16s, box-shadow .16s;
}

.btn:active {
  transform: scale(.98);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 11px 22px;
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  padding: 10px 22px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .7);
}

.btn-white {
  background: #fff;
  color: var(--blue-700);
  padding: 13px 30px;
  font-weight: 700;
}

.btn-white:hover {
  background: #eef0ff;
}

/* ============================================================
   SKY PLACEHOLDER MEDIA (fallback for posts without an image)
   ============================================================ */
.sky {
  position: absolute;
  inset: 0;
  transition: transform .45s ease;
}

.sky-a {
  background: linear-gradient(135deg, #13294f 0%, #23477e 45%, #e0a45e 118%);
}

.sky-b {
  background: linear-gradient(135deg, #0f1f3d 0%, #2b4f86 60%, #7b8bb5 120%);
}

.sky-c {
  background: linear-gradient(135deg, #161a3a 0%, #3a3f86 55%, #c98a64 120%);
}

.sky-d {
  background: linear-gradient(135deg, #0d2342 0%, #1f5f6e 60%, #e7b35e 120%);
}

.sky-e {
  background: linear-gradient(135deg, #101b3c 0%, #324a8f 55%, #9fae8a 120%);
}

.sky-f {
  background: linear-gradient(135deg, #142036 0%, #2a3f74 55%, #d59a6a 120%);
}

.sky-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 150px 26px at 24% 30%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(ellipse 180px 22px at 72% 20%, rgba(255, 255, 255, .12), transparent 70%),
    radial-gradient(ellipse 120px 18px at 52% 36%, rgba(255, 255, 255, .08), transparent 70%);
}

.sky-plane {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  opacity: .85;
  fill: rgba(8, 10, 17, .82);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 21, 38, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.brand .wordmark {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .03em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 15px;
  color: #eef1f8;
  font-weight: 500;
  opacity: .92;
  transition: opacity .15s;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  color: var(--accent-blue);
  opacity: 1;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   HERO
   ============================================================ */
.blog-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.blog-hero .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.06) brightness(.94);
}

.blog-hero .hero-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 75% 60% at 50% 46%, rgba(9, 16, 29, .42) 0%, rgba(9, 16, 29, .10) 70%, transparent 100%),
    linear-gradient(180deg, rgba(9, 16, 29, .46) 0%, rgba(11, 22, 42, .42) 46%, rgba(13, 26, 48, .70) 84%, var(--navy-850) 100%);
}

.blog-hero .hero-clouds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 320px 56px at 16% 30%, rgba(126, 150, 255, .14), transparent 70%),
    radial-gradient(ellipse 380px 50px at 82% 22%, rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(ellipse 260px 42px at 60% 70%, rgba(126, 150, 255, .08), transparent 70%);
}

.blog-hero .inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 180px 24px 96px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 18px;
}

.blog-hero h1 {
  font-size: 50px;
  color: #fff;
  line-height: 1.06;
  text-shadow: 0 2px 28px rgba(5, 9, 18, .6);
}

.blog-hero p {
  margin: 22px auto 0;
  max-width: 620px;
  color: #e6ecf7;
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 1px 18px rgba(5, 9, 18, .62);
}

.hero-search {
  position: relative;
  max-width: 520px;
  margin: 34px auto 0;
  display: flex;
  align-items: center;
}

.hero-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted-2);
}

.hero-search input {
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  width: 100%;
  background: rgba(7, 14, 27, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--pill);
  padding: 15px 20px 15px 50px;
  backdrop-filter: blur(6px);
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.hero-search input::placeholder {
  color: var(--muted-2);
}

.hero-search input:focus {
  outline: none;
  border-color: var(--card-line-hover);
  background: rgba(7, 14, 27, .72);
  box-shadow: 0 0 0 4px rgba(58, 82, 230, .16);
}

/* ============================================================
   TOOLBAR (category filters)
   ============================================================ */
.toolbar {
  background: var(--navy-850);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.toolbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fbtn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--card-line);
  padding: 9px 16px;
  border-radius: var(--pill);
  white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s;
}

.fbtn:hover {
  color: #fff;
  border-color: var(--card-line-hover);
}

.fbtn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ============================================================
   FEATURED
   ============================================================ */
.feat-wrap {
  padding: 56px 0 8px;
}

.feat-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
  display: block;
}

.feature {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.feature:hover {
  border-color: var(--card-line-hover);
  box-shadow: 0 26px 56px rgba(0, 0, 0, .42);
}

.feature:hover .feat-photo {
  transform: scale(1.04);
}

.feature:hover .sky {
  transform: scale(1.05);
}

.feature .media {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.feat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.feature .cat {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(43, 64, 216, .92);
  padding: 7px 13px;
  border-radius: var(--pill);
  backdrop-filter: blur(4px);
}

.feat-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 8, 15, .55);
  padding: 7px 13px;
  border-radius: var(--pill);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
}

.feature .body {
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 500;
}

.meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: none;
}

.feature h2 {
  font-size: 30px;
  color: #fff;
  line-height: 1.18;
  margin: 18px 0 0;
}

.feature .excerpt {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.66;
  margin-top: 16px;
}

.feature .btn {
  margin-top: 28px;
  align-self: flex-start;
}

/* ============================================================
   GRID
   ============================================================ */
.grid-wrap {
  padding: 48px 0 24px;
}

.grid-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.grid-head h3 {
  font-size: 22px;
  color: #fff;
}

.grid-head .count {
  font-size: 13.5px;
  color: var(--muted-2);
  font-weight: 500;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--card-line-hover);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .4);
}

.card:hover .sky {
  transform: scale(1.05);
}

.card:hover .feat-photo,
.card:hover .card-photo {
  transform: scale(1.05);
}

.card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card-media .cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(43, 64, 216, .92);
  padding: 6px 12px;
  border-radius: var(--pill);
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 11px;
}

.card-body .excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-body .meta {
  margin-top: auto;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #9fb1ff;
  font-weight: 600;
  font-size: 14px;
}

.card-foot svg {
  width: 15px;
  height: 15px;
  transition: transform .16s;
}

.card:hover .card-foot svg {
  transform: translateX(4px);
}

.card.hidden {
  display: none;
}

.empty {
  display: none;
  text-align: center;
  padding: 56px 24px 40px;
  color: var(--muted-2);
  font-size: 16px;
}

.empty.show {
  display: block;
}

/* ============================================================
   LOAD MORE / PAGINATION
   ============================================================ */
.more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 0 8px;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.more-status {
  font-size: 14px;
  color: var(--muted-2);
  font-weight: 500;
  margin-top: 30px;
}

.more-status b {
  color: #fff;
  font-weight: 700;
}

.more-track {
  width: 200px;
  height: 4px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.more-fill {
  height: 100%;
  border-radius: var(--pill);
  background: var(--blue-icon);
  width: 50%;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

#loadMore {
  margin-top: 6px;
}

#loadMore svg {
  transition: transform .25s;
}

#loadMore:hover svg {
  transform: translateY(2px);
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-wrap {
  padding: 64px 0 88px;
  background: var(--navy-850);
}

.cta-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--blue-section);
  border-radius: var(--r-lg);
  padding: 54px 48px;
  text-align: center;
}

.cta-card h2 {
  font-size: 34px;
  color: #fff;
}

.cta-card p {
  color: #d7dcff;
  font-size: 15px;
  margin-top: 18px;
}

.cta-card .btn-white {
  margin: 26px 0 22px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  color: #fff;
}

.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  color: var(--muted-2);
  font-size: 14px;
  transition: color .15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bar-inner p {
  color: var(--muted-2);
  font-size: 13px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials a {
  color: #cfd6e6;
  transition: color .15s, transform .15s;
}

.socials a:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   SINGLE POST — full Blog Detail design
   ============================================================ */
/* reading-progress bar inside the nav */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--blue-icon);
  transition: width .1s linear;
}

/* --- article header --- */
.art-head {
  padding: 54px 0 0;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 13.5px;
  font-weight: 500;
}

.crumb a:hover {
  color: #fff;
}

.crumb svg {
  width: 14px;
  height: 14px;
  opacity: .6;
}

.head-cat {
  display: inline-block;
  margin: 26px 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(43, 64, 216, .92);
  padding: 7px 14px;
  border-radius: var(--pill);
}

.art-title {
  font-size: 46px;
  color: #fff;
  line-height: 1.1;
  max-width: 880px;
}

.art-dek {
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  max-width: 720px;
}

.byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.byline-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, #2b40d8, #3a52e6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex: none;
}

.byline .who {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.byline .name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.byline .role {
  font-size: 13px;
  color: var(--muted-2);
}

.feat-img {
  position: relative;
  max-width: var(--maxw);
  margin: 42px auto 0;
  aspect-ratio: 21/9;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--card-line);
  background: var(--card);
}

.feat-img .feat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat-cap {
  max-width: var(--maxw);
  margin: 14px auto 0;
  padding: 0 24px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

/* --- body layout --- */
.body-wrap {
  padding: 56px 0 80px;
}

.body-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: start;
  max-width: var(--maxw);
}

.article {
  min-width: 0;
  /* max-width: var(--readw); */
}

/* sidebar / TOC */
.rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc h4 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.toc a {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, .12);
  transition: color .15s, border-color .15s;
  display: block;
}

.toc a:hover,
.toc a.active {
  color: #fff;
  border-color: var(--accent-blue);
}

/* share strip below article */
.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 44px 0 0;
  padding: 20px 2px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.share-row .lbl {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.share-row .lbl span {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-2);
  margin-top: 2px;
}

.share-btns {
  display: flex;
  gap: 9px;
}

.sbtn {
  width: 38px;
  height: 38px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfd6e6;
  transition: background .15s, color .15s, transform .12s;
}

.sbtn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* --- rich text (scoped to .article, works with Gutenberg output) --- */
.article p {
  font-size: 18px;
  color: var(--read);
  line-height: 1.85;
  margin: 0 0 26px;
}

.article>p:first-of-type,
.article .lead {
  font-size: 20px;
  color: #dbe3f2;
  line-height: 1.8;
}

.article h2 {
  font-size: 30px;
  color: #fff;
  margin: 52px 0 18px;
  line-height: 1.2;
  scroll-margin-top: 96px;
}

.article h3 {
  font-size: 21px;
  color: #fff;
  margin: 36px 0 14px;
}

.article a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article a:hover {
  color: #9fb1ff;
}

.article .callout a {
    color: white;
    text-decoration: unset;
}

.article ul,
.article ol {
  margin: 0 0 26px;
  padding-left: 4px;
  list-style: none;
  counter-reset: li;
}

.article li {
  position: relative;
  padding-left: 34px;
  font-size: 18px;
  color: var(--read);
  line-height: 1.75;
  margin-bottom: 14px;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue-icon);
  transform: rotate(45deg);
}

.article ol li {
  counter-increment: li;
}

.article ol li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(58, 82, 230, .18);
  color: var(--accent-blue);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article li strong {
  color: #fff;
  font-weight: 700;
}

.article blockquote {
  margin: 38px 0;
  padding: 6px 0 6px 28px;
  border-left: 3px solid var(--blue-icon);
}

.article blockquote p {
  font-size: 23px;
  font-style: italic;
  color: #e7ecf8;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

.article blockquote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted-2);
  font-weight: 600;
}

.article img {
  border-radius: var(--r-md);
  margin: 30px 0;
}

.article figure {
  margin: 38px 0;
}

.article figure img {
  border-radius: var(--r-lg);
  border: 1px solid var(--card-line);
}

.article figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

/* inline CTA callout (optional, for authors using a custom HTML block) */
.callout {
  margin: 42px 0;
  background: linear-gradient(135deg, #1a2a4d, #16213f);
  border: 1px solid var(--card-line-hover);
  border-radius: var(--r-xl);
  padding: 30px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.callout .ic {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--blue-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}

.callout .ct {
  flex: 1;
  min-width: 220px;
}

.callout h4 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 7px;
}

.callout p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* key takeaways box (optional) */
.takeaways {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  margin: 0 0 34px;
}

.takeaways h4 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.takeaways ul {
  margin: 0;
}

.takeaways li {
  margin-bottom: 12px;
}

/* tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 0;
}

.tagchip {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--card-line);
  padding: 7px 14px;
  border-radius: var(--pill);
  transition: border-color .15s, color .15s;
}

.tagchip:hover {
  color: #fff;
  border-color: var(--card-line-hover);
}

/* --- related posts --- */
.related {
  background: var(--navy-900);
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.related .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.related h2 {
  font-size: 30px;
  color: #fff;
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.rel-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.rel-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-line-hover);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .4);
}

.rel-card:hover .sky {
  transform: scale(1.05);
}

.rel-card:hover .card-photo {
  transform: scale(1.05);
}

.rel-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.rel-media .cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(43, 64, 216, .92);
  padding: 6px 12px;
  border-radius: var(--pill);
}

.rel-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rel-body h3 {
  font-size: 18px;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.rel-body .meta {
  margin-top: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:920px) {
  .nav-links {
    display: none;
  }

  .blog-hero h1 {
    font-size: 36px;
  }

  .blog-hero .inner {
    padding: 56px 24px 50px;
  }

  .toolbar {
    position: static;
  }

  .toolbar-inner {
    padding: 14px 16px;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

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

  .feature .media {
    min-height: 220px;
    aspect-ratio: 16/9;
  }

  .feature .body {
    padding: 30px 26px;
  }

  .feature h2 {
    font-size: 24px;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .art-head h1 {
    font-size: 32px;
  }

  .body-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rail {
    display: none;
  }

  .art-title {
    font-size: 34px;
  }

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

  .feat-img {
    aspect-ratio: 16/9;
    border-radius: var(--r-lg);
  }
}

@media(max-width:620px) {
  .nav-inner {
    padding: 14px 20px;
  }

  .blog-hero h1 {
    font-size: 30px;
  }

  .blog-hero p {
    font-size: 16px;
  }

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

  .cta-card {
    padding: 40px 24px;
  }

  .cta-card h2 {
    font-size: 26px;
  }

  .article p,
  .article li {
    font-size: 17px;
  }

  .art-title {
    font-size: 28px;
  }

  .callout {
    padding: 24px;
  }
}

/* ============================================================
   FLEXIBLE CONTENT BLOCKS (single post body)
   ============================================================ */
/* gallery */
.post-gallery {
  margin: 38px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-grid img {
  border-radius: var(--r-md);
  border: 1px solid var(--card-line);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* inline CTA block (distinct from the full-width strip) */
.inline-cta {
  margin: 42px 0;
  background: var(--blue-section);
  border-radius: var(--r-lg);
  padding: 32px 34px;
  text-align: center;
}

.inline-cta h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}

.inline-cta p {
  color: #d7dcff;
  font-size: 15px;
  margin-bottom: 20px;
}

/* inline related list */
.inline-related {
  margin: 42px 0;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 26px 30px;
}

.inline-related h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 14px;
}

.inline-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inline-related a {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 15px;
}

.inline-related a:hover {
  color: #9fb1ff;
}

/* FAQ */
.faq {
  margin: 44px 0;
}

.faq-title {
  font-size: 26px;
  color: #fff;
  margin-bottom: 20px;
}

.faq-item {
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  background: var(--card);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-blue);
  font-weight: 400;
  flex: none;
  transition: transform .2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 22px 20px;
  color: var(--read);
  font-size: 16px;
  line-height: 1.7;
}

/* spacer / divider */
.spacer-line {
  border: none;
  border-top: 1px solid var(--card-line);
  margin: 42px 0;
}

.spacer-blank {
  height: 42px;
}

@media(max-width:620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HOMEPAGE BUILDER SECTIONS
   ============================================================ */
.home-h2 {
  font-size: 34px;
  color: #fff;
  text-align: center;
  line-height: 1.15;
}

.home-sub {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin: 16px auto 0;
  line-height: 1.6;
}

/* hero */
.home-hero {
  position: relative;
  background: var(--navy-900);
  padding: 120px 0 110px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.home-hero .eyebrow {
  margin-bottom: 18px;
}

.home-hero h1 {
  font-size: 56px;
  color: #fff;
  line-height: 1.05;
  max-width: 880px;
  margin: 0 auto;
  text-shadow: 0 2px 28px rgba(5, 9, 18, .5);
}

.home-hero p {
  margin: 22px auto 0;
  max-width: 620px;
  color: #e6ecf7;
  font-size: 19px;
  line-height: 1.6;
}

.home-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* features */
.home-features {
  padding: 88px 0;
}

.feature-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

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

.feature-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: block;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

a.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-line-hover);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .4);
}

.feature-ic {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(58, 82, 230, .16);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  overflow: hidden;
}

.feature-ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* stats */
.home-stats {
  padding: 72px 0;
  background: var(--navy-900);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

/* testimonials */
.home-testimonials {
  padding: 88px 0;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.test-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  margin: 0;
}

.test-card blockquote {
  margin: 0 0 22px;
  font-size: 16px;
  color: #e7ecf8;
  line-height: 1.6;
  font-style: italic;
}

.test-meta {
  display: flex;
  align-items: center;
  gap: 13px;
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--pill);
  object-fit: cover;
  flex: none;
}

.test-name {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
}

.test-role {
  display: block;
  font-size: 13px;
  color: var(--muted-2);
}

/* logos */
.home-logos {
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.logos-heading {
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logos-row img {
  height: 34px;
  width: auto;
  opacity: .7;
  filter: grayscale(1) brightness(1.6);
  transition: opacity .2s;
}

.logos-row img:hover {
  opacity: 1;
}

/* image + content */
.home-ic {
  padding: 80px 0;
}

.ic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.home-ic.img-right .ic-media {
  order: 2;
}

.ic-media img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--card-line);
}

.ic-body .eyebrow {
  margin-bottom: 14px;
}

.ic-body .home-h2 {
  text-align: left;
}

.ic-text {
  margin-top: 18px;
  color: var(--read);
  font-size: 16px;
  line-height: 1.75;
}

.ic-text p {
  margin: 0 0 16px;
}

.ic-body .btn {
  margin-top: 24px;
}

/* latest blogs */
.home-latest {
  padding: 88px 0;
  background: var(--navy-900);
}

.home-latest-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.home-latest-head .home-h2 {
  text-align: left;
}

/* faq */
.home-faq {
  padding: 80px 0;
}

.home-faq .home-h2 {
  margin-bottom: 36px;
}

.home-faq .faq {
  max-width: 760px;
  margin: 0 auto;
}

/* rich text section */
.home-rt {
  padding: 64px 0;
}

.home-rt .rt-inner {
  margin: 0 auto;
}

.home-rt.narrow .rt-inner {
  max-width: var(--readw);
}

.home-rt.wide .rt-inner {
  max-width: var(--maxw);
}

.home-html {
  padding: 40px 0;
}

@media(max-width:920px) {
  .home-hero h1 {
    font-size: 40px;
  }

  .feature-grid.cols-3,
  .feature-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .ic-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-ic.img-right .ic-media {
    order: 0;
  }

  .ic-body .home-h2 {
    text-align: center;
  }
}

@media(max-width:620px) {
  .home-hero {
    padding: 72px 0 64px;
  }

  .home-hero h1 {
    font-size: 30px;
  }

  .home-h2 {
    font-size: 26px;
  }

  .feature-grid.cols-2,
  .feature-grid.cols-3,
  .feature-grid.cols-4 {
    grid-template-columns: 1fr;
  }

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