/* ============================================================
   HomeRef Theme — main.css
   Palette: slate blue #3B5A8A · amber #C47B3A · charcoal #1A2332
   Fonts:   Playfair Display (headings) · Inter (body/UI)
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --hr-primary:        #3B5A8A;
  --hr-primary-dark:   #2D4470;
  --hr-primary-light:  #4E70A8;
  --hr-accent:         #C47B3A;
  --hr-accent-dark:    #A86530;
  --hr-accent-light:   #D9934E;

  --hr-dark:           #1A2332;
  --hr-text:           #2D3748;
  --hr-text-secondary: #4A5568;
  --hr-muted:          #718096;
  --hr-subtle:         #A0AEC0;

  --hr-bg:             #FFFFFF;
  --hr-bg-warm:        #F8F6F2;
  --hr-bg-section:     #F2EFE9;
  --hr-border:         #E5E0D8;
  --hr-border-light:   #EDE9E3;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-xs: 0 1px 2px rgba(26,35,50,0.06);
  --shadow-sm: 0 2px 8px rgba(26,35,50,0.07), 0 1px 3px rgba(26,35,50,0.04);
  --shadow-md: 0 6px 20px rgba(26,35,50,0.09), 0 2px 6px rgba(26,35,50,0.05);
  --shadow-lg: 0 16px 40px rgba(26,35,50,0.12), 0 4px 12px rgba(26,35,50,0.06);

  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.22s var(--ease);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--hr-text);
  background: var(--hr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--hr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--hr-accent); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; padding: 0; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--hr-dark);
  line-height: 1.18;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ── Layout Containers ───────────────────────────────────────── */
.hr-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.hr-container--wide   { max-width: 1440px; }
.hr-container--narrow { max-width: 800px; }

/* ── Section spacing ─────────────────────────────────────────── */
.hr-section { padding-block: clamp(48px, 8vw, 80px); }
.hr-section--sm { padding-block: clamp(32px, 5vw, 48px); }

.section-header { margin-bottom: clamp(28px, 4vw, 40px); }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hr-accent);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--hr-dark);
}
.section-title--light { color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  text-decoration: none;
}
.btn--primary {
  background: var(--hr-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--hr-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  border-color: var(--hr-border);
  color: var(--hr-text);
  background: #fff;
}
.btn--outline:hover {
  border-color: var(--hr-primary);
  color: var(--hr-primary);
}

/* ── Category Badge ──────────────────────────────────────────── */
.category-badge {
  display: inline-block;
  background: var(--hr-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1;
  transition: background var(--transition);
  text-decoration: none;
}
.category-badge:hover { background: var(--hr-accent-dark); color: #fff; }
.category-badge--primary { background: var(--hr-primary); }
.category-badge--primary:hover { background: var(--hr-primary-dark); }

/* ── Agent Header Strip (from plugin [toplead-header]) ───────── */
/* These styles fully replace the plugin's inline <style> block.  */
#agent-strip {
  background: #fff;
  border-bottom: 2px solid var(--hr-border);
}

#agent-strip .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  max-width: 1200px;
  margin-inline: auto;
  gap: 16px;
}

#agent-strip .left-section {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

#agent-strip .logo a { display: block; }
#agent-strip .logo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hr-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

#agent-strip .agent-info { text-align: left; }

#agent-strip .agent-info p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.875rem;
  color: var(--hr-text-secondary);
}

#agent-strip .agent-info p strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hr-dark);
  margin-bottom: 2px;
  font-style: normal;
}

#agent-strip .agent-info a {
  color: var(--hr-primary);
  transition: color var(--transition);
}
#agent-strip .agent-info a:hover { color: var(--hr-accent); }

#agent-strip .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}
#agent-strip .social-icons a {
  color: var(--hr-subtle);
  font-size: 1.05rem;
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}
#agent-strip .social-icons a:hover {
  color: var(--hr-primary);
  transform: translateY(-1px);
}

#agent-strip .brand-logo { flex-shrink: 0; }
#agent-strip .brand-logo img {
  max-width: 140px;
  height: auto;
  opacity: 0.92;
}

