/* ================================================================
   Pro Realtor Blog Pro — Frontend Stylesheet
   Brand: Pro Realtor Me (prorealtor.me)
   Colors: Charcoal #1d2327 | Gold #e7bf75 | Teal #204842 | Cream #faf9f5
   Fonts:  Raleway (headings) | Source Sans Pro (body)
   ================================================================ */

/* ── Root Variables ──────────────────────────────────────────── */
.prm-blog-page,
.prm-single-wrap,
.prm-related-posts,
[class^="prm-blog"],
[class^="prm-single"],
[class^="prm-card"],
[class^="prm-post"],
[class^="prm-featured"] {
    --prm-gold:         #e7bf75;
    --prm-gold-dark:    #c9a253;
    --prm-gold-light:   #f5e4b8;
    --prm-charcoal:     #1d2327;
    --prm-charcoal-2:   #2c3338;
    --prm-teal:         #204842;
    --prm-teal-light:   #2d6158;
    --prm-cream:        #faf9f5;
    --prm-cream-2:      #f0ede6;
    --prm-text:         #2b2b2b;
    --prm-muted:        #6b7280;
    --prm-border:       #e5e0d5;
    --prm-white:        #ffffff;
    --prm-shadow:       0 2px 12px rgba(29,35,39,.08);
    --prm-shadow-hover: 0 8px 32px rgba(29,35,39,.18);
    --prm-radius:       12px;
    --prm-radius-sm:    6px;
    --prm-font-head:    'Raleway', sans-serif;
    --prm-font-body:    'Source Sans Pro', sans-serif;
    --prm-trans:        .25s cubic-bezier(.4,0,.2,1);
    box-sizing: border-box;
}

*, *::before, *::after { box-sizing: inherit; }

/* ── Utility ─────────────────────────────────────────────────── */
.prm-blog-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 768px) {
    .prm-blog-container { padding: 0 20px; }
}

/* ════════════════════════════════════════════════════════════════
   ARCHIVE — Hero Banner
   ════════════════════════════════════════════════════════════════ */
