/*
Theme Name: Epicfinal Blue
Theme URI: https://blog.epicfinal.com
Description: A clean RTL editorial theme aligned with the Epicfinal brand.
Author: Epicfinal
Template: twentytwentyfive
Version: 3.0.0
Text Domain: epicfinal-blue
*/

:root {
  --ef-ink: #0f172a;
  --ef-ink-soft: #1e293b;
  --ef-muted: #64748b;
  --ef-brand: #0078a8;
  --ef-brand-dark: #005c82;
  --ef-blue: #3b82f6;
  --ef-indigo: #3949ab;
  --ef-mint: #a2fadd;
  --ef-mint-strong: #46dcb5;
  --ef-violet: #8b5cf6;
  --ef-paper: #ffffff;
  --ef-canvas: #f8fafc;
  --ef-line: #e2e8f0;
  --ef-shadow-sm: 0 12px 32px rgba(15, 23, 42, 0.08);
  --ef-shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.13);
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--ef-canvas);
  color: var(--ef-ink);
  direction: rtl;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
}

::selection {
  color: var(--ef-ink);
  background: var(--ef-mint);
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.wp-site-blocks {
  padding: 0 !important;
  overflow: clip;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.ef-shell {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin-inline: auto;
}

/* Header */
.ef-header {
  position: relative;
  z-index: 50;
  background: var(--ef-paper);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.ef-announcement {
  color: #eef7ff;
  background: linear-gradient(90deg, #2847a0, #2352b2);
}

.ef-announcement__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ef-announcement__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ef-mint);
  box-shadow: 0 0 0 5px rgba(162, 250, 221, 0.12);
}

.ef-announcement a {
  padding: 3px 9px;
  color: #123247;
  border-radius: 999px;
  background: var(--ef-mint);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
}

.ef-mainbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.ef-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ef-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  color: var(--ef-ink);
  text-decoration: none;
}

.ef-brand img {
  width: 201px;
  height: auto;
  display: block;
}

.ef-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 0.88rem;
  font-weight: 700;
}

.ef-nav a {
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
}

.ef-nav a:hover {
  color: var(--ef-brand);
}

.ef-nav__cta,
.ef-button--primary {
  color: #073449 !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--ef-mint), #73e5d1);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.18);
}

.ef-nav__cta {
  padding: 11px 17px;
  border-radius: 8px;
}

.ef-nav__cta:hover,
.ef-button--primary:hover {
  color: #052b3b !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.24);
}

.ef-subnav {
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #dbeafe;
  background: #f7fbff;
}

.ef-subnav__inner {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px 26px;
  overflow-x: auto;
  scrollbar-width: none;
  color: #526579;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.ef-subnav__inner::-webkit-scrollbar {
  display: none;
}

.ef-subnav__inner span {
  position: relative;
}

.ef-subnav__inner span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9fb2c6;
}

/* Hero */
.ef-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 18%, rgba(139, 92, 246, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(59, 130, 246, 0.13), transparent 30rem),
    radial-gradient(circle at 56% 88%, rgba(162, 250, 221, 0.25), transparent 26rem),
    linear-gradient(135deg, #ffffff 15%, #f7fbff 58%, #f8fafc);
}

.ef-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.ef-hero__grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(46px, 7vw, 94px);
  padding-block: 76px 82px;
}

.ef-hero__content {
  min-width: 0;
}

.ef-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 13px;
  color: var(--ef-brand-dark);
  border: 1px solid rgba(0, 120, 168, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ef-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ef-mint-strong);
  box-shadow: 0 0 0 5px rgba(70, 220, 181, 0.14);
}

.ef-hero h1 {
  max-width: 730px;
  margin: 0;
  color: var(--ef-ink);
  font-size: clamp(3.35rem, 6vw, 5.7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.ef-gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--ef-brand) 4%, var(--ef-blue) 52%, var(--ef-violet));
  -webkit-background-clip: text;
  background-clip: text;
}

