/* =========================================================
   AutoPaper Blog — Public Pages CSS
   Matches the uploaded archive + single-post design.
   Depends on Bootstrap 5.0.2 and the site's home-v2 styles.
   ========================================================= */

/* ----- Design Tokens ----- */
:root {
    --blog-red:       #d2292c;
    --blog-red-dark:  #b91f22;
    --blog-ink:       #19272b;
    --blog-muted:     #5c6b73;
    --blog-line:      #e5e7eb;
    --blog-bg:        #f7f8f9;
    --blog-card:      #ffffff;
    --blog-font:      "Manrope", Helvetica, Arial, sans-serif;
}

/* =========================================================
   BLOG HERO (archive page)
   ========================================================= */
.blog-hero {
    background: linear-gradient(160deg, #19272b 0%, #223035 55%, #2a3c42 100%);
    position: relative;
    overflow: hidden;
    padding: 90px 0 80px;
    text-align: center;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../home-v2/images/background/bg-blog-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.blog-hero h1 span { color: var(--blog-red); }
.blog-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================================
   LAYOUT SHELL
   ========================================================= */
.blog-section {
    padding: 60px 0 80px;
    background: var(--blog-bg);
}
.blog-grid-col { }
.blog-sidebar-col { }

/* =========================================================
   ARCHIVE HEADER BAR  (All Blog Posts / Showing / Sort)
   ========================================================= */
.blog-archive-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.blog-archive-bar .bar-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--blog-ink);
    margin: 0;
    letter-spacing: -0.02em;
}
.blog-archive-bar .bar-title span { color: var(--blog-red); font-style: italic; }
.blog-archive-bar .bar-meta {
    font-size: 0.85rem;
    color: var(--blog-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.blog-archive-bar .bar-meta select {
    font-size: 0.85rem;
    padding: 4px 10px;
    border: 1px solid var(--blog-line);
    border-radius: 4px;
    background: #fff;
    color: var(--blog-ink);
    cursor: pointer;
}

/* =========================================================
   POST CARDS (archive grid)
   ========================================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 1199px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
    background: var(--blog-card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}
.blog-card-img {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background: #e5e7eb;
}
.blog-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--blog-red);
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.15s;
}
.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 6px;
    margin-bottom: 8px;
}
.blog-card-tags .blog-card-tag { margin-bottom: 0; }
.blog-tag-sep {
    color: #c4cdd4;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    user-select: none;
    padding: 0 2px;
}
.blog-card-tag:hover,
.blog-post-header .post-tag:hover {
    color: var(--blog-red-dark);
    text-decoration: underline;
}
.blog-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--blog-ink);
    margin: 0 0 8px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--blog-red); }
.blog-card p {
    font-size: 0.88rem;
    color: var(--blog-muted);
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}
.blog-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--blog-muted);
}
.blog-card-foot .meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-card-foot .meta-left span { display: flex; align-items: center; gap: 4px; }
.blog-card-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blog-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.blog-card-read-more:hover { color: var(--blog-red-dark); }
.blog-card-read-more svg { width: 14px; height: 14px; }

/* =========================================================
   BLOG PAGINATION
   ========================================================= */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--blog-line);
    background: #fff;
    color: var(--blog-ink);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.blog-pagination a:hover {
    background: var(--blog-red);
    border-color: var(--blog-red);
    color: #fff;
}
.blog-pagination .active {
    background: var(--blog-red);
    border-color: var(--blog-red);
    color: #fff;
}
.blog-pagination .dots {
    border: none;
    background: none;
    color: var(--blog-muted);
    cursor: default;
}
.blog-pagination .pg-arrow {
    font-size: 1rem;
    font-weight: 700;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.blog-sidebar { }

.blog-sidebar .sidebar-widget {
    background: #fff;
    border-radius: 6px;
    padding: 24px 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #f0f1f2;
}
.blog-sidebar .sidebar-widget:last-child { margin-bottom: 0; }

.blog-sidebar .sw-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blog-ink);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--blog-red);
    letter-spacing: -0.01em;
}

