/* ════════════════════════════════════════════════════════════════
   AgencyDir Blog — Metro Layout CSS
   Loaded only on blog/post pages
════════════════════════════════════════════════════════════════ */

/* ── Category pill bar ──────────────────────────────────────── */
.hdb-wrap { background: var(--hd-bg); min-height: 60vh; }

.hdb-cat-bar {
    background: var(--hd-white);
    border-bottom: 1px solid var(--hd-border);
    position: sticky; top: 72px; z-index: 90;
    overflow-x: auto; scrollbar-width: none;
}
.hdb-cat-bar::-webkit-scrollbar { display: none; }
.hdb-cat-bar__inner {
    max-width: 1320px; margin: 0 auto;
    padding: 0 24px;
    display: flex; gap: 6px; align-items: center;
    height: 52px;
}
.hdb-cat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    color: var(--hd-text-muted); text-decoration: none;
    border: 1.5px solid transparent;
    transition: all .15s;
    flex-shrink: 0;
}
.hdb-cat-pill:hover { color: var(--cat-color, var(--hd-primary)); border-color: var(--cat-color, var(--hd-primary)); text-decoration: none; background: color-mix(in srgb, var(--cat-color, var(--hd-primary)) 10%, transparent); }
.hdb-cat-pill.active { background: var(--cat-color, var(--hd-primary)); color: #fff; border-color: transparent; }
.hdb-cat-pill__count { opacity: .65; font-size: 11px; }

/* ── Container ──────────────────────────────────────────────── */
.hdb-container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════════════════════════════════════
   HERO HALF-BANNER (big featured post + stacked post list)
════════════════════════════════════════════════════════════════ */
.hdb-hero-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

/* ── Left: big hero tile ──────────────────────────────────────── */
.hdb-hero-main {
    position: relative; overflow: hidden;
    border-radius: var(--hd-radius-lg);
    min-height: 480px;
    background: var(--hd-primary-light);
    cursor: pointer;
}
.hdb-tile__link {
    position: absolute; inset: 0; z-index: 1;
}
.hdb-tile__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}
.hdb-tile__bg--pattern {
    background:
        repeating-linear-gradient(
            45deg,
            color-mix(in srgb, var(--pat-color) 8%, transparent) 0px,
            color-mix(in srgb, var(--pat-color) 8%, transparent) 1px,
            transparent 0px,
            transparent 50%
        ),
        linear-gradient(135deg,
            color-mix(in srgb, var(--pat-color) 15%, #fff),
            color-mix(in srgb, var(--pat-color) 5%, #fff)
        );
    background-size: 20px 20px, 100% 100%;
}
.hdb-hero-main:hover .hdb-tile__bg { transform: scale(1.06); }

.hdb-tile__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.05) 100%);
}

.hdb-tile__body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 32px; z-index: 2;
}

.hdb-tile__title { font-family: var(--font-heading); color: #fff; margin: 10px 0 12px; letter-spacing: -.3px; }
.hdb-tile__title a { color: inherit; text-decoration: none; }
.hdb-tile__title a:hover { text-decoration: underline; }
.hdb-tile__title--xl { font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; line-height: 1.2; }

.hdb-tile__excerpt { font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 90%; }

.hdb-tile__meta { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 13px; flex-wrap: wrap; }

/* ── Category label on tiles ─────────────────────────────────── */
.hdb-cat-label {
    display: inline-block;
    background: var(--cat-color, var(--hd-primary));
    color: #fff; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 4px 12px; border-radius: 4px;
    text-decoration: none; line-height: 1.6;
    transition: opacity .15s;
}
.hdb-cat-label:hover { opacity: .85; text-decoration: none; }

/* ── Avatar ──────────────────────────────────────────────────── */
.hdb-avatar { width: 28px !important; height: 28px !important; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); }
.hdb-sep { color: rgba(255,255,255,.35); }
.hdb-card__meta .hdb-sep,
.hdb-list-item__meta .hdb-sep { color: var(--hd-border); }

