/* Σελίδα καταλόγου διπλωματικών (?page=thesis) */

.thesis-page-intro {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.thesis-filters {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
}

.thesis-filters__row + .thesis-filters__row {
    margin-top: 1rem;
}

.thesis-filters__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

@media (min-width: 992px) {
    .thesis-filters__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.thesis-filters__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.45rem;
}

.thesis-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.thesis-pagination .page-link {
    color: #0057b7;
}

.thesis-pagination .page-item.active .page-link {
    color: #fff;
    background-color: #0057b7;
    border-color: #0057b7;
}

.thesis-pagination .page-item.active .page-link:hover,
.thesis-pagination .page-item.active .page-link:focus {
    color: #fff;
    background-color: #004494;
    border-color: #004494;
}

.thesis-filters__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e9ecef;
}

.thesis-filters__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thesis-results-count {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 600;
}

.thesis-reset-btn {
    text-decoration: none;
    padding: 0;
}

.thesis-list {
    display: grid;
    gap: 1rem;
}

.thesis-card {
    border: 1px solid #e3e8ef;
    border-radius: 0.5rem;
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.thesis-card:hover {
    border-color: #cfd8e3;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
}

.thesis-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.thesis-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.thesis-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.thesis-badge--pps {
    background: #e3edf9;
    color: #0057b7;
    border: 1px solid #b8d4f0;
}

.thesis-badge--pms {
    background: #e8f3ee;
    color: #1a7a4c;
    border: 1px solid #b9dcc8;
}

.thesis-badge--pms-program {
    background: #f4faf7;
    color: #166534;
    border: 1px solid #c7e3d4;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
}

.thesis-filters__group--pms.is-hidden {
    display: none;
}

.thesis-badge--proposed {
    background: #fff4e5;
    color: #b45309;
    border: 1px solid #f5d7a8;
}

.thesis-badge--completed {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.thesis-badge--year {
    background: #eef2f7;
    color: #334155;
    border: 1px solid #cbd5e1;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}

.thesis-card__title {
    font-size: 1.02rem;
    line-height: 1.45;
    color: #1f2937;
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.thesis-card__meta {
    margin: 0;
}

.thesis-card__meta-row {
    display: grid;
    grid-template-columns: minmax(7rem, 9rem) 1fr;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.thesis-card__meta-row dt {
    margin: 0;
    color: #6c757d;
    font-weight: 600;
}

.thesis-card__meta-row dd {
    margin: 0;
    color: #212529;
}

.thesis-card__meta-row a {
    color: #0057b7;
    text-decoration: none;
}

.thesis-card__meta-row a:hover {
    text-decoration: underline;
}

.thesis-card__committee {
    margin: 0;
    padding-left: 1.1rem;
}

.thesis-card__committee li + li {
    margin-top: 0.15rem;
}

.thesis-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.thesis-card__pdf i,
.thesis-card__toggle i {
    margin-right: 0.25rem;
}

.thesis-card__details {
    margin-top: 0.85rem;
}

.thesis-card__details-body {
    border-top: 1px solid #e9ecef;
    padding-top: 0.85rem;
}

.thesis-detail-section + .thesis-detail-section {
    margin-top: 0.85rem;
}

.thesis-detail-section__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0057b7;
    margin: 0 0 0.35rem;
}

.thesis-detail-section__content {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #343a40;
}

.thesis-detail-section__content ul,
.thesis-detail-section__content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.thesis-detail-section__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .thesis-filters__grid {
        grid-template-columns: 1fr;
    }

    .thesis-card__meta-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .thesis-filters__toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
