.min-w-0 { min-width: 0; }

/* =========================================================
   THESES — visual language aligned with Projects
   ========================================================= */

.thesis-hero { padding: 30px 0 32px; background: linear-gradient(110deg, var(--unida-dark), #075f7d 58%, var(--unida-primary)); color: var(--white); }
.thesis-hero-inner { max-width: 760px; }
.thesis-hero h1 { margin: 0 0 20px; font-size: clamp(1.65rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; }
.thesis-search-box { height: 64px; display: flex; align-items: center; gap: 13px; padding: 0 18px; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(0,25,40,.12); }
.thesis-search-box i { flex: 0 0 auto; color: #72b9c9; font-size: 1.15rem; }
.thesis-search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 1rem; }
.thesis-search-box input::placeholder { color: #9caab3; }

.thesis-toolbar { border-bottom: 1px solid var(--border-color); background: #fff; }
.thesis-toolbar > .container { min-height: 64px; }
.thesis-toolbar-label { font-size: .84rem; font-weight: 700; }
.thesis-toolbar .btn-outline-secondary { padding: 8px 15px; border-color: var(--border-color); background: #f7f9fa; color: var(--text-secondary); font-size: .82rem; }
.thesis-result-meta { color: var(--text-secondary); font-size: .82rem; }
.thesis-result-meta strong { color: var(--text-primary); font-weight: 700; }
.thesis-sort-label { font-size: .82rem; }
.thesis-sort { width: 175px; min-height: 36px; border-color: var(--border-color); font-size: .82rem; }

.thesis-results-section { min-height: 60vh; padding: 24px 0 50px; background: var(--page-bg); }
.thesis-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 22px; align-items: start; }
.thesis-filter-column { position: sticky; top: 82px; min-width: 0; }
.thesis-list-column { min-width: 0; }
.thesis-filter-card { padding: 20px 18px; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(25,55,70,.045); }
.thesis-filter-section + .thesis-filter-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.thesis-filter-section h3 { margin: 0 0 14px; color: var(--text-primary); font-size: .92rem; font-weight: 800; }
.thesis-year-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; }
.thesis-year-inputs input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #cfd8dd; border-radius: 5px; color: #314c5b; text-align: center; font-size: .78rem; }
.thesis-year-inputs span { color: #8fa0aa; }
.thesis-dual-range { position: relative; height: 26px; margin-top: 10px; }
.thesis-dual-range::before, .thesis-range-track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; border-radius: 999px; }
.thesis-dual-range::before { content: ""; background: #d8e1e5; }
.thesis-range-track { right: auto; background: var(--unida-primary); }
.thesis-dual-range input[type="range"] { position: absolute; inset: 0; width: 100%; height: 26px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none; }
.thesis-dual-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.thesis-dual-range input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; appearance: none; -webkit-appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--unida-primary); box-shadow: 0 0 0 1px var(--unida-primary); cursor: pointer; pointer-events: auto; }
.thesis-dual-range input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.thesis-dual-range input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: var(--unida-primary); box-shadow: 0 0 0 1px var(--unida-primary); cursor: pointer; pointer-events: auto; }
.thesis-year-labels { display: flex; justify-content: space-between; color: #7d8e98; font-size: .7rem; }
.thesis-filter-search { height: 38px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; }
.thesis-filter-search i { color: #91a1aa; font-size: .8rem; }
.thesis-filter-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: .76rem; }
.thesis-filter-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; min-width: 0; min-height: 26px; margin: 8px 0; color: #365261; font-size: .78rem; cursor: pointer; }
.thesis-filter-item-main { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 9px; min-width: 0; }
.thesis-filter-item-main input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--unida-primary); cursor: pointer; }
.thesis-filter-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thesis-filter-count { min-width: 38px; padding: 3px 9px; border-radius: 999px; background: #edf1f3; color: #788993; text-align: center; font-size: .68rem; line-height: 1.35; }
.thesis-show-more { display: inline-block; margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--unida-primary); font-size: .77rem; }
.thesis-show-more:hover { text-decoration: underline; }

.thesis-list { display: grid; gap: 14px; min-width: 0; }
.thesis-card { min-width: 0; padding: 19px 22px 17px; border: 1px solid var(--border-color); border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(25,55,70,.05); }
.thesis-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.thesis-card-title { display: block; color: var(--unida-primary); font-size: .95rem; font-weight: 800; line-height: 1.35; text-decoration: none; }
.thesis-card-title:hover { color: var(--unida-dark); text-decoration: underline; text-underline-offset: 3px; }
.thesis-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 9px; color: #7c8f99; font-size: .7rem; }
.thesis-card-meta strong { color: #425e6b; }
.thesis-pill { padding: 4px 8px; border-radius: 999px; background: #f0f3f4; color: #35505d; font-weight: 700; }
.thesis-year-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #f0f3f4; color: #35505d; font-size: .65rem; font-weight: 750; }
.thesis-description { margin: 11px 0 0; color: #506b78; font-size: .78rem; line-height: 1.6; }
.thesis-advisors { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; color: #69808c; font-size: .72rem; }
.thesis-advisor-label { color: #7d909a; }
.thesis-advisor-name { color: #12728c; font-weight: 600; }
.thesis-topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.thesis-topic-tag { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 9px; border: 1px solid #64dfcf; border-radius: 999px; background: #effdfa; color: #08766d; font-size: .65rem; font-weight: 650; }
.thesis-more-topic { display: inline-flex; align-items: center; color: #91a1aa; font-size: .68rem; }
.thesis-empty { padding: 70px 25px; border: 1px solid var(--border-color); border-radius: 9px; background: #fff; color: var(--text-secondary); text-align: center; }
.thesis-empty i { display: block; margin-bottom: 10px; color: #9db0b9; font-size: 2.2rem; }
.thesis-empty h3 { margin-bottom: 5px; color: var(--text-primary); font-size: 1rem; font-weight: 800; }
.thesis-empty p { margin: 0; font-size: .82rem; }
.thesis-pagination { display: flex; justify-content: center; margin-top: 24px; }
.thesis-pagination .pagination { display: flex; gap: 5px; margin: 0; }
.thesis-pagination .page-link { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 6px !important; color: var(--unida-primary); font-size: .78rem; box-shadow: none; }
.thesis-pagination .active > .page-link { border-color: var(--unida-primary); background: var(--unida-primary); color: #fff; }
.thesis-pagination svg { width: 14px; height: 14px; }

.thesis-detail-page { min-height: 75vh; padding: 26px 0 55px; background: var(--page-bg); }
.thesis-detail-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.thesis-back-link { color: var(--unida-primary); font-size: .82rem; font-weight: 700; text-decoration: none; }
.thesis-detail-card, .thesis-side-card { border: 1px solid var(--border-color); border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(25,55,70,.05); }
.thesis-detail-card { padding: 22px; }
.thesis-detail-card h1 { margin: 0; color: var(--text-primary); font-size: 1.22rem; font-weight: 800; line-height: 1.4; }
.thesis-detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.thesis-detail-badges span, .thesis-detail-badges a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: #f0f3f4; color: #506873; font-size: .68rem; font-weight: 700; text-decoration: none; }
.thesis-detail-badges a { background: var(--unida-light); color: var(--unida-primary); }
.thesis-detail-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid #edf1f3; }
.thesis-detail-section-first { margin-top: 20px; }
.thesis-detail-section h2 { margin-bottom: 12px; color: var(--text-primary); font-size: .92rem; font-weight: 800; }
.thesis-detail-copy { margin: 0; color: #526a77; font-size: .8rem; line-height: 1.7; }
.thesis-author-block { display: flex; flex-wrap: wrap; gap: 7px 12px; color: #68808c; font-size: .76rem; }
.thesis-author-block strong { color: var(--text-primary); }
.thesis-person-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.thesis-person-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #edf6ff; color: #1267b0; font-size: .72rem; }
.thesis-person-chip small { color: #7d93a0; font-size: .65rem; }
.thesis-person-chip.is-primary { background: #fff7df; color: #c77900; }
.thesis-topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.thesis-topic-item { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 8px; background: #f8fafb; color: #365261; font-size: .74rem; }
.thesis-topic-ring { flex: 0 0 auto; width: 25px; height: 25px; border: 4px solid var(--unida-primary); border-right-color: #dce6e9; border-radius: 50%; }
.thesis-examiner-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.thesis-examiner-list > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 8px; background: #f8fafb; font-size: .72rem; }
.thesis-examiner-list span { color: #85979f; font-size: .66rem; }
.thesis-side-card { margin-bottom: 14px; padding: 16px; }
.thesis-side-card h3 { margin: 0 0 13px; color: var(--text-primary); font-size: .82rem; font-weight: 800; }
.thesis-side-card dl { margin: 0; }
.thesis-side-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf1f3; font-size: .72rem; }
.thesis-side-card dl > div:last-child { border-bottom: 0; }
.thesis-side-card dt { color: #8a9ba3; font-size: .7rem; font-weight: 600; }
.thesis-side-card dd { margin: 0; color: #344e5b; font-size: .72rem; font-weight: 700; text-align: right; }
.thesis-similar-list { display: flex; flex-direction: column; gap: 8px; }
.thesis-similar-list a { display: block; padding: 10px; border: 1px solid #e6ecef; border-radius: 8px; text-decoration: none; }
.thesis-similar-list a:hover { border-color: #cbdde2; background: #fbfdfd; }
.thesis-similar-list strong { display: block; min-width: 0; color: var(--unida-dark); font-size: .74rem; line-height: 1.4; }
.thesis-similar-list > a > span { display: block; margin-top: 4px; color: #95a4ab; font-size: .66rem; }
.thesis-similarity-score { flex: 0 0 auto; height: fit-content; padding: 3px 6px; border-radius: 4px; background: #e4ebff; color: #4261d8 !important; font-size: .62rem !important; font-weight: 800; }

@media (max-width: 991.98px) { .thesis-layout { grid-template-columns: 220px minmax(0,1fr); gap: 16px; } .thesis-topic-grid, .thesis-examiner-list { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .thesis-toolbar > .container { align-items: flex-start !important; flex-direction: column; padding-top: 13px; padding-bottom: 13px; } .thesis-toolbar-right { width: 100%; align-items: flex-start !important; flex-direction: column; margin-left: 0 !important; } .thesis-sort { width: 100%; } .thesis-layout { grid-template-columns: 1fr; } .thesis-filter-column { display: none; position: static; } .thesis-filter-column.is-open { display: block; } .thesis-result-meta { display: none; } }
@media (max-width: 575.98px) { .thesis-hero { padding: 28px 0; } .thesis-hero h1 { font-size: 1.55rem; } .thesis-search-box { height: 56px; } .thesis-card { padding: 15px; } .thesis-card-header { flex-direction: column; } .thesis-card-title { font-size: .9rem; } .thesis-detail-card { padding: 17px; } .thesis-detail-card h1 { font-size: 1.05rem; } }