/* ── Navigation Bar ──────────────────────────────────────────── */
#nav-bar {
  background: var(--hr-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(26,35,50,0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  gap: 24px;
}

/* Generic logo (hidden when agent header is present) */
.nav-logo { flex-shrink: 0; line-height: 0; }
.nav-logo img { max-height: 34px; width: auto; }
.has-agent-header .nav-logo { display: none; }

/* Primary nav menu */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.primary-nav li a,
.primary-nav li > span {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 5px;
  transition: all var(--transition);
}
.primary-nav li a:hover,
.primary-nav li.current-menu-item a,
.primary-nav li.current-page-ancestor a {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Search icon in nav */
.nav-search-btn {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-search-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Hamburger */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background var(--transition);
}
#nav-toggle:hover { background: rgba(255,255,255,0.1); }
#nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
#nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Card Placeholder ─────────────────────────────────────────── */
.card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--hr-bg-section);
}
.card-placeholder svg { width: 100%; height: 100%; }

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: clamp(480px, 68vh, 760px);
  overflow: hidden;
  background: var(--hr-dark);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero:hover .hero__img { transform: scale(1.04); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,35,50,0.88) 0%,
    rgba(26,35,50,0.62) 45%,
    rgba(26,35,50,0.18) 100%
  );
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 64px);
}
.hero__content-inner { max-width: 640px; }

.hero__category { margin-bottom: 16px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.12;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero__excerpt {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.hero__meta .sep { opacity: 0.4; }

/* ── Articles Grid ───────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.articles-grid--2col { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }

/* ── Article Card ────────────────────────────────────────────── */
.article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hr-border-light);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hr-bg-section);
  flex-shrink: 0;
}
.article-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.article-card:hover .article-card__image-wrap img { transform: scale(1.06); }

.article-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.article-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--hr-dark);
  margin: 10px 0 10px;
  line-height: 1.28;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover .article-card__title { color: var(--hr-primary); }

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--hr-text-secondary);
  line-height: 1.62;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--hr-muted);
  border-top: 1px solid var(--hr-border-light);
  padding-top: 14px;
  margin-top: auto;
}
.article-card__meta svg { flex-shrink: 0; }

/* ── Featured Card (large card variant) ──────────────────────── */
.article-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  max-height: 380px;
}
.article-card--featured .article-card__image-wrap {
  width: 55%;
  flex-shrink: 0;
  aspect-ratio: unset;
  max-height: none;
}
.article-card--featured .article-card__title {
  font-size: 1.5rem;
  -webkit-line-clamp: 4;
}
.article-card--featured .article-card__excerpt { -webkit-line-clamp: 4; }

/* ── Category Browse Section ─────────────────────────────────── */
.browse-section {
  background: var(--hr-bg-warm);
  border-top: 1px solid var(--hr-border);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--hr-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}
.category-card:hover {
  background: var(--hr-primary);
  border-color: var(--hr-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card__icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}

.category-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hr-dark);
  margin-bottom: 4px;
  transition: color var(--transition);
}
.category-card:hover .category-card__name { color: #fff; }

.category-card__count {
  display: block;
  font-size: 0.78rem;
  color: var(--hr-muted);
  transition: color var(--transition);
}
.category-card:hover .category-card__count { color: rgba(255,255,255,0.75); }

/* ── Single Article ──────────────────────────────────────────── */
.article-hero {
  position: relative;
  height: clamp(300px, 48vh, 580px);
  overflow: hidden;
  background: var(--hr-dark);
}
.article-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,0.72) 0%, rgba(26,35,50,0.15) 55%, transparent 100%);
}
.article-hero--no-image {
  height: 160px;
  background: var(--hr-bg-warm);
  border-bottom: 1px solid var(--hr-border);
}

/* Article header (title area below hero) */
/* Article header (title area below hero) */
.article-header {
  padding: 40px 0 0;
}
.article-header__category { margin-bottom: 14px; }
.article-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--hr-dark);
  line-height: 1.12;
  margin-bottom: 20px;
}
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--hr-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hr-border);
  margin-bottom: 0;
}
.article-header__meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article body */
.article-body-wrap {
  padding: 40px 0 72px;
}

