/* css styles */

/* Profile Cards Grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.profile-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.profile-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.profile-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.profile-card a {
  color: #6366f1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.profile-card a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .profile-card {
    background: #1f2937;
    border-color: #374151;
  }
  
  .profile-card strong {
    color: #f9fafb;
  }
  
  .profile-card a {
    color: #818cf8;
  }
  
  .profile-card a:hover {
    color: #a5b4fc;
  }
}

/* Publication Link Button */
.btn-publications {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.btn-publications:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  color: white;
  text-decoration: none;
}

.btn-publications i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Publication metadata rows */
.publication-meta {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1.25rem;
}

.publication-meta li {
  display: block;
  padding: 0.2rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.publication-meta li:last-child {
  border-bottom: none;
}

@media (prefers-color-scheme: dark) {
  .publication-meta li {
    border-bottom-color: #374151;
  }
}

/* Research Blocks Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 3rem;
}

.research-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.5rem 1.75rem 1.75rem;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.research-card:hover {
  transform: translateY(-6px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.research-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #f8fafc;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
  margin: -4.5rem auto 1.25rem;
  overflow: hidden;
}

.research-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.research-card-body h3 {
  font-size: 1.2rem;
  color: #111827;
  margin-bottom: 0.75rem;
}

.research-card-body p {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.research-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(99, 102, 241, 0.35);
  color: #ffffff;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .research-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  .research-card-link {
    background: #0f172a;
    border-color: #111827;
  }

  .research-card-body h3 {
    color: #f9fafb;
  }

  .research-card-body p {
    color: #d1d5db;
  }
}