/* ── Right: stacked post list ───────────────────────────────── */
.hdb-hero-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-lg);
    padding: 8px 20px;
}
.hdb-hero-list__item {
    display: flex; gap: 16px; align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--hd-border);
}
.hdb-hero-list__item:last-child { border-bottom: none; }
.hdb-hero-list__thumb {
    flex-shrink: 0; width: 96px; height: 80px;
    border-radius: var(--hd-radius-sm); overflow: hidden;
    display: block;
}
.hdb-hero-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hdb-hero-list__body { flex: 1; min-width: 0; }
.hdb-hero-list__title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 4px 0 6px; }
.hdb-hero-list__title a { color: var(--hd-text); text-decoration: none; }
.hdb-hero-list__title a:hover { color: var(--hd-primary); }

/* ════════════════════════════════════════════════════════════════
   MORE STORIES: clean card grid
════════════════════════════════════════════════════════════════ */
.hdb-more { padding: 24px 0 48px; }
.hdb-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hdb-card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hdb-card {
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.hdb-card:hover { box-shadow: var(--hd-shadow-lg); transform: translateY(-3px); }
.hdb-card__thumb {
    display: block; position: relative;
    width: 100%; aspect-ratio: 16/10; overflow: hidden;
    background: var(--hd-primary-light);
}
.hdb-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hdb-card__cat {
    position: absolute; top: 12px; left: 12px;
}
.hdb-card__body { padding: 18px; }
.hdb-card__title { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; }
.hdb-card__title a { color: var(--hd-text); text-decoration: none; }
.hdb-card__title a:hover { color: var(--hd-primary); }
.hdb-card__excerpt { font-size: 14px; color: var(--hd-text-muted); line-height: 1.55; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hdb-card__meta { font-size: 12px; color: var(--hd-text-muted); display: flex; gap: 8px; align-items: center; }
.hdb-card-grid--4 .hdb-card__body { padding: 14px; }
.hdb-card-grid--4 .hdb-card__title { font-size: 15px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.hdb-card-grid--4 .hdb-card__excerpt { display: none; }

/* ════════════════════════════════════════════════════════════════
   CATEGORY CHIPS: slim quick-nav row under hero
════════════════════════════════════════════════════════════════ */
.hdb-cat-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0 36px; }
.hdb-cat-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: 999px; padding: 8px 16px;
    font-size: 13px; font-weight: 600; color: var(--hd-text);
    text-decoration: none; transition: border-color .15s, color .15s;
}
.hdb-cat-chip:hover { border-color: var(--cat-color, var(--hd-primary)); color: var(--cat-color, var(--hd-primary)); text-decoration: none; }
.hdb-cat-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat-color, var(--hd-primary)); flex-shrink: 0; }
.hdb-cat-chip__count { color: var(--hd-text-muted); font-weight: 500; font-size: 12px; }


/* ════════════════════════════════════════════════════════════════
   BOTTOM ROW: Latest + Sidebar
════════════════════════════════════════════════════════════════ */
.hdb-section-title {
    display: flex; align-items: center; gap: 16px;
    font-size: 13px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--hd-text);
    margin-bottom: 24px;
}
.hdb-section-title__line { flex: 1; height: 2px; background: var(--hd-border); }

/* ── List items (latest) ─────────────────────────────────────── */
.hdb-list-item {
    display: flex; gap: 16px; padding: 16px 0;
    border-bottom: 1px solid var(--hd-border);
    align-items: flex-start;
}
.hdb-list-item:first-child { border-top: 1px solid var(--hd-border); }
.hdb-list-item__thumb {
    width: 90px; height: 68px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden; display: block;
}
.hdb-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hdb-list-item__thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
    border-radius: 6px;
}
.hdb-list-item__body { flex: 1; min-width: 0; }
.hdb-list-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; }
.hdb-list-cat:hover { text-decoration: underline; }
.hdb-list-item__title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 4px 0 5px; }
.hdb-list-item__title a { color: var(--hd-text); text-decoration: none; }
.hdb-list-item__title a:hover { color: var(--hd-primary); }
.hdb-list-item__meta { font-size: 12px; color: var(--hd-text-muted); }

