/*
 * Voorburgs Dagblad - Main Stylesheet
 * Based on design fingerprint from voorburgsdagblad.nl
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    --color-primary:   #D91A30;
    --color-dark:      #004E6F;
    --color-dark-alt:  #002E4F;
    --color-light-bg:  #efefef;
    --color-white:     #ffffff;
    --color-text:      #4e4e4e;
    --color-title:     #2f2f2f;
    --color-muted:     #7c8c99;
    --color-border:    #dddddd;
    --font-main:       'Ubuntu', sans-serif;
    --container-max:   1200px;
    --radius-sm:       0.3rem;
    --radius-card:     0.47rem;
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; }
body {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--color-text);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color .2s;
}
a:hover, a:focus { color: var(--color-primary); }
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1rem; line-height: 2rem; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--color-title);
    margin: 0 0 .75rem;
    line-height: 1.3;
}

/* Screenreader only */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ========================================
   Layout Grid (Bootstrap-like)
======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}
.clearfix::after { content: ''; display: table; clear: both; }

/* Desktop columns */
@media (min-width: 992px) {
    .col-md-4  { width: 33.3333%; }
    .col-md-6  { width: 50%; }
    .col-md-8  { width: 66.6667%; }
    .col-md-12 { width: 100%; }
    .col-md-offset-2 { margin-left: 16.6667%; }
}
@media (min-width: 1200px) {
    .col-lg-3  { width: 25%; }
    .col-lg-4  { width: 33.3333%; }
    .col-lg-6  { width: 50%; }
    .col-lg-8  { width: 66.6667%; }
    .col-lg-12 { width: 100%; }
    .col-lg-offset-2 { margin-left: 16.6667%; }
}

/* ========================================
   Spacing Utilities
======================================== */
.mt-5  { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.pb-1  { padding-bottom: 1px; }
.pb-10 { padding-bottom: 10px; }
.pt-30 { padding-top: 30px; }
.ptb-15 { padding-top: 15px; padding-bottom: 15px; }
.ptb-30 { padding-top: 30px; padding-bottom: 30px; }
.ptb-70 { padding-top: 70px; padding-bottom: 70px; }
.pr-40  { padding-right: 40px; }
.pr-50  { padding-right: 50px; }
.pl-20  { padding-left: 20px; }
.nopadding { padding: 0; }

/* ========================================
   Background Utilities
======================================== */
.bg-dd-dark  { background-color: var(--color-dark); }
.bg-dd-light { background-color: var(--color-light-bg); }
.bg-white    { background-color: var(--color-white); }

/* ========================================
   Text Utilities
======================================== */
.text-white        { color: var(--color-white) !important; }
.text-white-muted  { color: rgba(255,255,255,.7); }
.text-muted        { color: var(--color-muted); }
.uppercase         { text-transform: uppercase; }
.h6                { font-size: .875rem; }
.pull-right        { float: right; }
.pull-left         { float: left; }
.text-center       { text-align: center; }

/* ========================================
   Header Area
======================================== */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#page-content.page-wrapper {
    flex: 1;
}
.header-area {
    position: relative;
    z-index: 100;
}
.header-top-bar {
    border-bottom: 1px solid #e0e0e0;
    font-size: .8rem;
}
.header-top-bar .header-top-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 36px;
}
.header-top-bar .zm-secondary-menu ul {
    display: flex;
    gap: 20px;
}
.header-top-bar .zm-secondary-menu ul li a {
    color: #333;
    font-size: .78rem;
}
.header-top-bar .zm-secondary-menu ul li a:hover { color: var(--color-primary); }
.hidden-mobile { display: none; }
@media (min-width: 992px) {
    .hidden-mobile { display: block; }
}

/* ========================================
   Site Name in Header
======================================== */
.site-name {
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 700;
    padding-left: 10px;
    margin: 0;
}

/* ========================================
   Page Wrapper
======================================== */
.page-wrapper { background-color: var(--color-white); }
.zm-section { padding-top: 15px; padding-bottom: 15px; }
.single-post-wrap {}

