:root {
    --thin-font: 'Volvo Centrum Light', sans-serif;
    --main-font: 'Volvo Centrum Medium', sans-serif;
    --player-top-padding-live-state: 4.5rem;
    --x-padding-before-state: 4rem;
    --x-padding-before-state-device: 2rem;
}

* {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: #FFFFFF;
    overflow: overlay;
    font-weight: normal;
}

h1 {
    font-family: var(--main-font);
    font-size: 1.1rem;
    font-weight: 100;
}

/* Pages Render Wrapper */
.pages-render-wrapper {
    opacity: 1;
    transition-delay: 0.5s;
    transition-property: opacity;
    transition-duration: 0.5s;
    width: 70%;
    margin: 0 auto;
}

/* Before Header */
#before-header {
    position: absolute;
    top: 2.25em;
    height: .5em;
    justify-content: flex-start;
    align-items: center;
    z-index: 1;
}

header {
    background-color: white;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    /* Changed from flex-start to space-between */
    align-items: center;
    padding: 10px 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    height: 70px;
    /* Ensure the header has a fixed height */
}

header img {
    height: 8px;
    /* margin-left: 260px; */
    /* Changed from 40px to 8px as per requirement */
}

/* Main Content */
main {
    position: relative;
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 2em;
}

.main-live {
    align-items: flex-start !important;
}

/* Content Wrapper */
#content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 1;
    z-index: 2;
    padding: var(--x-padding-before-state);
    opacity: 1;
    transition: opacity 1s;
    background: url(images/Rectangle3472701.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#content-wrapper h2,
#content-wrapper h1,
#content-wrapper #main-bottom-text-wrapper .button {
    z-index: 2;
}

.main-banner {
    position: absolute;
    left: 0;
    bottom: -3rem;
    width: 200%;
    z-index: 1;
}

.welcome-text {
    max-width: 555px;
    margin-bottom: 28px;
    font-weight: normal;
}

/* Video Wrapper */
#video-wrapper {
    padding-top: var(--player-top-padding-live-state);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#my-video {
    width: 100%;
    height: 100%;
}

#player {
    width: 70%;
    position: relative;
}

#player-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: flex-end;
    padding-right: 3.5rem;
    padding-top: 1.5rem;
}

.button-header {
    background-color: #4241416e !important;
    color: white !important;
}

.button-header img {
    fill: white;
}

/* Player Footer */
#player-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-bottom: #9b969449 1px solid;
    margin-top: 1em;
    transition: width .5s;
}

#player-footer img {
    width: 160px;
    margin: 2rem 0;
}

#player-footer-left {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

#player-footer-left h1 {
    font-size: 2.5rem;
    font-family: var(--main-font);
    font-weight: 100;
    letter-spacing: -.3px;
    margin-bottom: 1.5rem;
}

#player-footer-left p {
    color: #9B9694;
    font-family: 'Volvo Centrum Light', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5em 0;
    width: auto !important;   /* override the 100% */
    height: auto;             /* (if you don’t need full height) */
  }

.presskit,
#languages {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    font-family: var(--main-font);
    background-color: #F6F7F8;
    color: #1E1E1E;
    border: none;
    border-radius: 8px;
    padding: 20px 30px;
    cursor: pointer;
    transition: .3s;
}

.button:hover {
    background-color: #E9E9E9;
}

a {
    text-decoration: none;
}

.button img {
    object-fit: contain;
    margin: 0 5px;
}

#main-bottom-text-wrapper {
    font-size: .7em;
    font-family: var(--thin-font);
    color: rgba(255, 255, 255, 0.729);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

#main-bottom-text-wrapper span {
    font-family: var(--main-font);
}

#main-bottom-text-wrapper button {
    background-color: white;
    border: none;
    padding: 1em 1.5em;
    border-radius: 50px;
    font-weight: 100;
}

/* COUNTDOWN STYLE */
#countdown {
    overflow: hidden;
}

#time-wrapper {
    color: rgba(255, 255, 255, 0.687);
    align-items: center;
    justify-content: center;
    display: flex;
    position: absolute;
    height: 100%;
    inset: 0;
    z-index: 1;
}

#timebox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: var(--main-font);
    white-space: nowrap;
    font-size: 3.3rem;
    letter-spacing: -3px;
    color: #D19996 !important;
}

.time_number {
    padding: 0;
}

/* ***************** */

/* SCROLL BAR DESIGN */

/* width */
::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(71, 71, 71, 0.655);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #5d5d5d;
}

/* ************** */

#agenda-wrapper {
    width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid #9b969449;
    padding-top: 3rem;
}

#card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3em;
}

