/* ==========================================================================
   Cyber Future Event 2027
   Loaded on top of base.css, only for the Cyber Future Event page template.
   ========================================================================== */

:root {
    --cfe-bg: #00071B;
    --cfe-blue: #009DFF;
    --cfe-royal: #5080E9;
    --cfe-yellow: #FFD900;
    --cfe-ink: #092E3F;
    --cfe-ink-soft: #062234;
    --cfe-chip: #F5F5F5;
}

body.page-template-cyber-future-event {
    background: var(--cfe-bg);
}

/* base.css fades the lower half of the page towards --dark; the 2027 design
   keeps one flat background colour throughout. */
body.page-template-cyber-future-event:after {
    display: none;
}

body.page-template-cyber-future-event .site-header {
    background: var(--cfe-bg);
}

body.page-template-cyber-future-event .section {
    margin: 4.5rem 0;
}

@media (min-width: 768px) {
    body.page-template-cyber-future-event .section {
        margin: 7rem 0;
    }
}

.cfe {
    position: relative;
    overflow: hidden;
}

/* Radial light burst from the design, used as a soft backdrop. */
.cfe:before,
.cfe:after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1600px;
    height: 1870px;
    max-width: 180vw;
    transform: translateX(-54%);
    background: url(../img/cfe/cfe27-rays.png) no-repeat center / contain;
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}

.cfe:before {
    top: -320px;
}

.cfe:after {
    bottom: -180px;
    opacity: .75;
}

.cfe > * {
    position: relative;
    z-index: 2;
}


/* --------------------------------------------------------------------------
   Headings
   -------------------------------------------------------------------------- */

.cfe-heading {
    color: var(--cfe-blue);
    font-size: 2.75rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .cfe-heading {
        font-size: 4.25rem;
    }
}

.cfe-heading-royal {
    color: var(--cfe-royal);
}

.cfe-heading-dark {
    color: #08222E;
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.cfe .btn-pill {
    border-radius: 32px;
    height: auto;
    padding: 18px 36px;
    font-size: 1.0625rem;
    justify-content: center;
}

/* The hero call to action is the primary one on the page, so it is a size up
   from the repeats further down. It only grows from 992px, below that the
   label would start wrapping. */
.cfe .btn-pill-lg {
    padding: 20px 40px;
    font-size: 1.125rem;
}

@media (min-width: 992px) {
    .cfe .btn-pill-lg {
        padding: 24px 52px;
        font-size: 1.375rem;
        border-radius: 40px;
    }
}

.cfe .btn-blue:not(:hover) {
    background: var(--cfe-royal);
    color: #fff;
}


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.cfe .hero-event {
    padding-bottom: 0;
}

.cfe .event-nav {
    background: var(--cfe-royal);
    border-radius: 32px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 48px;
    transform: none;
}

@media (min-width: 768px) {
    .cfe .event-nav {
        margin: 0 auto 64px;
        transform: none;
    }
}

.cfe .event-nav ul > li > a {
    color: #fff;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.cfe .event-nav ul > li > a:hover {
    border-bottom-color: var(--cfe-yellow);
}

/* base.css stretches the image to the column height; here the column has to
   grow around the image, the brand logos and the button instead. */
.cfe .hero-event .event-image {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
}

.cfe .hero-event .event-image:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 7, 27, .35);
    z-index: 2;
}

.cfe .hero-event .event-image .event-logo {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
}

.cfe .hero-event .event-image .event-logo img {
    width: 100%;
    max-width: none;
}

/* --------------------------------------------------------------------------
   Hero aftermovie
   -------------------------------------------------------------------------- */

.cfe .event-video video {
    display: block;
}

/* The scrim over the still is there to make the wordmark overlay readable;
   without that overlay the film only needs a hint of it to sit in the dark
   page. */
.cfe .hero-event .event-video:after {
    background: rgba(0, 7, 27, .15);
}

/* The film opens and closes on its own Cyber Future Event card, and that same
   card is the poster, so the wordmark overlay would sit on top of a second
   logotype. Dropping this rule brings the overlay back if the film is ever
   swapped for one without a title card. */
.cfe .event-video .event-logo {
    display: none;
}

.cfe .event-video__controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.cfe .event-video__controls button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 0;
    border-radius: 24px;
    background: rgba(0, 7, 27, .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}

.cfe .event-video__controls button:hover,
.cfe .event-video__controls button:focus-visible {
    background: var(--cfe-yellow);
    color: var(--cfe-bg);
}

