/* ============================================================
   Heatmedia Blog Theme — main.css
   Design system: Inter, card-based editorial, color via CSS vars
   ============================================================ */

/* ── Reset / base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #f8fafc;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--clr-primary); text-decoration: none; }
a:hover { color: var(--clr-primary-dk); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.entry-content h2 { font-size: 1.5rem; margin: 1.75rem 0 .75rem; }
.entry-content h3 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; }
.entry-content p  { margin-bottom: 1.2rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2rem 1.5rem; }
.entry-content blockquote {
    border-left: 4px solid var(--clr-primary);
    padding: .75rem 1.25rem;
    background: #f0f4ff;
    margin: 1.5rem 0;
    font-style: italic;
    color: #374151;
    border-radius: 0 6px 6px 0;
}
.entry-content a { color: var(--clr-primary); text-decoration: underline; }

/* ── Container ──────────────────────────────────────────────── */
.hm-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.hm-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.25rem;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .18s, transform .1s;
    text-decoration: none;
}
.hm-btn-primary {
    background: var(--clr-primary);
    color: #fff;
}
.hm-btn-primary:hover {
    background: var(--clr-primary-dk);
    color: #fff;
    transform: translateY(-1px);
}
.hm-btn-ghost {
    background: transparent;
    color: var(--clr-primary);
    border: 1.5px solid var(--clr-primary);
}
.hm-btn-ghost:hover {
    background: var(--clr-primary);
    color: #fff;
}

/* ── Category pill ──────────────────────────────────────────── */
.hm-cat-pill {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: .25rem .65rem;
    border-radius: 20px;
    background: var(--clr-primary);
    color: #fff;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.hm-cat-pill:hover {
    background: var(--clr-primary-dk);
    color: #fff;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
    background: var(--clr-header-bg);
    color: var(--clr-header-txt);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--clr-header-txt);
}
.header-logo img,
.header-logo .custom-logo { height: 40px; width: auto; }
.header-logo .site-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-header-txt);
}

/* Nav */
.header-nav { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }

.header-nav .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: .1rem;
}
.header-nav .nav-menu li { position: relative; }
.header-nav .nav-menu li a {
    display: block;
    padding: .45rem .85rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--clr-header-txt);
    border-radius: 5px;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.header-nav .nav-menu li a:hover,
.header-nav .nav-menu li.current-menu-item > a {
    background: rgba(0,0,0,.06);
    color: var(--clr-primary);
}

/* Dropdown */
.header-nav .nav-menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .4rem 0;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s;
    z-index: 200;
}
.header-nav .nav-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-nav .nav-menu li ul.sub-menu li a {
    padding: .5rem 1rem;
    border-radius: 0;
    font-weight: 500;
    color: #374151;
}
.header-nav .nav-menu li ul.sub-menu li a:hover {
    background: #f3f4f6;
    color: var(--clr-primary);
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Search toggle */
.header-search-wrap { position: relative; }
.header-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-header-txt);
    padding: .4rem;
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: background .15s;
}
.header-search-toggle:hover { background: rgba(0,0,0,.06); }
.header-search-toggle svg { width: 18px; height: 18px; }

.header-search-form {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: .5rem;
    width: 280px;
    z-index: 300;
}
.header-search-form.is-open { display: flex; gap: .4rem; }

@media (max-width: 520px) {
    .header-search-form {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
    }
}
.header-search-form input[type="search"] {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: .45rem .75rem;
    font-size: .875rem;
    font-family: inherit;
    outline: none;
}
.header-search-form input[type="search"]:focus { border-color: var(--clr-primary); }
.header-search-form button[type="submit"] {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: .45rem .9rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* Mobile hamburger */
.header-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    color: var(--clr-header-txt);
    border-radius: 5px;
}
.header-menu-toggle svg { width: 22px; height: 22px; }
.header-menu-toggle:hover { background: rgba(0,0,0,.06); }

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(2px);
}
.mobile-nav-overlay.is-open { display: block; }

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 401;
    padding: 1.5rem;
    transition: right .25s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav-panel.is-open { right: 0; }

.mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #374151;
    line-height: 1;
}

.mobile-nav-panel .nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.mobile-nav-panel .nav-menu li a {
    display: block;
    padding: .65rem .75rem;
    font-size: .95rem;
    font-weight: 600;
    color: #111827;
    border-radius: 6px;
    text-decoration: none;
}
.mobile-nav-panel .nav-menu li a:hover {
    background: #f3f4f6;
    color: var(--clr-primary);
}
.mobile-nav-panel .nav-menu .sub-menu {
    list-style: none;
    padding-left: 1rem;
}
.mobile-nav-panel .nav-menu .sub-menu li a {
    font-size: .875rem;
    font-weight: 500;
    color: #6b7280;
}

/* ── HOMEPAGE ────────────────────────────────────────────────── */

/* Hero */
.hm-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.hm-hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    min-height: 460px;
}
.hm-hero-content {
    padding: 3rem 2.5rem 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.hm-hero-category { margin-bottom: .25rem; }

.hm-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
}
.hm-hero-title a { color: inherit; text-decoration: none; }
.hm-hero-title a:hover { color: var(--clr-primary); }

.hm-hero-excerpt {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.65;
    max-width: 55ch;
}
.hm-hero-meta {
    font-size: .8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.hm-hero-meta span::before { content: '·'; margin-right: .75rem; }
.hm-hero-meta span:first-child::before { content: none; }

.hm-hero-image {
    overflow: hidden;
}
.hm-hero-image img,
.hm-hero-image .hm-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hm-img-placeholder {
    background: #e5e7eb;
}

/* Sectie */
.hm-home-section { padding: 2.5rem 0 1rem; }
.hm-home-section:first-child { padding-top: 2rem; }

.hm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--clr-primary);
}
.hm-section-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #111827;
}
.hm-section-more {
    font-size: .8rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
}
.hm-section-more:hover { text-decoration: underline; }

/* Post grid */
.hm-post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.hm-post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hm-post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Post card */
.hm-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s, transform .18s;
}
.hm-post-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
h2, h3, h4, h5 {
    padding: 10px 0px;
}
.hm-card-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}
.hm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.hm-post-card:hover .hm-card-thumb img { transform: scale(1.04); }
.hm-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.hm-card-body {
    padding: 1rem 1.1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.hm-card-cat { margin-bottom: .15rem; }
.hm-card-title {
    font-size: .975rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}
.hm-card-title a { color: inherit; text-decoration: none; }
.hm-card-title a:hover { color: var(--clr-primary); }
.hm-card-excerpt {
    font-size: .8rem;
    color: #6b7280;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hm-card-meta {
    font-size: .72rem;
    color: #9ca3af;
    margin-top: .25rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ── ARCHIVE / CATEGORY ─────────────────────────────────────── */

.hm-page-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2.5rem 0 2rem;
}
.hm-page-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.hm-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    padding: 2rem 0;
}
.hm-layout-nosidebar {
    grid-template-columns: 1fr;
    max-width: 860px;
}

.hm-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.hm-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
}
.hm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.hm-pagination .page-numbers:hover,
.hm-pagination .page-numbers.current {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #fff;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.hm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.hm-sidebar .widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
}
.hm-sidebar .widget-title {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #374151;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--clr-primary);
    margin-bottom: .85rem;
}
.hm-sidebar .widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.hm-sidebar .widget ul li a {
    font-size: .875rem;
    color: #4b5563;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .25rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.hm-sidebar .widget ul li a:hover { color: var(--clr-primary); }
.hm-sidebar .widget ul li a .post-count {
    font-size: .7rem;
    background: #f3f4f6;
    color: #6b7280;
    padding: .1rem .45rem;
    border-radius: 20px;
}

/* ── SINGLE POST ─────────────────────────────────────────────── */

.hm-single-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0 0;
}
.hm-single-hero-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: .8rem;
    color: #6b7280;
}
.hm-single-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 72ch;
}
.hm-single-thumb {
    margin-top: 1.5rem;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    max-height: 460px;
}
.hm-single-thumb img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.hm-single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    padding: 2rem 0 3rem;
}

