:root {
  --navy: #166883;
  --navy-deep: #1a2a3f;
  --sky: #2a8eb0;
  --sky-light: #3aa5c9;
  --sky-soft: #e6f1f5;
  --ink: #1c2536;
  --slate: #5a6b85;
  --slate-light: #8493ab;
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --line: #e4e9f2;
  --line-2: #d6deea;
  --grad: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  --shadow-sm: 0 1px 3px rgba(26, 42, 63, .06), 0 1px 2px rgba(26, 42, 63, .04);
  --shadow: 0 4px 16px rgba(26, 42, 63, .08);
  --shadow-lg: 0 20px 50px rgba(26, 42, 63, .14);
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1200px;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

h1,
h2,
h3,
h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--navy-deep)
}

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

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px
}

.logo img {
  height: 70px !important;
  padding: 5px !important;
  display: block
}

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

.nav-links a {
  color: #c2d0ea;
  font-size: .94rem;
  font-weight: 500;
  transition: color .2s
}

.nav-links a:hover {
  color: #fff
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: .94rem;
  padding: 11px 22px;
  border-radius: 9px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  border: none;
  white-space: nowrap
}

.btn-outline {
  color: #dce6f6;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent
}

.btn-outline:hover {
  border-color: var(--sky-light);
  color: #fff;
  background: rgba(60, 153, 207, .12)
}

.btn-primary {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 4px 14px rgba(60, 153, 207, .35)
}

.btn-primary:hover {
  background: #2f86bd;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(60, 153, 207, .45)
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer
}

/* DROPDOWN */
.has-dropdown {
  position: relative
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #c2d0ea
}

.dropdown-trigger svg {
  width: 13px;
  height: 13px;
  transition: transform .2s
}

.has-dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg)
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  width: 300px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0)
}

.dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  transition: background .15s
}

.dropdown-menu a:hover {
  background: var(--bg)
}

.dropdown-menu .dm-title {
  font-family: 'Plus Jakarta Sans';
  font-weight: 600;
  font-size: .86rem;
  color: var(--navy-deep)
}

.dropdown-menu .dm-sub {
  font-size: .74rem;
  color: var(--slate-light)
}

.dropdown-menu .dm-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px
}

@media(max-width: 900px) {
  .dropdown-menu {
    display: none !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 10px 0 0 14px !important;
    border: none !important;
    border-left: 2px solid rgba(255,255,255,.1) !important;
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Show dropdown when parent is active (clicked) */
  .has-dropdown.active .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .dropdown-menu a {
    padding: 6px 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    align-items: start !important;
  }
  
  .dropdown-menu .dm-title {
    color: #c2d0ea !important;
    font-size: 0.9rem !important;
  }
  
  .dropdown-menu .dm-sub {
    color: #7e90ba !important;
    font-size: 0.74rem !important;
    margin-top: 2px !important;
  }
  
  .dropdown-menu .dm-divider {
    display: none !important;
  }

  .has-dropdown.active .dropdown-trigger svg {
    transform: rotate(180deg) !important;
  }
}

/* BLOG HERO */
.blog-hero {
  position: relative;
  padding: 70px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line)
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(60, 153, 207, .11), transparent 70%);
  border-radius: 50%;
  pointer-events: none
}

.blog-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(22, 104, 131, .06), transparent 70%);
  border-radius: 50%;
  pointer-events: none
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--sky-soft);
  border: 1px solid #bcdde6;
  color: var(--navy);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 20px
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  animation: pulse 2s infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .35
  }
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 16px
}

.blog-hero p.sub {
  font-size: 1.08rem;
  color: var(--slate);
  margin: 0 auto
}

/* FEATURED POST */
.featured-section {
  padding: 44px 0 0
}

.featured-label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--sky);
  margin-bottom: 14px
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .22s, transform .22s
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px)
}

.featured-img {
  position: relative;
  background: linear-gradient(135deg, #1a2a3f, #2a8eb0);
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 28px;
  overflow: hidden
}

.featured-img-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  padding: 20px;
  opacity: .1
}

.featured-img-grid span {
  background: rgba(255, 255, 255, .7);
  border-radius: 5px
}

.fi-meta {
  position: relative;
  z-index: 1
}

.fi-cat {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em
}

.fi-title {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px
}

.fi-excerpt {
  font-size: .88rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.6
}

.featured-body {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.post-author {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px
}

.post-author .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .76rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0
}

.post-author .av-name {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy-deep)
}

.post-author .av-role {
  font-size: .76rem;
  color: var(--slate-light)
}

.featured-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25
}

.featured-body p.excerpt {
  color: var(--slate);
  font-size: .96rem;
  line-height: 1.7;
  margin-bottom: 22px;
  flex: 1
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px
}

.pmeta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--slate-light)
}

.pmeta svg {
  width: 13px;
  height: 13px
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: .88rem;
  color: var(--sky);
  transition: gap .18s
}

.read-more:hover {
  gap: 12px
}

.read-more svg {
  width: 15px;
  height: 15px;
  transition: transform .18s
}

.read-more:hover svg {
  transform: translateX(3px)
}

/* MAIN LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  padding: 44px 0 96px;
  align-items: start
}

/* POST GRID */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cfe0ee
}

.post-card-img {
  height: 156px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
  overflow: hidden
}

.post-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 30%, rgba(26, 42, 63, .7) 100%)
}

.pc-cat {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff
}

.post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.post-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35
}

.post-card-body p {
  color: var(--slate);
  font-size: .875rem;
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg)
}

.pcard-author {
  display: flex;
  align-items: center;
  gap: 8px
}

.pcard-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .56rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0
}