.ef-hero__lead {
  max-width: 630px;
  margin: 25px 0 0;
  color: var(--ef-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.8;
}

.ef-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.ef-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--ef-ink);
  border: 1px solid #cad5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.ef-button--ghost:hover {
  color: var(--ef-brand-dark);
  border-color: rgba(0, 120, 168, 0.42);
  background: #ffffff;
  transform: translateY(-2px);
}

.ef-hero__visual {
  position: relative;
  min-width: 0;
}

.ef-stage {
  position: relative;
  overflow: hidden;
  min-height: 385px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ef-shadow-lg);
  backdrop-filter: blur(18px);
}

.ef-stage::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -130px;
  left: -90px;
  border-radius: 50%;
  background: rgba(162, 250, 221, 0.48);
  filter: blur(4px);
}

.ef-stage__top,
.ef-stage__pipeline,
.ef-stage__stats {
  position: relative;
  z-index: 1;
}

.ef-stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ef-line);
}

.ef-stage__top img {
  width: 154px;
  height: auto;
}

.ef-stage__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #08765d;
  font-size: 0.72rem;
  font-weight: 800;
}

.ef-stage__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

.ef-stage__pipeline {
  padding-block: 28px 24px;
}

.ef-stage__label {
  margin: 0 0 17px;
  color: #75869a;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ef-stage__flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  direction: ltr;
  gap: 9px;
}

.ef-stage__flow span {
  position: relative;
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 9px 5px;
  color: #23354b;
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  background: #ffffff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.69rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.ef-stage__flow span::before {
  content: "";
  width: 9px;
  height: 9px;
  display: block;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--ef-blue);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1);
}

.ef-stage__flow span:nth-child(2)::before {
  background: var(--ef-violet);
}

.ef-stage__flow span:nth-child(3)::before {
  background: var(--ef-brand);
}

.ef-stage__flow span:nth-child(4)::before {
  background: var(--ef-mint-strong);
}

.ef-stage__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ef-stage__stat {
  padding: 15px 17px;
  border: 1px solid #e3ebf3;
  border-radius: 13px;
  background: rgba(248, 250, 252, 0.9);
}

.ef-stage__stat strong {
  display: block;
  color: var(--ef-ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 1.22rem;
}

.ef-stage__stat span {
  display: block;
  margin-top: 2px;
  color: var(--ef-muted);
  font-size: 0.7rem;
}

.ef-floating-chip {
  position: absolute;
  z-index: 2;
  left: -24px;
  bottom: 34px;
  padding: 11px 15px;
  color: #123247;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(162, 250, 221, 0.92);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: var(--ef-shadow-sm);
}

.ef-topics {
  border-top: 1px solid rgba(59, 130, 246, 0.12);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.ef-topics__inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ef-topics__inner::-webkit-scrollbar {
  display: none;
}

.ef-topics span {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #40546a;
  border: 1px solid #dce6ef;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Featured story */
.ef-featured-wrap {
  padding: 88px 0 94px;
  background: var(--ef-canvas);
}

.ef-section-kicker {
  margin-bottom: 20px;
  color: var(--ef-brand);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ef-featured-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  min-height: 475px;
  border: 1px solid var(--ef-line);
  border-radius: 24px;
  background: var(--ef-paper);
  box-shadow: var(--ef-shadow-lg);
}

.ef-featured-card .wp-block-post-featured-image {
  min-height: 100%;
  margin: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.ef-featured-card .wp-block-post-featured-image a,
.ef-featured-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  min-height: 475px;
  display: block;
  object-fit: cover;
}

.ef-featured-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 66px);
}

.ef-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #718198;
  font-size: 0.78rem;
  font-weight: 700;
}

.ef-meta::before {
  content: "חדש";
  padding: 5px 10px;
  color: #08765d;
  border-radius: 999px;
  background: #ddfbf1;
}