/* Search widget */
.blog-main-search {
    margin-bottom: 22px;
}
.blog-search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}
.blog-search-form input[type="search"],
.blog-search-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--blog-line);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    font-family: var(--blog-font);
    color: var(--blog-ink);
    outline: none;
    box-sizing: border-box;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}
.blog-search-form input:focus { border-color: var(--blog-red); z-index: 1; }
.blog-search-form button {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
    background: var(--blog-red);
    color: #fff;
    border: 1px solid var(--blog-red);
    border-radius: 0 4px 4px 0;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--blog-font);
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
    margin: 0;
}
.blog-search-form button:hover { background: var(--blog-red-dark); border-color: var(--blog-red-dark); }
.blog-search-form--main {
    max-width: 100%;
}
.blog-search-form--main input[type="search"] {
    background: #fff;
}

/* Categories widget */
.blog-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-categories-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--blog-line);
    font-size: 0.9rem;
}
.blog-categories-list li:last-child { border-bottom: none; padding-bottom: 0; }
.blog-categories-list li a {
    color: var(--blog-ink);
    text-decoration: none;
    transition: color 0.15s;
}
.blog-categories-list li a:hover { color: var(--blog-red); }
.blog-categories-list li a.active { color: var(--blog-red); font-weight: 700; }
.blog-categories-list li .cat-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blog-muted);
    background: var(--blog-bg);
    border-radius: 12px;
    padding: 2px 9px;
}
.blog-cat-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blog-red);
    text-decoration: none;
}
.blog-cat-view-all:hover { color: var(--blog-red-dark); }

/* Popular posts widget */
.blog-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.blog-popular-list li { display: flex; gap: 12px; align-items: flex-start; }
.blog-popular-list .pop-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
}
.blog-popular-list .pop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-popular-list .pop-body { flex: 1; }
.blog-popular-list .pop-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blog-ink);
    text-decoration: none;
    display: block;
    line-height: 1.3;
    margin-bottom: 4px;
}
.blog-popular-list .pop-title:hover { color: var(--blog-red); }
.blog-popular-list .pop-date {
    font-size: 0.75rem;
    color: var(--blog-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-pop-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blog-red);
    text-decoration: none;
}
.blog-pop-view-all:hover { color: var(--blog-red-dark); }

/* Stay Updated / subscribe widget */
.sidebar-widget--subscribe .sw-title {
    margin-bottom: 14px;
}
.blog-subscribe-form {
    margin-top: 0;
}
.blog-subscribe-form form {
    position: relative;
}
.blog-subscribe-form p {
    font-size: 0.88rem;
    color: var(--blog-muted);
    margin: 0 0 12px;
    line-height: 1.5;
}
.blog-subscribe-form input[type=email] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--blog-line);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--blog-font);
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.blog-subscribe-form input[type=email]:focus { border-color: var(--blog-red); }
.blog-subscribe-form button {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: var(--blog-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--blog-font);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
}
.blog-subscribe-form button:hover { background: var(--blog-red-dark); }
.blog-subscribe-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.blog-subscribe-honeypot label,
.blog-subscribe-honeypot input {
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: 0;
    opacity: 0;
}
.blog-subscribe-flash {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-subscribe-flash.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.blog-subscribe-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10050;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 18px;
    background: #166534;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    font-family: var(--blog-font);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.blog-subscribe-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.blog-subscribe-toast.is-hiding {
    opacity: 0;
    transform: translateY(10px);
}
.blog-subscribe-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-subscribe-toast-text { flex: 1; }
.blog-subscribe-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--blog-muted);
    margin-top: 10px;
    line-height: 1.45;
    border-top: none;
    padding-top: 0;
}
.blog-subscribe-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* =========================================================
   SINGLE POST — HEADER
   ========================================================= */
