/* --- Table-like layout --- */
.thesis-row {
    display: grid;
    grid-template-columns: 90px 220px 150px 1fr;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.thesis-table-header {
    font-weight: bold;
    background: #f5f5f5;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

/* Column formatting */
.col-year {
    font-weight: bold;
    text-align: center;
}

.col-author, .col-category {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-title a {
    text-decoration: none;
}

.col-title a:hover {
    text-decoration: underline;
}

/* Small screen responsive collapse */
@media(max-width: 700px) {
    .thesis-row, .thesis-table-header {
        grid-template-columns: 60px 1fr;
    }
    .col-category { display: none; }
    .col-title { grid-column: span 2; }
}


.col-lab img.lab-logo {
    width: 58px;
    height: auto;
    vertical-align: middle;
    border-radius: 4px;
}

/* Thesis Table */
.thesis-table-header, .thesis-row {
  display: grid;
  grid-template-columns: 60px 180px 100px 1fr 80px 120px; /* adjust widths for Year, Author, Category, Title, Language, Lab */
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.thesis-table-header {
  font-weight: 600;
  border-bottom: 2px solid #ccc;
}

.thesis-row {
  border-bottom: 1px solid #eee;
}

/* Adjust columns individually if needed */
.col-year { text-align: center; }
.col-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-category { text-align: center; }
.col-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-lang { text-align: center; }
.col-lab { text-align: center; }

/* Optional: responsive smaller screens */
@media (max-width: 768px) {
  .thesis-table-header, .thesis-row {
    grid-template-columns: 50px 150px 80px 1fr 60px 100px;
  }
  .col-author, .col-title {
    font-size: 0.85rem;
  }
}
