/* Homepage: modern, professional layout */

:root {
  --home-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --home-font-serif: 'Outfit', Georgia, "Times New Roman", serif;
  --home-navy: #0a1628;
  --home-navy-muted: #1a2d4a;
  --home-accent: #1565c0;
  --home-accent-light: #e3f2fd;
  --home-bg: #fafbfc;
  --home-card-bg: #fff;
  --home-border: rgba(10, 22, 40, 0.08);
  --home-text: #1a1d21;
  --home-text-muted: #5c6573;
}

.home-main {
  padding-bottom: 3rem;
  background: var(--home-bg);
}

/* Hero */
.home-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(160deg, #fff 0%, #f5f8fc 50%, #eef4fb 100%);
  border-bottom: 1px solid var(--home-border);
}

/* Desktop (≥992px): photo left, name + affiliation + research right */
.home-hero-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-hero-photo {
  flex-shrink: 0;
}

.home-hero-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.12);
}

.home-hero-text {
  flex: 1;
  min-width: 0;
  max-width: 56ch;
}

.home-hero-name {
  font-family: var(--home-font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.home-hero-aff {
  font-family: var(--home-font-sans);
  font-size: 0.95rem;
  color: var(--home-text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.home-hero-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.75rem 0;
}

.home-hero-logos a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-hero-logos img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.home-hero-logos a:hover img {
  opacity: 1;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-logos img { transition: none; }
}

.home-hero-lead {
  font-family: var(--home-font-sans);
  font-size: 1.05rem;
  color: var(--home-text);
  margin: 0;
  line-height: 1.6;
}

/* <992px: photo on top, then title, then text (stacked) */
@media (max-width: 991px) {
  .home-hero-inner {
    flex-direction: column;
    gap: 1.25rem;
    max-width: 56ch;
  }
  .home-hero-text {
    flex: none;
    max-width: none;
  }
  .home-hero-photo img {
    width: 160px;
    height: 160px;
  }
}

/* Stats strip */
.home-stats {
  padding: 2rem 0;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.home-stat-card {
  background: var(--home-card-bg);
  border: 1px solid var(--home-border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-stat-card:hover {
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.08);
  border-color: rgba(21, 101, 192, 0.2);
}

.home-stat-value {
  font-family: var(--home-font-sans);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--home-accent);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.home-stat-label {
  font-family: var(--home-font-sans);
  font-size: 0.8rem;
  color: var(--home-text-muted);
  font-weight: 500;
}

.home-stat-src {
  font-weight: 400;
  color: var(--home-text-muted);
  opacity: 0.9;
}

@media (max-width: 991px) {
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .home-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA section */
.home-cta {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--home-border);
}

.home-keywords {
  font-family: var(--home-font-sans);
  font-size: 0.9rem;
  color: var(--home-text-muted);
  margin: 0 0 1rem 0;
}

.home-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-home {
  font-family: var(--home-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-home-primary,
.btn-home-primary:link,
.btn-home-primary:visited {
  background: var(--home-accent);
  color: #fff;
  border: 1px solid var(--home-accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-home-primary:hover {
  background: var(--home-navy-muted);
  border-color: var(--home-navy-muted);
  color: #fff;
}

.btn-home-secondary {
  background: var(--home-accent-light);
  color: var(--home-accent);
  border: 1px solid rgba(21, 101, 192, 0.3);
}

.btn-home-secondary:hover {
  background: rgba(21, 101, 192, 0.15);
  color: var(--home-navy-muted);
}

.btn-home-outline {
  background: transparent;
  color: var(--home-text-muted);
  border: 1px solid var(--home-border);
}

.btn-home-outline:hover {
  border-color: var(--home-text-muted);
  color: var(--home-text);
}

/* Latest publications */
.home-latest {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid var(--home-border);
}

.home-section-title {
  font-family: var(--home-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--home-navy);
  margin: 0 0 1rem 0;
}

.home-latest-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-latest-item {
  font-family: var(--home-font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--home-border);
}

.home-latest-item:last-child {
  border-bottom: none;
}

.home-latest-item a {
  color: var(--home-text);
  text-decoration: none;
}

.home-latest-item a:hover {
  color: var(--home-accent);
  text-decoration: underline;
}

.home-latest-item .home-pub-year {
  color: var(--home-text-muted);
  font-weight: 600;
  margin-right: 0.5rem;
}

.home-latest-more {
  margin: 1.25rem 0 0 0;
  font-size: 0.95rem;
}

.home-latest-more a {
  color: var(--home-accent);
  font-weight: 600;
  text-decoration: none;
}

.home-latest-more a:hover {
  text-decoration: underline;
}
