/* ═══════════════════════════════════════════════════════════════
   UV BLOG — single post + archive
   ═══════════════════════════════════════════════════════════════ */

.uv-blog-page {
  margin: 0;
  padding: 0;
  background: #f7f0e8;
  font-family: var(--font-body);
}

.uv-blog-page .site,
.uv-blog-page #content,
.uv-blog-page #primary,
.uv-blog-page main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* ── SHARED CONTAINER ─────────────────────────────────────────── */
.uv-blog-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 56px;
  box-sizing: border-box;
}

/* ── SINGLE POST — HERO (split, 100vh) ───────────────────────── */
.uv-blog-hero {
  display: flex;
  height: 100vh;
}

.uv-blog-hero-left {
  flex: 1;
  background: #222013;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.uv-blog-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(var(--header-height) + 20px) 56px 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.uv-blog-hero-breadcrumb a {
  color: #ded8c5;
  text-decoration: none;
  transition: color 0.15s;
}

.uv-blog-hero-breadcrumb a:hover {
  color: #fff;
}


.uv-blog-hero-bc-dot {
  width: 12px;
  height: 12px;
  background: #5b8dd9;
  border-radius: 3px;
  flex-shrink: 0;
}

.uv-blog-hero-bc-sep {
  color: #5b8dd9;
  font-weight: 700;
}

.uv-blog-hero-text {
  padding: 0 56px 64px;
}

.uv-blog-hero-right {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-color: #2a1a0a;
  position: relative;
}

.uv-blog-hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 32, 19, .5), rgba(34, 32, 19, .3) 60%);
}

.uv-blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  color: #ded8c5;
  text-transform: none;
  line-height: 1.06;
  margin: 0 0 24px;
}

.uv-blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.40);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.uv-blog-hero-meta span:nth-child(2) {
  color: rgba(255, 255, 255, 0.18);
}

/* ── CATEGORY LABEL ───────────────────────────────────────────── */
.uv-blog-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff5a1f;
  margin: 0 0 20px;
}

.uv-blog-category::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ff5a1f;
  flex-shrink: 0;
}

/* ── SINGLE POST — BODY LAYOUT ────────────────────────────────── */
.uv-blog-body {
  padding: 72px 0 120px;
  background: #f0ece6;
  position: relative;
}

.uv-blog-body::before,
.uv-blog-body::after {
  content: '';
  position: absolute;
  top: 72px;
  bottom: 72px;
  width: 0.5px;
  background-color: rgba(26, 18, 9, 0.12);
  z-index: 1;
}

.uv-blog-body::before { left: calc(56px - 8px); }
.uv-blog-body::after  { right: calc(56px - 8px); }

.uv-blog-layout {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 120px;
  align-items: start;
}

.uv-blog-sidebar,
.uv-blog-content {
  margin-top: 0;
  padding-top: 0;
}

.uv-blog-content > *:first-child {
  margin-top: 0 !important;
}

/* ── SIDEBAR ──────────────────────────────────────────────────── */
.uv-blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.uv-blog-sidebar .uv-blog-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a8a7a;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}

.uv-blog-sidebar .uv-blog-back:hover { color: #1a1209; }

.uv-blog-sidebar-readtime,
.uv-blog-sidebar-date {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1209;
  line-height: 1.4;
  margin: 0 0 4px;
}

.uv-blog-sidebar-date {
  margin: 0 0 24px;
}

.uv-blog-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1209;
  background: rgba(26,18,9,0.08);
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.uv-blog-copy-btn:hover {
  background: rgba(26,18,9,0.14);
}

.uv-blog-copy-btn.uv-copied {
  color: #2e7d32;
  background: #e8f5e9;
}

/* ── POST CONTENT ─────────────────────────────────────────────── */
.uv-blog-content {
  min-width: 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.uv-blog-content > p:first-child {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.1;
  color: #1a1209;
  margin: 0 0 32px;
}

.uv-blog-content p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  color: #1a1209;
  margin: 0 0 14px;
}

.uv-blog-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 50px);
  font-weight: 700;
  text-transform: uppercase;
  color: #1a1209;
  margin: 48px 0 14px;
  line-height: 1.08;
}

.uv-blog-content h3 {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  color: #1a1209;
  margin: 28px 0 8px;
}