.hm-entry-content {
    max-width: 72ch;
}

.hm-post-author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 2rem;
}
.hm-post-author-box .avatar { border-radius: 50%; }
.hm-post-author-box .author-name { font-weight: 700; color: #111827; }
.hm-post-author-box .author-bio { font-size: .85rem; color: #6b7280; margin-top: .25rem; }

/* Related */
.hm-related { padding: 0 0 3rem; }
.hm-related-title {
    font-size: .875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.25rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--clr-primary);
    display: block;
}

/* ── CONTACT PAGE ────────────────────────────────────────────── */

.hm-contact-hero {
    background: var(--clr-primary);
    color: #fff;
    padding: 3rem 0;
}
.hm-contact-hero h1 { color: #fff; font-size: 2rem; margin-bottom: .6rem; }
.hm-contact-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 56ch; }

.hm-contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    padding: 3rem 0 4rem;
}

.hm-contact-form-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}
.hm-contact-form-wrap h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

/* CF7 overrides */
.hm-contact-form-wrap .wpcf7-form p {
    margin-bottom: 1rem;
}
.hm-contact-form-wrap .wpcf7-form label {
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: .35rem;
}
.hm-contact-form-wrap .wpcf7-form input[type="text"],
.hm-contact-form-wrap .wpcf7-form input[type="email"],
.hm-contact-form-wrap .wpcf7-form input[type="tel"],
.hm-contact-form-wrap .wpcf7-form textarea,
.hm-contact-form-wrap .wpcf7-form select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: .6rem .85rem;
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .15s;
    outline: none;
    background: #fafafa;
}
.hm-contact-form-wrap .wpcf7-form input:focus,
.hm-contact-form-wrap .wpcf7-form textarea:focus {
    border-color: var(--clr-primary);
    background: #fff;
}
.hm-contact-form-wrap .wpcf7-form textarea { min-height: 150px; resize: vertical; }
.hm-contact-form-wrap .wpcf7-form input[type="submit"] {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .7rem 1.5rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s;
}
.hm-contact-form-wrap .wpcf7-form input[type="submit"]:hover {
    background: var(--clr-primary-dk);
}

.hm-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hm-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.hm-info-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--clr-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hm-info-card-icon svg { width: 20px; height: 20px; }
.hm-info-card-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9ca3af;
    margin-bottom: .2rem;
}
.hm-info-card-value {
    font-size: .9rem;
    color: #1f2937;
    font-weight: 500;
}
.hm-info-card-value a { color: var(--clr-primary); }

/* ── FOOTER ──────────────────────────────────────────────────── */

.site-footer {
    background: var(--clr-footer-bg);
    color: var(--clr-footer-txt);
    margin-top: 0;
}
.footer-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
    padding: 3rem 0 2.5rem;
}

