/* ══════════════════════════════════════════════════════════════
   ARCHIVE PAGE STYLES — Ideas & Innovations Newsletter
   Target: .page-id-21616 (archive/index page)
   Version: 1.3 — Boosted: read-time + subscribe CTA prominence
   ══════════════════════════════════════════════════════════════ */

/* ═══ CSS VARIABLES (must be defined here; article CSS doesn't load on this page) ═══ */
:root {
  --hf-blue: #2277bb;
  --hf-blue-dark: #1a5f99;
  --hf-blue-deep: #0f3554;
  --hf-orange: #e8943a;
  --hf-orange-hover: #d4832e;
  --hf-text: #1d1d1f;
  --hf-text-light: #555;
  --hf-text-muted: #888;
  --hf-bg: #ffffff;
  --hf-bg-warm: #faf8f5;
  --hf-bg-blue-light: #f0f6fb;
  --hf-border: #e2e2e2;
  --hf-serif: 'Source Serif 4', Georgia, serif;
  --hf-sans: 'Source Sans 3', system-ui, sans-serif;
  --hf-page-width: 1120px;
}

/* ═══ FULL-WIDTH BREAKOUT UTILITY ═══ */
.page-id-21616 .hf-archive-fullwidth {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}

/* ═══ HIDE ORIGINAL WPBAKERY ROWS (intro + subscribe) ═══ */
/* Row 0 & Row 1 sit inside a vc_section wrapper, not direct children of wpb-content-wrapper */
.page-id-21616 .single-page-article > .single-page-content > .wpb-content-wrapper > .vc_section > .vc_row:first-child,
.page-id-21616 .single-page-article > .single-page-content > .wpb-content-wrapper > .vc_section > .vc_row:nth-child(2) {
  display: none !important;
}

/* Also hide via the custom class in case structure varies */
.page-id-21616 .vc_custom_1664581521201 {
  display: none !important;
}

