/* =========================================
   PRESENTATION LIBRARY
========================================= */

.presentation-library {
    width: 100%;
    padding: 100px 0;
}


.presentation-container {
    width: min(1200px, calc(100% - 48px));
    margin: auto;
}


/* =========================================
   HEADING
========================================= */

.presentation-heading {
    max-width: 720px;
    margin-bottom: 45px;
}


.presentation-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 16px;

    font-family: "Sanofi Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;

    color: #7A00E6;
}


.presentation-heading h2 {
    margin: 0;

    font-family: "Sanofi Serif", Georgia, serif;
    font-size: clamp(45px, 5vw, 68px);
    font-weight: 300;
    line-height: 1;

    letter-spacing: -2px;

    color: #23004C;
}


.presentation-heading h2 em {
    color: #7A00E6;
    font-style: italic;
}


.presentation-heading p {
    max-width: 600px;

    margin: 18px 0 0;

    font-family: "Sanofi Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;

    color: rgba(35, 0, 76, 0.65);
}


/* =========================================
   TABS
========================================= */

.presentation-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px;
    margin-bottom: 30px;
    background: #FFFFFF;
    border: 1px solid rgba(35, 0, 76, 0.08);
    border-radius: 14px;
    overflow-x: auto;
}


.presentation-tab {
    position: relative;
    flex: 1;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-family: "Sanofi Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgba(35, 0, 76, 0.55);
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.presentation-tab:hover {
    color: #7A00E6;
}


.presentation-tab.active {
    background: #23004C;
    color: #FFFFFF;
}


.presentation-tab.active:hover {
    color: #FFFFFF;
}


/* =========================================
   PANELS
========================================= */

.presentation-panel {
    display: none;
}


.presentation-panel.active {
    display: block;
    animation: panelIn 0.45s ease forwards;
}


@keyframes panelIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   PRESENTATION LIST
========================================= */

.presentation-list {
    display: flex;
    flex-direction: column;

    border-top: 1px solid rgba(35, 0, 76, 0.10);
}






/* =========================================
   PRESENTATION CARD
========================================= */

.presentation-card {
    position: relative;

    width: 100%;

    display: grid;

    grid-template-columns:
        70px
        minmax(0, 1fr)
        42px;

    align-items: center;

    gap: 25px;

    min-height: 125px;

    padding: 22px 8px 22px 4px;

    border: 0;
    border-bottom: 1px solid rgba(35, 0, 76, 0.10);

    background: transparent;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.35s ease,
        padding 0.35s ease;
}


.presentation-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(122, 0, 230, 0.055),
            transparent 75%
        );

    opacity: 0;

    transition: opacity 0.35s ease;
}


.presentation-card:hover::before {
    opacity: 1;
}


.presentation-card:hover {
    padding-left: 14px;
}


/* =========================================
   PRESENTATION ICON
========================================= */

.presentation-icon {
    position: relative;
    z-index: 1;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #F0EAF7;

    color: #7A00E6;

    font-size: 21px;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease;
}


.presentation-card:hover .presentation-icon {
    background: #7A00E6;
    color: #FFFFFF;

    transform: translateY(-2px);
}


/* =========================================
   PRESENTATION INFO
========================================= */

.presentation-info {
    position: relative;
    z-index: 1;

    min-width: 0;
}


.presentation-number {
    display: block;
    margin-bottom: 6px;
    font-family: "Sanofi Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #7A00E6;
}


.presentation-info h3 {
    margin: 0 0 5px;
    font-family: "Sanofi Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #23004C;
    transition: color 0.3s ease;
}


.presentation-card:hover .presentation-info h3 {
    color: #7A00E6;
}


.presentation-info p {
    margin: 0;

    font-family: "Sanofi Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;

    color: rgba(35, 0, 76, 0.60);
}


/* =========================================
   ARROW
========================================= */

.presentation-arrow {
    position: relative;
    z-index: 1;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #F5F0FA;

    color: #7A00E6;

    font-size: 13px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.35s ease;
}


.presentation-card:hover .presentation-arrow {
    background: #7A00E6;
    color: #FFFFFF;

    transform: translate(3px, -3px);
}


/* =========================================
   PRESENTATION MODAL
========================================= */

.presentation-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


.presentation-modal.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   MODAL BACKDROP
========================================= */

.modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(18, 5, 32, 0.86);

    backdrop-filter: blur(12px);
}


/* =========================================
   VIEWER
========================================= */

.presentation-viewer {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    height: min(90vh, 820px);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:0 35px 100px rgba(0, 0, 0, 0.35);
    transform: scale(0.96) translateY(20px);
    transition:transform 0.45s cubic-bezier(.22, 1, .36, 1);
}


.presentation-modal.active .presentation-viewer {
    transform: scale(1) translateY(0);
}


/* =========================================
   VIEWER HEADER
========================================= */

.viewer-header {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(35, 0, 76, 0.09);
}


.viewer-title span {
    display: block;
    margin-bottom: 4px;
    font-family: "Sanofi Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding-left: 10px;
    color: #7A00E6;
}


.viewer-title h3 {
    margin: 0;
    font-family: "Sanofi Sans", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.5px;
    padding-left: 10px;
    color: #23004C;
}


.viewer-actions {
    display: flex;
    gap: 30px;
}


