@font-face {
    font-family: '27 Sans';
    src: url('fonts/27_sans-light-webfont.woff') format('woff'),
    url('fonts/27_sans-regular-webfont.woff') format('woff'),
    url('fonts/27Sans-Bold.woff') format('woff'),
    url('fonts/27Sans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "27 Sans", serif;
}

.span-2 {
    grid-row: span 2;
}

.span-3 {
    grid-row: span 3;
}

h1 {
    font-size: 3rem;
    color: #CE0303;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: #CE0303;
    border-radius: 2px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 80px;
    width: auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.conf-date {
    font-weight: 900;
    font-size: 1.5rem;
    color: #CE0303;
    border-left: 3px solid #CE0303;
    padding-left: 20px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.nav-links li {
    transition: transform 0.2s ease;
}

.nav-links li:hover {
    transform: translateY(-2px);
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #CE0303;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #CE0303;
}

.nav-links a:hover::after {
    width: 100%;
}

.search-container {
    width: 250px;
    margin: 0;
}

#siteSearch {
    padding: 6px 15px;
    width: 80%;
    font-size: 0.9rem;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

#siteSearch:focus {
    border-color: #CE0303;
}

.hidden-item {
    display: none !important;
}

.section {
    padding: 60px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #F0ECE4;
}

#agenda {
    padding-top: 120px;
}

.agenda-container {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 15px;
    max-width: 1000px;
    width: 90%;
    margin: 30px auto;
}

.agenda-container.is-searching {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.is-searching .time-slot {
    border: none;
    background: none;
    justify-content: flex-start;
    font-size: 1.2rem;
    color: #CE0303;
    margin-top: 20px;
}

.is-searching .time-slot::after {
    content: none;
}

.is-searching .room-label {
    display: inline;
}

.agenda-header {
    background-color: #CE0303;
    color: white;
    padding: 15px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    position: sticky;
    top: 100px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.time-slot {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 5px;
    padding-right: 15px;
    border-right: 2px solid #ccc;
    position: relative;
}

.time-slot::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 7px;
    width: 10px;
    height: 10px;
    background: #CE0303;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
}

.session-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #CE0303;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);

    transition: all 0.3s ease;
    cursor: pointer;
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #d00000;
}

.session-card p {
    margin-top: 10px;
}

a.session-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.click-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #CE0303;
    opacity: 0.7;
}

.session-card:hover .click-hint {
    opacity: 1;
    text-decoration: underline;
}

.empty-card {
    background-color: rgba(255, 255, 255, 0.3);
    border-left: 5px solid transparent;
    box-shadow: none;
    cursor: default;
}

.agenda-list {
    margin: 10px 0 10px 20px;
}

.agenda-list li::marker {
    color: #CE0303;
}

.agenda-list li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 5px;
    line-height: 1.4;
}

.facilitator {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.full-width {
    grid-column: 2 / 4;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.break {
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #ccc;
    background-color: #E5F2F6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-style: italic;
}

.room-label {
    display: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.room-lg .room-label {
    color: darkviolet;
}

.room-r .room-label {
    color: darkolivegreen;
}

#talks {
    padding-top: 10px;
}

.talks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 90%;
    max-width: 1200px;
}

.speaker-card {
    border-top: 5px solid #CE0303;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 10px;
    scroll-margin-top: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.speaker-card:target {
    border: 4px solid #CE0303;
    animation: highlight 5s ease-out;
}

@keyframes highlight {
    0% { background-color: #feebeb; }
    100% { background-color: white; }
}

.speaker-info h2 {
    color: #444;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.speaker-info h3 {
    color: #CE0303;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.speaker-info h4 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speaker-info p {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
}

.speaker-bio {
    line-height: 1.6;
    color: #444;
}

.agenda-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 8px;
    margin-top: auto;
    display: block;
    padding-top: 15px;
}

.read-more-check {
    display: none;
}

.read-more-content {
    display: none;
}

.read-more-btn {
    display: inline-block;
    color: #CE0303;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.read-more-btn::before {
    content: 'Les mer';
}

.read-more-check:checked ~ .speaker-bio .read-more-content {
    display: inline;
}

.read-more-check:checked ~ .read-more-btn::before {
    content: 'Vis mindre';
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #CE0303;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.back-to-top:hover {
    transform: scale(1.1);
    background-color: #d00000;
}

.site-footer {
    background-color: #ffffff;
    padding: 30px 20px;
    border-top: 1px solid #ccc;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-info a {
    color: #CE0303;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-links a {
    color: #999;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

@media (max-width: 768px) {

    h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .navbar {
        padding: 15px 0;
        flex-direction: column;
        gap: 10px;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .logo-group {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .logo-img {
        height: 50px;
    }

    .conf-date {
        border-left: none;
        padding-left: 0;
        font-size: 1.2rem;
    }

    .nav-right {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .nav-links {
        flex-direction: row;
        gap: 25px;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .search-container {
        width: 100%;
        max-width: 300px;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    #siteSearch {
        width: 100%;

        text-align: center;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    #agenda {
        padding-top: 210px;
    }

    .agenda-container {
        display: block;
        width: auto;
        max-width: 100%;
        padding: 0;
        margin-top: 0;
    }

    .time-slot {
        justify-content: center;
        text-align: center;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 10px;
        font-size: 1.1rem;
        color: #CE0303;
        border: none;
        background: none;
        padding: 0;
    }

    .time-slot::after {
        content: none;
    }

    .is-searching .time-slot {
        justify-content: center;
    }

    .session-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .full-width {
        grid-column: 1;
    }

    .break {
        align-items: center;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .empty-card {
        display: none;
    }

    .agenda-header.room, .agenda-header.time {
        display: none;
    }

    .room-label {
        display: inline-block;
    }

    #talks {
        padding-top: 80px;
    }

    .talks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .site-footer {
        padding: 25px 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}