/* ═══ ARCHIVE HERO ═══ */
.page-id-21616 .hf-archive-hero {
  background: var(--hf-blue-deep);
  color: #ffffff;
  padding: 56px 32px 48px;
  text-align: center;
  margin-bottom: 0;
}
.page-id-21616 .hf-archive-hero .hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hf-orange);
  margin-bottom: 16px;
}
.page-id-21616 .hf-archive-hero h1 {
  font-family: var(--hf-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 16px;
  color: #ffffff;
  border: none;
  padding: 0;
}
.page-id-21616 .hf-archive-hero .hero-desc {
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ═══ SUBSCRIBE BANNER ═══ */
.page-id-21616 .hf-subscribe-banner {
  background: var(--hf-bg-blue-light);
  padding: 32px;
  border-bottom: 1px solid var(--hf-border);
  margin-bottom: 0;
}
.page-id-21616 .hf-subscribe-inner {
  max-width: var(--hf-page-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.page-id-21616 .hf-subscribe-text p {
  font-size: 17px;
  color: var(--hf-text);
  line-height: 1.55;
  margin: 0;
}
.page-id-21616 .hf-subscribe-text strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--hf-blue-deep);
}
.page-id-21616 .hf-subscribe-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.page-id-21616 .hf-subscribe-form input[type="email"] {
  font-family: var(--hf-sans);
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--hf-border);
  border-radius: 4px;
  width: 240px;
  outline: none;
  background: #ffffff;
}
.page-id-21616 .hf-subscribe-form input[type="email"]:focus {
  border-color: var(--hf-blue);
}
.page-id-21616 .hf-subscribe-form button {
  font-family: var(--hf-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  background: var(--hf-orange);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.page-id-21616 .hf-subscribe-form button:hover {
  background: var(--hf-orange-hover);
}

/* ═══ ISSUE COUNT BAR ═══ */
.page-id-21616 .hf-issue-count-bar {
  max-width: var(--hf-page-width);
  margin: 0 auto;
  padding: 24px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-id-21616 .hf-issue-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--hf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-id-21616 .hf-issue-count strong {
  color: var(--hf-text);
}

/* ═══ POST GRID — Transform vcex module to 2-column grid ═══ */
.page-id-21616 .vcex-module.vcex-post-type-archive {
  max-width: var(--hf-page-width);
  margin: 0 auto !important;
  padding: 24px 32px 48px;
}
.page-id-21616 .entries.wpex-row.wpex-masonry-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  float: none !important;
  width: 100% !important;
}

/* Remove masonry/column layout styles */
.page-id-21616 .blog-entry.wpex-masonry-col {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
}

/* ═══ ARTICLE CARDS ═══ */
.page-id-21616 .wpex-card.wpex-card-blog_2 {
  background: var(--hf-bg);
  border: 1px solid var(--hf-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  height: 100%;
}
.page-id-21616 .wpex-card.wpex-card-blog_2:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.page-id-21616 .wpex-card-inner {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

/* Card image — use aspect-ratio instead of fixed height to prevent cropping */
.page-id-21616 .wpex-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  flex-shrink: 0;
}
.page-id-21616 .wpex-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}
/* Hide overlay hover effect */
.page-id-21616 .wpex-card-media .overlay-parent-1::after,
.page-id-21616 .wpex-card-media .wpex-card-media-overlay {
  display: none !important;
}

/* Card details body */
.page-id-21616 .wpex-card-details {
  padding: 20px 24px 8px !important;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category/terms label → orange issue label */
.page-id-21616 .wpex-card-terms-list {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px !important;
}
.page-id-21616 .wpex-card-terms-list a {
  color: var(--hf-orange) !important;
  text-decoration: none !important;
}

/* Card title */
.page-id-21616 h2.wpex-card-title {
  font-family: var(--hf-serif) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}
.page-id-21616 h2.wpex-card-title a {
  color: var(--hf-text) !important;
  text-decoration: none !important;
}
.page-id-21616 h2.wpex-card-title a:hover {
  color: var(--hf-blue) !important;
}

/* Card excerpt */
.page-id-21616 .wpex-card-excerpt {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--hf-text-light) !important;
  margin-bottom: 16px !important;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer/meta */
.page-id-21616 .wpex-card-footer {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--hf-text-light);
  padding: 14px 24px 20px !important;
  border-top: 1px solid var(--hf-border);
  margin-top: auto;
}
.page-id-21616 .wpex-card-author {
  font-weight: 600 !important;
  color: var(--hf-text) !important;
  font-size: 14px !important;
}
.page-id-21616 .wpex-card-date {
  font-size: 14px !important;
  color: var(--hf-text-light) !important;
}
/* Separator dots between author · date · read time */
.page-id-21616 .wpex-card-author::after,
.page-id-21616 .wpex-card-date::after {
  content: '·';
  margin-left: 12px;
  color: var(--hf-text-light);
}
/* Read time (injected by Section 14c JS) */
.page-id-21616 .hf-read-time {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--hf-text-light) !important;
}

/* ═══ FEATURED CARD — First blog entry ═══ */
.page-id-21616 .blog-entry:first-child {
  grid-column: 1 / -1;
}
.page-id-21616 .blog-entry:first-child .wpex-card.wpex-card-blog_2 {
  border-radius: 8px;
}
.page-id-21616 .blog-entry:first-child .wpex-card-inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  flex-direction: row;
}
.page-id-21616 .blog-entry:first-child .wpex-card-media {
  aspect-ratio: auto;
  height: auto;
  min-height: 300px;
}
.page-id-21616 .blog-entry:first-child .wpex-card-details {
  padding: 32px !important;
  justify-content: center;
}
.page-id-21616 .blog-entry:first-child h2.wpex-card-title {
  font-size: 26px !important;
  margin-bottom: 12px !important;
}
.page-id-21616 .blog-entry:first-child .wpex-card-excerpt {
  font-size: 15px !important;
  -webkit-line-clamp: 4;
  margin-bottom: 20px !important;
}
/* Featured badge — injected via CSS pseudo-element */
.page-id-21616 .blog-entry:first-child .wpex-card-terms-list::before {
  content: 'Latest Issue';
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: var(--hf-blue);
  padding: 4px 10px;
  border-radius: 3px;
  margin-right: 12px;
  vertical-align: middle;
}
/* Footer for featured card merges into details */
.page-id-21616 .blog-entry:first-child .wpex-card-footer {
  grid-column: 2;
  padding: 0 32px 32px !important;
  border-top: none;
}

/* ═══ PAGINATION ═══ */
.page-id-21616 .wpex-pagination {
  max-width: var(--hf-page-width);
  margin: 0 auto !important;
  padding: 0 32px 48px;
  text-align: center;
}
.page-id-21616 .wpex-pagination ul.page-numbers {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-id-21616 .wpex-pagination ul.page-numbers li {
  display: inline-flex;
}
.page-id-21616 .wpex-pagination ul.page-numbers li a,
.page-id-21616 .wpex-pagination ul.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s;
}
.page-id-21616 .wpex-pagination ul.page-numbers li a {
  color: var(--hf-text-light);
  border: 1px solid var(--hf-border);
  background: var(--hf-bg);
}
.page-id-21616 .wpex-pagination ul.page-numbers li a:hover {
  border-color: var(--hf-blue);
  color: var(--hf-blue);
  text-decoration: none;
}
.page-id-21616 .wpex-pagination ul.page-numbers li span.current,
.page-id-21616 .wpex-pagination ul.page-numbers li .current {
  background: var(--hf-blue);
  color: #ffffff;
  border: 1px solid var(--hf-blue);
}
.page-id-21616 .wpex-pagination ul.page-numbers li .dots {
  color: var(--hf-text-muted);
  border: none;
  background: none;
}

/* ═══ CONNECT SECTION ═══ */
.page-id-21616 .hf-connect-section {
  background: var(--hf-bg-warm);
  padding: 48px 32px;
  margin-top: 0;
}
.page-id-21616 .hf-connect-inner {
  max-width: var(--hf-page-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.page-id-21616 .hf-connect-section h3 {
  font-family: var(--hf-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--hf-text);
  margin-bottom: 12px;
}
.page-id-21616 .hf-connect-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--hf-text-light);
  margin-bottom: 16px;
}
.page-id-21616 .hf-connect-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.page-id-21616 .hf-connect-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--hf-blue);
  padding: 8px 16px;
  border: 1px solid var(--hf-blue);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}