.article-body {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.82;
  color: var(--hr-text);
}
.article-body > * + * { margin-top: 1.4em; }
.article-body p { margin-bottom: 0; }
.article-body h2, .article-body h3, .article-body h4 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.article-body h2 { font-size: 1.65rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body a { color: var(--hr-primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--hr-accent); }
.article-body img {
  border-radius: var(--radius);
  margin-inline: auto;
  box-shadow: var(--shadow-md);
}
.article-body ul { list-style: disc; padding-left: 1.5em; }
.article-body ol { list-style: decimal; padding-left: 1.5em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  border-left: 4px solid var(--hr-accent);
  background: var(--hr-bg-warm);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.12em;
  color: var(--hr-text-secondary);
}
.article-body blockquote p { margin: 0; }
.article-body pre {
  background: var(--hr-dark);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9em;
}
.article-body code {
  background: var(--hr-bg-section);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--hr-primary);
}
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body figure { margin: 0; }
.article-body figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--hr-muted);
  margin-top: 10px;
  font-style: italic;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--hr-border);
  margin-block: 2.5em;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hr-border);
}
.article-body th { font-weight: 600; background: var(--hr-bg-warm); }

/* Social sharing row */
.article-share {
  max-width: 720px;
  margin-inline: auto;
  padding: 0 0 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.article-share__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hr-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.share-btn--fb  { background: #1877F2; color: #fff; }
.share-btn--tw  { background: #1DA1F2; color: #fff; }
.share-btn--li  { background: #0077B5; color: #fff; }
.share-btn--em  { background: var(--hr-bg-section); color: var(--hr-text); border: 1px solid var(--hr-border); }
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.share-btn--em:hover { color: var(--hr-text); }

/* ── Related Articles ─────────────────────────────────────────── */
.related-section {
  background: var(--hr-bg-warm);
  border-top: 1px solid var(--hr-border);
  padding-block: clamp(40px, 6vw, 64px);
}

/* ── Archive / Category Pages ────────────────────────────────── */
.archive-header {
  background: var(--hr-dark);
  padding: clamp(32px, 5vw, 60px) 0;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.archive-header__taxonomy {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hr-accent-light);
  margin-bottom: 10px;
  display: block;
}
.archive-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  margin-bottom: 12px;
}
.archive-header__desc {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.6;
}

/* Post count / archive description */
.archive-meta {
  font-size: 0.85rem;
  color: var(--hr-muted);
  margin-bottom: 24px;
}

/* ── Search Page ─────────────────────────────────────────────── */
.search-header {
  background: var(--hr-bg-warm);
  border-bottom: 1px solid var(--hr-border);
  padding: clamp(28px, 4vw, 48px) 0;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.search-header__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hr-accent);
  margin-bottom: 8px;
}
.search-header__title { margin-bottom: 20px; }

.search-form-large {
  display: flex;
  max-width: 560px;
  border: 2px solid var(--hr-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.search-form-large input[type="search"] {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  color: var(--hr-text);
}
.search-form-large button {
  background: var(--hr-primary);
  color: #fff;
  padding: 14px 20px;
  font-size: 1rem;
  transition: background var(--transition);
}
.search-form-large button:hover { background: var(--hr-primary-dark); }

/* ── 404 Page ────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: clamp(60px, 12vw, 120px) 0;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  color: var(--hr-border);
  line-height: 1;
  margin-bottom: 8px;
}
.error-page__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--hr-dark);
  margin-bottom: 16px;
}
.error-page__desc {
  color: var(--hr-text-secondary);
  max-width: 420px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.65;
}
.error-page__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ── About / Bio Page ─────────────────────────────────────────── */
.page-header--about {
  padding: clamp(14px, 2vw, 24px) 0;
  margin-bottom: clamp(14px, 2vw, 24px);
}
.about-content {
  padding-block: 24px 40px;
}
.about-agent {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 48px;
}
.about-agent__photo {
  flex-shrink: 0;
  width: clamp(120px, 20vw, 180px);
  position: sticky;
  top: 80px;
}
.about-agent__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--hr-border);
  box-shadow: var(--shadow-md);
}
.about-agent__welcome {
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hr-border-light);
}
.about-agent__welcome p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--hr-dark);
  line-height: 1.4;
  margin-bottom: 14px;
}
.about-agent__welcome p + p {
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--hr-text-secondary);
  margin-top: 1em;
}
.about-agent__name {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  margin-bottom: 8px;
}
.about-agent__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.about-agent__contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--hr-primary);
}
.about-agent__social .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.about-agent__social .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hr-bg-section);
  border: 1px solid var(--hr-border);
  color: var(--hr-text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
}
.about-agent__social .social-icons a:hover {
  background: var(--hr-primary);
  border-color: var(--hr-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.about-agent__bio {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--hr-text);
  max-width: 720px;
}
.about-generic {}

/* ── Page Layout ─────────────────────────────────────────────── */
.page-header {
  background: var(--hr-bg-warm);
  border-bottom: 1px solid var(--hr-border);
  padding: clamp(28px, 4vw, 48px) 0;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.page-content {
  padding-block: 24px 80px;
  font-size: 1.05rem;
  line-height: 1.75;
}
.page-content > * + * { margin-top: 1.2em; }
.page-content h2, .page-content h3 { margin-top: 2em; margin-bottom: 0.5em; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 48px 0 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--hr-border);
  background: #fff;
  color: var(--hr-text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--hr-primary); color: var(--hr-primary); }
.pagination .current {
  background: var(--hr-primary);
  border-color: var(--hr-primary);
  color: #fff;
}

/* ── No Results ──────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: clamp(60px, 10vw, 100px) 0;
}
.no-results__icon { font-size: 3.5rem; margin-bottom: 16px; color: var(--hr-border); }
.no-results__title { margin-bottom: 12px; }
.no-results__desc { color: var(--hr-text-secondary); max-width: 380px; margin-inline: auto; margin-bottom: 28px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--hr-dark);
  color: rgba(255,255,255,0.65);
  margin-top: auto;
}
.footer-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-logo img {
  max-height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }

.footer-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 28px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-lower a { color: rgba(255,255,255,0.45); }
.footer-lower a:hover { color: rgba(255,255,255,0.7); }

/* ── Accessibility ───────────────────────────────────────────── */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--hr-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ── WordPress Alignment Classes ─────────────────────────────── */
.aligncenter { display: block; margin-inline: auto; }
.alignright { float: right; margin: 0 0 1em 2em; }
.alignleft { float: left; margin: 0 2em 1em 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--hr-muted); text-align: center; margin-top: 6px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-card--featured {
    flex-direction: column;
    max-height: none;
  }
  .article-card--featured .article-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .about-agent { flex-direction: column; align-items: center; text-align: center; }
  .about-agent__photo { position: static; }
  .about-agent__contact { justify-content: center; }
}