.uv-blog-content h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #1a1209;
  margin: 20px 0 6px;
}

/* Lists */
.uv-blog-content ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 28px;
}

.uv-blog-content ul li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: #4a3828;
  margin-bottom: 4px;
}

.uv-blog-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #ff5a1f;
  flex-shrink: 0;
}

.uv-blog-content ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.uv-blog-content ol li {
  font-size: 16px;
  line-height: 1.5;
  color: #4a3828;
  margin-bottom: 4px;
  padding-left: 4px;
}

/* Images */
.uv-blog-content a {
  color: #ff5a1f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.uv-blog-content a:hover {
  color: #e04a10;
}

.uv-blog-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 36px 0;
  display: block;
}

.uv-blog-content figure {
  margin: 36px 0;
}

.uv-blog-content figure figcaption {
  font-size: 13px;
  color: #9a8a7a;
  text-align: center;
  margin-top: 10px;
}

/* Blockquote */
.uv-blog-content blockquote {
  margin: 48px 0;
  padding: 28px 36px;
  background: #1a1209;
  border-radius: 14px;
  border: none;
}

.uv-blog-content blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 28px) !important;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff !important;
  line-height: 1.25;
  margin: 0 !important;
}

/* Horizontal rule */
.uv-blog-content hr {
  border: none;
  border-top: 1px solid #d5cbc0;
  margin: 48px 0;
}

/* ── BACK LINK ─────────────────────────────────────────────────── */
.uv-blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a8a7a;
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.15s;
}

.uv-blog-back:hover { color: #1a1209; }

/* ── ARCHIVE — HEADER ─────────────────────────────────────────── */
.uv-blog-archive-header {
  position: relative;
  height: 100vh;
  min-height: 480px;
  box-sizing: border-box;
  background-image: url('https://images.unsplash.com/photo-1729235946049-a53b7b414c40?q=80&w=2067&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  background-color: #1a1209;
}

.uv-blog-archive-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 8, 4, 0.80) 0%,
    rgb(0 0 0 / 50%) 50%,
    rgba(10, 8, 4, 0.08) 100%);
  z-index: 0;
}

.uv-blog-hero-line {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 60%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .uv-blog-hero-line {
    width: 100%;
  }
}

/* Nav stays fixed over the hero image */
.uv-blog-archive-header > .uv-nav {
  z-index: 100;
}

/* WP admin bar adds 32px margin-top to body — compensate so hero is truly 100vh */
.admin-bar .uv-blog-archive-header {
  margin-top: -32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .uv-blog-archive-header {
    margin-top: -46px;
  }
}

/* Text block vertically centered */
.uv-blog-archive-header .uv-blog-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.uv-blog-archive-header h1 {
  font-size: clamp(60px, 5.5vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  color: #ded8c5;
  max-width: 600px;
  margin: 0;
  line-height: 0.9;
  letter-spacing: -1.4px;
}

.uv-blog-archive-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  margin: 16px 0 0;
  max-width: 520px;
}

/* ── ARCHIVE — BODY + GRID ────────────────────────────────────── */
.uv-blog-archive-body {
  background: #f0ece6;
  padding: 0 0 100px;
}

/* Wrapper floats up into hero and carries the outer border lines */
.uv-blog-grid-wrap {
  margin-top: -80px;
  position: relative;
  z-index: 1;
  border-left: 1px solid hsl(48deg 8% 46% / 40%);
  border-right: 1px solid hsl(48deg 8% 46% / 40%);
  padding-left: 8px;
  padding-right: 8px;
}

.uv-blog-grid-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ded8c5;
  padding: 0 0 10px;
}

.uv-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

/* First card: 2 columns × 2 rows, stretches to fill combined row height */
.uv-blog-grid .uv-blog-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.uv-blog-grid .uv-blog-card:first-child .uv-blog-card-img-wrap {
  aspect-ratio: 1 / 1;
}

.uv-blog-grid .uv-blog-card:nth-child(2) .uv-blog-card-img-wrap,
.uv-blog-grid .uv-blog-card:nth-child(3) .uv-blog-card-img-wrap {
  aspect-ratio: 1 / 1;
  height: auto;
}

/* All cards: padding + border-left */
.uv-blog-grid .uv-blog-card {
  border-left: 1px solid hsl(48deg 8% 46% / 40%);
  padding: 0 8px 30px;
}

