/* =========================================================
   New page components: breadcrumbs, sidebar, section cards, calendar tiles.
   Built on the colours and font of styles.css (which stays unchanged).
   ========================================================= */

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: #5c636a;
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--slhd-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span[aria-hidden] {
    margin: 0 8px;
}

/* ---------- Subpage: content + sidebar ---------- */
.subpage .content_titel_main {
    margin-bottom: 30px;
}

.subpage-aside {
    margin-top: 30px;
}

@media (min-width: 992px) {
    .subpage-aside {
        margin-top: 0;
    }

    .sidebar-box {
        position: sticky;
        top: 160px; /* below the fixed navbar */
    }
}

.sidebar-box {
    background: white;
    border-top: 4px solid var(--slhd-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px 0 10px;
}

.sidebar-title {
    display: block;
    padding: 0 20px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: lowercase;
    color: var(--slhd-primary);
    text-decoration: none;
}

.sidebar-title:hover {
    color: var(--slhd-secondary);
    text-decoration: none;
}

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

ul.sidebar-list > li {
    margin: 0;
    padding: 0;
    border-top: 1px solid #ebebeb;
}

ul.sidebar-list a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--slhd-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

ul.sidebar-list a:hover,
ul.sidebar-list a.active {
    background-color: var(--slhd-yellow);
    color: var(--slhd-primary);
    text-decoration: none;
}

ul.sidebar-list a.active {
    font-weight: 600;
}

/* ---------- Missie, visie & waarden ---------- */
/* Missie: tekst + foto met gele kader erachter */
.mv-missie {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: stretch; /* foto even hoog als titel + eerste alinea */
}

.content-section.bg-light p.mv-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--slhd-primary);
    margin: 0;
}

.content-section.bg-light p.mv-missie-vervolg {
    margin: 30px 0 60px;
}

.mv-foto {
    position: relative;
    margin: 8px 18px 18px 0;
}

.mv-foto::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    background: var(--slhd-yellow);
}

.mv-foto img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Visie: blauwe band */
.mv-visie {
    position: relative;
    overflow: hidden;
    background: var(--slhd-primary);
    padding: 45px 45px 35px;
    margin-bottom: 70px;
}

.mv-visie::after {
    /* gele streep onderaan, zoals de strepen van de site */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg,
        var(--slhd-yellow) 0 60px, var(--slhd-orange1) 60px 120px);
}

.mv-visie-quote {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.07);
}

.content-section.bg-light .mv-visie .content_titel {
    color: var(--slhd-yellow);
    margin-bottom: 20px;
}

.mv-visie-tekst {
    position: relative;
    max-width: 760px;
}

.content-section.bg-light .mv-visie p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: white;
    margin: 0 0 1rem;
}

/* Waarden: kop met foto + 4 kaarten */
.mv-waarden {
    scroll-margin-top: 160px;
}

.mv-waarden-kop {
    position: relative;
    margin-bottom: 30px;
}

.mv-waarden-foto {
    margin: 0;
}

.mv-waarden-foto img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.content-section.bg-light .mv-waarden-kop .content_titel {
    position: absolute;
    left: 0;
    bottom: -1px;
    z-index: 1;
    margin: 0;
    padding: 14px 28px 8px 0;
    background: #f8f9fa; /* = achtergrond van de pagina: titel "snijdt" in de foto */
}

ul.mv-waarden-lijst {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    counter-reset: waarde;
}

ul.mv-waarden-lijst > li.mv-waarde {
    position: relative;
    margin: 0;
    padding: 28px 28px 24px;
    background: white;
    border-top: 4px solid var(--slhd-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    counter-increment: waarde;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

ul.mv-waarden-lijst > li.mv-waarde:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

ul.mv-waarden-lijst > li.mv-waarde::after {
    /* groot, vaag volgnummer rechtsboven */
    content: "0" counter(waarde);
    position: absolute;
    top: 14px;
    right: 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(29, 56, 122, 0.08);
}

.mv-waarde-icoon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--slhd-primary);
    color: var(--slhd-yellow);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.mv-waarde-titel {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--slhd-primary);
    margin: 0 0 8px;
}