/* Card style list (category page) */
.hdb-list-item--card { flex-direction: column; }
.hdb-list-item--card .hdb-list-item__thumb { width: 100%; height: 160px; }

.hdb-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap: 20px;
    margin-top: 32px;
}
.hdb-cat-grid .hdb-list-item--card { border: 1px solid var(--hd-border); border-radius: var(--hd-radius); overflow: hidden; background: var(--hd-white); padding: 0 0 16px; }
.hdb-cat-grid .hdb-list-item--card .hdb-list-item__body { padding: 12px 14px 0; }
.hdb-cat-grid .hdb-list-item--card:first-child { border-top: 1px solid var(--hd-border); }

/* ── Pagination ───────────────────────────────────────────────── */
.hdb-pagination { padding: 32px 0 48px; }
.hdb-pagination .page-numbers {
    display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.hdb-pagination .page-numbers a,
.hdb-pagination .page-numbers span {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid var(--hd-border); background: var(--hd-white);
    color: var(--hd-text); font-size: 14px; font-weight: 600;
    text-decoration: none; transition: all .15s;
}
.hdb-pagination .page-numbers a:hover { background: var(--hd-primary-light); border-color: var(--hd-primary); color: var(--hd-primary); }
.hdb-pagination .page-numbers.current { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hdb-pagination .page-numbers.dots { border: none; background: none; }

/* ════════════════════════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════════════════════════ */
.hdb-single__hero {
    position: relative; min-height: 460px;
    display: flex; align-items: flex-end;
    background: var(--hd-primary-dark);
    overflow: hidden;
}
.hdb-single__hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--hero-image);
    background-size: cover; background-position: center;
    filter: brightness(0.55) saturate(0.9);
    z-index: 0;
}
.hdb-single__hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.2) 100%);
}
.hdb-single__hero--no-image {
    background: linear-gradient(135deg, var(--hd-primary) 0%, var(--hd-primary-dark) 100%);
    min-height: 380px;
}
.hdb-single__hero--no-image::before { display: none; }
.hdb-single__hero-body {
    position: relative; z-index: 2;
    max-width: 900px; margin: 0 auto;
    padding: 40px 24px 48px; width: 100%;
}
.hdb-single__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hdb-single__title {
    font-size: clamp(24px, 4.5vw, 48px); font-weight: 800; color: #fff;
    line-height: 1.15; letter-spacing: -.5px; margin-bottom: 16px;
}
.hdb-single__deck { font-size: 18px; color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: 24px; }
.hdb-single__byline {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    color: rgba(255,255,255,.75); font-size: 13px;
}
.hdb-single__avatar { width: 40px !important; height: 40px !important; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); }
.hdb-single__author { font-weight: 700; color: rgba(255,255,255,.9); }
.hdb-single__date   { font-size: 12px; }
.hdb-single__share  { margin-left: auto; display: flex; gap: 8px; }
.hdb-share-btn {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; text-decoration: none;
    background: rgba(255,255,255,.15); color: #fff;
    border: 1.5px solid rgba(255,255,255,.3);
    cursor: pointer; transition: all .15s; line-height: 1;
}
.hdb-share-btn:hover { background: rgba(255,255,255,.3); text-decoration: none; color: #fff; }

/* Post body layout */
.hdb-single__layout {
    max-width: 1320px; margin: 0 auto; padding: 48px 24px 64px;
    display: grid; grid-template-columns: 260px 1fr; gap: 56px;
    align-items: start;
}

/* TOC sidebar */
.hdb-single__toc { position: sticky; top: 140px; }
.hdb-toc-inner {
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); overflow: hidden;
}
.hdb-toc__title {
    padding: 14px 16px; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--hd-text-muted); border-bottom: 1px solid var(--hd-border);
    background: var(--hd-bg);
}
.hdb-toc__nav { padding: 8px 0; }
.hdb-toc__link {
    display: block; padding: 7px 16px;
    font-size: 13px; color: var(--hd-text-muted); text-decoration: none;
    border-left: 3px solid transparent; transition: all .12s;
    line-height: 1.4;
}
.hdb-toc__link--sub { padding-left: 28px; font-size: 12px; }
.hdb-toc__link:hover { color: var(--hd-primary); background: var(--hd-primary-light); text-decoration: none; }
.hdb-toc__link.active { color: var(--hd-primary); border-left-color: var(--hd-primary); font-weight: 600; }
.hdb-toc__progress { height: 3px; background: var(--hd-border); }
.hdb-toc__progress-bar { height: 100%; background: var(--hd-primary); width: 0; transition: width .1s linear; border-radius: 2px; }

