/*
Theme Name: WPBeveiligen
Theme URI: https://wpbeveiligen.nl/
Author: WPBeveiligen
Author URI: https://wpbeveiligen.nl/
Description: Minimaal thema voor wpbeveiligen.nl/nieuws — deelt header, footer en styling met de hoofd-site.
Version: 1.0
License: Proprietary
Text Domain: wpbeveiligen
*/

/* =========================================================
   WordPress-specifieke overzichtelijkheids-aanpassingen
   De basis-stijlen (fonts, kleuren, layout) komen uit de
   gedeelde /css/site.css van de hoofd-PHP-site.
   ========================================================= */

/* Typografie in post/page content — overnemen van article-body */
.entry-content,
.wp-block-post-content,
.post-content,
.the-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink, #10201f);
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child  { margin-bottom: 0; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    line-height: 1.25;
    color: var(--ink, #10201f);
    margin: 1.8em 0 .6em;
}
.entry-content h1 { font-size: 1.9rem; }
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.1rem; }

.entry-content p { margin: 0 0 1.1em; }

.entry-content ul,
.entry-content ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.entry-content li { margin: 0 0 .35em; }

.entry-content ul li::marker { color: var(--coral, #c96d55); }

.entry-content blockquote {
    margin: 1.6em 0;
    padding: .6em 1.2em;
    border-left: 4px solid var(--teal, #147d76);
    background: var(--mint, #e5f4ef);
    border-radius: 0 12px 12px 0;
    color: var(--teal-dark, #075e58);
    font-style: italic;
}

.entry-content code,
.entry-content pre {
    background: var(--soft, #f5f8f6);
    border: 1px solid var(--line, #d8e4df);
    border-radius: 8px;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: .92em;
}
.entry-content code { padding: .15em .4em; }
.entry-content pre  { padding: 1em; overflow: auto; line-height: 1.6; }

.entry-content img {
    border-radius: 12px;
    height: auto;
    max-width: 100%;
    display: block;
}

.entry-content a {
    color: var(--teal-dark, #075e58);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.entry-content a:hover { color: var(--teal, #147d76); }

.entry-content hr {
    border: 0;
    border-top: 1px solid var(--line, #d8e4df);
    margin: 2em 0;
}

/* Alignments */
.alignleft   { float: left; margin: .4em 1.4em 1em 0; max-width: 45%; }
.alignright  { float: right; margin: .4em 0 1em 1.4em; max-width: 45%; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }
.alignwide   { width: calc(100% + 48px); max-width: none; margin-left: -24px; margin-right: -24px; }

/* Captions */
.wp-caption,
figcaption {
    max-width: 100%;
    margin: .6em 0 1.2em;
    font-size: .88rem;
    color: var(--muted, #5b6d69);
    line-height: 1.5;
    text-align: center;
}
.wp-caption img,
.wp-caption-text { margin: 0 auto; display: block; }

/* Gutenberg defaults die site.css wellicht niet heeft */
.wp-block-table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}
.wp-block-table th,
.wp-block-table td {
    padding: 10px 12px;
    border: 1px solid var(--line, #d8e4df);
    text-align: left;
}
.wp-block-table th {
    background: var(--soft, #f5f8f6);
    color: var(--teal-dark, #075e58);
}

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }

.wp-block-button__link {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 700;
    cursor: pointer;
    background: var(--teal, #147d76);
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
}
.wp-block-button__link:hover { background: var(--teal-dark, #075e58); }

.is-style-outline .wp-block-button__link {
    background: #fff;
    color: var(--teal-dark, #075e58);
    border: 1px solid var(--line, #d8e4df);
}
.is-style-outline .wp-block-button__link:hover {
    background: var(--mint, #e5f4ef);
    border-color: var(--teal, #147d76);
}

/* Gallery / image blocks */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.2em 0;
}
.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
.wp-block-gallery figure { margin: 0; }
.wp-block-gallery img { width: 100%; border-radius: 12px; }

/* Blog archive / index lijst */
.wpb-blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media(max-width:900px){ .wpb-blog-list { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:620px){ .wpb-blog-list { grid-template-columns: 1fr; } }

.wpb-blog-item .wpb-blog-img {
    display: block;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    margin: -24px -24px 14px;
    aspect-ratio: 16/9;
    background: var(--soft, #f5f8f6);
}
.wpb-blog-item .wpb-blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination */
.pagination,
.wpb-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 28px 0 0;
}
.pagination a,
.pagination span,
.wpb-pagination a,
.wpb-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line, #d8e4df);
    background: #fff;
    color: var(--teal-dark, #075e58);
    font-weight: 600;
    text-decoration: none;
    font-size: .92rem;
}
.pagination a:hover,
.wpb-pagination a:hover {
    background: var(--mint, #e5f4ef);
    border-color: var(--teal, #147d76);
}
.pagination .current,
.wpb-pagination .current {
    background: var(--teal, #147d76);
    color: #fff;
    border-color: var(--teal, #147d76);
}

/* Forms: search, comment (uit), etc. */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form label { flex: 1 1 220px; }
.search-form .search-field {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line, #d8e4df);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}
.search-form .search-field:focus { border-color: var(--teal, #147d76); box-shadow: 0 0 0 3px var(--mint, #e5f4ef); }
.search-form .search-submit {
    padding: 11px 18px;
    border: 0;
    background: var(--teal, #147d76);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

/* Screen reader */
.screen-reader-text {
    position: absolute;
    left: -9999em;
    top: -9999em;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