.prm-blog-hero {
    background: linear-gradient(135deg, var(--prm-charcoal) 0%, var(--prm-teal) 100%);
    padding: 80px 32px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.prm-blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(231,191,117,.12) 0%, transparent 60%),
                      radial-gradient(circle at 80% 30%, rgba(32,72,66,.4) 0%, transparent 50%);
    pointer-events: none;
}
.prm-blog-hero__shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--prm-cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.prm-blog-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.prm-blog-hero__eyebrow {
    display: inline-block;
    font-family: var(--prm-font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--prm-gold);
    background: rgba(231,191,117,.12);
    border: 1px solid rgba(231,191,117,.3);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.prm-blog-hero__title {
    font-family: var(--prm-font-head);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.prm-blog-hero__subtitle {
    font-family: var(--prm-font-body);
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════════════════════════════ */
.prm-blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 36px 32px 0;
    max-width: 1240px;
    margin: 0 auto 40px;
}
.prm-filter-btn,
a.prm-filter-btn {
    font-family: var(--prm-font-head);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 9px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--prm-border);
    background: var(--prm-white);
    color: var(--prm-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--prm-trans);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.prm-filter-btn:hover,
a.prm-filter-btn:hover {
    border-color: var(--prm-gold);
    color: var(--prm-charcoal);
    background: var(--prm-gold-light);
}
.prm-filter-btn.active,
a.prm-filter-btn.active {
    background: var(--prm-charcoal);
    border-color: var(--prm-charcoal);
    color: var(--prm-gold);
}
.prm-filter-count {
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: .72rem;
}
.prm-filter-btn.active .prm-filter-count {
    background: rgba(231,191,117,.2);
    color: var(--prm-gold);
}

/* ════════════════════════════════════════════════════════════════
   FEATURED POST
   ════════════════════════════════════════════════════════════════ */
.prm-featured-post {
    max-width: 1240px;
    margin: 0 auto 52px;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--prm-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--prm-shadow-hover);
    border: 1px solid var(--prm-border);
    min-height: 380px;
}
.prm-featured-post__image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
}
.prm-featured-post__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.prm-featured-post:hover .prm-featured-post__image { transform: scale(1.04); }
.prm-featured-post__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(29,35,39,.2));
}
.prm-featured-post__content {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--prm-white);
}
.prm-featured-post__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.prm-badge {
    display: inline-block;
    font-family: var(--prm-font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}
.prm-badge--featured {
    background: var(--prm-gold-light);
    color: var(--prm-charcoal);
    border: 1px solid var(--prm-gold);
}
.prm-badge--cat {
    background: rgba(32,72,66,.1);
    color: var(--prm-teal);
    border: 1px solid rgba(32,72,66,.2);
    text-decoration: none;
    transition: background var(--prm-trans);
}
.prm-badge--cat:hover { background: rgba(32,72,66,.18); }

.prm-featured-post__title {
    font-family: var(--prm-font-head);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: #1d2327 !important;
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.prm-featured-post__title a {
    color: #1d2327 !important;
    text-decoration: none;
    transition: color var(--prm-trans);
}
.prm-featured-post__title a:hover { color: #204842 !important; }
.prm-featured-post__subtitle {
    font-size: .95rem;
    color: var(--prm-gold-dark);
    font-weight: 600;
    margin: 0 0 10px;
    font-family: var(--prm-font-head);
}
.prm-featured-post__excerpt {
    font-size: .95rem;
    color: var(--prm-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}
.prm-featured-post__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.prm-post-date, .prm-read-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: var(--prm-muted);
    font-family: var(--prm-font-body);
}
.prm-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--prm-font-head);
    font-size: .85rem;
    font-weight: 700;
    color: #1d2327 !important;
    background: #e7bf75 !important;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--prm-trans);
    letter-spacing: .03em;
    margin-left: auto;
}
.prm-read-more-btn:hover {
    background: var(--prm-charcoal);
    color: var(--prm-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(29,35,39,.25);
}

/* ════════════════════════════════════════════════════════════════
   BLOG GRID
   ════════════════════════════════════════════════════════════════ */
.prm-blog-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px 60px;
    display: grid;
    gap: 28px;
}
.prm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.prm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.prm-cols-1 { grid-template-columns: 1fr; }

@media (max-width: 1024px) {
    .prm-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .prm-cols-3,
    .prm-cols-2 { grid-template-columns: 1fr; }
    .prm-blog-grid,
    .prm-blog-filter { padding-left: 20px; padding-right: 20px; }
}

/* ── Blog Card ───────────────────────────────────────────────── */
.prm-blog-card {
    background: var(--prm-white);
    border-radius: var(--prm-radius);
    overflow: hidden;
    border: 1px solid var(--prm-border);
    box-shadow: var(--prm-shadow);
    transition: transform var(--prm-trans), box-shadow var(--prm-trans);
    display: flex;
    flex-direction: column;
    animation: prmFadeUp .45s ease both;
}
.prm-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--prm-shadow-hover);
}
.prm-blog-card--featured {
    border-color: var(--prm-gold);
    box-shadow: 0 2px 12px rgba(231,191,117,.2);
}

/* Stagger */
.prm-blog-card:nth-child(1) { animation-delay: .05s; }
.prm-blog-card:nth-child(2) { animation-delay: .10s; }
.prm-blog-card:nth-child(3) { animation-delay: .15s; }
.prm-blog-card:nth-child(4) { animation-delay: .20s; }
.prm-blog-card:nth-child(5) { animation-delay: .25s; }
.prm-blog-card:nth-child(6) { animation-delay: .30s; }
.prm-blog-card:nth-child(7) { animation-delay: .35s; }
.prm-blog-card:nth-child(8) { animation-delay: .40s; }
.prm-blog-card:nth-child(9) { animation-delay: .45s; }

@keyframes prmFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.prm-card__image-link { display: block; text-decoration: none; }
.prm-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--prm-cream-2);
}
.prm-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
    display: block;
}
.prm-blog-card:hover .prm-card__image { transform: scale(1.06); }
.prm-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--prm-border);
    background: var(--prm-cream-2);
}
.prm-card__image-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(29,35,39,.5));
    opacity: 0;
    transition: opacity var(--prm-trans);
}
.prm-blog-card:hover .prm-card__image-hover { opacity: 1; }