@media (max-width: 768px) {
  /* Nav */
  #nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--hr-dark);
    flex-direction: column;
    padding: 8px 0 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    gap: 0;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav li a { padding: 11px 24px; font-size: 0.88rem; border-radius: 0; letter-spacing: 0.04em; }
  .nav-inner { position: relative; }

  /* Agent strip — keep row layout on mobile, shrink content to fit */
  #agent-strip .header-container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px clamp(12px, 4vw, 24px);
  }
  #agent-strip .left-section {
    flex: 1 1 0;
    min-width: 0;
    gap: 10px;
  }
  #agent-strip .left-section .logo img {
    width: 52px;
    height: 52px;
  }
  #agent-strip .agent-info p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #agent-strip .brand-logo {
    flex: 0 0 auto;
    align-self: center;
  }
  #agent-strip .brand-logo img { max-width: 100px; }

  /* Hero */
  .hero { height: 65vw; min-height: 340px; }
  .hero__excerpt { display: none; }

  /* Cards */
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid--2col { grid-template-columns: 1fr; }

  /* Category grid */
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  /* Article */
  .article-body { font-size: 1rem; line-height: 1.75; }

  /* Footer */
  .footer-upper { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (min-width: 1025px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid--4col { grid-template-columns: repeat(4, 1fr); }
}

/* Lazy load fade-in */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s var(--ease); }
img[loading="lazy"].loaded { opacity: 1; }

/* ── Archive Header (enhanced) ───────────────────────────────── */
/* Overrides earlier .archive-header block — cascade wins. */
.archive-header {
  background: var(--hr-dark);
  padding: clamp(40px, 7vw, 80px) 0;
  margin-bottom: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--hr-accent);
}

/* Decorative radial glow — top-right corner */
.archive-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(59,90,138,0.32) 0%, transparent 68%);
  pointer-events: none;
}

/* Decorative accent dot — bottom-left */
.archive-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 10%;
  width: 160px;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(196,123,58,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.archive-header__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative; /* above ::before pseudo-element */
}

/* ── Category filter pills ───────────────────────────────────── */
.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.archive-filter__pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.archive-filter__pill:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.36);
  color: #fff;
}

.archive-filter__pill.is-active {
  background: var(--hr-accent);
  border-color: var(--hr-accent);
  color: #fff;
}

