@font-face {
    font-family: 'Folio';
    src: url('FolioStd-Medium.woff2') format('woff2'),
        url('FolioStd-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: normal;
    font-style: normal;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    font-size: 48px;
}

body {
    font-family: 'Folio';
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #FF0000;
    background-color: #EBEBEB;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {

    flex-grow: 1;
    padding: 0.5rem 0.25rem;
    max-width: 1920px;
    margin: 0 auto;
}

footer {
    margin-top: auto; 
    padding: 0 0.25rem 0.5rem 0.25rem;
    max-width: 1920px;
    width: 100%; /* Ensures footer spans the full viewport width */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr 0.4fr;
    align-items: end;
    font-size: 14px;
    line-height: 0;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}



a {
    color: #FF0000;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Menu Styling */

.sub-menu {
    margin-top: 0.1rem;
}

.main-menu ul,
.sub-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.main-menu li,
.sub-menu li {
    margin-right: 0.4rem;
}

.main-menu li:last-child,
.sub-menu li:last-child {
    margin-right: 0;
}

.main-menu a,
.sub-menu a {
    text-decoration: none;
    display: inline-block;
}


.main-menu a:hover,
.main-menu a.active,
.sub-menu a:hover,
.sub-menu a.active {
    height: 1.1em;
    border-bottom: 0.25rem solid #FF0000;
}

a.active {
    height: 1.1em;
    border-bottom: 0.25rem solid #FF0000;
}


/* Content Styling */

h2,
h3 {
    text-align: center;
}

h3,
p,
a.ical-link,
a.external-link {
    font-size: 26px;
}

.small p {
    font-size: 14px;
}

p+p {
    margin-top: 0.35rem;
}

.mt5 {
    margin-top: 0.25rem;
}

a.ical-link,
a.external-link {
    height: 1.4em;
    display: inline-block;
}

a.external-link {
    margin-bottom: 0.25rem;
}

.main-text {
    margin-top: 0.5rem;
}

.interview-content {
    margin-top: 0.5rem;
}

.interview-content strong {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 0.15rem;
}

.interview-content p {
    margin-bottom: 0.25rem;
}

.interview-abstract {
    display: grid;
    grid-template-columns: 1fr 3fr;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.conversations-intro {
    max-width: 80%;
    margin: 0 auto;
    padding-top: 0.5rem;
}

.text-block {
    max-width: 80%;
    margin: 0 auto;
}

.images {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.images,
.image-block {
    margin-left: calc(-50vw + 0.25rem);
    margin-right: calc(-50vw + 0.25rem);
    position: relative;
    left: 50%;
    right: 50%;
    width: calc(100vw - 0.5rem);
    box-sizing: border-box;
    /* Ensures padding is within the width */
}




.images figure {
    width: 100%;
}

.images:only-child figure {
    width: 100%;
}

.images figure:nth-child(1):nth-last-child(2),
.images figure:nth-child(2):nth-last-child(1) {
    width: calc(50% - 0.1rem);
}

.images figure:nth-child(1):nth-last-child(2) {
    margin-right: 0.2rem;
}

figure img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: cover;
}

figcaption {
    margin-top: 0.15rem;
    font-size: 14px;
}

.interview-content figcaption {
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

section {
    margin-top: 0.5rem;
}

/* Home */

.home .main-menu {
    position: fixed;
    width: 100%;
    padding: 0.5rem 0.25rem;
    text-align: center;
    z-index: 2;
}

.intro-text {
    position: absolute;
    bottom: 0.75rem;
    left: 0.25rem;
    z-index: 2;
}

/* Slider styles */
.slider {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    height: 100vh;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styling for the caption */
.slider .caption {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    font-size: 14px;
    width: 22%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styling for the slide counter */
.slider-info {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    font-size: 14px;
}

/* Split the slider into left and right halves for cursor control */
.slider::before,
.slider::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 2;

}

.slider::before {
    left: 0;
    cursor: w-resize;
    /* West-resize cursor for the left half */
}

.slider::after {
    right: 0;
    cursor: e-resize;
    /* East-resize cursor for the right half */
}

/* Timetable Styling */

.session {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.session-left div,
.session-right div {
    margin-bottom: 0.25rem;
}

.session-right div.session-type {
    margin-bottom: 0;
}

.session-right {
    text-align: right;
}

.session-description {
    font-size: 26px;
}

.session-additional {
    font-size: 14px;
}


/* Registration Styling */

form {
    max-width: 80%;
    margin: 0 auto;
    padding-top: 0.5rem;
}

::placeholder {
    color: #FF0000;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #FF0000;
}

input[type="text"],
input[type="email"] {
    font-family: inherit;
    color: #FF0000;
    width: 100%;
    padding: 0.25rem;
    margin: 0;
    border: none;
    background-color: #FFFFFF;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    background-color: #FFFFFF;
}

button[type="submit"] {
    display: block;
    font-family: inherit;
    padding: 0;
    height: 1.7em;
    background: none;
    color: #FF0000;
    border: none;
    cursor: pointer;
    text-align: center;
    margin: 0 auto;
    padding-top: 0.5rem;
    border-bottom: 0.25rem solid #FF0000;
}





@media only screen and (max-width: 1140px) {
    html {
        font-size: 34px;
    }
}

center {
    margin-top: 0.25rem;
}

/* Image loading */

.lazy-image {
    position: relative;
    top: 25px;
    opacity: 0;
}

.lazy-image.loaded {
    top: 0;
    opacity: 1;
    transition: top .5s, opacity .5s;
}



/* Mobile Styles */

.mobile-site-title {
    display: none;
}

.mobile-header {
    display: none;
}

.mobile-menu {
    display: none;
}

.mobile-title {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.burger-menu {
    width: 60px;
    cursor: pointer;
    position: fixed;
    right: 17px;
    top: 11px;
    z-index: 10000;
    /* Ensure the burger menu is above the mobile menu */
}

.burger-menu .bar {
    height: 3px;
    background-color: #FF0000;
    margin: 7px 0;
}

.burger-menu .top.open {
    transform: rotate(25deg) translate(4px, 9px);
}

.burger-menu .middle.open {
    opacity: 1;
}

.burger-menu .bottom.open {
    transform: rotate(-25deg) translate(4px, -9px);
}

footer.mobile-footer {
    display: none;
}

/* Hide desktop menu on mobile */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .mobile-site-title {
        position: fixed;
        display: block;
        text-align: center;
        width: 40vw;
        left: 30vw;
        top: 0.5rem;
        z-index: 4;
    }

    .mobile-header {
        display: flex;
        position: relative;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        /* Ensure the menu stays fixed within the viewport */
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: #EBEBEB;
        padding: 0.5rem;
        z-index: 5;
        overflow-y: auto;
    }


    .mobile-menu.open {
        display: block;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }


    .mobile-menu a,
    .mobile-menu a.active,
    .mobile-menu a:hover,
    .mobile-menu a.active:hover {
        display: inline-block;
        height: 1em;
        border-bottom: 4px solid #FF0000;
        margin-top: 20px;
    }

    .mobile-sub-menu a,
    .mobile-sub-menu a.active,
    .mobile-sub-menu a:hover,
    .mobile-sub-menu a.active:hover {
        display: inline-block;
        height: 1em;
        border-bottom: none;
        margin-top: 0 !important;
        margin-bottom: 5px;
    }

    .mobile-menu a.hbk-logo,
    .in-menu-header a {
        height: auto;
        border-bottom: none;
    }

    .in-menu-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .sub-menu {
        display: none;
    }

    .mobile-sub-menu {
        display: none;
        margin-top: 20px;
    }

    .mobile-sub-menu.open {
        display: block;
    }

    .hbk-logo {
        display: block;
        position: fixed;
        bottom: 0.5rem;
        left: 37vw;
        width: 26vw;
    }

    footer.desktop-footer {
        display: none;
    }

    footer.mobile-footer {
        display: block;
        padding: 2rem 0.25rem 0.5rem 0.25rem;
        margin: 0 auto;
        line-height: 1;
        text-align: center;
    }

    footer.mobile-footer a {
        display: block;
        margin-top: 5px;
    }

    .content-hbk-logo {
        display: block;
        width: 200px;
        margin: 0 auto;
        padding-bottom: 20px;
    }

    .timetable h2 {
        text-decoration: underline;
        text-decoration-thickness: 4px;
        text-underline-offset: 4px;
    }

    a.ical-link,
    a.external-link {
        height: auto;
        text-decoration: underline;
        text-decoration-thickness: 4px;
        text-underline-offset: 4px;
        border-bottom: none;
    }

    /* Timetable */

    .session {
        display: grid;
        grid-template-columns: 1fr;
    }

    .session-name {
        text-align: center;
    }

    .session-right {
        text-align: left;
        order: 1;
    }

    .session-left {
        order: 2;
    }
}

/* Disable scrolling on the main page when the mobile menu is open */
body.menu-open {
    overflow: hidden;
    /* Prevent scrolling on the main page */
}