/**
 * Italy Made Easy — Blog Styles (Phase 3)
 * Post hero, promo card, reading layout, archive grid.
 * ALL values from tokens.css — never hardcode.
 */

/* ═══════════════════════════════════════════════════════════
   POST HERO
   ═══════════════════════════════════════════════════════════ */

.post-hero {
  background-color: #081224; /* dark fallback when no featured image */
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-7) 0 0;
  overflow: visible;
  position: relative;
}


/* Overlay always applied — dark bg fallback handles no-image posts */
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Layer 1 (top): very mild brand gradient tint */
  /* Layer 2 (bottom): dark overlay for text legibility */
  background:
    linear-gradient(
      105deg,
      rgba(0, 144, 255, 0.20) 0%,
      rgba(0, 144, 255, 0.15) 42%,
      rgba(233, 61, 130, 0.18) 60%,
      rgba(233, 61, 130, 0.14) 100%
    ),
    linear-gradient(
      to right,
      rgba(8, 18, 36, 0.80) 0%,
      rgba(8, 18, 36, 0.65) 55%,
      rgba(8, 18, 36, 0.50) 100%
    );
  z-index: 0;
  pointer-events: none;
}

/* No featured image: soft blue → purple → pink gradient */
.post-hero:not(.has-hero-image)::before {
  background: linear-gradient(
    to right,
    rgba(0, 144, 255, 0.30) 0%,
    rgba(30, 100, 255, 0.27) 15%,
    rgba(80, 60, 230, 0.25) 30%,
    rgba(140, 50, 195, 0.25) 45%,
    rgba(190, 50, 155, 0.27) 60%,
    rgba(220, 50, 130, 0.30) 75%,
    rgba(233, 61, 130, 0.35) 90%,
    rgba(200, 40, 110, 0.40) 100%
  );
}

/* Lift content above overlay */
.post-hero-inner {
  position: relative;
  z-index: 1;
}

/* Text colours — dark hero always */
.post-hero .post-witty-pill {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(233, 61, 130, 0.18);
  border-color: rgba(233, 61, 130, 0.38);
}

.post-hero .post-tag-pill {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}

.post-hero-inner {
  max-width: var(--max-width-site);
  margin: 0 auto;
  /*padding: 0 var(--sp-10);*/
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-9);
  align-items: stretch;
}

/* ─── Left: Post Info ─────────────────────────────────── */

.post-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-witty-pill {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-pink);
  background: rgba(233, 61, 130, 0.06);
  border: 1px solid rgba(233, 61, 130, 0.15);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-5);
  margin-bottom: var(--sp-4);
  width: fit-content;
}


.post-hero .post-title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--sp-6);
}

