/*--------------------------------------------------------------
/* Professional Publications Styles (Ovi-inspired)
--------------------------------------------------------------*/

.publications {
  padding: 30px 0;
}

.sub-section {
  padding-top: 0;
  margin-bottom: 12px;
}

.sub-section-title {
  margin-bottom: 20px;
}

.sub-section-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sub-section-title h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #34b7a7;
}

/* Research Interests */
.research-interests {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.research-interests p {
  margin-bottom: 20px;
}

.research-interests ul {
  margin-bottom: 20px;
}

.research-interests li {
  margin-bottom: 8px;
}


/* Research Summary */
.research-summary {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  border-left: 4px solid #34b7a7;
}

/* Publications List */
.publications-list {
  display: grid;
  gap: 12px;
}

.service-list {
  display: grid;
  gap: 12px;
}
/* Publication Item */
.publication-item {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  align-items: start;
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  align-items: start;
}

.publication-year {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.service-year {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.publication-content {
  flex: 1;
}

.service-content {
  flex: 1;
}

.publication-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.service-role {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.publication-authors {
  color: #666;
  margin-bottom: 12px;
  font-size: 14px;
}

.publication-venue {
  color: #34b7a7;
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 12px;
}

.service-venue {
  color: #666;
  font-size: 14px;
}

.author-highlight {
  font-weight: 600;
  color: #333;
}

/* Publication Links */
.publication-links {
  margin-bottom: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-link {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.link-paper {
  background: #dc3545;
  color: white;
}

.link-paper:hover {
  background: #c82333;
  color: white;
}

.link-preprint {
  background: #28a745;
  color: white;
}

.link-preprint:hover {
  background: #218838;
  color: white;
}

.link-code {
  background: #6f42c1;
  color: white;
}

.link-code:hover {
  background: #5a32a3;
  color: white;
}

.link-doi {
  background: #007bff;
  color: white;
}

.link-doi:hover {
  background: #0056b3;
  color: white;
}

.link-dataset {
  background: #fd7e14;
  color: white;
}

.link-dataset:hover {
  background: #e8650e;
  color: white;
}

/* Publication Type */
.publication-type {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.service-type {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

/* Keywords */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.keyword {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: white;
  text-transform: capitalize;
}

/* Keyword colors - systematic assignment */
.keyword-1 { background-color: #e74c3c; }
.keyword-2 { background-color: #3498db; }
.keyword-3 { background-color: #2ecc71; }
.keyword-4 { background-color: #f39c12; }
.keyword-5 { background-color: #9b59b6; }
.keyword-6 { background-color: #1abc9c; }
.keyword-7 { background-color: #34495e; }
.keyword-8 { background-color: #e67e22; }
.keyword-9 { background-color: #8e44ad; }
.keyword-10 { background-color: #27ae60; }
.keyword-11 { background-color: #f1c40f; }
.keyword-12 { background-color: #e91e63; }
.keyword-13 { background-color: #00bcd4; }
.keyword-14 { background-color: #ff5722; }
.keyword-15 { background-color: #607d8b; }
.keyword-16 { background-color: #795548; }
.keyword-17 { background-color: #ff9800; }
.keyword-18 { background-color: #4caf50; }
.keyword-19 { background-color: #673ab7; }
.keyword-20 { background-color: #009688; }
.keyword-21 { background-color: #ffeb3b; }
.keyword-22 { background-color: #ff4081; }
.keyword-23 { background-color: #26c6da; }
.keyword-24 { background-color: #66bb6a; }
.keyword-25 { background-color: #ab47bc; }
.keyword-26 { background-color: #42a5f5; }
.keyword-27 { background-color: #ef5350; }
.keyword-28 { background-color: #ffa726; }
.keyword-29 { background-color: #5c6bc0; }
.keyword-30 { background-color: #26a69a; }

/* Abstract Toggle */
.abstract-toggle {
  background: none;
  border: none;
  color: #34b7a7;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  padding: 0;
  margin: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.abstract-toggle:hover {
  color: #2a9d8f;
}

.abstract-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.abstract-toggle.expanded i {
  transform: rotate(180deg);
}

.abstract-content {
  display: none;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #34b7a7;
  border-radius: 4px;
  margin-top: 10px;
}

.abstract-content.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 300px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .publication-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .service-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .publication-links {
    gap: 6px;
  }

  .pub-link {
    font-size: 11px;
    padding: 3px 8px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .research-summary {
    padding: 20px;
    font-size: 15px;
  }

  .keywords {
    gap: 4px;
  }

  .keyword {
    font-size: 10px;
    padding: 2px 8px;
  }
}

@media (max-width: 480px) {
  .publications {
    padding: 40px 0;
  }

  .section {
    margin-bottom: 40px;
  }

  .section-title {
    margin-bottom: 25px;
  }

  .publication-item {
    padding: 20px 0;
  }

  .service-item {
    padding: 20px 0;
  }
}