/* Post body prose */
.hdb-post-body {
    font-size: 17px; line-height: 1.8; color: var(--hd-text);
    max-width: 760px;
}
.hdb-post-body h2 {
    font-size: clamp(20px,2.5vw,26px); font-weight: 800; margin: 40px 0 16px;
    color: var(--hd-text); letter-spacing: -.3px; line-height: 1.25;
}
.hdb-post-body h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.hdb-post-body h4 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.hdb-post-body p  { margin-bottom: 20px; }
.hdb-post-body a  { color: var(--hd-primary); text-decoration: underline; text-underline-offset: 3px; }
.hdb-post-body ul, .hdb-post-body ol { margin: 0 0 20px 24px; }
.hdb-post-body ul li { list-style: disc; margin-bottom: 8px; }
.hdb-post-body ol li { list-style: decimal; margin-bottom: 8px; }
.hdb-post-body blockquote {
    border-left: 4px solid var(--hd-primary);
    background: var(--hd-primary-light);
    padding: 16px 20px; margin: 24px 0;
    border-radius: 0 var(--hd-radius-sm) var(--hd-radius-sm) 0;
    font-style: italic; color: var(--hd-primary-dark);
}
.hdb-post-body blockquote p { margin: 0; }
.hdb-post-body img {
    border-radius: var(--hd-radius); margin: 24px 0; max-width: 100%;
    box-shadow: var(--hd-shadow);
}
.hdb-post-body pre {
    background: #1A2332; color: #E8F5F5;
    padding: 20px; border-radius: var(--hd-radius); overflow-x: auto;
    font-size: 14px; line-height: 1.7; margin: 24px 0;
}
.hdb-post-body code {
    background: var(--hd-primary-light); color: var(--hd-primary-dark);
    padding: 2px 6px; border-radius: 4px; font-size: .9em;
}
.hdb-post-body pre code { background: none; color: inherit; padding: 0; }
.hdb-post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.hdb-post-body th { background: var(--hd-primary); color: #fff; padding: 10px 14px; text-align: left; font-size: 13px; }
.hdb-post-body td { padding: 10px 14px; border-bottom: 1px solid var(--hd-border); }
.hdb-post-body tr:nth-child(even) td { background: var(--hd-bg); }
.hdb-post-body figure { margin: 24px 0; }
.hdb-post-body figcaption { font-size: 13px; color: var(--hd-text-muted); text-align: center; margin-top: 8px; font-style: italic; }

/* Tags & author */
.hdb-single__tags {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 20px 0; border-top: 1px solid var(--hd-border); margin-top: 32px;
}
.hdb-single__tags-label { font-size: 13px; font-weight: 700; color: var(--hd-text-muted); }

.hdb-author-card {
    display: flex; gap: 20px; padding: 24px;
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); margin: 32px 0; align-items: flex-start;
}
.hdb-author-card__avatar { width: 72px !important; height: 72px !important; border-radius: 50%; flex-shrink: 0; }
.hdb-author-card__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--hd-text-muted); }
.hdb-author-card__name  { font-size: 18px; font-weight: 800; margin: 4px 0 8px; }
.hdb-author-card__bio   { font-size: 14px; color: var(--hd-text-muted); line-height: 1.6; margin: 0; }