.page-id-21616 .hf-connect-links a:hover {
  background: var(--hf-blue);
  color: #ffffff;
  text-decoration: none;
}
.page-id-21616 .hf-podcast-platforms {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-id-21616 .hf-podcast-platforms a {
  font-size: 13px;
  font-weight: 600;
  color: var(--hf-text-light);
  padding: 6px 14px;
  background: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--hf-border);
}
.page-id-21616 .hf-podcast-platforms a:hover {
  border-color: var(--hf-blue);
  color: var(--hf-blue);
  text-decoration: none;
}

/* ═══ CONTENT AREA OVERRIDES ═══ */
/* Remove default content area padding/margins that interfere */
.page-id-21616 .content-area {
  max-width: 100% !important;
  padding: 0 !important;
}
.page-id-21616 .single-page-article {
  max-width: 100% !important;
  padding: 0 !important;
}
.page-id-21616 .single-page-content {
  max-width: 100% !important;
  padding: 0 !important;
}
.page-id-21616 .wpb-content-wrapper {
  max-width: 100% !important;
}
/* Remove any default spacing from the vcex row that contains the grid */
.page-id-21616 .vc_row:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ═══ REMOVE WPBAKERY MASONRY JS POSITIONING ═══ */
.page-id-21616 .entries.wpex-row.wpex-masonry-grid .blog-entry {
  position: static !important;
  transform: none !important;
}
.page-id-21616 .entries.wpex-row.wpex-masonry-grid {
  height: auto !important;
  position: relative !important;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
  .page-id-21616 .entries.wpex-row.wpex-masonry-grid {
    grid-template-columns: 1fr;
  }
  .page-id-21616 .blog-entry:first-child .wpex-card-inner {
    grid-template-columns: 1fr !important;
  }
  .page-id-21616 .blog-entry:first-child .wpex-card-media {
    min-height: 220px;
  }
  .page-id-21616 .blog-entry:first-child .wpex-card-footer {
    grid-column: 1;
    padding: 14px 24px 20px !important;
    border-top: 1px solid var(--hf-border);
  }
  .page-id-21616 .hf-subscribe-inner {
    flex-direction: column;
    text-align: center;
  }
  .page-id-21616 .hf-subscribe-form {
    justify-content: center;
  }
  .page-id-21616 .hf-connect-inner {
    grid-template-columns: 1fr;
  }
  .page-id-21616 .hf-archive-hero h1 {
    font-size: 32px;
  }
  .page-id-21616 .vcex-module.vcex-post-type-archive {
    padding: 24px 20px 48px;
  }
}
@media (max-width: 600px) {
  .page-id-21616 .hf-archive-hero {
    padding: 36px 20px 32px;
  }
  .page-id-21616 .hf-archive-hero h1 {
    font-size: 26px;
  }
  .page-id-21616 .hf-subscribe-form {
    flex-direction: column;
    width: 100%;
  }
  .page-id-21616 .hf-subscribe-form input[type="email"] {
    width: 100%;
  }
  .page-id-21616 .wpex-card-media {
    aspect-ratio: 16 / 9;
  }
  .page-id-21616 .blog-entry:first-child h2.wpex-card-title {
    font-size: 22px !important;
  }
  .page-id-21616 .hf-subscribe-banner,
  .page-id-21616 .hf-archive-hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}
