/**
 * Patroon-CSS die specifiek is voor Carmelcollege Gouda (en de
 * subsites Antoniuscollege, Antoniusmavo en ISK).
 *
 * Deze regels stonden eerst in carmel-core/assets/css/shared/patterns.css,
 * maar bleken alleen voor Gouda te kloppen: de andere scholen gebruikten
 * de patronen niet of overschreven de waarden weer (analyse 14-10-2026,
 * zie CSS-ANALYSE.md in de plugin).
 *
 * Wordt geladen direct NA de plugin-patterns.css (zie functions.php),
 * frontend én editor — de volgorde in de cascade is dus dezelfde als
 * toen het nog in de plugin stond.
 */

/* hero big image: onder de Gouda-header schuiven */
.ptrn-herobigimage{
    margin-top: -101px;
}

/* intro-tekst */
.single-content{
    .ptrn-introtext{
        h2{
            font-size:56px;
        }
        p{
            font-size:24px;
        }
    }
}

@media(max-width:1024px){
    .single-content{
        .ptrn-introtext{
            h2{
                font-size:32px;
            }
            p{
                font-size:20px;
            }
        }
    }
}

/* hero-text-centered */
.hero-text-centered-image figure, .hero-text-centered-image img {
  height:400px;
  width:calc(100% - 32px);
  margin:0 auto;

}

.hero-text-centered + .hero-text-centered-image figure{
    margin-top:64px;
}
.hero-text-centered-image img {
  object-fit:cover;
}

@media(min-width:1024px){

    .hero-text-centered-image figure, .hero-text-centered-image img {
        height:600px;
    }
    .hero-text-centered + .hero-text-centered-image figure{
        margin-top: 0;
    }
}

@media(min-width:1472px){

    .hero-text-centered-image figure, .hero-text-centered-image img {
        width:1440px;
    }
}

@media(max-width:1024px){

    .hero-text-centered .innerrow > div{
        padding-left:24px;
        padding-right:24px;
        padding-top: 100px;
    }
}

@media(max-width:767px){
    .entry-content .herowrapper.hero-text-centered{
        margin-top: -50px;
    }
    .entry-content .hero-text-centered-image{
        margin-top:-300px
    }
}

/* hero met overlay - Homepage header */
.herowrapper.bighero > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .kb-row-layout-wrap > .kt-row-column-wrap .kb-row-layout-wrap{
    width:100%;
}

/* cta-patterns */
:root div.cta-pattern,
:root div.cta-wide  .cta-pattern-wide {
    background-color: #00749A;
}
:root div.cta-pattern.secundair,
:root div.cta-wide.secundair  .cta-pattern-wide{
    background-color:rgba(79, 193, 0, 1);
}


.cta-pattern .hasoverflownimage{
    height: 100%;

    > div{
        position: relative;
    }

    figure{
        position: relative;
    }

    img{
        border-radius:0;
    }
}

@media (min-width:1024px){
    .cta-pattern .hasoverflownimage{

        figure{
            position: absolute;
            bottom: -80px;
            overflow: hidden;
            transform-origin: bottom;
            transition: transform 0.2s;
        }

        img {
            height: calc(100% + 240px);
        }
    }

    .cta-pattern:has(.button:hover) .hasoverflownimage figure {
        transform: scale(1.05);
    }
}

.cta-pattern > div{
    padding:80px;
}
.cta-pattern > div p{
    margin-bottom:16px !important;
}

div.cta-pattern-wide, div.cta-wide.text-only{
    margin-bottom:80px;
}
.entry-content.single-content > div.cta-pattern{
    margin-top:240px;
}

@media(max-width:1024px){
    .entry-content.single-content > div.cta-pattern{
        margin-top:80px;
    }
}

/* schoolitem */
.schoolitem {
    .wp-block-kadence-column .kt-inside-inner-col{
        &:after{
            content:'';
            background-image:url('../images/arrow.svg');
            background-repeat: no-repeat;
            background-size:12px 12px;
            background-position: center;
            width:32px;
            height:32px;
            position: absolute;
            right: 0;
            top:-3px;
            border-radius: 8px;
            background-color: #005c74;
            transition: 0.3s;
        }
    }

    figure{
        overflow:hidden;
        border-radius:24px;

        img{
            transition: 0.3s;
        }
    }
}
.schoolitem:hover{
    .wp-block-kadence-column .kt-inside-inner-col:after{
        right:-10px;
    }

    figure{
        img{
            transform: scale(1.1);
        }
    }
}

/* stappen: pijltje rechtsboven */
.steps-pattern-step {
    .wp-block-kadence-column .kt-inside-inner-col{
        &:after{
            content:'';
            background-image:url('../images/arrow.svg');
            background-repeat: no-repeat;
            background-size:12px 12px;
            background-position: center;
            width:32px;
            height:32px;
            position: absolute;
            right: 0;
            top:-3px;
            border-radius: 8px;
            background-color: #005c74;
            transition: 0.3s;
        }
    }
}
.steps-pattern-step:hover{
    .wp-block-kadence-column .kt-inside-inner-col:after{
        right:-10px;
    }
}

/* hero met text-reveal */
.hero-pattern-text-reveal p{
    font-size:16px;
}

/* onderwijsaanbod */
.ptrn-onderwijsaanbod.ptrn-onderwijsaanbod h4,
.ptrn-onderwijsaanbod.ptrn-onderwijsaanbod h3{
    font-style: normal;
    font-size:32px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.64px;
    margin-bottom:40px;
}

@media (max-width: 782px) {
    .ptrn-onderwijsaanbod.ptrn-onderwijsaanbod h4,
    .ptrn-onderwijsaanbod.ptrn-onderwijsaanbod h3 {
        font-size: 22px;
        letter-spacing: -0.44px;
        margin-bottom:16px;
    }
}

/* footer */
@media(max-width:1024px){
    .site-footer-middle-section-4 .kt-row-column-wrap{
        row-gap:0 !important;
    }
}
