/*
Theme Name: Het Vizier
Theme URI: https://hetvizier.nl
Author: SV Het Vizier
Author URI: https://hetvizier.nl
Description: Aangepast thema voor SV Het Vizier schietvereniging. Twee-kolom layout met donkere zijbalk en witte inhoud.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hetvizier
Tags: two-columns, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #e8e8e8;
    background-image: linear-gradient(135deg, #d8d8d8 0%, #f0f0f0 50%, #d8d8d8 100%);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #5a7a3a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #3d5a27;
    text-decoration: underline;
}

/* ==========================================================================
   2. LAYOUT STRUCTURE
   ========================================================================== */

#page {
    min-height: 100vh;
}

#page > .container-fluid {
    padding: 0;
    min-height: 100vh;
}

#page > .container-fluid > .row {
    min-height: 100vh;
    margin: 0;
}

/* Sidebar — fixed slide-in on all screen sizes */
#secondary {
    background-color: #3a3d32;
    padding: 0;
    position: fixed;
    top: 52px;
    left: 0;
    width: 280px;
    height: calc(100vh - 52px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

#sidebar-toggle:checked ~ #page #secondary {
    transform: translateX(0);
}

/* Content column — always full width below top bar */
#primary {
    background-color: #fff;
    min-height: 100vh;
    padding: 0;
    padding-top: 52px;
    width: 100%;
    max-width: 100%;
}

#content.site-content {
    padding: 2rem 2.5rem;
    min-height: calc(100vh - 80px);
}

/* ==========================================================================
   3. SIDEBAR / MASTHEAD
   ========================================================================== */

#masthead {
    padding: 0;
}