.prm-card__cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--prm-font-head);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--prm-teal);
    color: var(--prm-gold);
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}
.prm-card__gallery-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--prm-font-body);
    font-size: .72rem;
    font-weight: 600;
    color: var(--prm-white);
    background: rgba(29,35,39,.75);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.prm-card__body {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.prm-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.prm-card__date,
.prm-card__read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: var(--prm-muted);
    font-family: var(--prm-font-body);
}
.prm-card__date svg,
.prm-card__read-time svg { color: var(--prm-gold); }
.prm-card__title {
    font-family: var(--prm-font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d2327 !important;
    margin: 0 0 7px;
    line-height: 1.4;
    letter-spacing: -.01em;
}
.prm-card__title a {
    color: #1d2327 !important;
    text-decoration: none;
    transition: color var(--prm-trans);
}
.prm-card__title a:hover { color: #204842 !important; }
.prm-card__subtitle {
    font-size: .83rem;
    color: var(--prm-gold-dark);
    font-weight: 600;
    margin: 0 0 8px;
    font-family: var(--prm-font-head);
}
.prm-card__excerpt {
    font-size: .88rem;
    color: var(--prm-muted);
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
}
.prm-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--prm-border);
    margin-top: auto;
}
.prm-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--prm-font-head);
    font-size: .8rem;
    font-weight: 700;
    color: #204842 !important;
    text-decoration: none !important;
    letter-spacing: .04em;
    transition: gap var(--prm-trans), color var(--prm-trans);
}
.prm-card__read-more:hover { color: #1d2327 !important; gap: 9px; }
.prm-card__feat-label {
    font-size: .72rem;
    color: var(--prm-gold-dark);
    font-weight: 600;
}

/* ── Pagination ──────────────────────────────────────────────── */
.prm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 32px 60px;
}
.prm-pagination a,
.prm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-family: var(--prm-font-head);
    font-size: .85rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid var(--prm-border);
    color: var(--prm-muted);
    text-decoration: none;
    transition: all var(--prm-trans);
}
.prm-pagination a:hover {
    border-color: var(--prm-gold);
    color: var(--prm-charcoal);
    background: var(--prm-gold-light);
}
.prm-pagination .current {
    background: var(--prm-charcoal);
    border-color: var(--prm-charcoal);
    color: var(--prm-gold);
}

/* ── No Posts ────────────────────────────────────────────────── */
.prm-no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--prm-muted);
}
.prm-no-posts__icon { font-size: 3rem; margin-bottom: 16px; }
.prm-no-posts h3 { font-family: var(--prm-font-head); font-size: 1.4rem; color: var(--prm-charcoal); margin: 0 0 8px; }
.prm-no-posts p { margin: 0 0 24px; }

/* ════════════════════════════════════════════════════════════════
   SINGLE POST — Hero
   ════════════════════════════════════════════════════════════════ */
.prm-single-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    background-color: var(--prm-charcoal);
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    padding: 0 0 60px;
    overflow: hidden;
}
.prm-single-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: var(--prm-cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.prm-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(29,35,39,.4) 0%,
        rgba(29,35,39,.75) 60%,
        rgba(29,35,39,.92) 100%);
}
.prm-single-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    /* 140px top = clears any sticky header (typically 80-100px) + breathing room */
    padding: 140px 32px 48px;
    width: 100%;
}
.prm-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .78rem;
    color: rgba(255,255,255,.7) !important;
    margin-bottom: 18px;
    font-family: var(--prm-font-body);
}
.prm-breadcrumb a {
    color: rgba(255,255,255,.75) !important;
    text-decoration: none;
    transition: color var(--prm-trans);
}
.prm-breadcrumb a:hover { color: var(--prm-gold) !important; }
.prm-breadcrumb span[aria-hidden] { opacity: .5; }
.prm-single-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.prm-single-title {
    font-family: var(--prm-font-head);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.prm-single-subtitle {
    font-family: var(--prm-font-head);
    font-size: 1.1rem;
    color: #e7bf75 !important;
    font-weight: 600;
    margin: 0 0 16px;
}
.prm-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.prm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: rgba(255,255,255,.85) !important;
    font-family: var(--prm-font-body);
}
.prm-meta-item svg { color: var(--prm-gold) !important; opacity: .9; }

/* ════════════════════════════════════════════════════════════════
   SINGLE POST — Layout (Content + Sidebar)
   ════════════════════════════════════════════════════════════════ */
.prm-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 32px 60px;
    align-items: start;
    background: var(--prm-cream);
}
@media (max-width: 1024px) {
    .prm-single-layout { grid-template-columns: 1fr; }
    .prm-single-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
    .prm-single-layout { padding: 32px 20px 48px; }
    .prm-single-sidebar { grid-template-columns: 1fr; }
}

/* ── Gallery Section ─────────────────────────────────────────── */
.prm-post-gallery {
    margin-bottom: 40px;
}
.prm-gallery-grid {
    display: grid;
    gap: 10px;
    border-radius: var(--prm-radius);
    overflow: hidden;
}