.blog-post-page { background: #fff; padding: 32px 0 80px; }
.blog-post-page .blog-post-layout {
    align-items: flex-start;
}
.blog-post-page .blog-post-main,
.blog-post-page .blog-sidebar-col {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 991px) {
    .blog-post-page .blog-post-layout {
        display: flex;
        flex-direction: column;
    }
    .blog-post-page .blog-post-main { order: 1; }
    .blog-post-page .blog-sidebar-col {
        order: 2;
        margin-top: 28px;
        padding-top: 28px;
        border-top: 1px solid var(--blog-line);
        clear: both;
    }
}

.blog-post-header { margin-bottom: 24px; }
.blog-post-content-title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    color: var(--blog-ink);
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    margin: 6px 0 10px;
}
.blog-post-header .post-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blog-red);
    text-decoration: none;
    transition: color 0.15s;
}
.blog-post-header .blog-tag-sep {
    color: #c4cdd4;
    font-size: 0.9rem;
    line-height: 1;
    user-select: none;
}
.blog-post-header h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--blog-ink);
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}
.blog-post-header .post-deck {
    font-size: 1rem;
    color: var(--blog-muted);
    line-height: 1.55;
    margin: 0 0 14px;
}
.blog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.82rem;
    color: var(--blog-muted);
    padding: 14px 0 16px;
    margin-top: 4px;
    border-top: 1px solid var(--blog-line);
    border-bottom: 1px solid var(--blog-line);
}
.blog-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.blog-post-share {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--blog-muted);
    margin-left: auto;
}
.blog-post-share span { font-weight: 600; }
.blog-post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--blog-line);
    color: var(--blog-ink);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
}
.blog-post-share a:hover {
    background: var(--blog-red);
    border-color: var(--blog-red);
    color: #fff;
}

/* Featured image */
.blog-post-featured-img {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 36px;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
}
.blog-post-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   SINGLE POST — BODY (rich HTML)
   ========================================================= */
.blog-post-body {
    font-size: 1rem;
    color: var(--blog-ink);
    line-height: 1.75;
    margin-bottom: 48px;
}
.blog-post-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 1.35em 0 0.45em;
    color: var(--blog-ink);
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.blog-post-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.15em 0 0.4em;
    color: var(--blog-ink);
    line-height: 1.35;
}
.blog-post-body > :first-child {
    margin-top: 0;
}
.blog-post-body h2:first-child,
.blog-post-body h3:first-child {
    margin-top: 0;
}
.blog-post-body p { margin: 0 0 1.2em; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.blog-post-body li { margin-bottom: 0.4em; }
.blog-post-body a { color: var(--blog-red); text-decoration: underline; }
.blog-post-body a:hover { color: var(--blog-red-dark); }
.blog-post-body blockquote {
    border-left: 4px solid var(--blog-red);
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    background: rgba(210,41,44,0.05);
    font-style: italic;
    color: var(--blog-muted);
    border-radius: 0 4px 4px 0;
}
.blog-post-body img { max-width: 100%; border-radius: 4px; }

/* =========================================================
   CTA PANEL (single post — "Preserve the Past.")
   ========================================================= */
.blog-cta-panel {
    background: linear-gradient(135deg, #19272b 0%, #223035 100%);
    border-radius: 6px;
    padding: 30px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.blog-cta-panel .cta-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(210,41,44,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-red);
    font-size: 1.4rem;
}
.blog-cta-panel .cta-copy { flex: 1; min-width: 180px; }
.blog-cta-panel .cta-copy strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.blog-cta-panel .cta-copy p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.5;
}
.blog-cta-panel .cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    background: var(--blog-red);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.blog-cta-panel .cta-btn:hover { background: var(--blog-red-dark); color: #fff; }

/* =========================================================
   PREV / NEXT NAV
   ========================================================= */
.blog-prev-next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    gap: 16px;
    height: auto;
    padding-top: 28px;
    border-top: 1px solid var(--blog-line);
    margin-bottom: 0;
}
.blog-prev-next .pn-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
    min-width: 0;
    height: auto;
}
.blog-prev-next .pn-item.next { text-align: right; align-items: flex-end; }
.blog-prev-next .pn-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--blog-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.pn-item.next .pn-label { justify-content: flex-end; }
.blog-prev-next .pn-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blog-ink);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.15s;
}
.blog-prev-next .pn-title:hover { color: var(--blog-red); }

