/* ═══════════════════════════════════════════════════════════════
   BLOG OVERHAUL — 2026 additions
   ═══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.dl-breadcrumb {
    max-width: 950px;
    margin: 0 auto;
    padding: 18px 100px 0;
    font-size: 0.84rem;
    color: #9D9D9D;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    box-sizing: border-box;
}
.dl-breadcrumb a { color: #9D9D9D; text-decoration: none; }
.dl-breadcrumb a:hover { color: #FFC000; }
.dl-breadcrumb__sep { color: #ccc; }
.dl-breadcrumb__current { color: #2B2B2B; font-weight: 500; }

/* ── Post hero image ────────────────────────────────────────── */
.dl-post-hero {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    margin-top: 12px;
}
.dl-post-hero__img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.dl-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.35) 100%);
}

/* ── Post meta block (title/date/tags below hero) ───────────── */
.dl-post-meta {
    max-width: 950px;
    margin: 0 auto;
    padding: 28px 100px 0;
    box-sizing: border-box;
}
.dl-post-meta__title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #2B2B2B;
}
.dl-post-meta__row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #9D9D9D;
    padding-bottom: 20px;
    border-bottom: 2px solid #E8E8E8;
    margin-bottom: 8px;
}
.dl-post-meta__tags a { color: #9D9D9D; text-decoration: none; }
.dl-post-meta__tags a:hover { color: #FFC000; }

/* ── Archive header ─────────────────────────────────────────── */
.dl-archive-header {
    background: #111;
    color: #fff;
    padding: 60px 10%;
}
.dl-archive-header__title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Tag filter nav ─────────────────────────────────────────── */
.dl-tag-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 10%;
    border-bottom: 1px solid #E8E8E8;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.dl-tag-nav__list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.dl-tag-nav__item a {
    display: inline-block;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    border: 1.5px solid #E8E8E8;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.dl-tag-nav__item a:hover,
.dl-tag-nav__item--active a {
    background: #FFC000;
    border-color: #FFC000;
    color: #111;
}
.dl-tag-nav__search { min-width: 200px; }

/* ── Blog grid ──────────────────────────────────────────────── */
.dl-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 40px 10%;
    box-sizing: border-box;
}
.dl-blog-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #9D9D9D;
    padding: 60px 0;
    font-size: 1.1rem;
}

/* ── Post card ──────────────────────────────────────────────── */
.dl-post-card {
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.dl-post-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    transform: translateY(-3px);
}
.dl-post-card__img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F3F3F3;
}
.dl-post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.dl-post-card:hover .dl-post-card__img { transform: scale(1.04); }
.dl-post-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F3F3F3 0%, #E0E0E0 100%);
}
.dl-post-card__body {
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}
.dl-post-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #2B2B2B;
}
.dl-post-card__title a { color: inherit; text-decoration: none; }
.dl-post-card__title a:hover { color: #FFC000; }
.dl-post-card__excerpt {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    flex: 1;
}
.dl-post-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #F0F0F0;
}
.dl-post-card__date { font-size: 0.78rem; color: #9D9D9D; }
.dl-post-card__read {
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFC000;
    text-decoration: none;
    white-space: nowrap;
}
.dl-post-card__read:hover { color: #e0a800; }

/* ── Pagination ─────────────────────────────────────────────── */
.dl-pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0 60px;
}
.dl-pagination .page-numbers {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.dl-pagination .page-numbers li { }
.dl-pagination .page-numbers a,
.dl-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid #E8E8E8;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: all 0.15s ease;
}
.dl-pagination .page-numbers a:hover { background: #FFC000; border-color: #FFC000; color: #111; }
.dl-pagination .page-numbers .current { background: #FFC000; border-color: #FFC000; color: #111; font-weight: 700; }
.dl-pagination .page-numbers .dots { border-color: transparent; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .dl-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dl-blog-grid { grid-template-columns: 1fr; padding: 24px 5%; gap: 20px; }
    .dl-archive-header { padding: 40px 5%; }
    .dl-archive-header__title { font-size: 2rem; }
    .dl-tag-nav { padding: 14px 5%; }
    .dl-breadcrumb { padding: 14px 16px 0; }
    .dl-post-meta { padding: 20px 16px 0; }
    .dl-post-meta__title { font-size: 1.6rem; }
    .dl-post-hero__img { height: 240px; }
    .dl-post-hero { max-height: 240px; }
}
@media (max-width: 480px) {
    .dl-tag-nav { flex-direction: column; align-items: flex-start; }
    .dl-tag-nav__search { width: 100%; }
    .dl-tag-nav__list { gap: 6px; }
}
