/*
 * Bijbel in 1000 seconden
 * Aanpassingen aan het standaardthema Tuften (Tiki 30.1)
 *
 * Header: zoekveld en zoekknop op één lijn.
 */

#module_64 form .mb-3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0 !important;
}

#module_64 input.form-control {
    width: 220px;
    min-width: 0;
    margin: 0 !important;
}

#module_64 .btn-group {
    margin: 0 !important;
    flex-shrink: 0;
}

#module_64 .btn-group .btn {
    white-space: nowrap;
}


/* Zoekknop: zwart vergrootglas op geel */

#module_64 .btn-group input[type="submit"] {
    width: 40px;
    height: 38px;
    padding: 0;
    font-size: 0;

    background-color: #f9bb32;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 21px 21px;

    border: 1px solid #f9bb32;
    border-radius: 4px;
    cursor: pointer;
}

#module_64 .btn-group input[type="submit"]:hover {
    background-color: #e9aa20;
    border-color: #e9aa20;
}

/* Hoofdmenu: typografie */

#module_60 .navbar-nav .nav-link {
    font-family: "Gill Sans", "Calibri", "Trebuchet MS", Arial, sans-serif;
    font-variant: small-caps;
    font-size: 1.4rem;
    font-weight: 400;
    color: #888;
}


#module_60 .navbar-nav .nav-link:hover,
#module_60 .navbar-nav .nav-link:focus {
    color: #c3344e;
}

/*
 * Auto TOC: op tablets de volledige breedte
 * benutten wanneer de linkernavigatie verborgen is.
 */
@media screen and (min-width: 768px) and (max-width: 991.98px) {
    #page-data.col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}


/* Logo uitlijnen met zoekveld en pagina-inhoud */
#module_58 img.sitelogo {
    transform: translateX(4px);
}

/* Mobiele navigatie: volledige breedte, normale documentstroom */

@media (max-width: 991.98px) {

    #topbar_modules {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    /* Zoekfunctie blijft op de eerste regel */
    #module_64 {
        flex: 0 1 auto;
    }

    /* Menumodule krijgt een eigen regel over de volle breedte */
    #module_60 {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    #module_60 .navbar {
        display: block;
        position: static;
        width: 100%;
        padding: 0;
    }

    /* Hamburger blijft rechtsboven, naast het zoekveld */
    #module_60 .navbar-toggler {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
    }

    /* Uitgeklapt menu blijft in de normale documentstroom */
    #module_60 .navbar-collapse {
        width: 100%;
    }

    #module_60 .navbar-collapse.show,
    #module_60 .navbar-collapse.collapsing {
        position: static;
        width: 100%;
        background: transparent;
        padding: 1rem 0;
    }

    /* Navigatielijst vult de breedte */
    #module_60 .navbar-nav {
        width: 100%;
        margin: 0 !important;
        align-items: stretch;
    }

    /* Grote, gecentreerde en gemakkelijk aanklikbare items */
    #module_60 .navbar-nav .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.5rem;
        line-height: 1.4;
        padding: 0.85rem 1rem;
    }
    #module_60 .navbar-toggler {
        top: 0;
        right: 0;
        transform: translateY(-90%);
    }
}

/* Eerste paginatitel uitlijnen met Auto TOC */
@media (min-width: 992px) {
    #page-data > .content > h1:first-child {
        margin-top: 0;
    }
}

/* Mobiel en tablet: minder witruimte boven de titel */
@media (max-width: 991.98px) {
    #page-data > .content > h1:first-child {
        margin-top: 1rem;
    }
}


/* Homepage: afbeeldingen binnen hun kolom houden */
.panel-body img {
    max-width: 100%;
    height: auto;
}


/* Homepage: achtergrond van de rubriektitels */

/* Homepage: subtiel verhoogde rubriektitels */
.homepage-icon {
    background-color: #faebd7;
    border-radius: 3px;
    box-shadow:
        0 2px 5px rgba(45, 35, 25, 0.14),
        0 1px 2px rgba(45, 35, 25, 0.08);
    transition: box-shadow 0.2s ease;
    padding: .3rem .6rem;
    margin-bottom: 2rem;
}

.homepage-icon p {
    margin: 0;
}

.homepage-icon img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* Business: dezelfde warme achtergrond als Tuften */
:root {
    --bs-body-bg: #fffff8;
}

