/* IME — shared components.
   Small pieces reused across sections and pages: buttons, the stats strip,
   the section shell (kicker / heading / lead), blog cards and the CTA banner. */

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .3s var(--ease), background .3s ease, box-shadow .3s ease, filter .3s ease;
  box-shadow: 0 8px 20px -6px rgba(21, 94, 203, .4);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(21, 94, 203, .5);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--navy-deep);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--blue);
  background: var(--ice);
  transform: translateY(-3px);
}

.btn-ghost svg {
  transition: transform .3s var(--ease);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 44px 6%;
}

@media(max-width:760px) {
  .stats-strip .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--line);
}

@media(max-width:760px) {
  .stat-item:not(:last-child)::after {
    display: none;
  }
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -.02em;
}

.stat-label {
  margin-top: 6px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Section shell ---------- */
section {
  padding: 64px 6%;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head.left {
  text-align: left;
  margin: 0 0 40px;
}

.kicker {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--navy-deep);
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.section-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

article.post {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}

article.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -20px rgba(10, 47, 107, .2);
  border-color: transparent;
}

.post-media {
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--navy-deep));
}

.post-body {
  padding: 26px 24px 28px;
}

.post-meta {
  font-size: .72rem;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.post-body h3 {
  margin: 12px 0 10px;
  color: var(--navy-deep);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
}

.post-body p {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.55;
}

.post-date {
  margin-top: 18px;
  font-size: .76rem;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 6%;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner .shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .08), transparent);
  animation: shine 5s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -20%;
  }

  100% {
    left: 120%;
  }
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  margin-bottom: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: #a9bdea;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--navy-deep);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  background: var(--ice);
}