/* 9-dot decorative grid */
.pn-dots {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 4px;
    flex-shrink: 0;
}
.pn-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blog-line);
    display: block;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.blog-breadcrumb {
    font-size: 0.82rem;
    color: var(--blog-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.blog-breadcrumb a {
    color: var(--blog-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.blog-breadcrumb a:hover { color: var(--blog-red); }
.blog-breadcrumb .sep { opacity: 0.5; }
.blog-breadcrumb .current { color: var(--blog-ink); font-weight: 600; }

/* =========================================================
   BLOG PAGE HERO (subheader) — clearance below site header
   ========================================================= */
body.blog-page #subheader.jarallax {
    align-items: flex-start;
    justify-content: center;
    min-height: 420px;
    padding: 155px 0 88px !important;
}

body.blog-page #subheader.jarallax .blog-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: 100%;
    margin: 0 auto 20px;
}

body.blog-page #subheader.jarallax .blog-hero-eyebrow-text {
    font-family: var(--blog-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
    white-space: nowrap;
    padding: 0 2px;
    flex: 0 1 auto;
}

body.blog-page #subheader.jarallax .blog-hero-eyebrow-line {
    flex: 0 0 44px;
    width: 44px;
    height: 0;
    border: 0;
    border-top: 1.5px solid rgba(255, 255, 255, 0.88);
    margin: 0;
}

body.blog-page #subheader.jarallax.blog-post-hero {
    min-height: 400px;
    padding: 158px 0 92px !important;
}

body.blog-page #subheader.jarallax .blog-hero-post-title {
    font-family: var(--blog-font);
    font-size: clamp(1.75rem, 3.8vw, 2.65rem);
    line-height: 1.18;
    margin: 0 auto;
    padding: 0;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.012em;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: 880px;
    text-wrap: balance;
}

body.blog-page #subheader.jarallax .blog-hero-copy {
    padding-left: 12px;
    padding-right: 12px;
}

body.blog-page #subheader.jarallax .blog-hero-title {
    font-size: clamp(1.65rem, 4.5vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

body.blog-page #subheader.jarallax .blog-hero-desc {
    font-size: clamp(0.92rem, 2.2vw, 1.08rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    margin: 0 auto;
}

body.blog-page #subheader.jarallax > .container {
    padding-top: 8px;
}

body.blog-page #subheader.jarallax .subtitle {
    margin-bottom: 10px;
}

body.blog-page #subheader.jarallax h1 {
    margin-bottom: 12px;
}

body.blog-page #subheader.jarallax .subtitle.s2 {
    padding-left: 48px;
    padding-right: 48px;
    max-width: 100%;
    word-wrap: break-word;
}

body.blog-page #subheader.jarallax .subtitle.s2:after {
    position: absolute;
    right: 0;
    left: auto;
    content: '';
    display: block;
    width: 50px;
    border-bottom: solid 1.5px #ffffff;
    top: 50%;
    transform: translateY(-50%);
}

body.blog-page #subheader.jarallax .blog-hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 10px;
    margin-top: 4px;
}

body.blog-page #subheader.jarallax .blog-hero-tag {
    display: inline-block;
    background: rgba(210, 41, 44, 0.88);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
}

body.blog-page #subheader.jarallax .blog-hero-tag:hover {
    background: #fff;
    color: var(--blog-red);
    border-color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

body.blog-page #subheader.jarallax .blog-hero-tags .blog-tag-sep {
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    body.blog-page #subheader.jarallax {
        min-height: 340px;
        padding: 132px 0 72px !important;
    }
    body.blog-page #subheader.jarallax.blog-post-hero {
        min-height: 340px;
        padding: 132px 0 76px !important;
    }
    body.blog-page #subheader.jarallax .blog-hero-eyebrow {
        gap: 22px;
        margin-bottom: 16px;
    }
    body.blog-page #subheader.jarallax .blog-hero-eyebrow-line {
        flex-basis: 36px;
        width: 36px;
    }
    body.blog-page #subheader.jarallax .blog-hero-eyebrow-text {
        font-size: 0.68rem;
        letter-spacing: 0.22em;
    }
    body.blog-page #subheader.jarallax .blog-hero-post-title {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        line-height: 1.22;
        letter-spacing: -0.01em;
    }
    body.blog-page #subheader.jarallax h1,
    body.blog-page #subheader.jarallax .blog-hero-title {
        font-size: clamp(1.45rem, 5vw, 2rem);
        line-height: 1.2;
    }
    body.blog-page #subheader.jarallax .blog-hero-desc {
        font-size: 0.92rem;
        line-height: 1.5;
        padding: 0 4px;
    }
    .blog-section { padding: 48px 0 64px; }
    .blog-section .blog-sidebar-col { margin-top: 40px; }
    .blog-hero h1 { font-size: 2.2rem; }
    .blog-grid-col { margin-bottom: 0; }
}