body {
    background-color: #fffff8;
}


/* Header: dezelfde achtergrond als de pagina */

/* Header en navigatie: transparante achtergrond */
#main-navbar,
#topbar_modules,
#topbar_modules.bg-light,
#topbar_modules .navbar,
#topbar_modules .navbar.bg-light {
    background: transparent !important;
    background-image: none !important;
}


/* Homepage: typografie aansluitend bij Tuften */
html#page_1 #page-data {
    font-family:
        "Iowan Old Style",
        "Palatino Linotype",
        "URW Palladio L",
        P052,
        serif;

    font-size: 17px;
    line-height: 1.5;
}


/* Homepage: één kolom op mobiel en tablet (576–991 px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    html#page_1 #page-data .row > .col-sm-4 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* Homepage Section 4: ruimte tussen de onderwerpen */
@media (max-width: 991.98px) {
    html#page_1 .bg-4 .row > .col-sm-4:not(:last-child) {
        margin-bottom: 5rem;
    }
}


/* Homepage: introductiesectie */
html#page_1 .homepage-intro {
    max-width: 65ch;
    margin-inline: auto;
}

html#page_1 .homepage-intro-title {
    text-align: center;
    color: #bc0826;
}

html#page_1 .homepage-intro-text {
    text-align: left;
    line-height: 1.55;
}

html#page_1 .homepage-intro-title h1 {
    color: #bc0826;
    text-align: center;
}

html#page_1 .homepage-intro-text a {
    color: #bc0826;
    text-decoration: underline;
}


html#page_1 .homepage-intro-text .homepage-cta a,
html#page_1 .homepage-button a {
    display: inline-block;
    background-color: #bc0826;
    color: #fffff8;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.35rem;
    font-size: 1rem;
    font-variant: normal;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
    font-weight: 600;
}


html#page_1 .homepage-intro-text .homepage-cta a:hover,
html#page_1 .homepage-intro-text .homepage-cta a:focus-visible,
html#page_1 .homepage-button a:hover,
html#page_1 .homepage-button a:focus-visible {
    background-color: #9f071f;
    color: #fff;
    text-decoration: none;
}

html#page_1 .homepage-button a {
    display: block;
    width: 100%;
    text-align: center;
}


@media (max-width: 767.98px) {
    .homepage-cta a {
        display: block;
        width: 100%;
        max-width: 24rem;
        padding: 0.9rem 1.25rem;
        text-align: center;
    }
}



html#page_1 .homepage-cards {
    margin-bottom: 8rem;
}

html#page_1 .container .publicaties {
    margin-bottom: 3rem;
    padding: 4rem 2rem 1rem 2rem;
    background-color: #d6dfe9;
}


html#page_1 .container .publicaties > .homepage-cards {
    margin-bottom: 3rem;
}


/* Homepage Section 4: gelijke kolomhoogtes en CTA-uitlijning */
@media (min-width: 992px) {

    /* Alle kolommen even hoog */
    html#page_1 .homepage-cards {
        display: flex;
        align-items: stretch;
    }

    /* Elke kolom als verticale flexcontainer */
    html#page_1 .homepage-cards > .col-sm-4 {
        display: flex;
        flex-direction: column;
    }

    /* Inhoud vult de resterende hoogte */
    html#page_1 .homepage-cards > .col-sm-4 > .panel-body {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* Beschrijving neemt vrije ruimte in */
    html#page_1 .homepage-cards .homepage-description {
        flex: 1 1 auto;
    }

    /* Knop onderaan */
    html#page_1 .homepage-cards .homepage-button {
        margin-top: auto;
    }

    /* Extra marges van Tiki neutraliseren */
    html#page_1 .homepage-cards .homepage-button p {
        margin: 0;
    }
}



/* Homepage: leerkrachten en catechisten */


html#page_1 .homepage-audience-title h1 {
    color: #bc0826;
    text-align: center;
    justify-content: center !important;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

html#page_1 .homepage-audience {
    max-width: 65ch;
    margin-inline: auto;
    padding-block: 0;
}

html#page_1 .homepage-audience-text {
    text-align: left;
    line-height: 1.55;
}

/* Gemeenschappelijke footer: Business en Tuften */