.hdb-post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px;
}
.hdb-post-nav__item {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px 20px; border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); background: var(--hd-white);
    text-decoration: none; transition: all .15s; color: inherit;
}
.hdb-post-nav__item:hover { border-color: var(--hd-primary); background: var(--hd-primary-light); text-decoration: none; color: inherit; }
.hdb-post-nav__item--next { text-align: right; }
.hdb-post-nav__dir   { font-size: 12px; color: var(--hd-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.hdb-post-nav__title { font-size: 14px; font-weight: 700; color: var(--hd-text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hdb-comments { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--hd-border); }

/* ── Related posts ────────────────────────────────────────────── */
.hdb-related {
    background: var(--hd-white); border-top: 1px solid var(--hd-border);
    padding: 48px 0 64px;
}
.hdb-related-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.hdb-related-card { display: flex; flex-direction: column; border: 1px solid var(--hd-border); border-radius: var(--hd-radius); overflow: hidden; background: var(--hd-white); text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.hdb-related-card:hover { transform: translateY(-3px); box-shadow: var(--hd-shadow-lg); text-decoration: none; color: inherit; }
.hdb-related-card__thumb { height: 160px; overflow: hidden; }
.hdb-related-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hdb-related-card:hover .hdb-related-card__thumb img { transform: scale(1.05); }
.hdb-related-card__thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hdb-related-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hdb-related-card__body h4 { font-size: 15px; font-weight: 700; color: var(--hd-text); line-height: 1.35; }
.hdb-related-card__body p  { font-size: 13px; color: var(--hd-text-muted); line-height: 1.5; flex: 1; }
.hdb-related-card__meta { font-size: 12px; color: var(--hd-text-muted); margin-top: auto; }

/* ════════════════════════════════════════════════════════════════
   CATEGORY PAGE HERO
════════════════════════════════════════════════════════════════ */
.hdb-cat-hero {
    background: linear-gradient(135deg, var(--cat-color) 0%, color-mix(in srgb, var(--cat-color) 70%, #000) 100%);
    padding: 48px 0;
}
.hdb-cat-hero__inner { max-width: 680px; }
.hdb-cat-hero__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.7); }
.hdb-cat-hero__name  { font-size: clamp(28px,5vw,48px); font-weight: 800; color: #fff; margin: 8px 0 12px; }
.hdb-cat-hero__desc  { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 12px; line-height: 1.6; }
.hdb-cat-hero__count { font-size: 13px; color: rgba(255,255,255,.6); }

.hdb-cat-feature {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
    align-items: center; padding: 32px 0; border-bottom: 1px solid var(--hd-border);
    margin-bottom: 8px;
}
.hdb-cat-feature__thumb { height: 320px; border-radius: var(--hd-radius); overflow: hidden; }
.hdb-cat-feature__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hdb-cat-feature__title { font-size: clamp(20px,3vw,30px); font-weight: 800; color: var(--hd-text); line-height: 1.2; margin: 12px 0 14px; }
.hdb-cat-feature__title a { color: inherit; text-decoration: none; }
.hdb-cat-feature__title a:hover { color: var(--hd-primary); }
.hdb-cat-feature__excerpt { font-size: 15px; color: var(--hd-text-muted); line-height: 1.6; margin-bottom: 16px; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1300px) {
    .hdb-card-grid--4 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1024px) {
    .hdb-card-grid { grid-template-columns: repeat(2,1fr); }
    .hdb-card-grid--4 { grid-template-columns: repeat(2,1fr); }
    .hdb-single__layout { grid-template-columns: 1fr; }
    .hdb-single__toc { display: none; }
    .hdb-related-grid { grid-template-columns: repeat(2,1fr); }
    .hdb-cat-feature { grid-template-columns: 1fr; }
    .hdb-cat-feature__thumb { height: 220px; }
}
@media (max-width: 768px) {
    .hdb-hero-banner { grid-template-columns: 1fr; }
    .hdb-hero-main { min-height: 320px; }
    .hdb-card-grid { grid-template-columns: 1fr; }
    .hdb-card-grid--4 { grid-template-columns: 1fr; }
    .hdb-tile__title--xl { font-size: 22px; }
    .hdb-tile__excerpt { display: none; }
    .hdb-related-grid { grid-template-columns: 1fr; }
    .hdb-post-nav { grid-template-columns: 1fr; }
    .hdb-single__hero { min-height: 380px; }
    .hdb-single__title { font-size: 24px; }
    .hdb-single__share { display: none; }
    .hdb-cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hdb-hero-list__thumb { width: 76px; height: 64px; }
    .hdb-single__deck { display: none; }
    .hdb-author-card { flex-direction: column; }
}

/* ── Additions ─────────────────────────────────────────────── */
.hdb-author-card__link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hd-primary);
    text-decoration: none;
}
.hdb-author-card__link:hover { text-decoration: underline; }

/* Page links for multi-page posts */
.hdb-page-links {
    padding: 16px 0;
    border-top: 1px solid var(--hd-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hdb-page-links a, .hdb-page-links .post-page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; border-radius: 6px;
    border: 1px solid var(--hd-border); background: #fff;
    color: var(--hd-text); font-size: 14px; font-weight: 600;
    text-decoration: none; transition: all .15s;
}
.hdb-page-links a:hover { background: var(--hd-primary-light); border-color: var(--hd-primary); color: var(--hd-primary); }
.hdb-page-links .post-page-numbers.current { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }

/* Reading progress bar (top of page) */
#hdb-progress-top { pointer-events: none; }

/* Comment form improvements */
.hdb-comments .comment-list { list-style: none; padding: 0; margin: 0; }
.hdb-comments .comment      { padding: 20px 0; border-bottom: 1px solid var(--hd-border); }
.hdb-comments .comment:last-child { border-bottom: none; }
.hdb-comments .comment-author b { font-size: 15px; font-weight: 700; }
.hdb-comments .comment-metadata { font-size: 12px; color: var(--hd-text-muted); margin: 3px 0 10px; }
.hdb-comments .comment-content p { font-size: 15px; color: var(--hd-text); line-height: 1.7; margin: 0; }
.hdb-comments .reply { margin-top: 8px; }
.hdb-comments .comment-reply-link { font-size: 12px; font-weight: 700; color: var(--hd-primary); text-decoration: none; }
.hdb-comments #respond { margin-top: 32px; padding-top: 32px; border-top: 2px solid var(--hd-border); }
.hdb-comments #respond h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.hdb-comments .comment-form p { margin-bottom: 16px; }
.hdb-comments .comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--hd-text); }
.hdb-comments .comment-form input[type=text],
.hdb-comments .comment-form input[type=email],
.hdb-comments .comment-form input[type=url],
.hdb-comments .comment-form textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--hd-border); border-radius: 6px;
    font-size: 14px; font-family: inherit; outline: none;
    transition: border-color .15s; background: #fff;
}
.hdb-comments .comment-form input:focus,
.hdb-comments .comment-form textarea:focus { border-color: var(--hd-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.08); }
.hdb-comments .comment-form textarea { min-height: 120px; resize: vertical; }
.hdb-comments .form-submit .submit {
    background: var(--hd-primary); color: #fff; border: none;
    border-radius: 6px; padding: 12px 28px; font-size: 15px;
    font-weight: 700; cursor: pointer; font-family: inherit;
    transition: background .15s;
}
.hdb-comments .form-submit .submit:hover { background: var(--hd-primary-dark); }

/* Responsive fixes */
@media (max-width: 900px) {
    .hdb-single__layout { padding: 32px 16px 48px; }
}
@media (max-width: 480px) {
    .hdb-author-card { flex-direction: column; }
    .hdb-post-nav    { grid-template-columns: 1fr; }
}
