:root {
  --fred-bg: #f7f9fc;
  --fred-surface: #ffffff;
  --fred-surface-soft: #eef4ff;
  --fred-ink: #081327;
  --fred-ink-muted: #4e5f78;
  --fred-border: #dbe5f3;
  --fred-blue: #2667ff;
  --fred-blue-dark: #1640b8;
  --fred-cyan: #2bd6c4;
  --fred-radius-lg: 28px;
  --fred-radius-md: 18px;
  --fred-shadow: 0 20px 60px rgba(8, 19, 39, 0.08);
  --fred-max: 1180px;
}

body .fred-resources-hero,
body .fred-archive-hero,
body .fred-article-header {
  background: radial-gradient(circle at top right, rgba(43, 214, 196, 0.18), transparent 34%), linear-gradient(180deg, #ffffff 0%, var(--fred-bg) 100%);
}

body .fred-resources-hero .et_pb_row,
body .fred-archive-hero .et_pb_row,
body .fred-article-header .et_pb_row,
body .fred-cta-section .et_pb_row,
body .et_pb_section .et_pb_row {
  max-width: var(--fred-max);
}

.fred-eyebrow,
.fred-kicker {
  color: var(--fred-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fred-hero-heading h1,
.fred-archive-title h1,
.fred-post-title h1 {
  color: var(--fred-ink);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 14px 0 18px;
  max-width: 920px;
}

.fred-post-title h1 {
  font-size: clamp(40px, 5vw, 64px);
  max-width: 960px;
}

.fred-hero-intro p,
.fred-section-heading p,
.fred-card p,
.fred-cta p {
  color: var(--fred-ink-muted);
  font-size: 18px;
  line-height: 1.65;
}

.fred-hero-intro p {
  max-width: 720px;
}

.fred-section-heading h2,
.fred-cta h2,
.fred-card h2 {
  color: var(--fred-ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 10px;
}

.fred-section-heading.compact h2 {
  font-size: 32px;
}

.fred-card,
.fred-cta {
  background: var(--fred-surface);
  border: 1px solid var(--fred-border);
  border-radius: var(--fred-radius-lg);
  box-shadow: var(--fred-shadow);
  padding: 30px;
}

.fred-card-muted {
  background: linear-gradient(145deg, #ffffff 0%, var(--fred-surface-soft) 100%);
}

.fred-topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.fred-topic-list a {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--fred-border);
  border-radius: 999px;
  color: var(--fred-ink);
  display: flex;
  font-size: 16px;
  font-weight: 650;
  justify-content: space-between;
  padding: 15px 18px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fred-topic-list a:after {
  color: var(--fred-blue);
  content: '→';
  font-weight: 700;
}

.fred-topic-list a:hover {
  border-color: rgba(38, 103, 255, 0.55);
  box-shadow: 0 14px 34px rgba(8, 19, 39, 0.08);
  transform: translateY(-2px);
}

.fred-blog-grid .et_pb_post {
  background: #ffffff;
  border: 1px solid var(--fred-border);
  border-radius: var(--fred-radius-lg);
  box-shadow: none;
  margin-bottom: 26px;
  overflow: hidden;
  padding: 0;
}

.fred-blog-grid .et_pb_image_container,
.fred-blog-grid .entry-featured-image-url {
  margin: 0;
}

.fred-blog-grid .entry-featured-image-url img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.fred-blog-grid .entry-title,
.fred-blog-grid .post-meta,
.fred-blog-grid .post-content {
  padding-left: 24px;
  padding-right: 24px;
}

.fred-blog-grid .entry-title {
  font-size: 24px;
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin-top: 22px;
  padding-bottom: 4px;
}

.fred-blog-grid .entry-title a {
  color: var(--fred-ink);
  text-decoration: none;
}

.fred-blog-grid .post-meta {
  color: var(--fred-ink-muted);
  font-size: 13px;
  font-weight: 600;
  padding-bottom: 24px;
}

.fred-blog-grid .pagination {
  margin-top: 34px;
}

.fred-featured-image img {
  border-radius: var(--fred-radius-lg);
  box-shadow: var(--fred-shadow);
  max-height: 560px;
  object-fit: cover;
  width: 100%;
}

.fred-post-content {
  color: var(--fred-ink);
  font-size: 19px;
  line-height: 1.78;
}

.fred-post-content h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 1.6em 0 .55em;
}

.fred-post-content h3 {
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.02em;
  margin: 1.4em 0 .45em;
}

.fred-post-content p,
.fred-post-content li {
  color: #223047;
}

.fred-post-content a,
.fred-article-meta a {
  color: var(--fred-blue);
  font-weight: 650;
}

.fred-article-meta {
  position: sticky;
  top: 110px;
}

.fred-cta {
  align-items: center;
  background: linear-gradient(135deg, #081327 0%, #102b66 100%);
  border: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr auto;
  padding: clamp(30px, 5vw, 54px);
}

.fred-cta .fred-kicker,
.fred-cta h2,
.fred-cta p {
  color: #ffffff;
}

.fred-cta p {
  color: rgba(255,255,255,.78);
  max-width: 680px;
}

.fred-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.fred-button-primary,
.fred-button-secondary,
.fred-secondary-button .et_pb_button {
  border-radius: 999px !important;
  display: inline-flex;
  font-weight: 700;
  padding: 14px 20px;
  text-decoration: none;
}

.fred-button-primary {
  background: var(--fred-blue);
  color: #fff;
}

.fred-button-secondary {
  background: rgba(255,255,255,.11);
  color: #fff;
}

.fred-search-module input.et_pb_s,
.fred-search-module input.et_pb_searchsubmit {
  border-radius: 999px;
}

@media (min-width: 980px) {
  .fred-blog-grid .et_pb_ajax_pagination_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
  .fred-blog-grid-archive .et_pb_ajax_pagination_container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fred-blog-grid .pagination {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .fred-topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fred-cta {
    grid-template-columns: 1fr;
  }
  .fred-cta-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .fred-topic-list {
    grid-template-columns: 1fr;
  }
  .fred-hero-heading h1,
  .fred-archive-title h1,
  .fred-post-title h1 {
    font-size: 40px;
  }
  .fred-card,
  .fred-cta {
    border-radius: 22px;
    padding: 24px;
  }
}
