/* Program Page Specific Styles */

/* Schedule container */
.schedule-container {
    margin: 30px 0;
}

/* Day styling */
.schedule-day {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Day header */
.day-header {
    padding: 15px 20px;
    background-color: #113A75;
    color: white;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    transition: background-color 0.3s;
}

.day-header:hover {
    background-color: #0B2A57;
}

.day-header h2 {
    flex: 1;
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}

.location {
    margin-right: 50px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.time {
    margin-right: 50px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Toggle icon */
.toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    width: 25px;
    height: 25px;
    line-height: 23px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Small toggle icon for events */
.toggle-icon.small {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    font-size: 1rem;
    width: 20px;
    height: 20px;
    line-height: 18px;
    margin-left: 10px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.1);
    color: #1B1917;
}

/* Day content */
.day-content {
    display: none;
    padding: 0;
    background-color: #fff;
}

/* Schedule table - Fix for uneven row heights */
.schedule-table {
    width: 100%;
    border-collapse: separate; /* Changed from collapse to allow for border-spacing */
    border-spacing: 0; /* No space between cells */
    margin: 0;
    padding: 0;
}

.schedule-table th {
    background-color: #e9ecef;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #1B1917;
    border-bottom: 1px solid #e9ecef;
}

/* Fix for uneven row heights */
.schedule-table tr {
    border-bottom: 1px solid #e9ecef;
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 12px 15px;
    vertical-align: top;
    border-bottom: none; /* Remove individual cell borders */
}

/* Column widths */
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
    width: 150px;
}

.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
    width: 250px;
}

/* Expandable events */
.expandable {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #113A75;
    font-weight: 600;
}

.expandable:hover {
    color: #113A75;
}

.expandable span:first-child {
    flex: 1;
}

/* Event details */
.event-details {
    display: none;
    background-color: #f8f9fa;
    border-bottom: none !important; /* Ensure no border on expanded details */
}

.schedule-table tr.event-details + tr {
    border-top: none; /* Remove top border of the next row after expanded details */
}

.event-content {
    padding: 15px;
}

.event-content p {
    margin-bottom: 5px;
}

.event-content p:last-child {
    margin-bottom: 0;
}

/* Note at the bottom */
.schedule-note {
    margin-top: 30px;
    font-style: italic;
    color: #6C6C6C;
}

/* Fix for the event details - no border between expandable row and its details */
.expandable.active {
    border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .day-header h2 {
        margin-bottom: 5px;
    }
    
    .location, .time {
        margin-bottom: 3px;
    }
    
    .toggle-icon {
        top: 15px;
        transform: none;
    }
    
    .schedule-table th:nth-child(1),
    .schedule-table td:nth-child(1) {
        width: 80px;
    }
    
    .schedule-table th:nth-child(3),
    .schedule-table td:nth-child(3) {
        width: auto;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .expandable {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toggle-icon.small {
        margin-left: 0;
        margin-top: 5px;
    }
}
/* ── Buttons (Farbschema jp2027.de) ─────────────────────────────── */
.jp-btn-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.jp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #113A75;
    color: #fff !important;
    border: 1px solid #113A75;
    border-radius: 3px;
    padding: 9px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.jp-btn:hover,
.jp-btn:focus-visible {
    background: #0B2A57;
    border-color: #0B2A57;
}
.jp-btn-outline {
    background: #fff;
    color: #113A75 !important;
}
.jp-btn-outline:hover,
.jp-btn-outline:focus-visible {
    background: #EEF8FF;
    border-color: #113A75;
}

/* Flash talks (opening of poster sessions) */
.flash-talks {
    background: #EEF8FF;
    border-left: 3px solid #FF7525;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0 0 14px;
}
.flash-talks p { margin: 0 0 6px; color: #1B1917; }
.flash-talks ol { margin: 0; padding-left: 2.2em; }
.flash-talks li { margin: 2px 0; }
.flash-talks .flash-presenter { color: #6C6C6C; }
.flash-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 10px;
    background: #FF7525;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}