.ef-featured-card .wp-block-post-title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.ef-featured-card .wp-block-post-title a,
.ef-card .wp-block-post-title a {
  color: var(--ef-ink);
  text-decoration: none;
}

.ef-featured-card .wp-block-post-title a:hover,
.ef-card .wp-block-post-title a:hover {
  color: var(--ef-brand);
}

.ef-featured-card .wp-block-post-excerpt {
  margin-top: 20px;
  color: var(--ef-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.ef-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 22px;
  color: var(--ef-brand);
  text-decoration: none;
  font-weight: 900;
}

.ef-read::after {
  content: "←";
  transition: transform 0.2s ease;
}

.ef-read:hover {
  color: var(--ef-brand-dark);
}

.ef-read:hover::after {
  transform: translateX(-5px);
}

/* Article grid */
.ef-articles {
  padding: 12px 0 112px;
}

.ef-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.ef-section-head h2 {
  margin: 0;
  color: var(--ef-ink);
  font-size: clamp(2.4rem, 5vw, 4.45rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

.ef-section-head > p {
  max-width: 440px;
  margin: 0;
  color: var(--ef-muted);
  line-height: 1.75;
}

.ef-grid.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ef-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ef-line);
  border-radius: 18px;
  background: var(--ef-paper);
  box-shadow: 0 9px 28px rgba(15, 23, 42, 0.055);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.ef-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 120, 168, 0.3);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.11);
}

.ef-card .wp-block-post-featured-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.ef-card .wp-block-post-featured-image a,
.ef-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ef-card img {
  transition: transform 0.45s ease;
}

.ef-card:hover img {
  transform: scale(1.035);
}

.ef-card__body {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.ef-card .wp-block-post-date {
  margin-bottom: 12px;
  color: #7b8ca0;
  font-size: 0.74rem;
  font-weight: 700;
}

.ef-card .wp-block-post-title {
  margin: 0;
  font-size: 1.29rem;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.ef-card .wp-block-post-excerpt {
  flex: 1;
  margin-top: 13px;
  color: var(--ef-muted);
  font-size: 0.89rem;
  line-height: 1.7;
}

.ef-card .wp-block-post-excerpt__more-text {
  display: none;
}

.ef-card .ef-read {
  margin-top: 16px;
  font-size: 0.84rem;
}

.ef-pagination {
  margin-top: 40px;
}

.ef-pagination a,
.ef-pagination .page-numbers {
  min-width: 42px;
  padding: 9px 14px;
  color: var(--ef-ink-soft);
  border: 1px solid var(--ef-line);
  border-radius: 8px;
  background: var(--ef-paper);
  text-decoration: none;
}

.ef-pagination .current {
  color: #ffffff;
  border-color: var(--ef-brand);
  background: var(--ef-brand);
}

/* CTA and footer */
.ef-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 90px;
  padding: clamp(42px, 7vw, 74px);
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(125deg, #173f91, #0078a8 58%, #0f9c91);
  box-shadow: var(--ef-shadow-lg);
}

.ef-cta::before,
.ef-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.ef-cta::before {
  width: 350px;
  height: 350px;
  top: -190px;
  left: -90px;
  background: rgba(162, 250, 221, 0.32);
}

.ef-cta::after {
  width: 290px;
  height: 290px;
  right: -120px;
  bottom: -180px;
  background: rgba(139, 92, 246, 0.28);
}

.ef-cta__inner {
  max-width: 760px;
}

.ef-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.ef-cta p {
  margin: 18px 0 28px;
  color: #dceef8;
  font-size: 1.03rem;
  line-height: 1.8;
}

.ef-footer {
  color: #526579;
  border-top: 1px solid var(--ef-line);
  background: #ffffff;
}

.ef-footer__top {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: 48px;
}

.ef-footer__about {
  max-width: 540px;
}

.ef-footer__about .ef-brand img {
  width: 180px;
}

.ef-footer__about p {
  margin: 15px 0 0;
  line-height: 1.75;
}

.ef-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.ef-footer__links a {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.ef-footer__links a:hover {
  color: var(--ef-brand);
}

.ef-footer__bottom-wrap {
  color: #b7c8d7;
  background: var(--ef-ink);
}

.ef-footer__bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.76rem;
}

.ef-footer__bottom a {
  color: var(--ef-mint);
  text-decoration: none;
}

/* Single article and generic pages */
.ef-article-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 20px 56px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.12), transparent 24rem),
    radial-gradient(circle at 84% 20%, rgba(162, 250, 221, 0.28), transparent 26rem),
    linear-gradient(180deg, #f3f8ff, var(--ef-canvas));
}

