/* ----------------------------------------------------
   1. BASIS: Verwijder standaard onderstrepingen
---------------------------------------------------- */
.main-navigation a,
.main-navigation ul.sub-menu a,
.wp-block-navigation a {
  text-decoration: none;
}


/* ----------------------------------------------------
   2. HOVER: Onderstreep ALLE menu-items (hoofd + submenu)
---------------------------------------------------- */
.main-navigation a:hover,
.main-navigation ul.sub-menu a:hover,
.wp-block-navigation a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ----------------------------------------------------
   3. ACTIEF menu-item (hoofd + submenu)
   WordPress gebruikt deze classes automatisch:
   current-menu-item
   current-menu-ancestor
   current_page_item
   current_page_ancestor
---------------------------------------------------- */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_ancestor > a,
.wp-block-navigation .wp-block-navigation-item.is-current-page > a,
.wp-block-navigation a[aria-current="page"] {
  text-decoration: underline !important;
  text-underline-offset: 4px;
  font-weight: 600;
}


/* ----------------------------------------------------
   4. FIX: voorkom dat submenu verdwijnt
   → Dit was het probleem!
   Submenu-items krijgen bij klikken :focus en sluiten het menu.
---------------------------------------------------- */
.main-navigation ul.sub-menu a:focus,
.main-navigation ul.sub-menu a:active {
  text-decoration: underline !important;
  outline: none !important;
}
/* ----------------------------------------------------
   1. Custom leesbreedte alleen voor tekst
---------------------------------------------------- */

.single-post .entry-content {
    max-width: 850px;   /* jouw ideale tekstbreedte */
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------
   2. Featured image + titel + intro op volledige breedte houden
---------------------------------------------------- */

.single-post .post-thumbnail,
.single-post .entry-header,
.single-post .hero-section,
.single-post .ct-featured-image {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* voorkomt dat de header in jouw 850px container valt */
.single-post .post-inner {
    max-width: 100% !important;
}
/* ----------------------------------------------------
   Gerelateerde artikelen sectie full-width maken
   (zonder de tekstbreedte aan te passen)
---------------------------------------------------- */

.single-post .ct-related-posts,
.single-post .ct-related-posts .ct-block,
.single-post .ct-related-posts .ct-related-posts-inner,
.single-post .ct-related-posts .related-posts-grid {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Soms nodig bij themes die een extra wrapper gebruiken */
.single-post .ct-related-posts .ct-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* ----------------------------------------------------
   Reset: volledige breedte voor de content-container
---------------------------------------------------- */
.single-post .entry-content {
    max-width: 100% !important;
}
/* ----------------------------------------------------
   Alleen tekstblok smaller maken (mooie leesbreedte)
---------------------------------------------------- */

.single-post .entry-content > p,
.single-post .entry-content > h2,
.single-post .entry-content > h3,
.single-post .entry-content > h4,
.single-post .entry-content > ul,
.single-post .entry-content > ol,
.single-post .entry-content > blockquote {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
/* ================================
   Box background alleen wit op home
   ================================ */

/* ALLE pagina's behalve home: box transparant */
body:not(.home):not(.front-page) .container,
body:not(.home):not(.front-page) .boxed,
body:not(.home):not(.front-page) .site-content,
body:not(.home):not(.front-page) .content-area,
body:not(.home):not(.front-page) .wp-site-blocks {
  background-color: transparent !important;
}

/* HOME pagina expliciet wit houden */
body.home .container,
body.front-page .container,
body.home .boxed,
body.front-page .boxed {
  background-color: #ffffff !important;
}