/*
Theme Name: Mokum Magazine
Theme URI: https://example.com/mokummagazine
Author: You
Author URI: https://example.com
Description: A clean magazine/news theme inspired by the provided mockup. Includes a ticker, featured grid, sidebar tabs, and banner areas.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mokummagazine
Tags: news, magazine, blog, grid, responsive
*/

/* CSS Reset-ish */
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #111827; background:#ffffff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display:block; }
.container { width: min(1200px, 92vw); margin: 0 auto; }
.container-wide { width: min(1200px, 92vw); margin: 0 auto; }

/* Top bar */
.topbar {color:#000; font-size: 12px; }
.topbar .inner { display:flex; align-items:center; justify-content:space-between; padding:0px 0; }
.topbar .time { opacity:.9;margin-left:28px; }
.social a { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:9999px; background:rgba(255,255,255,.15); margin-left:6px; font-size:12px; }

/* Header */
.header { padding:0px 0; border-bottom:1px solid #f3f4f6; }
.branding { display:flex; align-items:center; gap:16px; }
.site-title { font-weight:800; font-size:32px; color:#ef4444; }
.banner { flex:1; display:flex; justify-content:flex-end; }
.banner .ad { color:#000; padding:12px 24px; border-radius:10px; font-weight:700; letter-spacing:.08em; }

/* Navigation */
.navbar { background:#ffffff; border-bottom:1px solid #f3f4f6; position:sticky; top:0; z-index:50; }
.navbar .inner { display:flex; align-items:center; gap:14px; padding:0px 0; }
.navbar .menu { display:flex; gap:18px; flex-wrap:wrap; font-weight:600; list-style-type: none;padding-inline-start:30px}
.navbar .menu a { padding:5px 5px; border-radius:10px; }
.navbar .menu a:hover, .navbar .menu .current-menu-item > a { background:#ef4444; color:#fff; }
.nav-search { margin-left:auto; }
.nav-search input { border:1px solid #e5e7eb; border-radius:9999px; padding:8px 14px; min-width:180px; }

/* Ticker */
.ticker { background:#ef4444; color:#fff; overflow:hidden; }
.ticker .inner { display:flex; align-items:center; gap:12px; }
.ticker .label { font-weight:800; padding:8px 12px; background:#b91c1c; }
.ticker .marquee { white-space:nowrap; overflow:hidden; flex:1; }
.ticker .marquee a { display:inline-block; padding:10px 24px; opacity:.95; }
.ticker .dot { width:4px; height:4px; background:#fff; display:inline-block; border-radius:50%; margin:0 8px; opacity:.6; }

/* Layout */
.main { display:grid; grid-template-columns: 1fr 340px; gap:24px; }
.grid { display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
.grid-hero { display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
.grid-hero .hero { grid-column: span 1 / span 1; }
.grid-hero .hero-wide { grid-column: span 2 / span 2; }

.card { position:relative; border-radius:12px; overflow:hidden; background:#fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); border:1px solid #f3f4f6; }
.card .thumb { position:relative; }
.card .thumb img { width:100%; height:220px; object-fit:cover; }
.card .badge { top:10px; left:10px; background:#ef4444; color:#fff; font-weight:700; font-size:8px; padding:6px 10px; border-radius:8px; }

.card .content { padding:14px; }
.card .meta { font-size:12px; color:#6b7280; display:flex; gap:12px; margin-top:8px; }
.card .title { font-size:20px; font-weight:800; line-height:1.25; }
.card.card-lg .thumb img { height:360px; }
.card.card-sm .thumb img { height:120px; }
.card .excerpt { color:#374151; margin-top:8px; font-size:14px; }

.card-wide {
position: relative;
border-radius: 12px;
overflow: hidden;
background: #fff;
box-shadow: 0 2px 2px rgba(0,0,0,.46);
border-bottom: 1px solid #f3f4f6;
margin-bottom: 10px;
}

.card-wide { position:relative; border-radius:12px; overflow:hidden; background:#fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); border:1px solid #f3f4f6; }
.card-wide .thumb { position:relative; }
.card-wide .thumb img { width:100%; height:220px; object-fit:cover; }
.card-wide .badge { top:10px; left:10px; background:#ef4444; color:#fff; font-weight:700; font-size:8px; padding:6px 10px; border-radius:8px; }

.card-wide .content { padding:14px; }
.card-wide .meta { font-size:12px; color:#6b7280; display:flex; gap:12px; margin-top:8px; }
.card-wide .title { font-size:20px; font-weight:800; line-height:1.25; }
.card-wide.card-lg .thumb img { height:360px; }
.card-wide.card-sm .thumb img { height:120px; }
.card-wide .excerpt { color:#374151; margin-top:8px; font-size:14px; }

.card-wide {
position: relative;
border-radius: 12px;
overflow: hidden;
background: #fff;
box-shadow: 0 2px 2px rgba(0,0,0,.46);
border-bottom: 1px solid #f3f4f6;
margin-bottom: 10px;
}

.social-icons {
    margin-top:10px;
    display: flex;
    align-items: center;
    gap: 1px; /* space between icons */
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.home-color {
    color: #ef4444;
    margin-top: 5px;
    margin-right: 5px;
}

/* MAIN MENU */
#menu-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#menu-main-menu > li {
    position: relative;
}

#menu-main-menu > li > a {
    display: block;
    padding: 10px 10px;
    text-decoration: none;
}

/* SUB MENU (hidden by default) */
#menu-main-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    z-index: 999;
}

/* SHOW dropdown on hover */
#menu-main-menu li:hover > .sub-menu {
    display: block;
    color: white;
}

/* SUB MENU ITEMS */
#menu-main-menu .sub-menu li {
    position: relative;
}

#menu-main-menu .sub-menu li a {
    display: block;
    padding: 12px 16px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

#menu-main-menu .sub-menu li a:hover {
    background: #f2f2f2;
}

/* SECOND LEVEL (fly-out) */
#menu-main-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Sidebar */
.sidebar .widget { background:#fff; border:1px solid #f3f4f6; border-radius:12px; padding:16px; margin-bottom:24px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.widget-title { font-weight:800; margin:0 0 10px; }
.tabs { display:flex; gap:8px; margin-bottom:12px; }
.tabs button { flex:1; border:1px solid #e5e7eb; background:#f9fafb; border-radius:9999px; padding:8px 10px; font-weight:700; cursor:pointer; }
.tabs button.active { background:#ef4444; color:#fff; border-color:#ef4444; }
.side-list { display:flex; flex-direction:column; gap:12px; }
.side-item { display:flex; gap:10px; }
.side-item img { width:72px; height:72px; object-fit:cover; border-radius:10px; }
.side-item .title { font-weight:700; line-height:1.2; }

.search-widget form { display:flex; gap:8px; }
.search-widget input[type="search"] { flex:1; border:1px solid #e5e7eb; border-radius:10px; padding:10px; }
.search-widget button { border:none; background:#111827; color:#fff; border-radius:10px; padding:10px 14px; font-weight:700; cursor:pointer; }

/* Footer */
.footer { margin-top:40px; padding:40px 0; background:#0f172a; color:#e2e8f0; }
.footer a { color:#fff; text-decoration:underline; }
.footer .credits { font-size:12px; opacity:.8; margin-top:10px; }

/* Responsive */
@media (max-width: 1024px){
  .main { grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .grid, .grid-hero { grid-template-columns: 1fr; }
  .navbar .menu { overflow:auto; white-space:nowrap; }
}
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* drie gelijke kolommen */
  gap: 10px;
  padding: 10px;
}

.container-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* drie gelijke kolommen */
  gap: 10px;
  padding: 10px;
}
.single-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* twee kolom */
  gap: 10px;
  padding: 10px;
}

.item {
  background-color: white;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

/* Responsive gedrag */
@media (max-width: 900px) {
  .container {
    grid-template-columns: repeat(2, 1fr); /* twee kolommen bij tablets */
  }
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr; /* één kolom op kleine schermen */
  }
}
.footer {
  background-color: #111;
  color: #eee;
  padding: 40px 20px 20px;
  font-family: 'Helvetica Neue', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #ffcc00;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #ffcc00;
}

.social-icons a {
  font-size: 1.4rem;
  margin-right: 15px;
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ffcc00;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

#block-5 {
	display:none;
}

#block-6 {
	display:none;
}

.single-layout {
    display: flex;
    gap: 24px;         /* ruimte tussen content en sidebar */
    align-items: flex-start;
}

/* main column */
.container-article {
    flex: 1;           /* neemt alle overige ruimte */
    min-width: 0;      /* voorkomt rare overflow */
}

.single-sidebar {
    margin-top: 89px;
    margin-left: -3px;
}
/* optioneel: center ad in sidebar */
.single-sidebar .ad-vertical {
    width: 100%;
}

.single-sidebar .ad-placeholder {
    width: 100%;
    text-align: center;
}


/* Responsive: stack columns on small screens */
@media (max-width: 900px) {
  .single-two-col {
    flex-direction: column;
  }

  .single-two-col .single-sidebar {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .single-two-col .ad-placeholder {
    margin: 0 auto 24px;
  }
}

/* Title */
.page-header-column-page {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.page-header-column-page {
    grid-column: 1 / -1;
    width: 100%;
}

.page-title-column-page {
    text-align: center;
}

.two-column-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Force full width for the content area */
.site-main-column-page,
.entry-content,
.content-wrapper-column-page {
    width: 100%;
    max-width: none;
}

/* Main layout: 66% content / 33% sidebar */
.content-wrapper-column-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* 1. Two-column grid */
.two-column-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* 2. FORCE cards to fill grid columns */
.two-column-posts > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

/* 3. Kill theme max-widths on cards */
.two-column-posts .entry,
.two-column-posts article,
.two-column-posts .post,
.two-column-posts .card {
    width: 100% !important;
    max-width: none !important;
}

/* Grid container: posts + sidebar */
.grid-three-columns {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* posts wider, sidebar narrower */
    gap: 2rem;
}

/* Two-column posts inside the main column */
.two-column-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Force posts to stretch fully */
.two-column-posts > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

/* Optional: ensure sidebar fills its grid column */
.sidebar-column {
    width: 100%;
}

.image-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Adjust the gap between the images */
    align-items: center;
}

.image-container a img {
    max-width: 100%; /* Ensure images are responsive */
    height: auto;
}

/* Alleen op mobiel: max-width 768px */
@media (max-width: 768px) {

    /* Verberg de derde kolom */
    .sidebar,.sidebar-column,                 /* Als de rechterkolom sidebar-class heeft */
    .column-3,                /* of als je thema column-3 noemt */
    .widget-area {            /* of andere widget-area */
        display: none !important;
    }

    /* Pas de middelste en linker kolom aan naar 50% breedte */
    .content-area,            /* hoofdinhoud */
    .main-content,            /* afhankelijk van thema */
    .column-1, 
    .column-2, .two-column-posts {
        width: 150% !important;
        float: left;
        box-sizing: border-box; /* voorkomt overlap */
    }

    /* Optioneel: verwijder marges/padding van de verborgen kolom */
    .row, .container {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .row > *:nth-child(3) {
        display: none !important;
    }
}

/* Alleen op mobiel: max-width 480px */
@media (max-width: 480px) {

    /* Verberg de derde kolom */
    .sidebar,.sidebar-column,                 /* Als de rechterkolom sidebar-class heeft */
    .column-3,                /* of als je thema column-3 noemt */
    .widget-area {            /* of andere widget-area */
        display: none !important;
    }

    /* Pas de middelste en linker kolom aan naar 50% breedte */
    .content-area,            /* hoofdinhoud */
    .main-content,            /* afhankelijk van thema */
    .column-1, 
    .column-2, .two-column-posts {
        width: 150% !important;
        float: left;
        box-sizing: border-box; /* voorkomt overlap */
    }

    /* Optioneel: verwijder marges/padding van de verborgen kolom */
    .row, .container {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .row > *:nth-child(3) {
        display: none !important;
    }
}