/* ========================================
   Section Title Bars
======================================== */
.section-title-bar {
    background-color: var(--color-primary);
    padding: 6px 12px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
}
.section-title-bar .section-label {
    color: var(--color-white);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ========================================
   Category Page Title
======================================== */
.category-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-title);
    padding: 8px 0 8px 12px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 20px;
}

/* ========================================
   Post Cards: zm-video-post (list grid)
======================================== */
.zm-video-post {
    position: relative;
    margin-bottom: 20px;
}
.zm-thumb-ratio {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: var(--radius-card);
    background-color: var(--color-light-bg);
}
.zm-thumb-ratio img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.zm-video-post:hover .zm-thumb-ratio img { transform: scale(1.04); }
.zm-post-dis { margin-top: 8px; }
.zm-post-title.h2 {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}
.zm-post-title.h2 a { color: var(--color-title); }
.zm-post-title.h2 a:hover { color: var(--color-primary); }
.zm-date {
    font-size: .78rem;
    color: var(--color-muted);
    display: block;
}

/* Card overlay link trick */
.zm-video-post { position: relative; }
.post-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}
.zm-video-post a.post-card-link ~ * a { position: relative; z-index: 2; }

/* ========================================
   Featured Large Post (zm-lay-c-wrap)
======================================== */
.zm-lay-c-wrap {
    margin-bottom: 10px;
}
.zm-trending-post {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background-color: var(--color-light-bg);
}
.zm-trending-post .zm-post-thumb {
    position: relative;
    padding-top: 40%;
    overflow: hidden;
}
.zm-trending-post .zm-post-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.zm-post-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 30%, transparent 100%);
}
.zm-post-thumb-title {
    position: absolute;
    bottom: 15px; left: 0;
    padding: 0 30px;
    z-index: 5;
    width: 100%;
}
.zm-post-thumb-title .zm-post-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 0 6px rgba(0,0,0,.7);
    margin: 0;
}
.zm-post-thumb-title .zm-post-title a { color: var(--color-white); }
.zm-post-thumb-title .zm-post-title a:hover { color: var(--color-primary); }
.category-name {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 6;
}
.category-name .cat-btn,
.cat-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.cat-btn:hover { background-color: var(--color-dark); color: var(--color-white); }

/* ========================================
   "More" button
======================================== */
.category-more { text-align: right; }
.more-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 700;
}
.more-btn:hover { background-color: var(--color-dark); color: var(--color-white); }

