/* =====================================================
   SESSION SUMMARIES
====================================================== */

.session-summaries {
    width: 100%;
    padding: 90px 0 110px;
    background: #F7F7F7;
}

.session-summaries .container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}


/* =====================================================
   INTRO
====================================================== */

.summaries-intro {
    max-width: 760px;
    margin-bottom: 45px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 12px;

    color: #7A00E6;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.summaries-intro h1 {
    margin: 0 0 18px;

    color: #23004C;

    font-family: "Sanofi Serif", Georgia, serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.05;
}

.summaries-intro h1 em {
    color: #7A00E6;
    font-style: italic;
}

.summaries-intro p {
    max-width: 650px;

    margin: 0;

    color: #666;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
}


/* =====================================================
   CATEGORY TABS
====================================================== */

.summary-category-tabs {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 30px;

    padding: 5px;

    background: #ffffff;

    border: 1px solid rgba(35, 0, 76, 0.08);
    border-radius: 8px;
}

.summary-category-tab {
    min-width: 155px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #666;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.summary-category-tab i {
    font-size: 18px;
}

.summary-category-tab:hover {
    color: #7A00E6;
}

.summary-category-tab.active {
    background: #7A00E6;
    color: #ffffff;
}


/* =====================================================
   CATEGORY PANELS
====================================================== */

.summary-category-panel {
    display: none;
}

.summary-category-panel.active {
    display: block;
}


/* =====================================================
   DAY TABS
====================================================== */

.summary-day-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(35, 0, 76, 0.09);
}

.summary-day-tab {
    position: relative;
    padding: 9px 18px;
    border: 0;
    background: transparent;
    color: #777;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.summary-day-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    background: #7A00E6;
    transition: width 0.3s ease;
}

.summary-day-tab:hover {
    color: #7A00E6;
}

.summary-day-tab.active {
    color: #23004C;
}

.summary-day-tab.active::after {
    width: 100%;
}


/* =====================================================
   DAY PANELS
====================================================== */

.summary-day-panel {
    display: none;
}

.summary-day-panel.active {
    display: block;
}


/* =====================================================
   SESSION CARD
====================================================== */

.summary-session-card {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr) 75px;
    align-items: center;
    gap: 35px;
    min-height: 155px;
    margin-bottom: 12px;
    padding: 25px 30px;
    background: #ffffff;
    border: 1px solid rgba(35, 0, 76, 0.07);
    border-radius: 10px;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.summary-session-card:hover {
    transform: translateY(-3px);
    border-color: rgba(122, 0, 230, 0.18);
    box-shadow:
        0 15px 40px rgba(35, 0, 76, 0.08);
}


/* =====================================================
   DATE
====================================================== */

.session-date {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 4px;
}

.date-day {
    color: #23004C;
    font-family: "Sanofi Sans";
    font-size: 48px;
    font-weight: 600;
    line-height: 0.9;
}

