/* =========================================================
   SPEAKER SECTION
========================================================= */

.speaker-flex-row {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.speaker-box {
    position: relative;
    max-width: 170px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.speaker-box:hover {
    transform: translateY(-5px);
}

.speaker-flex-row .speaker {
    overflow: hidden;
    background-color: rgb(226, 227, 226, 1);
}

.speaker-flex-row .speaker img {
    width: 100%;
}

.speaker-flex-row .speaker .participating-company {
    display: none;
    background: #fff;
    padding: 8px;
    width: 65px;
    position: absolute;
    bottom: 4px;
    right: 4px;
    border-radius: 6px;
}

.speaker-flex-row .speaker-bio {
    display: none;
}


/* =========================================================
   SPEAKER INFORMATION
========================================================= */

.ts-speaker-info .ts-speaker-name {
    margin: 6px 0px 2px;
    color: #50555F;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.ts-speaker-info .ts-speaker-designation {
    line-height: normal;
    margin: 0px;
    color: #8D8F95;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.ts-speaker-info .ts-speaker-designation b {
    margin-top: 16px;
    color: #8D8F95;
    font-family: 'MesseUnivers-Regular', 'Roboto';
}


/* =========================================================
   ROLE LABEL
========================================================= */

.role-label {
    border-radius: 3px;
    background: #FFD46D;
    padding: 0px 8px;
    margin: 5px 0px;
    color: #58461B;
    font-weight: normal;
    position: absolute;
    top: 0px;
    left: 6px;
    font-size: 13px;
    font-family: 'MesseUnivers-Regular', 'Roboto';
}


/* =========================================================
   SECTION CONTENT
========================================================= */

.section-para .bold {
    margin: 16px 0px 8px;
    font-weight: 700;
    color: rgb(48, 48, 48);
}

.section-para p {
    font-size: 16.5px;
    font-weight: 300;
    color: #50565f;
}


/* =========================================================
   BIO / READ MORE
========================================================= */

.read-more-btn {
    font-family: 'MesseUnivers-Regular', 'Roboto';
    font-size: 14px;
    margin-top: 0px;
    padding: 0px 12px;
    border: none;
    background: none;
    color: var(--primary);
    cursor: pointer;
}

.bio-text {
    font-size: 12.5px;
    line-height: 20px;
    transition: max-height 0.9s ease, opacity 0.9s ease;
    overflow: hidden;
    display: block;
    margin: 0px;
    font-family: 'MesseUnivers-Regular', 'Roboto';
    color: var(--text);
    padding: 0px 12px;
}

.bio-text.is-short {
    max-height: 60px;
    opacity: 0.8;
}

.bio-text:not(.is-short) {
    max-height: 500px;
    opacity: 1;
}


/* =========================================================
   SPEAKER CATEGORY TABS
========================================================= */

.speaker-tabs-wrapper {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    /* justify-content: center; */
}

.speaker-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;

    background: #f3f4f4;
    border: 1px solid #e1e2e3;
    border-radius: 10px;

    max-width: 100%;
}

.speaker-tab {
    position: relative;

    border: none;
    background: transparent;

    color: #70747b;

    padding: 11px 20px;

    border-radius: 7px;

    cursor: pointer;

    font-family: 'MesseUnivers-Regular', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* Hover */

.speaker-tab:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.75);
}


/* Active tab */

.speaker-tab.active {
    background: #fff;
    color: var(--primary);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* Active indicator */

.speaker-tab.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 18px;
    height: 2px;

    border-radius: 2px;

    background: var(--primary);

    transform: translateX(-50%);
}


/* =========================================================
   INFO ICON
========================================================= */

.speaker {
    position: relative;
}

.info-icon {
    position: absolute;

    top: 8px;
    right: 8px;

    background: var(--primary-100);
    color: #fff;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   MODAL BASE
========================================================= */

.speaker-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(6px);
}


/* =========================================================
   MODAL CARD
========================================================= */

.modal-content {
    position: relative;

    max-width: 600px;

    margin: 5% auto;

    background: #fff;

    border-radius: 16px;

    padding: 24px;

    overflow: hidden;
}

.modal-content .company-details {
    gap: 16px;

    display: flex;
    align-items: flex-end;
}