/* 1 image: full width */
.prm-gallery-count-1 { grid-template-columns: 1fr; }
.prm-gallery-count-1 .prm-gallery-item { aspect-ratio: 16/7; }

/* 2 images: side by side */
.prm-gallery-count-2 { grid-template-columns: repeat(2, 1fr); }
.prm-gallery-count-2 .prm-gallery-item { aspect-ratio: 4/3; }

/* 3 images: 1 large left + 2 stacked right */
.prm-gallery-count-3 {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, 220px);
}
.prm-gallery-count-3 .prm-gallery-item-1 { grid-row: 1 / 3; }

/* 4 images: 1 large top + 3 in a row */
.prm-gallery-count-4 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px 200px;
}
.prm-gallery-count-4 .prm-gallery-item-1 {
    grid-column: 1 / 4;
    grid-row: 1;
}
.prm-gallery-count-4 .prm-gallery-item-2,
.prm-gallery-count-4 .prm-gallery-item-3,
.prm-gallery-count-4 .prm-gallery-item-4 { grid-row: 2; }

.prm-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--prm-cream-2);
}
.prm-gallery-lightbox {
    display: block;
    width: 100%;
    height: 100%;
}
.prm-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.prm-gallery-item:hover .prm-gallery-img { transform: scale(1.05); }
.prm-gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(29,35,39,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--prm-trans);
    color: var(--prm-white);
}
.prm-gallery-item:hover .prm-gallery-item__overlay { opacity: 1; }
.prm-gallery-caption {
    font-size: .8rem;
    color: var(--prm-muted);
    text-align: center;
    margin: 10px 0 0;
    font-family: var(--prm-font-body);
}

/* ── Lightbox ────────────────────────────────────────────────── */
.prm-lightbox-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,15,15,.95);
    z-index: 99998;
    cursor: zoom-out;
}
.prm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}
.prm-lightbox.active,
.prm-lightbox-backdrop.active {
    display: flex;
}
.prm-lightbox { pointer-events: all; }
.prm-lightbox__img-wrap {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prm-lightbox__img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    transition: opacity .25s ease;
}
.prm-lightbox__loader {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,.15);
    border-top-color: var(--prm-gold);
    border-radius: 50%;
    animation: prmSpin .7s linear infinite;
    opacity: 0;
}
.prm-lightbox__img.loading + .prm-lightbox__loader { opacity: 1; }

@keyframes prmSpin { to { transform: rotate(360deg); } }

.prm-lightbox__close,
.prm-lightbox__prev,
.prm-lightbox__next {
    position: fixed;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: var(--prm-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--prm-trans);
    z-index: 99999;
}
.prm-lightbox__close {
    top: 20px; right: 20px;
    width: 42px; height: 42px;
    font-size: 1.1rem;
}
.prm-lightbox__prev {
    left: 20px; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
}
.prm-lightbox__next {
    right: 20px; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
}
.prm-lightbox__close:hover,
.prm-lightbox__prev:hover,
.prm-lightbox__next:hover {
    background: var(--prm-gold);
    border-color: var(--prm-gold);
    color: var(--prm-charcoal);
}
.prm-lightbox__counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--prm-font-head);
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    background: rgba(29,35,39,.6);
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: .05em;
}