.ef-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  color: var(--ef-brand);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 800;
}

.ef-back:hover {
  color: var(--ef-brand-dark);
}

.ef-article-hero .wp-block-post-title,
.ef-page-hero .wp-block-post-title,
.ef-archive-title {
  max-width: 960px;
  margin: 0 auto;
  color: var(--ef-ink);
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.ef-article-date {
  margin-top: 22px;
  color: var(--ef-muted);
  font-size: 0.86rem;
}

.ef-article-cover {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 12px auto 0;
}

.ef-article-cover:empty {
  display: none;
}

.ef-article-cover .wp-block-post-featured-image {
  overflow: hidden;
  max-height: 650px;
  border-radius: 22px;
  box-shadow: var(--ef-shadow-lg);
}

.ef-article-cover img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
}

.ef-article-content,
.ef-page-content {
  width: calc(100% - 40px);
  max-width: 780px;
  margin: 62px auto 88px;
  color: #25364a;
  font-size: 1.06rem;
  line-height: 1.95;
}

.ef-article-content h2,
.ef-page-content h2 {
  margin-top: 2.15em;
  color: var(--ef-ink);
  font-size: 2rem;
  line-height: 1.25;
}

.ef-article-content h3,
.ef-page-content h3 {
  margin-top: 1.85em;
  color: var(--ef-ink);
  font-size: 1.48rem;
}

.ef-article-content a,
.ef-page-content a {
  color: var(--ef-brand);
  font-weight: 700;
}

.ef-article-content blockquote,
.ef-page-content blockquote {
  margin: 2.1em 0;
  padding: 22px 27px;
  border: 0;
  border-right: 4px solid var(--ef-brand);
  border-radius: 12px;
  background: #eef7fb;
}

.ef-article-content img,
.ef-page-content img {
  border-radius: 14px;
}

.ef-page-hero,
.ef-archive-hero {
  padding: 72px 20px 50px;
  text-align: center;
  background: linear-gradient(180deg, #f1f7ff, var(--ef-canvas));
}

.ef-archive-shell {
  padding-block: 72px 110px;
}

.ef-empty-state {
  max-width: 720px;
  margin: 90px auto 120px;
  padding: 50px 30px;
  border: 1px solid var(--ef-line);
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--ef-shadow-sm);
}

.ef-empty-state h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.ef-empty-state p {
  margin: 15px 0 25px;
  color: var(--ef-muted);
}