.date-month {
    margin-top: 10px;
    color: #7A00E6;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =====================================================
   SESSION DETAILS
====================================================== */

.session-details {
    min-width: 0;
}

.session-category {
    display: inline-block;
    margin-bottom: 8px;
    color: #7A00E6;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.session-details h3 {
    margin: 0 0 8px;
    color: #23004C;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.session-details p {
    max-width: 780px;
    margin: 0;
    color: #707070;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
}


/* =====================================================
   VIEW BUTTON
====================================================== */

.session-view {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.session-view-button {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(122, 0, 230, 0.16);
    border-radius: 50%;
    background: #F5F0FA;
    color: #7A00E6;
    font-size: 18px;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.session-view-button:hover {
    background: #7A00E6;
    color: #ffffff;

    transform: translate(3px, -3px);
}


/* =====================================================
   MODAL
====================================================== */

.session-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.session-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =====================================================
   MODAL OVERLAY
====================================================== */

.session-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(35, 0, 76, 0.88);

    backdrop-filter: blur(7px);
}


/* =====================================================
   MODAL CONTENT
====================================================== */

.session-modal-content {
    position: relative;

    z-index: 2;

    width: min(1050px, 95vw);

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.35);

    transform: translateY(25px) scale(0.97);

    transition:
        transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.session-modal.active .session-modal-content {
    transform: translateY(0) scale(1);
}


/* =====================================================
   MODAL HEADER
====================================================== */

.session-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 35px 25px;
    border-bottom: 1px solid rgba(35, 0, 76, 0.08);
}

.modal-category {
    display: inline-block;
    margin-bottom: 8px;
    color: #7A00E6;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.session-modal-header h2 {
    max-width: 750px;
    margin: 0;
    color: #7A00E6;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}


/* =====================================================
   CLOSE
====================================================== */

.session-modal-close {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(35, 0, 76, 0.09);
    border-radius: 50%;

    background: #F7F7F7;

    color: #23004C;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.session-modal-close:hover {
    background: #7A00E6;
    color: #ffffff;

    transform: rotate(90deg);
}


/* =====================================================
   META
====================================================== */

.session-modal-meta {
    display: grid;
    grid-template-columns: 20% 55% 25%;
    gap: 0;
    border-bottom: 1px solid rgba(35, 0, 76, 0.08);
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 30px;
    border-right: 1px solid rgba(35, 0, 76, 0.08);
}

.modal-meta-item:last-child {
    border-right: 0;
}

.modal-meta-item > i {
    color: #7A00E6;
    font-size: 20px;
}

.modal-meta-item span {
    display: block;
    margin-bottom: 6px;
    color: #888;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.modal-meta-item strong {
    color: #23004C;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
}


/* =====================================================
   MODAL BODY
====================================================== */

.session-modal-body {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 40px;

    padding: 35px;
}


/* =====================================================
   SECTION LABEL
====================================================== */

.modal-section-label {
    display: block;

    margin-bottom: 10px;

    color: #7A00E6;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.modal-summary h3 {
    margin: 0 0 18px;
    color: #23004C;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
}


/* =====================================================
   SUMMARY
====================================================== */

#modalSummary p {
    margin: 0 0 15px;

    color: #666;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;

    line-height: 1.45;
}


/* =====================================================
   REFERENCE IMAGES
====================================================== */

.reference-image-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.reference-image {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 8px;

    background: #F2F0F4;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.reference-image:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(35, 0, 76, 0.15);
}


/* =====================================================
   RESPONSIVE
====================================================== */

@media (max-width: 850px) {

    .summary-session-card {
        grid-template-columns:
            80px minmax(0, 1fr) 55px;

        gap: 20px;

        padding: 22px;
    }

    .date-day {
        font-size: 45px;
    }

    .session-details h3 {
        font-size: 17px;
    }

    .session-modal-body {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .session-summaries {
        padding: 60px 0 80px;
    }

    .session-summaries .container {
        width: min(100% - 30px, 1200px);
    }

    .summary-category-tabs {
        width: 100%;
    }

    .summary-category-tab {
        flex: 1;
        min-width: 0;
    }

    .summary-day-tabs {
        overflow-x: auto;
    }

    .summary-day-tab {
        flex: 0 0 auto;
    }

    .summary-session-card {
        grid-template-columns: 55px minmax(0, 1fr);

        gap: 15px;

        padding: 20px;
    }

    .session-date {
        align-self: start;
    }

    .date-day {
        font-size: 38px;
    }

    .session-details h3 {
        font-size: 16px;
    }

    .session-details p {
        font-size: 12px;
    }

    .session-view {
        grid-column: 2;

        justify-content: flex-start;

        margin-top: 5px;
    }

    .session-view-button {
        width: 40px;
        height: 40px;
    }

    .session-modal {
        padding: 12px;
    }

    .session-modal-header {
        padding: 24px 20px 20px;
    }

    .session-modal-header h2 {
        font-size: 27px;
    }

    .session-modal-meta {
        grid-template-columns: 1fr;
    }

    .modal-meta-item {
        border-right: 0;
        border-bottom: 1px solid rgba(35, 0, 76, 0.08);
    }

    .modal-meta-item:last-child {
        border-bottom: 0;
    }

    .session-modal-body {
        padding: 25px 20px;
    }

}