/* ── Post Body ───────────────────────────────────────────────── */
.prm-post-body {
    font-family: var(--prm-font-body);
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--prm-text);
    background: var(--prm-white);
    padding: 36px 40px;
    border-radius: var(--prm-radius);
    border: 1px solid var(--prm-border);
    margin-bottom: 28px;
}
.prm-post-body h2, .prm-post-body h3, .prm-post-body h4 {
    font-family: var(--prm-font-head);
    font-weight: 700;
    color: #1d2327 !important;
    letter-spacing: -.02em;
    margin-top: 1.8em;
    margin-bottom: .6em;
}
.prm-post-body h2 { font-size: 1.5rem; color: #1d2327 !important; }
.prm-post-body h3 { font-size: 1.2rem; color: #204842 !important; }
.prm-post-body h4 { font-size: 1.05rem; color: #1d2327 !important; }
.prm-post-body a { color: var(--prm-teal) !important; text-decoration: underline; text-underline-offset: 3px; }
.prm-post-body blockquote {
    border-left: 4px solid var(--prm-gold);
    background: var(--prm-gold-light);
    margin: 1.5em 0;
    padding: 16px 24px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--prm-charcoal-2);
}
.prm-post-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
}
.prm-post-body ul, .prm-post-body ol {
    padding-left: 1.5em;
    margin: 1em 0;
}
.prm-post-body li { margin-bottom: .5em; }
@media (max-width: 640px) {
    .prm-post-body { padding: 24px 22px; }
}

/* ── Tags ────────────────────────────────────────────────────── */
.prm-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}
.prm-post-tags__label {
    font-family: var(--prm-font-head);
    font-size: .8rem;
    font-weight: 700;
    color: var(--prm-muted);
    letter-spacing: .05em;
}
.prm-tag {
    font-family: var(--prm-font-body);
    font-size: .78rem;
    color: var(--prm-muted);
    background: var(--prm-cream-2);
    border: 1px solid var(--prm-border);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--prm-trans);
}
.prm-tag:hover {
    background: var(--prm-charcoal);
    color: var(--prm-gold);
    border-color: var(--prm-charcoal);
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.prm-post-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--prm-charcoal) 0%, var(--prm-teal) 100%);
    border-radius: var(--prm-radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.prm-post-cta__icon { font-size: 2rem; flex-shrink: 0; }
.prm-post-cta__text { flex: 1; min-width: 180px; }
.prm-post-cta__text strong {
    display: block;
    font-family: var(--prm-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 4px;
}
.prm-post-cta__text p {
    font-size: .88rem;
    color: rgba(255,255,255,.8) !important;
    margin: 0;
    font-family: var(--prm-font-body);
}
.prm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--prm-font-head);
    font-size: .88rem;
    font-weight: 700;
    background: #e7bf75 !important;
    color: #1d2327 !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    letter-spacing: .03em;
    transition: all var(--prm-trans);
    flex-shrink: 0;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.prm-cta-btn:hover {
    background: #c9a253 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(231,191,117,.4);
    text-decoration: none !important;
}
.prm-cta-btn--full { display: flex; justify-content: center; width: 100%; }

/* ── Post Nav ────────────────────────────────────────────────── */
.prm-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}
.prm-post-nav__item {
    background: var(--prm-white);
    border: 1px solid var(--prm-border);
    border-radius: var(--prm-radius);
    padding: 18px 20px;
    text-decoration: none;
    transition: all var(--prm-trans);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.prm-post-nav__item:hover {
    border-color: var(--prm-gold);
    background: var(--prm-gold-light);
    transform: translateY(-2px);
}
.prm-post-nav__next { text-align: right; }
.prm-post-nav__dir {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--prm-font-head);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #c9a253 !important;
}
.prm-post-nav__next .prm-post-nav__dir { justify-content: flex-end; }
.prm-post-nav__title {
    font-family: var(--prm-font-head);
    font-size: .9rem;
    font-weight: 600;
    color: #1d2327 !important;
    line-height: 1.4;
}
@media (max-width: 600px) {
    .prm-post-nav { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.prm-sidebar-card {
    background: var(--prm-white);
    border: 1px solid var(--prm-border);
    border-radius: var(--prm-radius);
    padding: 24px;
    margin-bottom: 24px;
}
.prm-sidebar-card:last-child { margin-bottom: 0; }
.prm-sidebar-card__title {
    font-family: var(--prm-font-head);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1d2327 !important;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--prm-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}
.prm-sidebar-card__title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--prm-gold);
    border-radius: 2px;
}

/* Author Card */
.prm-author-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
}
.prm-author-avatar {
    border-radius: 50% !important;
    width: 64px !important;
    height: 64px !important;
    border: 3px solid var(--prm-gold) !important;
}
.prm-author-card__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--prm-muted);
    font-family: var(--prm-font-head);
}
.prm-author-card__name {
    display: block;
    font-family: var(--prm-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--prm-charcoal);
    margin: 2px 0 6px;
}
.prm-author-card__bio {
    font-size: .82rem;
    color: var(--prm-muted);
    line-height: 1.6;
    margin: 0;
}

