/* Agenda TW Frontend - Clean Flat Design */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #8D2F86;
    --primary-dark: #8D2F86 --secondary-color: #E10A64;
    --text-primary: #000000;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-sm: 8px;
}

.agenda-tw-program {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
}

/* Timeline Line */
.agenda-tw-program::before {
    content: '';
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 120px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 0;
}

.agenda-tw-session {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    z-index: 1;
}

.agenda-tw-session:last-child {
    margin-bottom: 0;
}

/* Time Column */
.agenda-tw-time-col {
    flex: 0 0 100px;
    text-align: right;
    padding-top: 20px;
    /* Align with card content */
    position: relative;
}

.agenda-tw-time {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25em;
    background: var(--bg-light);
    /* Match page bg if possible, or transparent */
    padding: 5px 10px;
    border-radius: 20px;
    line-height: 1;
}

/* Content Column - Card Design */
.agenda-tw-content-col {
    flex: 1;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agenda-tw-content-col:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Timeline Dot (Desktop) */
.agenda-tw-content-col::after {
    content: '';
    position: absolute;
    top: 30px;
    /* Align with time */
    left: -47px;
    /* (40px gap + 6px half-dot + 1px border) */
    width: 14px;
    height: 14px;
    background: var(--bg-white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.agenda-tw-content-col:hover::after {
    background: var(--primary-color);
    transform: scale(1.2);
}

.agenda-tw-desc {
    font-size: 1.1em;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 400;
}

.agenda-tw-desc p:last-child {
    margin-bottom: 0;
}

/* Speakers Section */
.agenda-tw-speakers {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.agenda-tw-speaker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-light);
    border-radius: 50px;
    /* Pill shape */
    border: 1px solid transparent;
    transition: all 0.2s ease;
    max-width: 100%;
}

.agenda-tw-speaker-card:hover {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.agenda-tw-speaker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agenda-tw-speaker-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.agenda-tw-speaker-name {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.agenda-tw-speaker-meta {
    font-size: 0.8em;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.agenda-tw-speaker-linkedin {
    color: #0077b5;
    display: inline-flex;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.agenda-tw-speaker-linkedin:hover {
    opacity: 1;
}


/* Upcoming Events List */
.agenda-tw-list {
    max-width: 900px;
    margin: 0 auto;
}

.agenda-tw-month-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.agenda-tw-month-title:first-child {
    margin-top: 0;
}

.agenda-tw-month-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.agenda-tw-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agenda-tw-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.agenda-tw-item h3 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 600;
}

.agenda-tw-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.agenda-tw-item h3 a:hover {
    color: var(--primary-color);
}

.agenda-tw-item .agenda-tw-meta {
    display: flex;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95em;
    align-items: center;
}

.agenda-tw-item .date {
    font-weight: 500;
    color: var(--primary-color);
}

.agenda-tw-item .organizer {
    opacity: 0.8;
}

.agenda-tw-item .agenda-tw-actions {
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agenda-tw-program {
        padding: 40px 15px;
    }

    .agenda-tw-program::before {
        left: 24px;
        top: 40px;
        bottom: 40px;
    }

    .agenda-tw-session {
        flex-direction: column;
        gap: 15px;
        padding-left: 50px;
        margin-bottom: 40px;
    }

    .agenda-tw-time-col {
        flex: auto;
        text-align: left;
        padding-top: 0;
        margin-bottom: 5px;
    }

    .agenda-tw-time {
        font-size: 1.1em;
        padding: 0;
        background: transparent;
    }

    /* Mobile Dot on Time Column */
    .agenda-tw-time-col::before {
        content: '';
        position: absolute;
        top: 5px;
        /* Align with text center approx */
        left: -33px;
        /* (50px padding - 24px line - 7px half-dot) = 19px? No.
                       Line is at 24px from screen left.
                       Session padding-left is 50px.
                       Time col is at 50px.
                       Distance from Time col to Line is 26px.
                       Dot center should be at -26px.
                       Dot width 14px -> left: -26px - 7px = -33px. */
        width: 14px;
        height: 14px;
        background: var(--bg-white);
        border: 3px solid var(--primary-color);
        border-radius: 50%;
        z-index: 2;
    }

    .agenda-tw-content-col {
        padding: 20px;
    }

    /* Hide desktop dot */
    .agenda-tw-content-col::after {
        display: none;
    }

    .agenda-tw-speaker-card {
        width: 100%;
        border-radius: 12px;
    }

    .agenda-tw-speaker-meta {
        white-space: normal;
    }
}