/* ========================================
   Home Category Sections
======================================== */
.home-category-section {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.home-category-section:last-child { border-bottom: none; }

/* ========================================
   Sidebar
======================================== */
.sidebar-warp { padding-top: 10px; }
.sidebar-warp .zm-widget { position: static; }
.zm-post-lay-e-area { margin-bottom: 20px; }
.sidebar-title-bar {
    background-color: var(--color-primary);
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
}
.sidebar-label {
    color: var(--color-white);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.zm-posts-short .zm-post-lay-e {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
.zm-posts-short .zm-post-lay-e:last-child { border-bottom: none; }
.zm-post-lay-e-thumb {
    flex: 0 0 80px;
    width: 80px;
}
.zm-post-lay-e-thumb a { display: block; }
.zm-post-lay-e-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.zm-post-lay-e-dis { flex: 1; }
.zm-post-lay-e-dis .zm-post-title {
    font-size: .82rem;
    line-height: 1.35;
    margin: 0 0 4px;
}
.zm-post-lay-e-dis .zm-post-title a { color: var(--color-title); }
.zm-post-lay-e-dis .zm-post-title a:hover { color: var(--color-primary); }
.zm-post-lay-e-dis .zm-date { font-size: .72rem; }

/* ========================================
   Widget
======================================== */
.zm-widget-title {
    color: var(--color-white);
    font-weight: 700;
}
.zm-widget-content { color: var(--color-white); }
.zm-widget-content a { color: rgba(255,255,255,.8); }
.zm-widget-content a:hover { color: var(--color-primary); }

/* ========================================
   Breadcrumb
======================================== */
.zm-breadcrumb {
    margin-bottom: 15px;
    font-size: .82rem;
}
.zm-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.zm-breadcrumb ol li { color: var(--color-muted); }
.zm-breadcrumb ol li + li::before {
    content: ' / ';
    padding: 0 5px;
    color: var(--color-border);
}
.zm-breadcrumb ol li a { color: var(--color-dark); }
.zm-breadcrumb ol li a:hover { color: var(--color-primary); }
.zm-breadcrumb ol li.active { color: var(--color-muted); }

/* ========================================
   Article Detail
======================================== */
.zm-post-lay-single { padding-bottom: 20px; }
.zm-post-title-single {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-title);
    line-height: 1.35;
    margin-bottom: 12px;
}
.zm-post-content {
    font-family: var(--font-main);
    color: var(--color-text);
    font-weight: 400;
    line-height: 2.2rem;
    -webkit-font-smoothing: antialiased;
}
.zm-post-content * {
    font-family: var(--font-main);
    color: var(--color-text);
}
.zm-post-content a {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.zm-post-content a:hover { text-decoration: underline; }
.zm-post-content h3 {
    font-size: 1em;
    font-weight: 700;
    margin-top: 20px;
}
.zm-post-content b,
.zm-post-content strong { font-weight: 700; }
.author-line {
    display: block;
    font-size: .82rem;
    color: var(--color-muted);
    margin-top: 12px;
}
.border-top { border-top: 1px solid var(--color-border); }
.entry-meta-small {
    font-size: .82rem;
    color: var(--color-muted);
}
.entry-meta-small a { color: var(--color-primary); }

/* ========================================
   FAQ Section
======================================== */
.zm-faq-section {
    background-color: var(--color-light-bg);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-top: 30px;
}
.faq-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
    margin-bottom: 15px;
}
.faq-item { margin-bottom: 16px; }
.faq-question {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}
.faq-answer {
    font-size: .9rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* ========================================
   Static Page Content
======================================== */
.page-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
    margin: 20px 0 10px;
}
.zm-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: .9rem;
}
.zm-post-content table th,
.zm-post-content table td {
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.zm-post-content table th {
    background-color: var(--color-light-bg);
    font-weight: 700;
    color: var(--color-dark);
}
.zm-post-content table tr:nth-child(even) td {
    background-color: var(--color-light-bg);
}

/* ========================================
   Pagination
======================================== */
.zm-pagination-wrap { margin: 20px 0; }
ul.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 0;
    margin: 0;
}
ul.pagination li { display: flex; }
ul.pagination li a,
ul.pagination li span.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    color: var(--color-title);
    font-size: .82rem;
    border-radius: var(--radius-sm);
    transition: background-color .2s, color .2s;
}
ul.pagination li a:hover:not(.active) {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
}
ul.pagination li a.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
ul.pagination li span.page-link.disabled {
    opacity: .4;
    cursor: not-allowed;
}
ul.pagination li span.page-dots {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: var(--color-muted);
}

/* ========================================
   404 Error Page
======================================== */
.error-page { padding: 60px 0; }
.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 16px;
}
.error-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-title);
    margin-bottom: 12px;
}
.error-desc {
    font-size: 1rem;
    color: var(--color-muted);
    margin-bottom: 8px;
}
.btn-primary-red {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .9rem;
    margin-top: 16px;
}
.btn-primary-red:hover { background-color: var(--color-dark); color: var(--color-white); }
.error-categories { margin-top: 30px; }
.section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-title);
    margin-bottom: 12px;
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
}
.cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-list li a {
    display: inline-block;
    background-color: var(--color-light-bg);
    color: var(--color-title);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
}
.cat-list li a:hover { background-color: var(--color-primary); color: var(--color-white); }

/* ========================================
   Footer
======================================== */
.footer-wrapper {
    margin-top: auto;
}
.footer-top-wrap { }
.zm-widget { margin-bottom: 20px; }
.zm-widget-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    margin-bottom: 15px;
}

/* ========================================
   Focus States (Accessibility)
======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 767px) {
    .sidebar-warp { margin-top: 20px; }
    .zm-post-thumb-title .zm-post-title { font-size: 1rem; }
    .ptb-70 { padding-top: 40px; padding-bottom: 40px; }
    .error-code { font-size: 5rem; }
    .footer-contact-widget { padding-left: 0; }
}