/* On small screens, scroll pills horizontally instead of wrapping */
@media (max-width: 600px) {
  .archive-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .archive-filter::-webkit-scrollbar { display: none; }
}

/* ======================================================================
   Category tiles with background images
   --cat-img is set as an inline CSS custom property on each tile element.
   A white gradient overlay brightens the photo so dark text stays legible.
   ====================================================================== */

/* ── Home page: 4-column grid (4×2 for 8 categories) ──────────── */
@media (min-width: 769px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Image-backed card — overrides original .category-card block */
.category-card {
  background-color: var(--hr-bg-section);
  background-image: var(--cat-img, none);
  background-size: 130%;        /* slightly zoomed so it fills without being too recognisable */
  background-position: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-align: left;
}

/* White gradient — lighter top reveals image, denser bottom keeps text readable */
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.48) 0%,
    rgba(255,255,255,0.82) 50%,
    rgba(255,255,255,0.93) 100%
  );
  border-radius: inherit;
  transition: opacity var(--transition);
}

/* Text sits above the overlay */
.category-card__name,
.category-card__count { position: relative; z-index: 1; }

.category-card__name {
  font-size: 0.93rem;
  color: var(--hr-dark);
  margin-bottom: 2px;
  text-align: left;
}
.category-card__count {
  color: var(--hr-muted);
  text-align: left;
}

/* Hover: fade overlay slightly to reveal more image, accent the border */
.category-card:hover {
  background-color: var(--hr-bg-section);
  background-image: var(--cat-img, none); /* prevent 'background' shorthand reset */
  background-size: 130%;  /* locked — no zoom animation, prevents shorthand reset */
  border-color: var(--hr-primary);
  transform: none;  /* no lift — background image stays completely still */
  box-shadow: var(--shadow-md);
}
.category-card:hover::before { opacity: 0.80; }
.category-card:hover .category-card__name { color: var(--hr-primary); }
.category-card:hover .category-card__count { color: var(--hr-muted); }

/* ── Archive page: compact image filter tiles (8 per row) ──────── */
.archive-filter-tiles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.archive-filter-tile {
  position: relative;
  height: 76px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 7px 9px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.15);
  background-color: rgba(255,255,255,0.09);
  background-image: var(--cat-img, none);
  background-size: 160%;     /* zoomed to fill small tile */
  background-position: center;
  transition: all var(--transition);
}

/* White gradient overlay on image tiles */
.archive-filter-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.40) 0%,
    rgba(255,255,255,0.78) 100%
  );
  transition: opacity var(--transition);
}

.archive-filter-tile__name {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--hr-dark);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "All" tile: no image, stays dark to match header */
.archive-filter-tile--all {
  background-color: rgba(255,255,255,0.11);
  background-image: none;
  align-items: center;
  justify-content: center;
  border-color: rgba(255,255,255,0.22);
}
.archive-filter-tile--all::before { display: none; }
.archive-filter-tile--all .archive-filter-tile__name {
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  text-align: center;
  -webkit-line-clamp: 1;
}
.archive-filter-tile--all.is-active {
  background-color: var(--hr-accent);
  border-color: var(--hr-accent);
}
.archive-filter-tile--all.is-active .archive-filter-tile__name { color: #fff; }

/* Hover */
.archive-filter-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.32);
}
.archive-filter-tile:hover::before { opacity: 0.84; }

/* Active: amber ring */
.archive-filter-tile.is-active {
  border-color: var(--hr-accent);
  box-shadow: 0 0 0 2px var(--hr-accent);
}

/* Responsive breakpoints for filter tiles */
@media (max-width: 900px) {
  .archive-filter-tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .archive-filter-tiles { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ======================================================================
   Featured editorial block (home page hero replacement)
   3-article layout: 1 large primary (left 2/3) + 2 stacked cards (right 1/3)
   ====================================================================== */

.featured-block-wrap {
  padding-top: clamp(20px, 3vw, 36px);
}

.featured-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(12px, 1.5vw, 18px);
  height: 460px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ── Primary card ─────────────────────────────────────────────── */
.featured-primary {
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--hr-dark);
  display: block;
  text-decoration: none;
}

.featured-primary__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
  display: block;
}
.featured-primary__img--placeholder {
  background: linear-gradient(135deg, var(--hr-primary-dark) 0%, var(--hr-dark) 100%);
}
.featured-primary:hover .featured-primary__img { transform: scale(1.04); }