.content-section.bg-light .mv-waarde p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 991px) {
    .mv-missie {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .mv-foto {
        max-width: 420px;
    }

    .mv-foto img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 576px) {
    .mv-visie {
        padding: 35px 22px 30px;
        margin-left: -15px;
        margin-right: -15px;
    }

    .mv-waarden-foto img {
        height: 170px;
    }

    ul.mv-waarden-lijst {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    ul.mv-waarden-lijst > li.mv-waarde {
        transition: none;
    }
}

/* ---------- Cookiepagina ---------- */
.privacy-tekst .content_titel {
    margin-top: 30px;
}

.content-section.bg-light .privacy-tekst ul li {
    color: #333;
    line-height: 1.8;
}

.content-section.bg-light .privacy-tekst p.privacy-datum {
    color: #5c636a;
    font-size: 0.85rem;
}

/* ---------- Schoolteam ---------- */
.team-binnenkort {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: white;
    border-left: 6px solid var(--slhd-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 24px 28px;
    margin-bottom: 36px;
}

.team-binnenkort-icoon {
    flex: none;
    font-size: 2rem;
    color: var(--slhd-primary);
    margin-top: 4px;
}

.team-binnenkort .content_titel {
    margin-bottom: 6px;
}

.content-section.bg-light .team-binnenkort p {
    margin: 0;
}

ul.team-contact {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

ul.team-contact > li {
    margin: 0 0 8px;
    padding: 0;
    color: #333;
}

ul.team-contact .more_link {
    margin-top: 0;
}

ul.team-contact i {
    width: 22px;
    color: var(--slhd-primary);
}

.team-groep {
    margin-top: 40px;
}

.content-section.bg-light .team-tekst {
    color: #333;
    margin-bottom: 20px;
}

ul.team-lijst {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /* min. 330px per tegel → 2 naast elkaar op desktop, 1 op gsm */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 16px;
}

ul.team-lijst > li.team-lid {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 16px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-foto {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--slhd-yellow);
}

.team-initialen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slhd-primary);
    color: var(--slhd-yellow);
    font-weight: 600;
    font-size: 1.1rem;
}

.team-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.team-naam {
    color: var(--slhd-primary);
    font-size: 1rem;
}

.team-functie {
    color: #555;
    font-size: 0.85rem;
}

.team-mail {
    font-size: 0.8rem;
    color: var(--slhd-blauw);
    overflow-wrap: break-word; /* breekt bij voorkeur na de @ */
}

.team-mail-domein {
    white-space: nowrap;
}

@media (max-width: 576px) {
    ul.team-lijst > li.team-lid {
        gap: 12px;
        padding: 14px;
    }

    .team-foto {
        width: 52px;
        height: 52px;
    }
}

/* ---------- Section landing page ---------- */
.content-section.bg-light .section-intro p {
    font-size: 1.1rem;
    text-align: left;
}

.section-cards > div {
    display: flex;
    margin-bottom: 30px;
}

.section-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-top: 4px solid var(--slhd-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 25px;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover,
.section-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    color: #333;
    text-decoration: none;
}

.section-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--slhd-primary);
    margin-bottom: 10px;
}

.section-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.section-card-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--slhd-primary);
}

.section-card:hover .section-card-more {
    color: var(--slhd-secondary);
}

/* ---------- Calendar: date tiles ---------- */
ul.event-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

ul.event-list > li.event {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 0 15px;
    padding: 0;
}

.event-date {
    flex: 0 0 64px;
    text-align: center;
    padding: 8px 0;
    line-height: 1.1;
    background: var(--slhd-yellow);
    color: var(--slhd-primary);
}

.event-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
}

.event-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-list .event .event-body .event-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 2px 0 2px;
    color: white;
    letter-spacing: 0;
}

.event-list .event .event-body p.event-when {
    font-size: 0.8rem;
    margin: 0 0 4px;
    color: var(--slhd-yellow);
}

.event-list .event .event-body p.event-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: white;
}

/* On light backgrounds (Kalender page): white cards with a blue date tile */
.subpage ul.event-list > li.event {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    gap: 20px;
    scroll-margin-top: 160px;
}

.subpage .event-date {
    background: var(--slhd-primary);
    color: white;
    flex-basis: 72px;
}

.subpage .event-month {
    color: var(--slhd-yellow);
}

.subpage .event-list .event .event-body .event-title {
    color: var(--slhd-primary);
    font-size: 1.2rem;
}

.subpage .event-list .event .event-body p.event-when {
    color: #5c636a;
    font-weight: 600;
}

.subpage .event-list .event .event-body p.event-text {
    color: #333;
}