/* =========================================================
   MODAL TOP
========================================================= */

.modal-top {
    display: flex;

    gap: 20px;

    align-items: flex-end;
}

.modal-top img {
    width: 140px;

    border-radius: 12px;
}

.modal-top h2 {
    font-family: 'Roboto', sans-serif;

    color: var(--Sekundärschwarz);

    margin: 0;
}

.designation {
    color: #666;

    font-size: 14px;
}

.company {
    font-weight: bold;

    margin: 0px;

    color: var(--Sekundärschwarz);
}


/* =========================================================
   MODAL BODY
========================================================= */

.modal-body {
    margin-top: 20px;
}

.bio {
    color: #444;

    line-height: 1.5;
}


/* =========================================================
   SESSION CARDS
========================================================= */

.sessions {
    margin-top: 20px;
}

.session-card {
    display: flex;

    justify-content: space-between;

    padding: 14px;

    border-radius: 10px;

    background: #f7f7f7;

    margin-top: 10px;
}

.session-type {
    font-size: 11px;

    color: #888;
}

.session-card h4 {
    margin: 5px 0;

    font-weight: 400;

    font-size: 16px;

    color: var(--text);
}


/* =========================================================
   MODAL CLOSE BUTTON
========================================================= */

.modal-close {
    position: absolute;

    top: 10px;
    right: 12px;

    font-size: 22px;

    background: none;

    border: none;

    cursor: pointer;
}

.modal-content .company-details .modal-speaker-company {
    height: 45px;

    border-radius: 0 !important;

    width: auto;
}


/* =========================================================
   TABLET
   992px and below
========================================================= */

@media (max-width: 991px) {

    /* Category navigation */

    .speaker-tabs-wrapper {
        justify-content: flex-start;

        overflow: hidden;

        position: relative;
    }

    .speaker-tabs {
        width: 100%;

        overflow-x: auto;
        overflow-y: hidden;

        justify-content: flex-start;

        scrollbar-width: none;
        -ms-overflow-style: none;

        -webkit-overflow-scrolling: touch;
    }

    .speaker-tabs::-webkit-scrollbar {
        display: none;
    }

    .speaker-tab {
        flex: 0 0 auto;

        padding: 10px 18px;

        font-size: 14px;
    }

    /* Speakers */

    .speaker-flex-row {
        gap: 30px;
    }
}


/* =========================================================
   MOBILE
   479px and below
========================================================= */

@media (max-width: 479px) {

    /* =========================================
       CATEGORY NAVIGATION
    ========================================= */

    .speaker-tabs-wrapper {
        width: 100%;

        margin-bottom: 30px;

        justify-content: flex-start;

        overflow: hidden;
    }

    .speaker-tabs {
        width: 100%;

        padding: 5px;

        gap: 4px;

        overflow-x: auto;
        overflow-y: hidden;

        border-radius: 8px;

        scrollbar-width: none;
        -ms-overflow-style: none;

        -webkit-overflow-scrolling: touch;

        scroll-snap-type: x proximity;
    }

    .speaker-tabs::-webkit-scrollbar {
        display: none;
    }

    .speaker-tab {
        flex: 0 0 auto;

        padding: 10px 15px;

        font-size: 13px;

        border-radius: 6px;

        scroll-snap-align: start;
    }

    .speaker-tab.active {
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    }

    .speaker-tab.active::after {
        bottom: 2px;

        width: 14px;
    }


    /* =========================================
       SPEAKER CARDS
    ========================================= */

    .speaker-box {
        width: 137px;
    }

    .speaker-flex-row {
        gap: 25px;
    }

    .speaker-flex-row .speaker {
        min-height: 137px;
    }


    /* =========================================
       MODAL
    ========================================= */

    .modal-content {
        max-width: 90%;
    }

    .modal-top {
        flex-direction: column;

        align-items: flex-start;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   360px and below
========================================================= */

@media (max-width: 360px) {

    .speaker-tabs {
        padding: 4px;
    }

    .speaker-tab {
        padding: 9px 13px;

        font-size: 12px;
    }

    .speaker-box {
        width: 130px;
    }

    .speaker-flex-row {
        gap: 20px;
    }
}