/* Site Logo */
.site-logo {
    display: block;
    padding: 1.5rem 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-logo a {
    display: inline-block;
}

.site-logo img {
    width: 100%;
    margin: 0 auto;
    display: block;
}

.site-title {
    font-family: 'Amatic SC', cursive, Arial;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0.5rem 0 0.2rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-title a:hover {
    color: #ccc;
    text-decoration: none;
}

.site-description {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
    margin: 0 0 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   4. NAVIGATION MENU
   ========================================================================== */

.main-navigation {
    padding: 0.5rem 0;
}

.main-navigation ul.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul.nav-menu li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-navigation ul.nav-menu li a {
    display: block;
    padding: 0.65rem 1.2rem;
    color: #ccc;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.main-navigation ul.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 1.6rem;
    text-decoration: none;
}

.main-navigation ul.nav-menu li.current-menu-item > a,
.main-navigation ul.nav-menu li.current-menu-parent > a,
.main-navigation ul.nav-menu li.current-menu-ancestor > a,
.main-navigation ul.nav-menu li.current_page_item > a,
.main-navigation ul.nav-menu li.current_page_parent > a,
.main-navigation ul.nav-menu li.current_page_ancestor > a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    border-left: 3px solid #7a9a5a;
    padding-left: calc(1.2rem - 3px);
}

/* Submenu — always visible */
.main-navigation ul.nav-menu li ul.sub-menu,
.main-navigation ul.nav-menu li ul.children {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.main-navigation ul.nav-menu li ul.sub-menu li,
.main-navigation ul.nav-menu li ul.children li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.main-navigation ul.nav-menu li ul.sub-menu li a,
.main-navigation ul.nav-menu li ul.children li a {
    padding-left: 2rem;
    font-size: 0.82rem;
    color: #bbb;
    text-transform: none;
    letter-spacing: 0;
}

.main-navigation ul.nav-menu li ul.sub-menu li a:hover,
.main-navigation ul.nav-menu li ul.children li a:hover {
    padding-left: 2.4rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.main-navigation ul.nav-menu li ul.sub-menu li ul.sub-menu li a,
.main-navigation ul.nav-menu li ul.children li ul.children li a {
    padding-left: 2.8rem;
}


/* ==========================================================================
   5. MOBILE TOGGLE
   ========================================================================== */

/* Checkbox hack for mobile sidebar toggle */
#sidebar-toggle {
    display: none;
}

/* Mobile top bar */
.mobile-topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background-color: #3a3d32;
    z-index: 9998;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.sidebar-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.sidebar-toggle-label:hover {
    background-color: rgba(255,255,255,0.12);
}

.mobile-topbar-title {
    flex: 1;
    text-align: center;
    font-family: 'Amatic SC', cursive, Arial;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    /* offset the hamburger width so title is truly centred */
    margin-right: 2.4rem;
}

.mobile-topbar-title a {
    color: #fff;
    text-decoration: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* ==========================================================================
   6. SIDEBAR WIDGETS
   ========================================================================== */

#sidebar-widgets {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
}

.widget {
    padding: 1rem 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.widget p {
    color: #bbb;
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

/* Search widget in sidebar */
.widget_search .search-form {
    display: flex;
    gap: 0;
}

.widget_search .search-field {
    flex: 1;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    border-radius: 3px 0 0 3px;
    outline: none;
    transition: background 0.2s ease;
}

.widget_search .search-field::placeholder {
    color: #888;
}

.widget_search .search-field:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.widget_search .search-submit {
    padding: 0.4rem 0.75rem;
    background: #5a7a3a;
    border: 1px solid #5a7a3a;
    color: #fff;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.widget_search .search-submit:hover {
    background: #3d5a27;
}

/* ==========================================================================
   7. CONTENT AREA
   ========================================================================== */

/* Page / Post headers */
.page-header,
.entry-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.page-title,
.entry-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: #5a7a3a;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    color: #333;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* Entry meta */
.entry-meta {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-meta a {
    color: #888;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #5a7a3a;
    text-decoration: underline;
}

.entry-meta .sep {
    margin: 0 0.4rem;
    color: #ccc;
}

/* Post content */
.entry-content {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1.2rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content blockquote {
    border-left: 4px solid #5a7a3a;
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    background: #f8f9f6;
    color: #555;
    font-style: italic;
}

.entry-content a:not(.read-more-link):not(.more-link) {
    color: #5a7a3a;
    text-decoration: underline;
}

.entry-content a:not(.read-more-link):not(.more-link):hover {
    color: #3d5a27;
}

.entry-content img {
    border-radius: 4px;
    margin: 1rem 0;
}

/* Post excerpt */
.entry-summary {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

/* Read more link */
.read-more-link,
.more-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: #5a7a3a;
    color: #fff;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.read-more-link:hover,
.more-link:hover {
    background-color: #3d5a27;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   8. POST LIST (index / archive / search)
   ========================================================================== */

.posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

article.post,
article.page {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

article.post:last-child,
article.page:last-child {
    border-bottom: none;
}

/* Post thumbnail */
.post-thumbnail {
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease;
}

.post-thumbnail a:hover img {
    opacity: 0.9;
}

/* ==========================================================================
   9. SINGLE POST
   ========================================================================== */

.single .entry-header {
    margin-bottom: 2rem;
}

.single .entry-title {
    font-size: 2rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    color: #888;
}

.entry-footer .cat-links,
.entry-footer .tags-links {
    display: block;
    margin-bottom: 0.4rem;
}

.entry-footer a {
    color: #5a7a3a;
}

.entry-footer a:hover {
    color: #3d5a27;
}

/* Post navigation */
.post-navigation {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    color: #5a7a3a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-navigation a:hover {
    color: #3d5a27;
    text-decoration: underline;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-navigation .nav-title {
    font-family: 'Roboto Slab', serif;
    font-size: 0.95rem;
    color: #333;
}

/* ==========================================================================
   10. PAGE
   ========================================================================== */

.page .entry-header {
    margin-bottom: 2rem;
}

/* ==========================================================================
   11. ARCHIVE
   ========================================================================== */

.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.archive-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.archive-description {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* ==========================================================================
   12. SEARCH
   ========================================================================== */

.search-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.search-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.search-results-count {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    color: #888;
}

.search-results-count span {
    color: #5a7a3a;
    font-weight: 700;
}

/* Search form (standalone page) */
.search-form-wrap {
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    max-width: 500px;
}

.search-form .search-field {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-form .search-field:focus {
    border-color: #5a7a3a;
}

.search-form .search-submit {
    padding: 0.6rem 1.2rem;
    background: #5a7a3a;
    border: 2px solid #5a7a3a;
    border-radius: 0 3px 3px 0;
    color: #fff;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.search-form .search-submit:hover {
    background: #3d5a27;
    border-color: #3d5a27;
}

/* ==========================================================================
   13. 404
   ========================================================================== */

.error-404 .page-header {
    margin-bottom: 2rem;
}

.error-404 .page-title {
    font-size: 3rem;
    color: #ccc;
}

.error-404 .error-code {
    font-family: 'Amatic SC', cursive, Arial;
    font-size: 8rem;
    color: #e0e0e0;
    line-height: 1;
    margin-bottom: 0;
}

.error-404 .error-message {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

.error-404 .error-description {
    color: #777;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-home {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #5a7a3a;
    color: #fff;
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-home:hover {
    background: #3d5a27;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   14. PAGINATION
   ========================================================================== */

.pagination,
.nav-links.posts-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    align-items: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers:hover {
    background: #5a7a3a;
    border-color: #5a7a3a;
    color: #fff;
    text-decoration: none;
}

.page-numbers.current {
    background: #5a7a3a;
    border-color: #5a7a3a;
    color: #fff;
}

.page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ==========================================================================
   15. COMMENTS
   ========================================================================== */

#comments {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.comments-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.comment-body {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.comment-meta {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.comment-author b {
    font-family: 'Roboto Slab', serif;
    font-size: 0.95rem;
    color: #333;
}

.reply a {
    font-size: 0.8rem;
    color: #5a7a3a;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#respond {
    margin-top: 2rem;
}

#respond h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

#respond input:focus,
#respond textarea:focus {
    border-color: #5a7a3a;
    outline: none;
}

#respond .submit {
    padding: 0.5rem 1.5rem;
    background: #5a7a3a;
    border: none;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

#respond .submit:hover {
    background: #3d5a27;
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

#colophon {
    background-color: #3a3d32;
    color: #aaa;
    padding: 1.5rem 2.5rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.82rem;
    border-top: 3px solid rgba(255,255,255,0.08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-text {
    color: #aaa;
}

.footer-text a {
    color: #bbb;
    text-decoration: none;
}

.footer-text a:hover {
    color: #fff;
}

.footer-meta {
    color: #777;
    font-size: 0.78rem;
}

#footer-sidebar-area {
    padding: 1.5rem 2.5rem 0;
    background-color: #3a3d32;
}

#footer-sidebar-area .widget {
    padding: 0 0 1rem;
    border-bottom: none;
}

#footer-sidebar-area .widget-title {
    color: #aaa;
}

#footer-sidebar-area .widget p,
#footer-sidebar-area .widget ul li,
#footer-sidebar-area .widget ul li a {
    color: #888;
}

/* ==========================================================================
   17. FEATURED IMAGE
   ========================================================================== */

.featured-image-wrap {
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.featured-image-wrap img {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   18. NO CONTENT
   ========================================================================== */

.no-results {
    padding: 2rem 0;
}

.no-results .page-title {
    color: #aaa;
}

.no-results p {
    color: #777;
}

/* ==========================================================================
   19. UTILITY / MISC
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    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;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 0.3rem;
}

/* ==========================================================================
   20. WP ADMIN BAR OFFSETS
   Handled dynamically in js/theme.js — the admin bar scrolls with the
   page so a static CSS offset would leave a gap on scroll.
   JS tracks getBoundingClientRect().bottom on every scroll event.
   ========================================================================== */

/* ==========================================================================
   21. RESPONSIVE — SMALL SCREENS
   ========================================================================== */

/* ── Sidebar mode ────────────────────────────────────────────────────────────
   < 1000px  OVERLAY : sidebar starts closed, overlays content, X visible
   >= 1000px DOCKED  : sidebar starts open, pushes content, X hidden
   ─────────────────────────────────────────────────────────────────────────── */

/* Overlay mode (< 1000px): dark backdrop when sidebar open */
@media (max-width: 999.98px) {
    #sidebar-toggle:checked ~ .sidebar-overlay {
        display: block;
    }
}

/* Docked mode (>= 1000px) */
@media (min-width: 1000px) {
    .sidebar-close-label {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }

    #sidebar-toggle:checked ~ #page #primary {
        margin-left: 280px;
        width: calc(100% - 280px);
        transition: margin-left 0.3s ease, width 0.3s ease;
    }
}

@media (max-width: 800px) {

    #content.site-content {
        padding: 1.5rem 1.2rem;
    }

    .page-title,
    .entry-title {
        font-size: 1.4rem;
    }

    .single .entry-title {
        font-size: 1.5rem;
    }

    #colophon {
        padding: 1rem 1.2rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {

    #content.site-content {
        padding: 1rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}

/* ==========================================================================
   21. CONTACT FORM 7
   ========================================================================== */

.wpcf7 {
    max-width: 640px;
}

.wpcf7-form p {
    margin-bottom: 1.2rem;
}

.wpcf7-form label {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 0.3rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #5a7a3a;
    box-shadow: 0 0 0 3px rgba(90, 122, 58, 0.15);
    background-color: #fff;
}

.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    background-color: #5a7a3a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #3d5a27;
}

/* Validation errors */
.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #c00;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
    border-color: #c00;
}

/* Response output (success / error banner) */
.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    border-radius: 3px;
    font-size: 0.9rem;
    border: none !important;
}

.wpcf7-form.sent .wpcf7-response-output {
    background-color: #eaf4e0;
    color: #2a5a1a;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
    background-color: #fff0f0;
    color: #c00;
}

/* Spinner next to submit */
.wpcf7-spinner {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ==========================================================================
   22. INTERNE COMPETITIE
   ========================================================================== */

.competitie-lijst .competitie-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.competitie-bestandstitel {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.competitie-terug {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5a7a3a;
    text-decoration: none;
}

.competitie-terug:hover {
    color: #3d5a27;
    text-decoration: underline;
}

.competitie-klassetitel {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    color: #333;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #f0f0f0;
}

.competitie-tabel-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.competitie-tabel {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.88rem;
}

.competitie-tabel thead th {
    background-color: #3a3d32;
    color: #fff;
    padding: 0.5rem 0.6rem;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

.competitie-tabel thead th.col-naam {
    text-align: left;
}

.competitie-tabel tbody tr:nth-child(even) {
    background-color: #f8f8f6;
}

.competitie-tabel tbody tr:hover {
    background-color: #f0f4ec;
}

.competitie-tabel td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #eee;
    text-align: center;
    white-space: nowrap;
}

.competitie-tabel td.col-naam {
    text-align: left;
    white-space: normal;
    min-width: 140px;
}

.competitie-tabel td.col-rang {
    color: #888;
    font-weight: 700;
    width: 2rem;
}

.competitie-tabel td.col-totaal,
.competitie-tabel td.col-gem {
    font-weight: 700;
    color: #3a3d32;
}

.competitie-tabel td.leeg {
    color: #ccc;
}

/* Close button inside sidebar on mobile */
.sidebar-close-label {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: #aaa;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    z-index: 1001;
}

.sidebar-close-label:hover {
    color: #fff;
}

.sidebar-close-label {
    display: block;
}