.placeholder {
    width: 100%;
    min-height: 18rem; /* or whatever height you prefer */
    /* the rest of your existing rules... */
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    border-radius: 16px;
    color: white;
    font-size: 1.4rem;
    background: #575757;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
    font-weight: 100;
    gap: 2rem;
    font-size: 1.2rem;
  }


  #agenda-header {
    font-family: var(--main-font);
    width: 100%;
    display: flex;
    align-items: center;       
    justify-content: space-between; /* <--- THIS DOES IT */
    gap: 2rem;                     /* Space between "Event schedule" and the button */
  }
  
  /* #btn-wrapper can remain as is, just ensure it isn't forced to 100% width */
  #btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;   /* or flex-start if you prefer, but not crucial here */
    margin: 1.5em 0;
    width: auto !important; 
    height: auto;  
  }
  
#agenda-header h3 {
    font-weight: 100;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#agenda-header h4 {
    font-weight: 100;
    font-size: 20px;
    margin-bottom: 1rem;
}

/* **** Updated Styles for #agenda-header-1 **** */
#agenda-header-1 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#agenda-header-1 h3 {
    font-weight: 100;
    font-size: 48px;
    margin-bottom: 0;
    /* Removed bottom margin */
    /* Removed display: flex; align-items: center; gap: 1rem; */
}

#agenda-header-1 p {
    font-family: var(--thin-font);
    font-size: 18px;
    /* Adjust as needed */
    color: #9B9694;
    /* Optional: Adjust text color */
    margin: 0;
    /* Remove any default margins */
}

/* AGENDA CARDS DESIGN */
.agenda-card {
    font-family: var(--thin-font);
    color: #9A9693;
    width: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 1.7rem 0;
    border-top: 1px solid #dedede;

}

#card-wrapper> :first-child>.agenda-card {
    border-top: none;
}

.border-bottom {
    border-bottom: 1px solid #dedede;
}

.active-card {
    box-shadow: -16px -7px 13px 0px #00000036;
    border-top: 0;
    border-radius: 10px 0 0 0 !important;
    padding-left: 10px !important;
}

.agenda-card-wrapper {
    position: relative;
    width: 100%;
}

.agenda-card-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-47%);
    height: 50%;
    left: -2rem;
    width: 10px;
    background-color: #2A4F7E;
    transition: opacity .5s;
    opacity: 0;
}

.card-image {
    height: 100%;
    position: relative;
}

.card-image img {
    border-radius: 5px;
    object-fit: cover;
}

.agenda-time {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    font-size: 2.5rem;
    min-width: 210px;
    color: black;
    font-family: var(--main-font);
}

.agenda-title {
    color: #1E1E1E;
    font-size: 18px;
    margin-bottom: 5px;
}

.agenda-title,
.mobile-agenda-title {
    font-family: var(--main-font);
}

.agenda-text {
    font-size: 18px;
}

/* Agenda Info Layout */
.agenda-info-wrapper {
    display: flex;
    justify-content: space-between;
    /* Align left and right sections */
    width: 100%;
    gap: 1px;
    /* Further reduce the gap between the left and right sections */
}

/* Individual agenda information row */
.agenda-info.left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Ensure title and description are left-aligned */
    gap: 0.5px;
    /* Further reduce the gap between title and description */
}

.agenda-info.right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Ensure speaker and description are right-aligned */
    gap: 0.5px;
    /* Further reduce the gap between speaker and speaker description */
}

/* Speaker and Speaker Description */
.agenda-speaker {
    font-size: 12px;
    /* Adjust font size for speaker */
    font-weight: normal;
    /* Ensure it's not bold */
    color: #1E1E1E;
    /* Adjust color for speaker */
}

.agenda-speaker-description {
    font-size: 12px;
    /* Adjust font size for speaker description */
    font-weight: normal;
    /* Ensure it's not bold */
    color: #6C6C6C;
    /* Adjust color for speaker description */
}

/* Title and Description */
.agenda-title {
    font-size: 18px;
    /* Adjust font size for title */
    font-weight: normal;
    /* Ensure it's not bold */
    color: #1E1E1E;
    /* Keep title color */
}

.agenda-text {
    font-size: 18px;
    /* Adjust font size for description */
    color: #6C6C6C;
    /* Change color for description */
}

/* Mobile Layout */
@media (max-width: 767px) {
    .agenda-info-wrapper {
        flex-direction: column;
        /* Stack the items vertically on mobile */
        gap: 3px;
        /* Adjust gap for mobile */
    }

    .agenda-info.left,
    .agenda-info.right {
        align-items: flex-start;
        width: 100%;
    }

    .agenda-speaker,
    .agenda-speaker-description {
        text-align: left;
        /* Left align for mobile */
    }

    .agenda-text {
        margin-top: 0.2rem;
        font-size: 16px !important;
        /* Add margin between title and description */
    }

    .agenda-title {
        font-size: 16px !important;
        /* Force the font size change */
    }
    header img {
        height: 8px;
        margin-left: 10px;
        /* Changed from 40px to 8px as per requirement */
    }

}