/* Recente berichten in footer */
.footer-recent-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.footer-recent-posts li {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-recent-posts li:last-child { border-bottom: none; }
.footer-recent-posts li a {
    font-size: .85rem;
    color: #d1d5db;
    text-decoration: none;
    line-height: 1.4;
    transition: color .15s;
}
.footer-recent-posts li a:hover { color: #fff; }
.footer-recent-date {
    font-size: .7rem;
    color: #6b7280;
}

/* Disclaimer in footer */
.footer-disclaimer {
    font-size: .8rem;
    color: #9ca3af;
    line-height: 1.65;
}
.footer-brand .site-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .6rem;
}
.footer-brand p {
    font-size: .875rem;
    color: var(--clr-footer-txt);
    line-height: 1.65;
    max-width: 36ch;
    margin-top: .5rem;
}
.footer-brand img.custom-logo { height: 36px; width: auto; margin-bottom: .75rem; filter: brightness(10); }

.footer-col-title {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col .widget { background: none; border: none; padding: 0; }
.footer-col .widget-title {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}
.footer-col .widget ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-col .widget ul li a {
    font-size: .875rem;
    color: var(--clr-footer-txt);
    text-decoration: none;
    transition: color .15s;
    padding: 0;
    border: none;
}
.footer-col .widget ul li a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.footer-copy {
    font-size: .8rem;
    color: #6b7280;
}
.footer-links {
    display: flex;
    gap: 1.25rem;
}
.footer-links a {
    font-size: .8rem;
    color: #6b7280;
    text-decoration: none;
}
.footer-links a:hover { color: #fff; }

/* ── SIDEBAR WIDGETS ─────────────────────────────────────────── */

/* Zoekwidget */
.hm-widget-search-form {
    display: flex;
    gap: .4rem;
}
.hm-widget-search-form input[type="search"] {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: .5rem .75rem;
    font-size: .875rem;
    font-family: inherit;
    outline: none;
    background: #fafafa;
    transition: border-color .15s;
    min-width: 0;
}
.hm-widget-search-form input[type="search"]:focus {
    border-color: var(--clr-primary);
    background: #fff;
}
.hm-widget-search-form button[type="submit"] {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .5rem .75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}
.hm-widget-search-form button[type="submit"]:hover {
    background: var(--clr-primary-dk);
}

/* Recente posts widget */
.hm-widget-recent-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.hm-wrp-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}
.hm-wrp-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    background: #f3f4f6;
}
.hm-wrp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
}
.hm-wrp-item:hover .hm-wrp-thumb img { transform: scale(1.06); }
.hm-wrp-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
    min-width: 0;
}
.hm-wrp-title {
    font-size: .85rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hm-wrp-title:hover { color: var(--clr-primary); }
.hm-wrp-date {
    font-size: .72rem;
    color: #9ca3af;
}

/* Categorieën widget */
.hm-widget-cats {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.hm-widget-cats li {
    border-bottom: 1px solid #f3f4f6;
}
.hm-widget-cats li:last-child { border-bottom: none; }
.hm-widget-cats li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color .15s;
}
.hm-widget-cats li a:hover { color: var(--clr-primary); }
.hm-widget-cats .post-count {
    font-size: .7rem;
    background: #f3f4f6;
    color: #6b7280;
    padding: .15rem .5rem;
    border-radius: 20px;
    font-weight: 600;
    transition: background .15s, color .15s;
}
.hm-widget-cats li a:hover .post-count {
    background: var(--clr-primary);
    color: #fff;
}

/* Populaire posts widget */
.hm-widget-popular-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    counter-reset: none;
}
.hm-wpp-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.hm-wpp-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--clr-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    margin-top: .1rem;
}
.hm-wpp-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
    min-width: 0;
}
.hm-wpp-title {
    font-size: .85rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hm-wpp-title:hover { color: var(--clr-primary); }
.hm-wpp-date {
    font-size: .72rem;
    color: #9ca3af;
}

/* ── HOMEPAGE EXTRA CONTENT ──────────────────────────────────── */
.hm-homepage-content {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    background: #fff;
}

/* ── MISC / UTILITY ──────────────────────────────────────────── */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0,0,0,0);
    overflow: hidden;
}
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; text-align: center; }

.no-results-message {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
}
.no-results-message h2 { color: #374151; margin-bottom: .5rem; }

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

@media (max-width: 1024px) {
    .hm-post-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-layout { grid-template-columns: 1fr; }
    .hm-single-layout { grid-template-columns: 1fr; }
    .hm-contact-layout { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .hm-hero-inner { grid-template-columns: 1fr; }
    .hm-hero-image { min-height: 280px; }
    .hm-hero-content { padding-right: 0; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-menu-toggle { display: flex; }
    .hm-post-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-post-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .hm-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-single-title { font-size: 1.6rem; }
    .footer-widgets { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    .hm-post-grid { grid-template-columns: 1fr; }
    .hm-archive-grid { grid-template-columns: 1fr; }
    .hm-hero-title { font-size: 1.65rem; }
    .hm-single-title { font-size: 1.4rem; }
    .hm-contact-layout { gap: 2rem; }
    .hm-contact-form-wrap { padding: 1.25rem; }
}