@media (max-width: 767px) {
    body.blog-page #subheader.jarallax {
        min-height: 300px;
        padding: 118px 0 56px !important;
    }
    body.blog-page #subheader.jarallax.blog-post-hero {
        min-height: 300px;
        padding: 120px 0 64px !important;
    }
    body.blog-page #subheader.jarallax .blog-hero-eyebrow {
        gap: 20px;
        margin-bottom: 14px;
    }
    body.blog-page #subheader.jarallax .blog-hero-eyebrow-line {
        flex-basis: 32px;
        width: 32px;
    }
    body.blog-page #subheader.jarallax .blog-hero-eyebrow-text {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
        white-space: nowrap;
    }
    body.blog-page #subheader.jarallax .blog-hero-post-title {
        font-size: 1.45rem;
        line-height: 1.24;
        letter-spacing: -0.008em;
        padding: 0 6px;
    }
    body.blog-page #subheader.jarallax .subtitle.s2 {
        font-size: 0.72rem;
        padding-left: 36px;
        padding-right: 36px;
        line-height: 1.35;
    }
    body.blog-page #subheader.jarallax .subtitle.s2:before,
    body.blog-page #subheader.jarallax .subtitle.s2:after {
        width: 26px;
    }
    body.blog-page #subheader.jarallax h1,
    body.blog-page #subheader.jarallax .blog-hero-title {
        font-size: 1.45rem;
    }
    body.blog-page #subheader.jarallax .blog-hero-desc {
        font-size: 0.88rem;
        line-height: 1.45;
    }
    .blog-main-search { margin-bottom: 18px; }
    .blog-search-form input[type="search"],
    .blog-search-form input[type="text"],
    .blog-search-form button {
        height: 42px;
        font-size: 16px;
    }
    .blog-hero { padding: 60px 0 56px; }
    .blog-section { padding: 36px 0 56px; }
    .blog-archive-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .blog-archive-bar .bar-meta {
        width: 100%;
        flex-wrap: wrap;
    }
    .blog-archive-bar .bar-title { font-size: 1.35rem; }
    .blog-card-body { padding: 14px 16px 16px; }
    .blog-card-foot {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-breadcrumb {
        font-size: 0.78rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .blog-post-page { padding: 20px 0 56px; }
    .blog-post-header { margin-bottom: 18px; }
    .blog-post-content-title { font-size: 1.45rem; margin-bottom: 8px; }
    .blog-post-header h1 { font-size: 1.45rem; margin-bottom: 6px; }
    .blog-post-header .post-deck { font-size: 0.95rem; margin-bottom: 10px; }
    .blog-post-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 14px;
        padding-bottom: 14px;
    }
    .blog-post-share {
        margin-left: auto;
        width: auto;
        flex-wrap: nowrap;
    }
    .blog-post-featured-img { margin-bottom: 28px; }
    .blog-post-body { font-size: 0.96rem; }
    .blog-cta-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
    .blog-prev-next {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 20px;
    }
    .pn-dots { display: none; }
    .blog-prev-next .pn-item.next {
        text-align: left;
    }
    .blog-prev-next .pn-item.next .pn-label {
        justify-content: flex-start;
    }
    .blog-sidebar .sidebar-widget {
        margin-bottom: 20px;
    }
    .blog-subscribe-toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
        padding: 12px 14px;
        font-size: 0.86rem;
    }
}

@media (max-width: 575px) {
    .blog-grid { gap: 18px; }
    .blog-pagination {
        gap: 6px;
    }
    .blog-pagination a,
    .blog-pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
}
@media (max-width: 402px) {
    .blog-post-share {
        margin-left: 0;
        width: auto;
        flex-wrap: nowrap;
    }
}