/* The play control is only there for the cases where the muted autoplay did
   not start, so it steps aside as soon as the video runs. */
.cfe .event-video.is-playing .event-video__play {
    display: none;
}

@media (min-width: 992px) {
    .cfe .event-video__controls {
        right: 24px;
        bottom: 24px;
    }
}

@media (max-width: 575.98px) {
    .cfe .event-video__controls button {
        padding: 8px 12px;
        font-size: .8125rem;
    }
}

.event-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin-top: 32px;
}

.event-brands__pinewood {
    width: auto;
    height: 34px;
}

.event-brands__eightfence {
    width: auto;
    height: 40px;
}

.event-image-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.cfe-date {
    color: var(--cfe-royal);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .cfe-date {
        font-size: 2.5rem;
    }
}

.cfe-claim {
    font-family: 'AtypBLDisplay', sans-serif;
    font-size: 1.375rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.event-facts {
    background: var(--cfe-royal);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 32px 0 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
}

.event-facts dt {
    font-weight: 700;
}

.event-facts dd {
    margin: 0;
}

.event-facts-note {
    margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   Wat kun je dit jaar verwachten?
   -------------------------------------------------------------------------- */

.cfe .event-info-box {
    background: var(--cfe-blue);
    color: var(--cfe-ink-soft);
    border-radius: 24px;
    height: 100%;
}

.cfe .event-info-box h3 {
    color: var(--cfe-ink-soft);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* The icon bullet comes from base.css. A two column grid keeps it next to the
   title while the body text lines up underneath that title. */
.cfe .event-info-box ul > li {
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 21px;
    font-size: 1rem;
    margin-bottom: 24px;
}

.cfe .event-info-box ul > li:before {
    width: 22px;
    height: 22px;
    background-size: 22px 22px;
    margin: 5px 0 0;
}

.cfe .event-info-box ul > li strong,
.cfe .event-info-box ul > li span {
    grid-column: 2;
    display: block;
}

.cfe .event-info-box ul > li strong {
    margin-bottom: 2px;
}

.cfe .event-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 992px) {
    .cfe .event-tags {
        justify-content: flex-end;
        row-gap: 24px;
        margin-top: 0;
        /* Cancel the column padding: the chips need the full column width to
           fit two of them on the first line, the way the design shows them. */
        margin-left: -30px;
        margin-right: -30px;
    }

    /* The design staggers the chips rather than stacking them flush: the first
       two share a line with the left one dropped, and the wider chips below
       alternate between the left and the right edge of the column. */
    .cfe .event-tags .event-tag:first-child {
        margin-top: 33px;
    }

    .cfe .event-tags .event-tag:nth-child(3),
    .cfe .event-tags .event-tag:nth-child(5) {
        margin-right: auto;
    }

    .cfe .event-tags .event-tag:last-child {
        margin-top: 32px;
        margin-right: 16px;
    }
}

.cfe .event-tag {
    background: var(--cfe-chip);
    color: var(--cfe-bg);
    font-family: 'AtypBLDisplay', sans-serif;
    font-weight: 500;
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 0;
    line-height: 1.15;
}

.cfe .event-tag-lg {
    font-size: 2.5rem;
}

.cfe .event-tag-sm {
    font-size: 1.5rem;
}

@media (min-width: 1200px) {
    .cfe .event-tag-lg {
        font-size: 3.5rem;
    }

    .cfe .event-tag-sm {
        font-size: 1.875rem;
    }
}


/* --------------------------------------------------------------------------
   Programma
   -------------------------------------------------------------------------- */

.cfe #agenda:after {
    display: none;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-row {
    background: var(--cfe-blue);
    border-radius: 32px;
    padding: 20px 24px;
}

@media (min-width: 768px) {
    .agenda-row {
        padding: 26px 40px;
    }
}

.agenda-row .time {
    color: var(--cfe-bg);
    font-family: 'AtypBLDisplay', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
}

.agenda-row h4 {
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Stacked up to the lg breakpoint, because three columns leave the time
   wrapping on a tablet: give the time, title and detail some air. */
@media (max-width: 991.98px) {
    .agenda-row .row > [class*="col"] + [class*="col"] {
        margin-top: 8px;
    }
}

.agenda-row .lead {
    font-size: 1rem;
    margin-bottom: 0;
}

.agenda-row-breakout {
    padding-top: 26px;
    padding-bottom: 26px;
}

.agenda-track + .agenda-track {
    margin-top: 20px;
}

.agenda-track h5 {
    font-size: 1rem;
    margin-bottom: .5rem;
}

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

.agenda-track ul > li {
    margin-bottom: 10px;
    font-size: .9375rem;
    line-height: 1.5;
}

.agenda-track ul > li:last-child {
    margin-bottom: 0;
}

.agenda-track__time {
    font-weight: 700;
    margin-right: 6px;
}

.agenda-track em {
    font-style: normal;
    opacity: .8;
}


/* --------------------------------------------------------------------------
   Sprekers
   -------------------------------------------------------------------------- */

.speakers-placeholder {
    background: #fff;
    border-radius: 32px;
    min-height: 160px;
    justify-content: center;
}

.speakers-placeholder .box__content {
    justify-content: center;
    text-align: center;
}

.speakers-placeholder p {
    color: var(--cfe-ink);
    font-family: 'AtypBLDisplay', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.speakers-placeholder p + p {
    font-family: inherit;
    font-size: 1rem;
    color: rgba(9, 46, 63, .7);
    margin-top: 8px;
}

@media (min-width: 768px) {
    .speakers-placeholder p {
        font-size: 2rem;
    }
}


/* --------------------------------------------------------------------------
   Schrijf je snel in! teaser
   -------------------------------------------------------------------------- */

.signup-teaser-box {
    background: var(--cfe-yellow);
    color: var(--cfe-ink);
    border-radius: 25px;
}

.signup-teaser-box h3 {
    color: var(--cfe-ink);
    font-size: 2rem;
}

.signup-teaser-image {
    height: 100%;
    min-height: 260px;
    border-radius: 25px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .signup-teaser-image {
        min-height: 420px;
    }
}


/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */

.cfe .event-partners .box {
    border-radius: 34px;
    min-height: 180px;
    justify-content: center;
}

.cfe .event-partners img {
    max-height: 90px;
    max-width: 70%;
}


/* --------------------------------------------------------------------------
   Overige informatie
   -------------------------------------------------------------------------- */

.cfe .box-event-extra {
    background: #fff;
    color: var(--cfe-ink);
    border-radius: 34px;
}

.cfe .box-event-extra h4 {
    color: var(--cfe-ink);
    font-size: 1.5rem;
}

.cfe .box-event-extra .row > [class*="col"] {
    padding-bottom: 32px;
}


/* --------------------------------------------------------------------------
   Impressie
   -------------------------------------------------------------------------- */

.event-impression {
    height: 300px;
    border: 1px solid var(--cfe-royal);
    border-radius: 21px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .event-impression {
        height: 420px;
    }
}


/* --------------------------------------------------------------------------
   Inschrijfformulier
   -------------------------------------------------------------------------- */

.cfe .signup-box {
    background: var(--cfe-yellow);
    color: var(--cfe-ink);
    border-radius: 21px;
}

.cfe .signup-box h2 {
    color: var(--cfe-ink);
}

.cfe .signup-box .gform_wrapper.gravity-theme .gform_footer {
    margin-top: 32px;
    padding: 0;
}

/* The shared yellow button would disappear on the yellow block. */
.cfe .signup-box .gform_wrapper.gravity-theme .gform_footer .btn,
.cfe .signup-box .gform_wrapper.gravity-theme .gform_footer button {
    background: var(--cfe-royal);
    color: #fff;
    border-radius: 32px;
    height: auto;
    padding: 18px 36px;
}

.cfe .signup-box .gform_wrapper.gravity-theme .gform_footer button:hover {
    background: var(--cfe-ink);
    color: #fff;
}

.cfe .signup-box .gfield_label {
    color: var(--cfe-ink);
}


/* --------------------------------------------------------------------------
   Afsluitende merkblok
   -------------------------------------------------------------------------- */

/* The shared site footer is left out on this template (footer-cfe.php), so the
   closing wordmark carries the bottom spacing of the page itself. */
.cfe .event-outro {
    text-align: center;
    padding: 40px 0 72px;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .cfe .event-outro {
        padding-bottom: 112px;
    }
}

.event-outro__logo img {
    width: 100%;
    max-width: 720px;
}

.event-outro__year {
    display: block;
    color: var(--cfe-royal);
    font-family: 'AtypBLDisplay', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: .2em;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .event-outro__year {
        font-size: 3rem;
    }
}