.featured-primary__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,35,50,0.92) 0%,
    rgba(26,35,50,0.52) 40%,
    rgba(26,35,50,0.10) 100%
  );
}

.featured-primary__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(18px, 3vw, 32px);
}

.featured-primary__content .category-badge {
  display: inline-block;
  margin-bottom: 12px;
}

.featured-primary__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  color: #fff;
  line-height: 1.18;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: opacity var(--transition);
}
.featured-primary:hover .featured-primary__title { opacity: 0.9; }

.featured-primary__excerpt {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-primary__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.featured-primary:hover .featured-primary__cta { color: #fff; }

/* ── Secondary aside cards ─────────────────────────────────────── */
.featured-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 18px);
}

.featured-aside .article-card {
  flex: 1;
  min-height: 0;
}

/* Image fills available vertical space instead of fixed aspect-ratio */
.featured-aside .article-card__image-wrap {
  aspect-ratio: unset;
  flex: 1;
  min-height: 90px;
}

/* ── Mobile: stack all 3 vertically ──────────────────────────── */
@media (max-width: 768px) {
  .featured-block {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .featured-primary {
    grid-row: auto;
    height: 300px;
  }
  .featured-aside {
    flex-direction: column;
  }
  .featured-aside .article-card__image-wrap {
    aspect-ratio: 16 / 9;
    flex: unset;
  }
}

/* ── Featured block grid fix ──────────────────────────────────────
   Drop explicit grid-template-rows so the grid uses a single
   implicit row at height:460px. Both children stretch to fill it.
   The aside's internal flex column splits that height between 2 cards.
   ──────────────────────────────────────────────────────────────── */
.featured-block {
  grid-template-rows: none;   /* override the repeat(2,1fr) */
  align-items: stretch;
}
.featured-primary {
  grid-row: auto;             /* clear explicit row span */
}
.featured-aside {
  grid-row: auto;
  align-self: stretch;
}

/* Secondary cards: give the image a fixed height so body has room */
.featured-aside .article-card__image-wrap {
  aspect-ratio: unset;
  height: 130px;
  flex: 0 0 130px;            /* fixed, not flexible */
  min-height: 0;
}
.featured-aside .article-card__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
/* Tighten excerpt clamp on small cards */
.featured-aside .article-card__excerpt {
  -webkit-line-clamp: 2;
}

/* ======================================================================
   Featured block v3 — 5-card newspaper grid
   Primary (col 1) spans both rows. Cards 2-5 auto-place in 2×2 right side.
   All 5 are direct grid children — no wrapper div, no nesting issues.
   ====================================================================== */

/* Override all previous featured-block rules */
.featured-block {
  display: grid !important;
  grid-template-columns: 2fr 1.15fr 1.15fr !important;
  grid-template-rows: repeat(2, 1fr) !important;
  grid-template-areas: none !important;
  gap: clamp(10px, 1.4vw, 16px) !important;
  height: 460px !important;
  align-items: unset !important;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Primary: explicit placement spanning both rows */
.featured-primary {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--hr-dark);
  display: block;
  text-decoration: none;
  min-height: 0;
  min-width: 0;
}

/* Secondary article cards: auto-placed into the 2×2 right cells */
.featured-block > .article-card {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fixed-height image — no aspect-ratio, no flex weirdness */
.featured-block > .article-card .article-card__image-wrap {
  height: 110px !important;
  aspect-ratio: unset !important;
  flex: 0 0 110px !important;
  overflow: hidden;
}

/* Body: fill remaining space, clip overflow so text never leaks */
.featured-block > .article-card .article-card__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px 12px;
}

.featured-block > .article-card .article-card__title {
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  margin: 4px 0 8px;
}

/* Excerpt too long for small cells — hide it */
.featured-block > .article-card .article-card__excerpt {
  display: none;
}

.featured-block > .article-card .article-card__meta {
  font-size: 0.72rem;
  padding-top: 8px;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet: primary full-width on top, 4 cards in 2×2 below */
@media (max-width: 900px) {
  .featured-block {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    height: auto !important;
  }
  .featured-primary {
    grid-column: 1 / 3 !important;
    grid-row: auto !important;
    height: 280px;
  }
  .featured-block > .article-card .article-card__excerpt {
    display: -webkit-box; /* restore excerpts at larger size */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Mobile: single column stack */
@media (max-width: 540px) {
  .featured-block {
    grid-template-columns: 1fr !important;
  }
  .featured-primary {
    grid-column: 1 !important;
  }
}

/* ======================================================================
   Featured Panel (fp-*) — home page top section
   Simple flex row: primary image card (60%) + 2 mini horizontal cards (40%)
   All-new class names avoid any conflict with previous featured-block rules.
   ====================================================================== */

/* ── Wrapper ──────────────────────────────────────────────────── */
.fp-wrap {
  display: flex;
  gap: clamp(12px, 1.8vw, 20px);
  margin: clamp(20px, 3vw, 36px) 0 clamp(36px, 5vw, 56px);
  align-items: stretch;
}

/* ── Primary card ─────────────────────────────────────────────── */
.fp-primary {
  flex: 0 0 60%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--hr-dark);
  min-height: 400px;
  display: block;
  text-decoration: none;
}

.fp-primary__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
  display: block;
}
.fp-primary__img--placeholder {
  background: linear-gradient(135deg, var(--hr-primary-dark) 0%, var(--hr-dark) 100%);
}
.fp-primary:hover .fp-primary__img { transform: scale(1.04); }

.fp-primary__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,35,50,0.93) 0%,
    rgba(26,35,50,0.52) 42%,
    rgba(26,35,50,0.08) 100%
  );
}

