.dates-page .content-area {
    padding-top: var(--section-y, clamp(2rem, 5vw, 3rem));
    padding-bottom: clamp(2.5rem, 8vw, 5rem);
}

.dates-page .page-header__subtitle {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    max-width: 640px;
    line-height: 1.6;
}

.dates-summary {
    margin-bottom: 1.25rem;
}

.dates-summary__count {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
}

.dates-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: #fff;
    border: 1px solid var(--border);
}

.dates-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: #fff;
}

.dates-table th {
    background: var(--navy);
    color: #fff;
    padding: 0.95rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.dates-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.925rem;
    line-height: 1.45;
}

.dates-table tbody tr:last-child td {
    border-bottom: none;
}

.dates-table tbody tr:hover td {
    background: var(--primary-light);
}

.dates-table tr.is-pinned td {
    background: #fffbeb;
}

.dates-table tr.is-pinned:hover td {
    background: #fef3c7;
}

.dates-col--exam {
    min-width: 200px;
}

.dates-col--subject {
    min-width: 110px;
}

.dates-col--eligibility {
    min-width: 130px;
}

.dates-col--doc {
    min-width: 120px;
}

.dates-col--action {
    min-width: 110px;
    text-align: center;
}

.dates-exam-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dates-exam-name {
    display: block;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

.dates-exam-meta {
    display: none;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.dates-pin {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: fit-content;
}

.dates-no-doc {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dates-doc-btn {
    white-space: nowrap;
}

.dates-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 6.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(26, 95, 180, 0.2);
}

.dates-view-btn:hover {
    background: var(--navy);
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.dates-view-btn__icon {
    display: none;
}

.dates-view-btn__text--short {
    display: none;
}

/* Mobile: polished card-style table rows */
@media (max-width: 768px) {
    .dates-summary__count {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--navy);
        text-transform: none;
        letter-spacing: 0;
    }

    .dates-table-wrap {
        overflow: visible;
        box-shadow: none;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .dates-table {
        min-width: 0;
        width: 100%;
        display: block;
        background: transparent;
    }

    .dates-table thead {
        display: none;
    }

    .dates-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .dates-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.65rem 0.75rem;
        align-items: center;
        padding: 1rem 1.125rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    }

    .dates-table tbody tr:hover td,
    .dates-table tr.is-pinned td,
    .dates-table tr.is-pinned:hover td {
        background: transparent;
    }

    .dates-table tr.is-pinned {
        border-color: #fde68a;
        background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
        box-shadow: 0 2px 14px rgba(245, 158, 11, 0.1);
    }

    .dates-table td {
        display: block;
        padding: 0;
        border: none;
    }

    /* Hidden columns — must beat .dates-table td */
    .dates-table td.dates-col--subject,
    .dates-table td.dates-col--doc,
    .dates-table td.dates-col--eligibility {
        display: none !important;
    }

    .dates-table td.dates-col--exam {
        grid-column: 1;
        grid-row: 1 / span 2;
        min-width: 0;
    }

    .dates-table td.dates-col--action {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        text-align: right;
    }

    .dates-exam-meta {
        display: block;
        margin-top: 0.1rem;
    }

    .dates-exam-name {
        font-size: 0.95rem;
        font-weight: 700;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .dates-pin {
        margin-top: 0.35rem;
    }

    .dates-view-btn {
        min-width: 0;
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
        border-radius: 8px;
        background: var(--primary-light);
        color: var(--primary);
        border: 1px solid rgba(26, 95, 180, 0.15);
        box-shadow: none;
    }

    .dates-view-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        transform: none;
        box-shadow: 0 2px 8px rgba(26, 95, 180, 0.2);
    }

    .dates-view-btn__text--full {
        display: inline;
    }

    .dates-view-btn__text--short {
        display: none;
    }

    .dates-view-btn__icon {
        display: block;
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 400px) {
    .dates-table tbody tr {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem;
        padding: 1rem;
    }

    .dates-table td.dates-col--exam {
        grid-column: 1;
        grid-row: 1;
    }

    .dates-table td.dates-col--action {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }

    .dates-view-btn {
        width: 100%;
        justify-content: center;
    }
}