/* No border on big card + col-1 of each normal row (6, 10, 14…) */
.uv-blog-grid .uv-blog-card:first-child,
.uv-blog-grid .uv-blog-card:nth-child(4n+6) {
  border-left: none;
  padding-left: 0;
}

/* No right padding on col-4: cards 3, 5 in special area, then 9, 13, 17… */
.uv-blog-grid .uv-blog-card:nth-child(3),
.uv-blog-grid .uv-blog-card:nth-child(5),
.uv-blog-grid .uv-blog-card:nth-child(4n+9) {
  padding-right: 0;
}

/* ── CARDS (editorial) ────────────────────────────────────────── */
.uv-blog-card {
  text-decoration: none;
  display: block;
}

.uv-blog-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #2a1a0a;
}

.uv-blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.uv-blog-card:hover .uv-blog-card-img-wrap img {
  transform: scale(1.04);
}

.uv-blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a1a0a 0%, #1a1209 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uv-blog-card-img-placeholder svg {
  opacity: 0.15;
}

.uv-blog-card-chip-wrap {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
}

.uv-blog-card-chip {
  display: flex;
  align-items: center;
  background: rgba(26, 18, 9, 0.72);
  color: #ded8c5;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
}

.uv-blog-card-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: #1a1209;
  line-height: 1.2;
  margin: 0;
  text-transform: none;
  transition: color 0.15s;
}

.uv-blog-archive-body .uv-blog-card-title {
  font-family: var(--font-heading);
}

.uv-blog-grid .uv-blog-card:first-child .uv-blog-card-title {
  font-size: clamp(28px, 3vw, 42px);
}


/* ── SIMILAR POSTS ────────────────────────────────────────────── */
.uv-blog-similar {
  background: #aeb7a8;
  padding: 56px 0 80px;
}

.uv-blog-similar-inner {
  border-left: 0.5px solid rgba(26, 18, 9, 0.12);
  padding-left: 8px;
  margin-left: -8px;
}

.uv-blog-similar-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #000;
  text-transform: none;
  margin: 0 0 32px;
  line-height: 1.1;
  letter-spacing: -1.4px;
}

.uv-blog-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.uv-blog-similar-grid .uv-blog-card {
  padding-right: 8px;
}

.uv-blog-similar-grid .uv-blog-card:not(:first-child) {
  border-left: 0.5px solid rgba(26, 18, 9, 0.12);
  padding-left: 8px;
}

.uv-blog-similar-grid .uv-blog-card:last-child {
  padding-right: 0;
}

.uv-blog-similar .uv-blog-card-img-wrap {
  border-radius: 8px;
}

.uv-blog-similar .uv-blog-card-title {
  color: #000;
}

@media (max-width: 900px) {
  .uv-blog-similar-grid { grid-template-columns: repeat(2, 1fr); }
  .uv-blog-similar-grid .uv-blog-card:nth-child(2n+1) { border-left: none; padding-left: 0; }
}

@media (max-width: 560px) {
  .uv-blog-similar-grid { grid-template-columns: 1fr; }
  .uv-blog-similar-inner { border-left: 1px solid hsl(48deg 8% 46% / 40%); padding-left: 8px; }
  .uv-blog-similar .uv-blog-container { padding: 0 8px; }

  .uv-blog-similar-grid .uv-blog-card,
  .uv-blog-similar-grid .uv-blog-card:not(:first-child) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid hsl(48deg 8% 46% / 40%);
    padding: 8px 0;
  }

  .uv-blog-similar-grid .uv-blog-card:last-child {
    border-bottom: none;
  }

  .uv-blog-similar .uv-blog-card-img-wrap {
    width: 50%;
    flex: 0 0 45%;
    aspect-ratio: 1;
    height: auto;
    margin-bottom: 0;
  }

  .uv-blog-similar .uv-blog-card-title {
    font-size: 24px;
    margin: 0;
  }
}

/* ── EMPTY STATE ──────────────────────────────────────────────── */
.uv-blog-empty {
  text-align: center;
  padding: 80px 0;
  color: #9a8a7a;
}