.fp-primary__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(18px, 3vw, 30px);
}

.fp-primary__content .category-badge { margin-bottom: 12px; display: inline-block; }

.fp-primary__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-primary__excerpt {
  color: rgba(255,255,255,0.80);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-primary__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.fp-primary:hover .fp-primary__cta { color: #fff; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.fp-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 16px);
  min-width: 0;
}

/* ── Mini card: horizontal [thumbnail | text] ─────────────────── */
.fp-mini {
  flex: 1;
  display: flex;
  background: #fff;
  border: 1px solid var(--hr-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 0;
}

.fp-mini:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fp-mini__img {
  flex: 0 0 140px;
  position: relative;
  overflow: hidden;
  background: var(--hr-bg-section);
}
.fp-mini__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.fp-mini:hover .fp-mini__img img { transform: scale(1.05); }

.fp-mini__body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.fp-mini__cat { flex-shrink: 0; }

.fp-mini__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--hr-dark);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.fp-mini:hover .fp-mini__title { color: var(--hr-primary); }

.fp-mini__meta {
  font-size: 0.78rem;
  color: var(--hr-muted);
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fp-primary { flex: none; min-height: 300px; }
  .fp-mini__img { flex: 0 0 110px; }
}

@media (max-width: 768px) {
  .fp-wrap { flex-direction: column; }
  .fp-primary { min-height: 280px; }
  .fp-mini__img { flex: 0 0 120px; }
  .fp-primary__excerpt { display: none; }
}

/* Flush top padding — used after the featured panel which has its own bottom margin */
.hr-section--flush-top { padding-top: 20px; }
@media (max-width: 768px) {
  .hr-section--flush-top { padding-top: clamp(28px, 6vw, 40px); }
}

/* ── Article hero: title overlay ─────────────────────────────────
   Category badge + h1 + read time now live inside the hero image.
   ────────────────────────────────────────────────────────────── */

/* Stronger gradient so white text is always legible */
.article-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(26,35,50,0.90) 0%,
    rgba(26,35,50,0.50) 45%,
    rgba(26,35,50,0.05) 100%
  );
}

/* Content pinned to the bottom of the hero */
.article-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: clamp(22px, 4vw, 40px);
}

.article-hero__content .category-badge {
  display: inline-block;
  margin-bottom: 12px;
}

.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  color: #fff;
  line-height: 1.14;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
}

/* No-image fallback: dark panel with same text layout */
.article-hero--no-image {
  height: clamp(180px, 28vh, 280px);
  background: linear-gradient(135deg, var(--hr-primary-dark) 0%, var(--hr-dark) 100%);
  display: flex;
  align-items: flex-end;
  border-bottom: none;
}
.article-hero--no-image .article-hero__content {
  position: static;
  padding-bottom: clamp(22px, 4vw, 36px);
  width: 100%;
}

/* Body: remove old top padding and the dividing line is gone with the header */
.article-body-wrap {
  padding-top: 28px;
}