#footer {
    background: #eeece6;
    margin-top: 4rem;
}

#footer #bottom_modules {
    padding-block: 2rem !important;
}

#footer #module_61,
#footer #mod-licensebottom1,
#footer #license {
    display: block !important;
    width: 100%;
}

#footer .site-footer {
    max-width: 75rem;
    margin-inline: auto;
    padding-inline: 1rem;
    font-family: "Iowan Old Style", "Palatino Linotype",
                 "URW Palladio L", P052, serif;
    font-size: 17px;
    line-height: 1.55;
}

#footer .site-footer-license,
#footer .site-footer-contact {
    padding: 1.5rem 2rem;
    border-radius: 3px;
}

#footer .site-footer-license {
    background: #e4e1d9;
}

#footer .site-footer-contact {
    background: #eeece6;
    margin-top: 0.5rem;
}

#footer .site-footer p {
    max-width: 65ch;
    margin: 0 auto 0.75rem;
}

#footer .site-footer p:last-child {
    margin-bottom: 0;
}

#footer .site-footer a {
    color: #bc0826;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    #footer .site-footer-license,
    #footer .site-footer-contact {
        padding: 1.25rem;
    }
}


/* AutoTOC – inhoudstabel op detailpagina's */

#autotoc {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 17px;
    line-height: 1.5;
}


/* AutoTOC: geen bovenmarge op desktop */
@media (min-width: 992px) {
    #autotoc {
        margin-top: 0;
    }
}



/* Lijststructuur herstellen */
#autotoc ul.nav {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

#autotoc li {
    display: block;
    margin: 0;
    padding: 0;
}

/* Links */
#autotoc a.nav-link {
    display: block;
    padding: 0.15rem 0;
    color: inherit;
    text-decoration: none;
    font-weight: 400;
    line-height: 1.35;
}

#autotoc a.nav-link:hover,
#autotoc a.nav-link:focus,
#autotoc a.nav-link.active {
    text-decoration: none;
}

/* Hoofdniveaus vet */
#autotoc > ul > li > a,
#autotoc > ul > li > ul > li > a {
    font-weight: 700;
}

/* Inspringen per niveau */
#autotoc ul.nav ul.nav {
    padding-left: 1rem;
}

/* Rood bij hover en toetsenbordfocus */
#autotoc a.nav-link:hover,
#autotoc a.nav-link:focus-visible {
    color: #bc0826;
    text-decoration: none;
}




/* Mailinglist – homepage */

#module_73 {
    display: block !important;
    width: 100%;
    max-width: 500px;
    margin: 2rem auto 3rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Titel van de module */
#module_73 > .card-header {
    display: block;
    padding: 3rem 0 0rem;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: center;
}

#module_73 .tiki-card-header-title,
#module_73 .moduletitle {
    color: #bc0826;
    font-family: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
}

/* Inhoud van de module */
#module_73 > .card-body {
    padding: 0;
    border: 0;
    background: transparent;
}

/* Lege footer verwijderen */
#module_73 > .card-footer {
    display: none;
}

/* Scheidingslijn op detailpagina's, niet op homepage */
@media (min-width: 992px) {
    html:not(#page_1) #pagebottom_modules::before {
        content: "";
        display: block;
        width: 75%;
        height: 1px;
        margin: 2rem auto 0;
        background-color: #d8d8d8;
    }
}


/* Landbot-container */
#module_73 #myLandbot {
    width: 100%;
    height: 550px;
}

/* Leesbreedte op detailpagina's, niet op de homepage */
@media (min-width: 992px) {

    html:not(#page_1) #page-data > .content {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 70ch)
            minmax(0, 1fr);
    }

    html:not(#page_1) #page-data > .content > * {
        grid-column: 2;
        min-width: 0;
    }

    html:not(#page_1) #page-data > .content > h1 {
        grid-column: 1 / -1;
    }

    html:not(#page_1) #page-data > .content img {
        max-width: 100%;
        height: auto;
    }
}


/* Titels binnen de wiki-inhoud */
#page-data > .content h1,
#page-data > .content h2,
#page-data > .content h3 {
    color: #bc0826;
    font-weight: 600;
}

/* standaard wiki-kader in wikipagina's */
.card.bg-light:not(:is(img + .card)) {
    background-color: #f8bc2f !important;
}