.agenda-speaker {
    font-size: 12px;
    margin-left: 10px;
}

.agenda-speaker-wrapper,
.mobile-agenda-speaker-wrapper {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.agenda-speaker,
.agenda-speaker-description,
.mobile-agenda-speaker,
.mobile-agenda-speaker-description {
    display: block;
    margin: 0;
    /* Optional: Reset margin if needed */
    padding: 0;
    /* Optional: Reset padding if needed */
}

.agenda-speaker,
.agenda-speaker-description {
    text-align: right;
    /* Right-align the text */
    margin-top: 5px;
}

.agenda-speaker,
.mobile-agenda-speaker {
    color: #1E1E1E;
    font-size: 14px;
}

/* CARD MOBILE */
#card-wrapper> :first-child>.agenda-card-mobile {
    border-top: none;
}

.agenda-card-mobile {
    --card-mobile-text-size: 18px;
    background-color: white;
    color: #9A9693;
    font-family: var(--thin-font);
    padding: .9rem;
    padding-bottom: 1.8rem;
    padding-left: 0;
    gap: 0 !important;
    width: 100%;
    border-bottom: 1px solid #dedede;
    flex-direction: column;
}

.mobile-top-wrapper {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    margin-right: 10px;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.mobile-agenda-title {
    color: #1E1E1E;
}

.extra-card-height {
    height: 9rem !important;
}

.mobile-agenda-text,
.mobile-agenda-title {
    font-size: var(--card-mobile-text-size);
}

.mobile-card-image {
    max-width: 90px;
}

.mobile-card-image img {
    border-radius: 3px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .agenda-speaker {
        text-align: left;
        /* Override to left-align for mobile */
    }
}

.agenda-mobile-info-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.time-title-mobile-wrapper {
    width: 100%;
}

.mobile-agenda-time {
    font-size: 35px;
    font-family: var(--main-font);
    color: black;
}

/* FOOTER */
footer {
    width: 100%;
    margin: 0 auto;
}

#laptop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
    margin: 0 auto;
}

footer a {
    text-decoration: none;
    color: white;
}

#footer-mobile-text,
#footer-left h4 {
    font-size: .7rem;
    color: #1E1E1E;
    font-weight: 100;
    font-family: 'Volvo Centrum Light';
}

.social-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .2rem;
}

.facebook img {
    padding: .45rem;
}

.twitter {
    display: none !important;
}

.twitter img {
    padding: .45rem;
}

#footer-right {
    display: flex;
    align-items: center;
    width: 50%;
    justify-content: flex-end;
}

#footer-right-button {
    display: flex;
}

#footer-right-button .button {
    font-size: .7em;
    padding: 10px 20px;
}

.social-media {
    width: 2.1rem;
    height: 2.1rem;
    background-color: #F6F7F8;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: .75rem;
    border-radius: 10px;
    transition: .3s;
    padding: .1rem;
}

.social-media:hover {
    background-color: #E9E9E9;
}

#mobile-footer {
    margin-top: 2rem;
}

#footer-btn-mobile button {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#social-media-footer {
    width: 100%;
    justify-content: center;
    display: flex;
    margin-top: 2rem;
}

#footer-mobile-text {
    text-align: center;
    margin: 2rem 0;
    display: grid;
}

.br-mo {
    display: none;
}

#mobile-footer,
.agenda-card-mobile {
    display: none;
}

.show-main-countdown {
    height: 81vh;
}

#mobile-footer .social-media {
    width: 2.7rem !important;
    height: 2.7rem !important;
    padding: .2rem;
}

button#ot-sdk-btn:hover {
    background-color: transparent !important;
    color: black !important;
}

.ot-sdk-show-settings,
.optanon-show-settings {
    color: transparent !important;
    padding: 0 !important;
    line-height: unset;
    font-size: .7rem !important;
    border: none !important;
    background: transparent;
    font-family: 'Volvo Centrum Light';
    text-decoration: underline;
    cursor: pointer;
}

.cookie-wrapper {
    display: none;
    position: relative;
    width: auto;
}

/* ************** */

/* Live Icon */
.live-icon {
    font-size: 12px;
    position: absolute;
    z-index: 5;
    left: 1.5rem;
    top: 1.5rem;
    display: none;
    align-items: center;
    gap: 5px;
    background: #CB4C48;
    color: white;
    padding: 3px 13px;
    border-radius: 20px;
    font-family: var(--thin-font);
    font-weight: 100;
}

/* Media Queries */
@media screen and (min-width:800px) {
    .main-banner {
        width: 100%;
    }
}