.uv-blog-empty h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a1209;
  margin: 0 0 12px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .uv-blog-layout { grid-template-columns: 160px 1fr; gap: 48px; }
  .uv-blog-grid   { grid-template-columns: repeat(2, 1fr); gap: 0; }

  /* First card: full width row */
  .uv-blog-grid .uv-blog-card:first-child {
    grid-column: span 2;
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }

  /* Left column (2, 4, 6… with span-2 first card): no left border, 8px right padding */
  .uv-blog-grid .uv-blog-card:nth-child(2n) {
    border-left: none;
    padding-left: 0;
    padding-right: 8px;
  }

  /* Right column (3, 5, 7…): center divider + 8px left padding = 16px total gap */
  .uv-blog-grid .uv-blog-card:nth-child(2n+1):not(:first-child) {
    border-left: 1px solid rgba(26, 18, 9, 0.13);
    padding-left: 8px;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .uv-blog-container { padding: 0 20px; }

  .uv-blog-hero               { flex-direction: column; height: 100vh; }
  .uv-blog-hero-left          { flex: 0 0 auto; justify-content: space-between; }
  .uv-blog-hero-right         { flex: 1; width: 100%; min-height: 200px; }
  .uv-blog-hero-breadcrumb    { padding: calc(var(--header-height) + 12px) 20px 0; }
  .uv-blog-hero-text          { padding: 100px 20px 36px; }
  .uv-blog-hero h1            { font-size: clamp(36px, 10vw, 48px); }

  .uv-blog-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .uv-blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding-bottom: 28px;
    margin-bottom: 32px;
  }

  .uv-blog-sidebar-readtime {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .uv-blog-sidebar-date {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .uv-blog-copy-btn {
    grid-column: 2;
    grid-row: 1 / 3;
    width: auto;
    align-self: center;
  }

  .uv-blog-content      { max-width: 100%; }
  .uv-blog-body         { padding: 48px 0 72px; }
  .uv-blog-archive-body { padding: 0 0 64px; }

  /* Archive grid — single column, featured first card */
  .uv-blog-grid-wrap {
    border-left: 1px solid hsl(48deg 8% 46% / 40%);
    border-right: 1px solid hsl(48deg 8% 46% / 40%);
    padding-left: 8px;
    padding-right: 8px;
    margin-left: calc(-20px + 8px);
    margin-right: calc(-20px + 8px);
    margin-top: -50vw;
  }
  .uv-blog-grid-label { display: block; }
  .uv-blog-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* First card — large featured, vertical */
  .uv-blog-grid .uv-blog-card:first-child {
    display: flex !important;
    flex-direction: column;
    border-left: none !important;
    border-bottom: 1px solid hsl(48deg 8% 46% / 40%);
    padding: 0 !important;
    margin-bottom: 0;
    height: auto !important;
    grid-column: span 1;
    grid-row: span 1;
  }

  .uv-blog-grid .uv-blog-card:first-child .uv-blog-card-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    flex: none;
    margin-bottom: 0;
  }

  .uv-blog-grid .uv-blog-card:first-child .uv-blog-card-title {
    font-size: clamp(36px, 9vw, 52px);
    line-height: 1;
    letter-spacing: -0.5px;
    margin: 14px 0 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #1a1209;
  }

  /* Remaining cards — identical to .uv-blog-similar-grid mobile style */
  .uv-blog-grid .uv-blog-card:not(:first-child) {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    border-left: none !important;
    border-bottom: 1px solid hsl(48deg 8% 46% / 40%);
    padding: 8px 0 !important;
    height: auto !important;
  }

  .uv-blog-grid .uv-blog-card:not(:first-child) .uv-blog-card-img-wrap,
  .uv-blog-grid .uv-blog-card:nth-child(2) .uv-blog-card-img-wrap,
  .uv-blog-grid .uv-blog-card:nth-child(3) .uv-blog-card-img-wrap {
    flex: 0 0 45%;
    width: 45%;
    aspect-ratio: 1;
    height: auto;
    margin-bottom: 0;
    border-radius: 8px;
  }

  .uv-blog-grid .uv-blog-card:not(:first-child) .uv-blog-card-title {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: #000;
  }


  .uv-blog-grid .uv-blog-card:last-child {
    border-bottom: none;
  }

  .uv-blog-body::before { left: 12px; top: 48px; bottom: 48px; }
  .uv-blog-body::after  { right: 12px; top: 48px; bottom: 48px; }
}
