﻿/* Session Card */
.session-card {
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #f5f5f5;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.01);
}

    /* Reduced spacing between session cards */
    .session-card:not(:last-child) {
        margin-bottom: 1rem;
    }

/* Session Separator */
.session-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
    /* Break out of container to full viewport width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

    .session-separator::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--stfm-border-gray), transparent);
        z-index: 1;
    }

.session-separator-content {
    background-color: #ffffff;
    padding: 0.5rem;
    color: var(--stfm-tertiary);
    font-size: 1rem;
    z-index: 2;
    position: relative;
}

/* Content-aware adjustments using CSS custom properties */
.session-card {
    --presenter-width-min: 280px;
    --presenter-width-preferred: 30vw;
    --presenter-width-max: 400px;
}

    .session-card .presenter-column {
        width: clamp(var(--presenter-width-min), var(--presenter-width-preferred), var(--presenter-width-max));
    }

/* Session Row Layout - Back to Flexbox for reliability */
.session-row {
    display: flex;
    align-items: stretch;
}

/* Date Column */
.date-column {
    width: 80px;
    min-width: 80px;
    background-color: var(--stfm-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.date-info {
    padding: 1rem 0.5rem;
}

.date-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--stfm-heading-font);
}

.date-month {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
    font-family: var(--stfm-heading-font);
}

/* Content Column - Dynamic width */
.content-column {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Presenter Column - Dynamic width with constraints */
.presenter-column {
    flex-shrink: 0;
    background-color: #fafbfc;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid var(--stfm-border-gray);
}

/* Session Date and Time */
.session-datetime {
    font-family: var(--stfm-heading-font);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--stfm-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 150, 210, 0.05);
    border-left: 4px solid var(--stfm-tertiary);
    border-radius: 4px;
}

    .session-datetime i {
        color: var(--stfm-tertiary);
        margin-right: 0.75rem;
        font-size: 1.2rem;
    }

/* Presenter Info */
.presenter-name {
    font-family: var(--stfm-heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--stfm-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.presenter-affiliation {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Session Title */
.session-title {
    font-family: var(--stfm-heading-font);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--stfm-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}


/* Session Overview */
.session-overview {
    color: var(--stfm-text);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Learning Objectives */
.learning-objectives {
    margin-bottom: 0;
}

    .learning-objectives ol {
        padding-left: 1.5rem;
        counter-reset: objective-counter;
    }

    .learning-objectives li {
        margin-bottom: 0.75rem;
        line-height: 1.6;
        position: relative;
        counter-increment: objective-counter;
    }

        .learning-objectives li::marker {
            color: var(--stfm-tertiary);
            font-weight: 600;
        }

/* Presenter Image */
.presenter-image-container {
    margin-bottom: 1.5rem;
}

.presenter-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* About Presenter Section */
.about-presenter-header {
    font-family: var(--stfm-heading-font);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--stfm-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.about-presenter-text {
    color: var(--stfm-text);
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .session-row {
        flex-direction: column;
    }

    .date-column {
        width: 100%;
        min-width: 100%;
        padding: 1rem;
    }

    .date-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 0;
    }

    .date-number {
        font-size: 1.8rem;
    }

    .date-month {
        font-size: 1rem;
        margin-top: 0;
    }

    .presenter-column {
        width: 100% !important;
        border-left: none;
        border-top: 1px solid var(--stfm-border-gray);
        order: 3;
    }

    .content-column {
        order: 2;
        padding: 1.5rem;
    }

    .presenter-name {
        font-size: 1.3rem;
    }

    .session-title {
        font-size: 1.2rem;
    }

    .session-datetime {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }

        .session-datetime i {
            font-size: 1rem;
            margin-right: 0.5rem;
        }
}

@media (max-width: 767.98px) {
    .general-session-container {
        padding: 0 0.25rem;
    }

    .content-column {
        padding: 1rem;
    }

    .presenter-column {
        padding: 1.5rem;
    }

    .presenter-image {
        width: 150px;
        height: 150px;
    }

    .presenter-name {
        font-size: 1.2rem;
    }

    .session-title {
        font-size: 1.1rem;
    }
}

/* Session Navigation Styles */
.session-nav {
    margin: 20px 0 25px 0;
    text-align: left;
    font-size: 14px;
    color: #666;
    padding-left: 8px; /* Align with the blue accent line */
}

.session-nav-link {
    color: #4a6fa5; /* Matches your blue theme */
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
}

    .session-nav-link:hover {
        color: #2c4d7a;
        background-color: #f8f9fa;
        text-decoration: none;
    }

.session-nav-divider {
    color: #ccc;
    margin: 0 8px;
    font-weight: 300;
}

/* Add some scroll offset so the session doesn't stick to the very top */
.session-container {
    scroll-margin-top: 20px;
}

/* put this in GeneralSessionSection.css */
.session-card {
    scroll-margin-top: var(--sticky-offset, 96px); /* fallback = 96px */
}