@media screen and (min-width:1161px) {

    #btn-wrapper,
    #player-footer,
    #player-footer-left {
        flex-direction: row;
    }

    #player-footer-left p,
    #player-footer-left h1 {
        margin-bottom: 0;
    }

    #player-footer-left h1 {
        font-size: 3.4rem;
    }

    #player-footer {
        align-items: center;
        justify-content: space-between;
        padding-bottom: 2rem;
    }

    #player-footer-left {
        gap: 3rem;
    }

    .placeholder {
        font-size: 1.5rem;
    }

    .presskit,
    #languages,
    #btn-wrapper {
        width: unset;
    }

    .presskit {
        margin-right: 15px;
    }
}

@media screen and (min-width:1250px) {
    main {
        height: unset !important;
    }
}

@media screen and (min-width:1500px) {
    .main-banner {
        bottom: -7rem;
    }
}

@media screen and (min-width:1800px) {
    main {
        height: unset !important;
        padding: 21rem !important;
    }

    .main-banner {
        bottom: -13rem;
    }
}

@media screen and (min-width:2500px) {
    main {
        height: unset !important;
        padding: 27rem !important;
    }

    .main-banner {
        bottom: -21rem;
    }
}

@media screen and (min-width:3000px) {
    main {
        height: unset !important;
        padding: 32rem !important;
    }

    .main-banner {
        bottom: -26rem;
    }

    .agenda-speaker {
        text-align: left;
        /* Override to left-align for mobile */
    }
}

@media screen and (max-width:1160px) {
    #before-header {
        left: 1.5rem;
        top: 1.5rem;
    }

    .pages-render-wrapper {
        width: 100%;
        opacity: 1 !important;
    }

    .presskit {
        margin-bottom: 10px;
    }

    .button-dropdown {
        width: 100%;
    }

    .agenda-card-mobile {
        display: flex;
    }

    #laptop-footer,
    .agenda-card {
        display: none;
    }

    .agenda-title {
        font-size: 18px;
    }

    #mobile-footer {
        display: block;
    }

    #card-wrapper {
        margin-bottom: 2em;
    }

    .agenda-speaker {
        text-align: left;
        /* Override to left-align for mobile */
    }

    .agenda-card-wrapper::before {
        width: 7px;
    }

    .dropdown_menu li {
        color: white !important;
        background-color: #233043a6 !important;
        backdrop-filter: blur(5px);
        padding: 15px 20px !important;
        font-size: 19px !important;
    }

    .dropdown_menu li:hover {
        background-color: #233043a6 !important;
    }

    .layout-change {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: .7rem;
    }

    .cookie-dummy {
        left: 50% !important;
        transform: translateX(-50%);
    }
}

.display-none {
    display: none;
}

.layout-change {
    margin-right: 15px;
}

.layout-change-before {
    position: absolute;
    right: 0;
    top: 3rem;
}

@media screen and (max-width:600px) {
    #fullscreen_button {
        right: 16px;
    }

    .placeholder {
        height: 18rem;
    }

    #main-bottom-text-wrapper button {
        font-size: 1.1em;
    }

    .br-mo {
        display: unset !important;
    }

    #player-footer-left p {
        font-size: 1rem;
    }
}


/* ************** */

/* Styles for Language Toggle */
#toggle-language {
    cursor: pointer;
    font-family: 'Volvo Novum Semilight', sans-serif;
    font-size: 16px;
    color: #000;
    /* Adjust text color as needed */
    user-select: none;
    /* Prevent text selection */
}

#toggle-language:hover {
    text-decoration: underline;
}

#toggle-language:focus {
    outline: 2px solid #000;
    /* Visual indication for keyboard focus */
}

/* **** Flexbox Implementation for #agenda-header-1 **** */

/* Ensure that these styles are correctly placed and do not conflict with other styles */

/* Flex container for #agenda-header-1 */
#agenda-header-1 {
    display: flex;
    align-items: center;
    gap: 3rem;
}


@media (max-width: 767px) {
    #agenda-header-1 {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 1rem;
    }
  
    #agenda-header-1 h3 {
      font-size: 26px;
      margin: 0;
    }
  
    #agenda-header-1 p {
      font-size: 16px;
      margin: 0;
    }
  
  }

  @media (max-width: 767px) {
    /* some styles... */
  } /* close here */
  
  /* Now your “mobile-only” etc. rules are OUTSIDE any other @media block */
  .mobile-only {
    display: none;
  }
  .desktop-btn {
    display: block;
  }
  .mobile-btn {
    display: none;
  }
  
  /* Then the next media query: */
  @media (max-width: 1160px) {
    .desktop-btn { display: none; }
    .mobile-btn  { display: block; }
    .mobile-only { display: block; }
    #btn-wrapper-mobile {
        padding: 2rem 0;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
      }
    
  }