/* Improved Table Styling - Light Grey Borders & More Padding */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background-color: white;
}

table td {
    border: 1px solid #d0d0d0; /* Light grey border */
    padding: 12px 16px; /* Increased padding */
    text-align: left;
    vertical-align: top;
}

table td:first-child {
    font-weight: bold;
}

/* Optional: Alternating row colors for better readability */
table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Optional: Hover effect */
table tr:hover {
    background-color: #f0f0f0;
}

/* Responsive - Auto-scale to page width */
@media screen and (max-width: 768px) {
    table {
        font-size: 14px;
    }
    table td {
        padding: 8px 12px;
    }
}

@media screen and (max-width: 480px) {
    table {
        font-size: 12px;
    }
    table td {
        padding: 6px 8px;
    }
}

/* ============================================
   PROGRAM SCHEDULE STYLES
   ============================================ */

.program-wrap {
    font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #1A1A1A;
    line-height: 1.45;
    max-width: 1500px;
    margin: 0 auto;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 16px;
    align-items: start;
}

.program-day {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.program-day-header {
    padding: 14px 18px;
    background: #1A64A0;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.program-day-name {
    font-size: 1.35em;
    font-weight: 600;
}

.program-day-date {
    font-size: 0.82em;
    font-weight: 300;
    opacity: 0.7;
}

.program-day-body {
    padding: 6px 8px 12px;
}

/* Talk blocks */
.program-talk {
    border-radius: 6px;
    margin: 4px 0;
    padding: 10px 12px;
    background: #E2F6F9;
}

.program-time {
    font-family: monospace;
    font-size: 0.82em;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
}

.program-speaker {
    font-weight: 600;
    font-size: 0.9em;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.program-affiliation {
    font-size: 0.76em;
    color: #666;
}

.program-title {
    font-size: 0.82em;
    font-weight: 500;
    font-style: italic;
    color: #2A2A2A;
    margin-top: 1px;
    line-height: 1.35;
}

/* Contributed talk */
.program-contributed {
    border-radius: 6px;
    margin: 4px 0;
    padding: 10px 12px;
    background: #F5F3FF;
    
}

.program-contributed .program-speaker {
    color: #7C6BBE;
}

/* Break blocks */
.program-break {
    border-radius: 6px;
    margin: 4px 0;
    padding: 6px 12px;
    background: #EDE9E4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.program-break .program-time {
    color: #7A7470;
    font-size: 0.75em;
}

.program-break-label {
    font-size: 0.78em;
    font-weight: 600;
    color: #7A7470;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

/* Discussion / session blocks */
.program-session {
    border-radius: 6px;
    margin: 4px 0;
    padding: 14px 12px;
    text-align: center;
    background: #FFF4E6;
    
}

.program-session .program-time {
    color: #8B6914;
    font-size: 0.82em;
}

.program-session-title {
    font-weight: 600;
    font-size: 1em;
    color: #8B6914;
}

/* Special event blocks (poster, dinner) */
.program-event {
    border-radius: 6px;
    margin: 4px 0;
    padding: 16px 12px;
    text-align: center;
    background: #6B7B8D;
    color: #fff;
}

.program-event .program-time {
    color: rgba(255,255,255,0.7);
    font-size: 0.82em;
}

.program-event-title {
    font-weight: 600;
    font-size: 1.05em;
    color: #fff;
}

/* Badges */
.program-badge-opening {
    display: inline-flex;
    align-items: center;
    background: #1A64A0;
    color: #fff;
    font-size: 0.6em;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.program-badge-online {
    display: inline-flex;
    align-items: center;
    background: #E76F51;
    color: #fff;
    font-size: 0.6em;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Grid auto-wraps: 3 cols on wide screens, 2 on medium, 1 on narrow */