.pcard-author .av-name {
  font-size: .74rem;
  font-weight: 600;
  color: var(--slate)
}

.pcard-meta {
  font-size: .72rem;
  color: var(--slate-light)
}

/* card bg colours */
.pcbg-1 {
  background: linear-gradient(135deg, #1a2a3f, #2a8eb0)
}

.pcbg-2 {
  background: linear-gradient(135deg, #166883, #2d7a6a)
}

.pcbg-3 {
  background: linear-gradient(135deg, #2a3f6f, #166883)
}

.pcbg-4 {
  background: linear-gradient(135deg, #1a2a3f, #4a3f9e)
}

.pcbg-5 {
  background: linear-gradient(135deg, #166883, #a06000)
}

.pcbg-6 {
  background: linear-gradient(135deg, #1e5f52, #2a8eb0)
}

.pcbg-7 {
  background: linear-gradient(135deg, #7a1a1a, #166883)
}

.pcbg-8 {
  background: linear-gradient(135deg, #2d4a1a, #2a8eb0)
}

.pcbg-9 {
  background: linear-gradient(135deg, #1a2a4f, #2a6b8e)
}

.pcbg-10 {
  background: linear-gradient(135deg, #3f1a4f, #166883)
}

.pcbg-11 {
  background: linear-gradient(135deg, #4f3a1a, #2a8eb0)
}

.pcbg-12 {
  background: linear-gradient(135deg, #1a3f3f, #2a8eb0)
}

/* cat badge colours */
.cat-medicare {
  background: #166883
}

.cat-automation {
  background: #1e5f52
}

.cat-lead {
  background: #4a3f9e
}

.cat-aep {
  background: #a06000
}

.cat-agency {
  background: #2d4a1a
}

.cat-hipaa {
  background: #7a1a1a
}

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 0
}

.pg-btn {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--slate);
  user-select: none
}

.pg-btn:hover {
  border-color: #bcdde6;
  color: var(--navy-deep)
}

.pg-btn.active {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep)
}

.pg-btn.pg-arrow {
  color: var(--sky)
}

.pg-btn.pg-arrow:hover {
  background: var(--sky-soft)
}

.pg-btn.disabled {
  opacity: .35;
  pointer-events: none
}

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 92px
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm)
}

.sc-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px
}

.sc-head svg {
  width: 15px;
  height: 15px;
  color: var(--sky)
}

.sc-head h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy-deep)
}

.sc-body {
  padding: 14px 18px
}

/* CTA sidebar */
.sb-cta {
  background: var(--grad);
  border: none;
  position: relative;
  overflow: hidden
}

.sb-cta::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(60, 153, 207, .22), transparent 70%);
  border-radius: 50%
}

.sb-cta-inner {
  padding: 26px 22px;
  position: relative;
  z-index: 1;
  text-align: center
}

.sb-cta-inner h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 9px
}

.sb-cta-inner p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 18px;
  line-height: 1.6
}

.sb-cta-inner .btn-cta {
  display: block;
  background: var(--sky-light);
  color: #fff;
  padding: 11px 18px;
  border-radius: 9px;
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: .88rem;
  text-align: center;
  transition: background .18s, transform .18s
}

.sb-cta-inner .btn-cta:hover {
  background: #2f86bd;
  transform: translateY(-1px)
}

.sb-cta-inner .btn-ghost {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .65);
  font-size: .78rem;
  font-weight: 600;
  transition: color .18s
}

.sb-cta-inner .btn-ghost:hover {
  color: #fff
}

/* Most Read sidebar */
.pop-post {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start
}

.pop-post:last-child {
  border: none;
  padding-bottom: 0
}

.pop-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--sky-soft);
  color: var(--navy);
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: .74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px
}

.pop-info a h5 {
  font-size: .83rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.35;
  margin-bottom: 3px;
  transition: color .15s
}

.pop-info a:hover h5 {
  color: var(--sky)
}

.pop-meta {
  font-size: .7rem;
  color: var(--slate-light)
}

/* FOOTER */
footer {
  background: var(--navy-deep);
  padding: 58px 0 32px;
  color: #c2d0ea
}

.foot-top {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px
}

.foot-brand img {
  height: 70px !important;
  margin-bottom: 15px
}

.foot-brand p {
  color: #9fb0d4;
  font-size: .92rem;
  max-width: 280px
}

.foot-col h5 {
  font-family: 'Plus Jakarta Sans';
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #7e90ba;
  margin-bottom: 15px
}

.foot-col a {
  display: block;
  color: #b9c6e2;
  font-size: .92rem;
  margin-bottom: 10px;
  transition: color .2s
}

.foot-col a:hover {
  color: var(--sky-light)
}

.foot-bot {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px
}

.foot-bot p {
  color: #7e90ba;
  font-size: .84rem
}

.foot-bot .legal {
  display: flex;
  gap: 22px
}

.foot-bot .legal a {
  color: #7e90ba;
  font-size: .84rem
}

/* RESPONSIVE */
@media(max-width:1040px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
  }

  .sb-cta {
    grid-column: 1/-1
  }
}

@media(max-width:900px) {
  .nav-links {
    display: none
  }

  .menu-toggle {
    display: block
  }

  .nav-cta .btn-outline {
    display: none !important
  }

  .logo img {
    height: 50px !important;
    padding: 2px !important
  }

  nav {
    height: 70px !important
  }

  .featured-card {
    grid-template-columns: 1fr
  }

  .featured-img {
    min-height: 200px
  }

  .foot-top {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:600px) {
  .posts-grid {
    grid-template-columns: 1fr
  }

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

  .sb-cta {
    grid-column: auto
  }

  .nav-cta .btn-outline {
    display: none
  }
}