/* Training Schedule — public page */

.schedule-hero {
    background: linear-gradient(135deg, #0a1f3d 0%, #1a4a7a 100%);
}

.schedule-section {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.schedule-intro {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    text-align: center;
    color: var(--gray-600, #475569);
    font-size: 1.05rem;
    line-height: 1.6;
}

.schedule-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto 2rem;
}

.schedule-search-bar label {
    font-weight: 600;
    color: var(--primary, #0f2744);
    white-space: nowrap;
}

.schedule-search-bar input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}

.schedule-search-bar input:focus {
    outline: none;
    border-color: var(--accent, #2c74b3);
    box-shadow: 0 0 0 3px rgba(44, 116, 179, 0.15);
}

.schedule-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
    border: 1px solid #e2e8f0;
    background: #fff;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.schedule-table thead th {
    background: var(--primary, #0f2744);
    color: #fff;
    text-align: left;
    padding: 1rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.schedule-table tbody td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #334155;
}

.schedule-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.schedule-table tbody tr:hover {
    background: #f1f5f9;
}

.schedule-row-code {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.2rem;
    font-weight: 500;
}

.schedule-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 2px solid var(--accent-gold, #d4a843);
    color: var(--accent-gold, #c9972e);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #fff;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.schedule-register-btn:hover {
    background: var(--accent-gold, #d4a843);
    color: #fff;
    transform: translateY(-1px);
}

.schedule-register-closed {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.schedule-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: #64748b;
}

.schedule-empty-state i {
    font-size: 2.5rem;
    color: var(--accent, #2c74b3);
    margin-bottom: 1rem;
}

.schedule-empty-state h3 {
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.schedule-empty-filter {
    text-align: center;
    color: #64748b;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .schedule-table {
        min-width: 0;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0.5rem 0;
        background: #fff !important;
    }

    .schedule-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.55rem 1rem;
        border: none;
    }

    .schedule-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #0f2744;
        font-size: 0.78rem;
        text-transform: uppercase;
        flex-shrink: 0;
    }
}