/* Sidebar Categories */
.prm-sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}
.prm-sidebar-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    font-family: var(--prm-font-body);
    font-size: .88rem;
    color: #2b2b2b !important;
    margin-bottom: 4px;
    transition: all var(--prm-trans);
}
.prm-sidebar-cat-link:hover { background: var(--prm-cream); color: #204842 !important; }
.prm-sidebar-cat-link.active { background: var(--prm-teal); color: #e7bf75 !important; }
.prm-sidebar-cat-count {
    font-size: .72rem;
    font-weight: 700;
    background: var(--prm-cream-2);
    color: var(--prm-muted);
    padding: 2px 8px;
    border-radius: 12px;
}
.prm-sidebar-cat-link.active .prm-sidebar-cat-count {
    background: rgba(231,191,117,.2);
    color: var(--prm-gold);
}

/* Recent Posts */
.prm-recent-posts { list-style: none; margin: 0; padding: 0; }
.prm-recent-post { margin-bottom: 12px; }
.prm-recent-post:last-child { margin-bottom: 0; }
.prm-recent-post__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--prm-trans);
}
.prm-recent-post__link:hover { background: var(--prm-cream); }
.prm-recent-post__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.prm-recent-post__info { flex: 1; }
.prm-recent-post__title {
    display: block;
    font-family: var(--prm-font-head);
    font-size: .83rem;
    font-weight: 600;
    color: #1d2327 !important;
    line-height: 1.35;
    margin-bottom: 3px;
}
.prm-recent-post__date {
    font-size: .73rem;
    color: var(--prm-muted);
    font-family: var(--prm-font-body);
}

/* Sidebar CTA */
.prm-sidebar-cta {
    background: linear-gradient(135deg, var(--prm-charcoal) 0%, var(--prm-teal) 100%) !important;
    text-align: center;
    border-color: transparent !important;
}
.prm-sidebar-cta__icon { font-size: 2.2rem; margin-bottom: 10px; }
.prm-sidebar-cta h4 {
    font-family: var(--prm-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 8px;
}
.prm-sidebar-cta p {
    font-size: .83rem;
    color: rgba(255,255,255,.75) !important;
    margin: 0 0 18px;
    font-family: var(--prm-font-body);
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════
   RELATED POSTS
   ════════════════════════════════════════════════════════════════ */
.prm-related-posts {
    background: var(--prm-cream-2);
    border-top: 1px solid var(--prm-border);
    padding: 60px 0 80px;
}
.prm-related-posts .prm-blog-grid { padding-bottom: 0; }
.prm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    max-width: 1240px;
    padding: 0 32px;
    margin-left: auto;
    margin-right: auto;
}
.prm-section-head__title {
    font-family: var(--prm-font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1d2327 !important;
    margin: 0;
    letter-spacing: -.02em;
}
.prm-section-head__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--prm-gold);
    border-radius: 2px;
    margin-top: 6px;
}
.prm-section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--prm-font-head);
    font-size: .82rem;
    font-weight: 700;
    color: #204842 !important;
    text-decoration: none !important;
    transition: gap var(--prm-trans);
}
.prm-section-head__link:hover { gap: 9px; color: #1d2327 !important; }

/* ── Responsive Featured Post ────────────────────────────────── */
@media (max-width: 860px) {
    .prm-featured-post {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .prm-featured-post__image-wrap { aspect-ratio: 16/8; }
    .prm-featured-post__content { padding: 28px 24px; }
    .prm-read-more-btn { margin-left: 0; }
}

/* ── Responsive Single Hero ──────────────────────────────────── */
@media (max-width: 640px) {
    .prm-single-hero { min-height: 380px; }
    .prm-single-hero__content { padding: 120px 20px 40px; }
    .prm-gallery-count-3,
    .prm-gallery-count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .prm-gallery-count-3 .prm-gallery-item-1,
    .prm-gallery-count-4 .prm-gallery-item-1 { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 16/8; }
    .prm-gallery-count-4 .prm-gallery-item-2,
    .prm-gallery-count-4 .prm-gallery-item-3,
    .prm-gallery-count-4 .prm-gallery-item-4 { grid-row: auto; }
    .prm-post-cta { flex-direction: column; text-align: center; gap: 16px; }
    .prm-section-head { padding: 0 20px; }
}

/* ── Shortcode footer / View All button ─────────────────────── */
#prm-scope .prm-shortcode-footer {
    text-align: center;
    padding: 8px 32px 40px;
}
#prm-scope .prm-view-all-btn,
#prm-scope a.prm-view-all-btn,
#prm-scope a.prm-view-all-btn:link,
#prm-scope a.prm-view-all-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #1d2327;
    background: #e7bf75;
    padding: 13px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all .25s ease;
}
#prm-scope a.prm-view-all-btn:hover {
    background: #1d2327;
    color: #e7bf75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29,35,39,.25);
}
#prm-scope .prm-shortcode-wrap {
    background: transparent;
}