.viewer-action {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #F4EFF8;
    color: #23004C;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}


.viewer-action:hover {
    background: #7A00E6;
    color: #FFFFFF;

    transform: scale(1.05);
}


.viewer-action.close:hover {
    background: #23004C;
}


/* =========================================
   VIEWER MAIN
========================================= */

.viewer-main {
    position: relative;

    flex: 1;

    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 80px;

    background:
        #F0EEF2;
}


/* =========================================
   SLIDE STAGE
========================================= */

.slide-stage {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}


.slide-stage img {
    max-width: 100%;
    max-height: 100%;

    display: block;

    object-fit: contain;

    box-shadow:
        0 12px 35px rgba(35, 0, 76, 0.16);

    background: #FFFFFF;

    transition: opacity 0.25s ease;
}


/* =========================================
   NAVIGATION BUTTONS
========================================= */

.viewer-navigation {
    position: absolute;

    top: 50%;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #FFFFFF;

    color: #23004C;

    font-size: 14px;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(35, 0, 76, 0.15);

    transform: translateY(-50%);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.viewer-navigation:hover {
    background: #7A00E6;
    color: #FFFFFF;

    transform:
        translateY(-50%)
        scale(1.08);
}


.viewer-navigation.previous {
    left: 20px;
}


.viewer-navigation.next {
    right: 20px;
}


/* =========================================
   VIEWER FOOTER
========================================= */

.viewer-footer {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 22px;
    background: #FFFFFF;
    border-top: 1px solid rgba(35, 0, 76, 0.09);
}

.slide-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 64px;
    font-family: "Sanofi Sans", sans-serif;
    font-size: 14px;
    color: rgba(35, 0, 76, 0.45);
}


.slide-counter strong {
    color: #7A00E6;
}


/* =========================================
   THUMBNAILS
========================================= */

.slide-thumbnails {
    display: flex;
    align-items: center;

    gap: 8px;

    flex: 1;

    overflow-x: auto;

    padding: 3px 0;
}


.slide-thumbnail {
    flex: 0 0 72px;

    height: 45px;

    padding: 0;

    border: 2px solid transparent;

    border-radius: 5px;

    background: #F0EEF2;

    overflow: hidden;

    cursor: pointer;

    opacity: 0.55;

    transition:
        opacity 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.slide-thumbnail:hover {
    opacity: 0.9;
}


.slide-thumbnail.active {
    border-color: #7A00E6;
    opacity: 1;

    transform: translateY(-2px);
}


.slide-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================
   FULLSCREEN
========================================= */

.presentation-viewer:fullscreen {
    width: 100vw;
    height: 100vh;

    border-radius: 0;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .presentation-library {
        padding: 70px 0;
    }

    .presentation-container {
        width: min(100% - 30px, 600px);
    }

    .presentation-tabs {
        border-radius: 11px;
    }

    .presentation-tab {
        flex: 0 0 auto;

        padding: 0 17px;

        font-size: 11px;
    }

    .presentation-card {
        grid-template-columns:
            50px
            minmax(0, 1fr)
            34px;

        gap: 13px;

        min-height: 105px;
    }

    .presentation-icon {
        width: 45px;
        height: 45px;

        border-radius: 12px;

        font-size: 17px;
    }

    .presentation-info h3 {
        font-size: 14px;
    }

    .presentation-info p {
        font-size: 11px;
    }

    .presentation-number {
        font-size: 8px;
    }

    .presentation-arrow {
        width: 31px;
        height: 31px;

        font-size: 11px;
    }


    /* Modal */

    .presentation-modal {
        padding: 0;
    }

    .presentation-viewer {
        width: 100%;
        height: 100%;

        border-radius: 0;
    }

    .viewer-header {
        min-height: 65px;

        padding: 12px 15px;
    }

    .viewer-title h3 {
        font-size: 14px;
    }

    .viewer-main {
        padding: 20px 50px;
    }

    .viewer-navigation {
        width: 38px;
        height: 38px;
    }

    .viewer-navigation.previous {
        left: 8px;
    }

    .viewer-navigation.next {
        right: 8px;
    }

    .viewer-footer {
        min-height: 65px;

        padding: 8px 15px;
    }

    .slide-thumbnail {
        flex-basis: 58px;
        height: 37px;
    }

}

/* =========================================
   PRESENTATION ACTIONS
========================================= */

.presentation-actions {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
}


/* =========================================
   ACTION BUTTON
========================================= */

.presentation-action {
    min-width: 60px;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(122, 0, 230, 0.14);
    border-radius: 7px;
    background: #F5F0FA;
    color: #7A00E6;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.presentation-action i {
    font-size: 16px;
}

/* View */
.view-action:hover {
    background: #7A00E6;
    border-color: #7A00E6;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Download */
.download-action {
    min-height:44px ;
    background: #ffffff;
    color: #23004C;
    padding: 14px;
    min-width: 60px;
    min-height: 60px;
}

.download-action:hover {
    background: #23004C;
    border-color: #23004C;
    color: #ffffff;
    transform: translateY(-2px);
}
/* =========================================
   VIEW BUTTON
========================================= */

.view-action:hover {
    background: #7A00E6;
    border-color: #7A00E6;
    color: #FFFFFF;
    transform: translateY(-2px);
}


/* =========================================
   DOWNLOAD BUTTON
========================================= */

.download-action {
    background: #FFFFFF;

    color: #23004C;
}


.download-action:hover {
    background: #23004C;

    border-color: #23004C;

    color: #FFFFFF;

    transform: translateY(-2px);
}


/* =========================================
   CARD
========================================= */

.presentation-card {
    grid-template-columns:
        70px
        minmax(0, 1fr)
        88px;
}


/* Don't let the card hover affect buttons */

.presentation-card:hover .presentation-actions {
    transform: none;
}