/* =========================================================
   styles.css – basisopmaak Sint-Leo (navbar, footer, inhoudssecties, lightbox)
   Opgekuist op 8 oktober 2026: regels van de oude site die op geen enkele
   pagina meer voorkwamen zijn verwijderd (teasers, oude carrousels,
   oude footer, fotoslider, enz.).
   ========================================================= */

:root {
    /* Officiële huisstijl Sint-Leo: enkel deze kleuren gebruiken (plus wit, grijzen en lichte tinten ervan) */
    --slhd-navy: rgb(31, 44, 101);        /* #1f2c65 */
    --slhd-primary: rgb(29, 56, 122);     /* #1d387a  primair */
    --slhd-blauw: rgb(0, 71, 149);        /* #004795 */
    --slhd-secondary: rgb(0, 144, 214);   /* #0090d6 */
    --slhd-orange1: rgb(243, 145, 0);     /* #f39100 */
    --slhd-orange2: rgb(249, 176, 0);     /* #f9b000 */
    --slhd-yellow: rgb(253, 195, 0);      /* #fdc300  primair */
    --slhd-geel: rgb(255, 221, 0);        /* #ffdd00 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

html {
    scroll-padding-top: 160px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--slhd-primary);
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
    padding-top: 140px;
    margin: 0;
}

/* BLUE VERTICAL STRIPES - Full page background */
.blue-stripes-vertical {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -20;
    background: repeating-linear-gradient(
        to bottom,
        var(--slhd-navy) 0px,
        var(--slhd-navy) 30px,
        rgb(29, 56, 122) 30px,
        rgb(29, 56, 122) 60px,
        rgb(0, 71, 149) 60px,
        rgb(0, 71, 149) 90px,
        rgb(0, 144, 214) 90px,
        rgb(0, 144, 214) 120px,
        rgb(0, 71, 149) 120px,
        rgb(0, 71, 149) 150px,
        rgb(29, 56, 122) 150px,
        rgb(29, 56, 122) 180px
    );
    pointer-events: none;
}

/* Left and right blue vertical bars - SEPARATE ELEMENTS */
.blue-bar-left,
.blue-bar-right {
    position: fixed;
    top: 0;
    width: 25px;
    height: 100%;
    z-index: 999;
    background: repeating-linear-gradient(
        to bottom,
        var(--slhd-navy) 0px,
        var(--slhd-navy) 30px,
        rgb(29, 56, 122) 30px,
        rgb(29, 56, 122) 60px,
        rgb(0, 71, 149) 60px,
        rgb(0, 71, 149) 90px,
        rgb(0, 144, 214) 90px,
        rgb(0, 144, 214) 120px,
        rgb(0, 71, 149) 120px,
        rgb(0, 71, 149) 150px,
        rgb(29, 56, 122) 150px,
        rgb(29, 56, 122) 180px
    );
    pointer-events: none;
}

.blue-bar-left {
    left: 0;
}

.blue-bar-right {
    right: 0;
}

/* Container spacing to respect blue bars */
.container,
.container-fluid {
    padding-left: 40px; /* 25px bar + 15px spacing */
    padding-right: 40px;
}

/* Content wrapper for all page content */
.content-wrapper {
    margin-top: 0;
    position: relative;
    z-index: 10;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    margin: 0;
    z-index: 1030;
    background-color: var(--slhd-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    min-height: 140px;
    padding: 0;
}

.navbar .container-fluid {
    max-width: 100%;
    padding: 10px 40px;
}

.navbar-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 120px;
}

.navbar-animation-section {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-animation {
    width: 300px;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-animation img {
    max-height: 80%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.navbar-animation img.static-logo {
    max-height: 20vh;
}

.navbar-menu-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Checkbox voor het gsm-menu: onzichtbaar, maar wel bereikbaar met het toetsenbord */
#menu-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
#menu-toggle:focus-visible ~ .navbar-menu-section .navbar-toggler {
    outline: 3px solid var(--slhd-yellow);
    outline-offset: 3px;
}

/* Hamburger icon */
.navbar-toggler {
    display: none;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 1031;
}

.navbar-toggler-icon {
    background-image: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
}

.navbar-toggler-icon .line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Rotate hamburger into X when checked */
#menu-toggle:checked ~ .navbar-menu-section .navbar-toggler .navbar-toggler-icon .line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

#menu-toggle:checked ~ .navbar-menu-section .navbar-toggler .navbar-toggler-icon .line:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .navbar-menu-section .navbar-toggler .navbar-toggler-icon .line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.navbar-collapse {
    display: flex;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav .nav-item {
    margin: 0 3px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: lowercase;
    padding: 8px 16px !important;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: transparent;
    text-decoration: none;
    display: block;
}

/* Hover effect */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    background-color: var(--slhd-yellow) !important;
    color: var(--slhd-primary) !important;
}

@media (max-width: 991px) {
    .navbar-content-wrapper {
        min-height: 80px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .navbar-animation-section {
        flex: 0 0 auto;
        width: auto !important;
        display: flex !important;
    }
    
    .navbar-menu-section {
        flex: 0 0 auto;
        width: auto !important;
        display: flex !important;
        margin-left: auto;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        max-width: none;
        height: calc(100vh - 80px);
        background-color: var(--slhd-primary);
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
        padding: 20px 0;
    }
    
    #menu-toggle:checked ~ .navbar-menu-section .navbar-collapse {
        left: 0px;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        width: 100%;
    }
    
    .navbar-animation img.static-logo {
        max-height: 10vh;
    }
}

/* Content sections for template pages */
.content-section {
    position: relative;
    z-index: 10;
}

.content-wrapper > .content-section:first-child,
.content-section:first-of-type {
    margin-top: 0;
    padding-top: 80px;
}

.content-section.bg-light {
    background-color: #EBEBEB;
    padding: 60px 0;
}

.content-section.bg-light:first-child,
.content-wrapper > .content-section.bg-light:first-child {
    padding-top: 140px;
}

.content-section.bg-light .content_titel {
    color: var(--slhd-primary);
    margin-top: 0;
    padding-top: 0;
}

.content-section.bg-light .content_tekst p {
    color: #333;
}

/* Blue content band */
section.content-section.bg-blue {
    background-color: var(--slhd-primary) !important;
    padding: 60px 0;
    color: white;
}

section.content-section.bg-blue .content_titel {
    color: var(--slhd-yellow);
}

section.content-section.bg-blue .content_tekst p {
    color: white;
}

.content_titel {
    color: var(--slhd-yellow);
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    font-weight: 400;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content_tekst {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content_tekst p {
    line-height: 1.8;
    color: var(--slhd-yellow);
    font-size: 1rem;
}

.content_image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content_image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.more_link {
    color: var(--slhd-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.more_link:hover {
    text-decoration: underline;
    color: var(--slhd-blauw);
}

/* FOOTER */
.footer {
    background-color: var(--slhd-primary);
    color: #999999;
    padding: 50px 0 20px;
    margin: 0;
    width: 100%;
    border-top: solid 20px;
    border-image: repeating-linear-gradient(
        to right,
        rgb(243, 145, 0) 0px,
        rgb(243, 145, 0) 60px,
        rgb(249, 176, 0) 60px,
        rgb(249, 176, 0) 120px,
        rgb(253, 195, 0) 120px,
        rgb(253, 195, 0) 180px,
        rgb(255, 221, 0) 180px,
        rgb(255, 221, 0) 240px,
        rgb(253, 195, 0) 240px,
        rgb(253, 195, 0) 300px,
        rgb(249, 176, 0) 300px,
        rgb(249, 176, 0) 360px
    ) 1;
}

.footer .container {
    max-width: 100%;
    padding: 0 40px; /* Respect blue bars */
}

/* Back to top */
#page_up {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.page_up {
    display: block;
    width: 50px;
    height: 50px;
    background: var(--slhd-primary);
    color: var(--slhd-yellow);
    text-align: center;
    line-height: 50px;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    body {
        padding-left: 0;
        padding-right: 0;
    }
    
    .container,
    .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .navbar {
        margin: 0;
    }
    
    .navbar .container-fluid {
        padding: 10px 30px;
    }
    
    .navbar-content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-animation {
        width: 240px;
        margin-bottom: 15px;
    }
    
    .navbar-collapse {
        width: 100%;
        margin-top: 15px;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
        margin: 3px 0;
    }
    
    .footer {
        margin: 0;
        width: 100%;
    }
    
    .footer .container {
        padding: 0 30px;
    }
    
    /* Hide blue bars on mobile */
    .blue-bar-left,
    .blue-bar-right {
        display: none;
    }
}

/* Main title styling for section */
.content_titel_main {
    color: var(--slhd-primary);       /* donkerblauw: goed leesbaar; het geel komt terug als streep */
    position: relative;
    padding-bottom: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 40px;
    text-align: left;
}

/* Image column styling */
.content_image_column {
    margin-bottom: 30px;
    text-align: center;
}

.content_image_column .content_titel {
    margin-bottom: 20px;
    text-align: center;
}

/* Hide the checkbox - placed at body level */
.lightbox-toggle {
    display: none;
}

/* Thumbnail styling */
.lightbox-trigger {
    display: block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lightbox-trigger:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.lightbox-trigger:hover .thumbnail {
    transform: scale(1.05);
}

/* Zoom hint */
.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(253, 195, 0, 0.9);
    color: var(--slhd-primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-trigger:hover .zoom-hint {
    opacity: 1;
}

/* Lightbox overlay - at body level, starts hidden */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 20px;
    z-index: 99999;
}

/* Lightbox image */
.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* Close hint */
.close-hint {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: var(--slhd-yellow);
    color: var(--slhd-primary);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    pointer-events: none;
}

/* When checkbox is checked, show the lightbox */
.lightbox-toggle:checked + .lightbox-overlay {
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
}

.lightbox-toggle:checked + .lightbox-overlay .lightbox-image {
    transform: scale(1);
}

.lightbox-toggle:checked + .lightbox-overlay .close-hint {
    opacity: 1;
}

/* Prevent body scroll when any lightbox is open */
body:has(.lightbox-toggle:checked) {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content_titel_main {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .close-hint {
        top: 20px;
        right: 20px;
        font-size: 0.875rem;
        padding: 8px 15px;
    }
}

ul {
    margin: 0 0 1em 0;
    padding: 0 0 0 1.2em; /* Matches typical paragraph indent */
}

ul > li {
    margin-bottom: 0.5em;
    padding-left: 0.3em;
}

ul > li > ul {
    margin-top: 0.25em;
    margin-bottom: 0.5em;
    padding-left: 1.5em; /* Additional indent for nested level */
}

ul > li > ul > li {
    margin-bottom: 0.25em;
    list-style-type: circle;
}

/* Bootstrap-kolommen even hoog laten lopen (wordt nog gebruikt) */
.row {
  align-items: stretch;
}

.col-lg-4 {
  display: flex;
}

/* "Naar de inhoud": enkel zichtbaar wie met Tab door de pagina gaat */
.naar-inhoud:focus {
    position: fixed !important;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--slhd-yellow);
    color: var(--slhd-primary);
    font-weight: 600;
    text-decoration: none;
}
main:focus { outline: none; }
@media (min-width: 992px) { #menu-toggle { display: none; } }

/* Gsm-menu: als het dicht is, kan je er ook niet met Tab in terechtkomen */
@media (max-width: 991px) {
    .navbar-collapse { visibility: hidden; transition: left 0.3s ease, visibility 0s linear 0.3s; }
    #menu-toggle:checked ~ .navbar-menu-section .navbar-collapse { visibility: visible; transition: left 0.3s ease, visibility 0s; }
}

/* Gele streep onder de paginatitel */
.content_titel_main::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 6px;
    background: var(--slhd-yellow);
}

/* Links in lopende tekst: donkerblauw en onderlijnd (niet enkel herkenbaar aan kleur) */
.subpage-main p a:not([class]),
.subpage-main li a:not([class]),
.pg-text a:not([class]),
.content_tekst a:not([class]) {
    color: var(--slhd-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pg-section--blue .pg-text a:not([class]),
.pg-vlak--blauw .pg-text a:not([class]) { color: var(--slhd-yellow); }