@media (max-width: 980px) {
  .ef-nav a:not(.ef-nav__cta) {
    display: none;
  }

  .ef-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 38px;
  }

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

  .ef-featured-card .wp-block-post-featured-image a,
  .ef-featured-card .wp-block-post-featured-image img {
    min-height: 350px;
    max-height: 470px;
  }

  .ef-grid.wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ef-section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .ef-shell {
    width: calc(100% - 30px);
  }

  .ef-announcement__inner {
    min-height: 36px;
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .ef-announcement a {
    margin-right: auto;
  }

  .ef-header__inner {
    min-height: 68px;
    gap: 12px;
  }

  .ef-brand img {
    width: 156px;
  }

  .ef-nav {
    gap: 0;
  }

  .ef-nav__cta {
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .ef-subnav__inner {
    justify-content: flex-start;
    gap: 22px;
    padding-inline: 2px;
  }

  .ef-subnav__inner span:not(:last-child)::after {
    left: -12px;
  }

  .ef-hero__grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    padding-block: 58px 64px;
  }

  .ef-hero__content {
    text-align: center;
  }

  .ef-hero h1 {
    max-width: 620px;
    margin-inline: auto;
    font-size: clamp(2.75rem, 12.5vw, 4.4rem);
    line-height: 1.02;
  }

  .ef-hero__lead {
    margin-inline: auto;
  }

  .ef-actions {
    justify-content: center;
  }

  .ef-hero__visual {
    width: 100%;
    max-width: 530px;
    margin-inline: auto;
  }

  .ef-floating-chip {
    left: 18px;
  }

  .ef-topics__inner {
    justify-content: flex-start;
  }

  .ef-featured-wrap {
    padding-block: 68px 76px;
  }

  .ef-featured-card {
    border-radius: 19px;
  }

  .ef-featured-card__body {
    padding: 31px 25px 36px;
  }

  .ef-articles {
    padding-bottom: 84px;
  }

  .ef-cta {
    margin-bottom: 64px;
    border-radius: 19px;
  }

  .ef-footer__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .ef-footer__bottom {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-block: 17px;
  }
}

@media (max-width: 560px) {
  .ef-announcement__inner > span:not(.ef-announcement__dot) {
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ef-brand img {
    width: 142px;
  }

  .ef-hero__grid {
    padding-top: 49px;
  }

  .ef-eyebrow {
    margin-bottom: 17px;
    font-size: 0.73rem;
  }

  .ef-hero h1 {
    max-width: 100%;
    font-size: clamp(2.38rem, 12vw, 3.3rem);
    line-height: 1.07;
    letter-spacing: -0.04em;
  }

  .ef-hero__lead {
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .ef-actions {
    gap: 9px;
    margin-top: 26px;
  }

  .ef-button {
    min-height: 47px;
    padding-inline: 16px;
    font-size: 0.83rem;
  }

  .ef-stage {
    min-height: 325px;
    padding: 21px;
    border-radius: 18px;
  }

  .ef-stage__top img {
    width: 128px;
  }

  .ef-stage__flow {
    gap: 6px;
  }

  .ef-stage__flow span {
    min-height: 62px;
    padding-inline: 3px;
    font-size: 0.59rem;
  }

  .ef-stage__stats {
    gap: 8px;
  }

  .ef-stage__stat {
    padding: 13px;
  }

  .ef-floating-chip {
    display: none;
  }

  .ef-featured-card .wp-block-post-featured-image a,
  .ef-featured-card .wp-block-post-featured-image img {
    min-height: 235px;
    max-height: 300px;
  }

  .ef-featured-card .wp-block-post-title {
    font-size: 1.85rem;
  }

  .ef-grid.wp-block-post-template {
    grid-template-columns: minmax(0, 1fr);
  }

  .ef-section-head h2 {
    font-size: 2.55rem;
  }

  .ef-cta {
    padding: 35px 23px;
  }

  .ef-article-hero {
    padding: 56px 16px 42px;
  }

  .ef-article-hero .wp-block-post-title,
  .ef-page-hero .wp-block-post-title,
  .ef-archive-title {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .ef-article-cover {
    width: calc(100% - 30px);
  }

  .ef-article-cover .wp-block-post-featured-image {
    border-radius: 16px;
  }

  .ef-article-content,
  .ef-page-content {
    width: calc(100% - 32px);
    margin-top: 44px;
    font-size: 1rem;
  }
}

@media (max-width: 390px) {
  .ef-brand img {
    width: 128px;
  }

  .ef-nav__cta {
    padding-inline: 10px;
  }

  .ef-announcement__inner > span:not(.ef-announcement__dot) {
    max-width: 155px;
  }

  .ef-hero h1 {
    font-size: 2.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