/* Title size adaptation by character count (< 50 chars = default h1, no class) */
.post-hero .post-title.title-medium {
  font-size: clamp(36px, 5vw, 58px); /* 51-85 chars — fills 2-3 lines */
}
.post-hero .post-title.title-long {
  font-size: clamp(28px, 3.8vw, 44px); /* > 85 chars */
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

.post-meta-sep {
  color: var(--color-border);
}

/* ─── Right: Promo Card ───────────────────────────────── */

.post-promo {
  background: var(--color-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
  margin-bottom: -80px;
}

/* ─── Founder Photo ───────────────────────────────────── */

.post-promo-photo {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.post-promo-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* ─── Identity Strip ──────────────────────────────────── */

.post-promo-banner {
  background: rgba(0, 144, 255, 0.05);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.post-promo-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.post-promo-dots span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.post-promo-dots span:nth-child(1) { background: #008C45; }
.post-promo-dots span:nth-child(2) { background: #FFFFFF; border: 1px solid var(--color-border); }
.post-promo-dots span:nth-child(3) { background: #C3001D; }

.post-promo-banner-text {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin: 0;
  font-weight: var(--font-weight-medium);
  font-style: italic;
}

.post-promo-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.post-promo-eyebrow {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-promo-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  margin: 0;
  line-height: var(--line-height-tight);
  white-space: nowrap;
}

.post-promo-desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin: 0;
  line-height: var(--line-height-normal);
}

/* ─── Post Tags ───────────────────────────────────────── */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.post-tag-pill {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: rgba(0, 144, 255, 0.07);
  color: var(--color-blue);
  border: 1px solid rgba(0, 144, 255, 0.15);
  border-radius: var(--r-pill);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.post-tag-pill:hover {
  background: rgba(0, 144, 255, 0.13);
  text-decoration: none;
}

.post-body {
  padding-top: 80px; /* clears promo card bleed */
}

/* ═══════════════════════════════════════════════════════════
   POST BODY LAYOUT (article + sidebar grid)
   ═══════════════════════════════════════════════════════════ */

.post-body-layout {
  max-width: var(--max-width-site);
  margin: 0 auto;
  /*padding: 0 var(--sp-10);*/
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-10);
  align-items: start;
}

/* ─── Article column ──────────────────────────────────── */

.post-content-wrap {
  padding: 0 0 var(--sp-11);
  margin-top: -40px;
}

.post-content {
  max-width: 70ch;
}

/* ─── Sidebar column ──────────────────────────────────── */

.post-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-6));
  margin-top: 96px; /* clears the 80px promo card bleed + small gap */
}

.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-label {
  display: block;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-cta-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  margin: var(--sp-4) 0 var(--sp-3);
  line-height: var(--line-height-tight);
}

.sidebar-cta-desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin: 0 0 var(--sp-6);
  line-height: var(--line-height-normal);
}

.sidebar-cta-btn {
  display: block;
  text-align: center;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   POST CONTENT
   ═══════════════════════════════════════════════════════════ */

.post-content p,
.post-content li {
  line-height: var(--line-height-loose);
  font-size: var(--font-size-md);
  color: var(--color-text);
}

.post-content h2 {
  font-size: var(--font-size-h2);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
}

.post-content h3 {
  font-size: var(--font-size-h3);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.post-content img {
  width: 100%;
  border-radius: var(--r-md);
  margin: var(--sp-7) 0;
}

.post-content a {
  color: var(--color-blue);
  text-decoration: underline;
}

.post-content blockquote {
  border-left: 3px solid var(--color-blue);
  margin: var(--sp-7) 0;
  padding: var(--sp-4) var(--sp-6);
  background: rgba(0, 144, 255, 0.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR BANNERS (Quiz + Join) — promotional style
   ═══════════════════════════════════════════════════════════ */

/* ─── Base banner ─────────────────────────────────────── */

.sb-banner {
  display: block;
  text-decoration: none;
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sb-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.sb-banner__content {
  position: relative;
  z-index: 1;
}

.sb-banner__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
}

.sb-banner__title {
  font-family: var(--font-body);
  font-size: clamp(32px, 8vw, 38px);
  font-weight: 800;
  color: #fff;
  margin: 8px 0 8px;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.sb-banner__desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.sb-banner__desc--lg {
  font-size: 18px;
  line-height: 1.55;
}

.sb-banner__btn {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  padding: 12px 24px;
  transition: all 0.25s ease;
}

.sb-banner:hover .sb-banner__btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.sb-banner__btn--pink {
  background: linear-gradient(135deg, #0090FF 0%, #E93D82 100%);
  border: none;
  color: #fff;
}

.sb-banner:hover .sb-banner__btn--pink {
  background: linear-gradient(135deg, #0078d4 0%, #d4306e 100%);
}

/* Tricolor dots */
.sb-banner__tricolor {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.sb-banner__tricolor span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sb-banner__tricolor span:nth-child(1) { background: #008C45; }
.sb-banner__tricolor span:nth-child(2) { background: #F1F2F1; }
.sb-banner__tricolor span:nth-child(3) { background: #C3001D; }

/* ─── Quiz Banner ─────────────────────────────────────── */

.sb-banner--quiz {
  background: #1C3447;
  min-height: 420px;
}

/* Photo background */
.sb-banner__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sb-banner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}

.sb-banner--quiz .sb-banner__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 52, 71, 0.25) 0%,
    rgba(28, 52, 71, 0.35) 20%,
    rgba(28, 52, 71, 0.55) 40%,
    rgba(28, 52, 71, 0.85) 65%,
    rgba(28, 52, 71, 0.95) 100%
  );
}

.sb-banner--quiz .sb-banner__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  padding: 24px 22px 28px;
}

/* Push the bottom group together */
.sb-banner--quiz .sb-banner__bottom {
  margin-top: auto;
}

/* Bonus teaser (Starter Kit) */
.sb-quiz-bonus {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.sb-quiz-bonus__icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.sb-quiz-bonus__text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

/* ─── Join Banner ─────────────────────────────────────── */

.sb-banner--join {
  background: #1C3447;
  display: flex;
  flex-direction: column;
}

/* Pill above photo */
.sb-join-pill-wrap {
  padding: 18px 22px 0;
}

/* Photo section */
.sb-join-photo {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(145deg, #243d54 0%, #1C3447 100%);
}

/* Feature icons + labels */
.sb-join-features {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-join-feat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-join-feat__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.sb-join-feat__label {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Italian tricolor stripe separator */
.sb-join-stripe {
  height: 3px;
  background: linear-gradient(to right, #008C45 33.33%, #F1F2F1 33.33%, #F1F2F1 66.66%, #CE2B37 66.66%);
}

.sb-join-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 5% bottom;
}

.sb-join-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, #1C3447);
}

/* Text section — below photo */
.sb-join-body {
  padding: 18px 22px 26px;
}

/* Price text on medium navy */
.sb-banner--join .sb-banner__price {
  color: rgba(255, 255, 255, 0.6);
}

.sb-banner--join .sb-banner__price strong {
  color: #fff;
}

/* Feature checklist */
.sb-join-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 14px;
}

.sb-join-features__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-join-features__item svg {
  flex-shrink: 0;
}

.sb-join-features__item span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

/* Price callout */
.sb-banner__price {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 16px;
}

.sb-banner__price strong {
  color: #fff;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH & FILTER BAR
   ═══════════════════════════════════════════════════════════ */

.ime-search-filter {
  margin-bottom: var(--sp-8);
}

.ime-search-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-5);
}

.ime-search-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ─── Keyword input ───────────────────────────────────────── */

.ime-search-input {
  flex: 1;
  min-width: 160px;
  height: 44px;
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  background: #FBFDFF;
  transition: border-color var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.ime-search-input::placeholder { color: var(--color-muted); }
.ime-search-input:focus { border-color: var(--color-blue); }

/* ─── Search button ───────────────────────────────────────── */

.ime-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--sp-6);
  background: var(--color-blue);
  color: var(--color-white);
  border: none;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.ime-search-btn:hover { background: #0078d4; }

/* ─── Custom select ───────────────────────────────────────── */

.ime-custom-select {
  position: relative;
  min-width: 160px;
}

/* Trigger — pill-shaped button matching the keyword input */
.ime-custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  height: 44px;
  padding: 0 var(--sp-5);
  background: #FBFDFF;
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: border-color var(--transition-fast);
}

.ime-custom-select__trigger:focus { outline: none; border-color: var(--color-blue); }

.ime-custom-select__trigger[disabled],
.ime-custom-select.is-disabled .ime-custom-select__trigger {
  opacity: 0.45;
  cursor: not-allowed;
}

.ime-custom-select__chevron {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform var(--transition-fast);
}

.ime-custom-select__trigger[aria-expanded="true"] .ime-custom-select__chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.ime-custom-select__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 150%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
}

/* Options */
.ime-custom-select__option {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

.ime-custom-select__option:last-child { border-bottom: none; }
.ime-custom-select__option:hover { background: var(--color-blue-tint); }
.ime-custom-select__option.is-selected {
  color: var(--color-blue);
  font-weight: var(--font-weight-semibold);
  background: rgba(0, 144, 255, 0.04);
}

/* Hide native select visually — kept for form submission */
.ime-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Search results ──────────────────────────────────────── */

.archive-title-query {
  font-style: italic;
  color: var(--color-blue);
}

.search-no-results {
  padding: var(--sp-11) 0;
  text-align: center;
}

.search-no-results__msg {
  font-size: var(--font-size-md);
  color: var(--color-muted);
  margin-bottom: var(--sp-6);
}

.search-no-results__btn {
  display: inline-flex;
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE (post grid)
   ═══════════════════════════════════════════════════════════ */

.archive-page {
  padding: var(--sp-11) var(--sp-10);
}

.archive-header {
  margin-bottom: var(--sp-10);
}

.archive-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extrabold);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-11);
}

.post-card {
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

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

.post-card-thumb {
  display: block;
  overflow: hidden;
  background: var(--grad-subtle);
  min-height: 220px;
}

.post-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}

.post-card-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.post-card-media {
  position: relative;
}

.post-card-category {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-pink);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
  line-height: var(--line-height-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-blue);
}

.post-card time {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.post-card-excerpt {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  margin: var(--sp-2) 0 0;
  line-height: 1.4;
}

.post-card-excerpt p {
  margin: 0;
}

.read-more {
  margin-top: auto;
  padding-top: var(--sp-4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-blue);
  font-size: var(--font-size-sm);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ─── Pagination ──────────────────────────────────────────────────── */

.pagination {
  margin-top: var(--sp-11);
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* Base style for all page-number elements */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  background: transparent;
  border: 1.5px solid var(--color-border);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  line-height: 1;
}

/* Numbered page links — fixed-width circles */
.pagination a.page-numbers:not(.prev):not(.next) {
  width: 44px;
  padding: 0;
}

/* Hover state for all clickable page items */
.pagination a.page-numbers:hover {
  color: var(--color-blue);
  border-color: var(--color-blue);
  background: var(--color-blue-tint);
}

/* Current page — filled blue */
.pagination .page-numbers.current {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

/* Prev / Next — wider pills */
.pagination .prev.page-numbers,
.pagination .next.page-numbers {
  padding: 0 var(--sp-5);
}

.pagination .prev.page-numbers:hover,
.pagination .next.page-numbers:hover {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

/* Italian tricolor ellipsis */
.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 var(--sp-2);
  gap: 5px;
  cursor: default;
}

/* Tricolor dot base */
.tcd {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tcd--g { background: #008C45; }
.tcd--w { background: #FFFFFF; border: 1.5px solid var(--color-border); }
.tcd--r { background: #C3001D; }

/* ═══════════════════════════════════════════════════════════
   BLOG HERO IMMERSIVE (Design 10: Panorama)
   ═══════════════════════════════════════════════════════════ */

.blog-hero-immersive {
  position: relative;
  z-index: 2;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-color: #081224; /* dark fallback */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  border-bottom: none;
}

/* Dark gradient overlay — heavy at bottom for legibility, subtle at top */
.blog-hero-immersive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 18, 36, 0.95) 0%,
    rgba(8, 18, 36, 0.82) 35%,
    rgba(8, 18, 36, 0.55) 65%,
    rgba(8, 18, 36, 0.25) 90%,
    rgba(8, 18, 36, 0.10) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Text-shadow on hero title & sub for extra legibility against busy backgrounds */
.blog-hero-immersive__title,
.blog-hero-immersive__sub {
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

/* Italian tricolor line at the very top */
.blog-hero-immersive__tricolor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #009246 33.33%, #F1F2F1 33.33%, #F1F2F1 66.66%, #CE2B37 66.66%);
  z-index: 2;
}

/* Inner content — sits above overlay */
.blog-hero-immersive__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  padding: 48px 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Glass pill badge */
.blog-hero-immersive__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: 'Figtree', -apple-system, sans-serif;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Tricolor dots inside pill */
.blog-hero-immersive__dots {
  display: inline-flex;
  gap: 4px;
}
.blog-hero-immersive__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.blog-hero-immersive__dots span:nth-child(1) { background: #009246; }
.blog-hero-immersive__dots span:nth-child(2) { background: #F1F2F1; }
.blog-hero-immersive__dots span:nth-child(3) { background: #CE2B37; }

/* Main title */
.blog-hero-immersive__title {
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Accent word "Blog" — subtle light blue, no gradient */
.blog-hero-immersive__accent {
  color: #93C5FD;
}

/* Subtitle */
.blog-hero-immersive__sub {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  line-height: 1.6;
}

/* Glassmorphism search bar container */
.blog-hero-immersive__search {
  margin-top: 24px;
  max-width: 720px;
  width: 100%;
}

.blog-hero-immersive__search .ime-search-filter {
  margin-bottom: 0;
}

.blog-hero-immersive__search .ime-search-form {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  box-shadow: none;
}

.blog-hero-immersive__search .ime-search-input {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.blog-hero-immersive__search .ime-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.blog-hero-immersive__search .ime-search-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.blog-hero-immersive__search .ime-search-btn {
  background: #0090FF;
  color: white;
}

.blog-hero-immersive__search .ime-search-btn:hover {
  background: #0078d4;
}

.blog-hero-immersive__search .ime-custom-select__trigger {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.blog-hero-immersive__search .ime-custom-select__trigger:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.blog-hero-immersive__search .ime-custom-select__chevron {
  color: white;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .post-hero-inner {
    grid-template-columns: 1fr 340px;
    gap: var(--sp-7);
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .post-hero .post-title { font-size: clamp(32px, 4.5vw, 52px); }
  .post-hero .post-title.title-medium { font-size: clamp(28px, 4vw, 44px); }
}

@media (max-width: 900px) {
  .post-hero { padding: var(--sp-7) 0 0; }
  .post-hero-inner { padding: 0 var(--sp-4); grid-template-columns: 1fr; }

}

@media (max-width: 768px) {
  .post-hero {
    padding: var(--sp-7) 0 var(--sp-5);
  }

  .post-hero-inner {
    padding: 0 var(--sp-4);
    grid-template-columns: 1fr;
  }

  .post-promo {
    margin-bottom: 0;
  }

  .post-body {
    padding-top: var(--sp-6);
  }

  .post-body-layout {
    grid-template-columns: 1fr;
    padding: 0 var(--sp-4);
  }

  .post-sidebar {
    margin-top: 0;
    position: static;
  }

  .post-content-wrap {
    padding: 0 0 var(--sp-9);
    margin-top: -32px;
  }

  .archive-page {
    padding: var(--sp-9) var(--sp-4);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .ime-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ime-search-input,
  .ime-custom-select,
  .ime-search-btn {
    width: 100%;
    min-width: 0;
  }

  .ime-search-input {
    height: 44px;
    min-height: 44px;
  }

  .ime-custom-select__panel {
    left: 0;
    transform: none;
    min-width: 100%;
  }

  .blog-hero-immersive {
    min-height: 400px;
  }

  .blog-hero-immersive::before {
    background: linear-gradient(
      to top,
      rgba(8, 18, 36, 0.92) 0%,
      rgba(8, 18, 36, 0.7) 40%,
      rgba(8, 18, 36, 0.5) 70%,
      rgba(8, 18, 36, 0.35) 100%
    );
  }

  .blog-hero-immersive__title {
    font-size: clamp(35px, 5vw, 2.5rem);
  }

  .blog-hero-immersive__inner {
    padding: 36px 20px 36px;
  }
}
