@charset "UTF-8";

/* ==========================================================================
   Faculty Profile CSS - Custom Stylesheet
   ========================================================================== */

:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #f9ecec;
  --border: #d6d0c6;
  --text: #1c1a16;
  --text-muted: #6b6558;
  --primary: #b30000;
  --primary-soft: #d8eeef;
  --primary-mid: #1e8a92;
  --accent: #c46c2a;
  --accent-soft: #fae8d8;
  --shadow-sm: 0 2px 8px rgba(28,26,22,.06);
  --shadow-md: 0 8px 28px rgba(28,26,22,.10);
  --shadow-lg: 0 20px 56px rgba(28,26,22,.14);
  --radius: .875rem;
  --radius-sm: .5rem;
}

/* ── Reset Framework Extensions ── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

/* ── Structural Layout ── */
.main-content {
  background-color: var(--bg);
  padding: 40px 0;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ── Profile Base Card ── */
.profile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}

.profile:hover { 
  box-shadow: var(--shadow-md); 
}

/* ── Hero Band Section ── */
.profile-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 32px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.profile-hero img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.profile-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.profile-role {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-dept {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

/* ── Tags / Badges ── */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ptag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(179,0,0,.15);
}

.ptag.accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(196,108,42,.2);
}

.avatar-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255,255,255,.9);
}

.av-teal { 
  background: linear-gradient(135deg, #b30000, #e60000); 
}

/* ── Body Grid Architecture ── */
.profile-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
}

.pb-section {
  padding: 28px;
  border-right: 1px solid var(--border);
}

.pb-section:last-child { 
  border-right: none; 
}

.pb-section.full {
  grid-column: 1 / -1;
  border-right: none;
  border-top: 1px solid var(--border);
  background-color: #fdfdfd;
}

/* Section Headings */
.sec-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--surface-2);
  font-weight: 600;
}

/* Custom Ordered lists */
ul.items { 
  list-style: none; 
}

ul.items li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  margin-bottom: 8px;
  position: relative;
  line-height: 1.6;
}

ul.items li::before {
  content: '';
  position: absolute;
  left: 0; 
  top: 8px;
  width: 6px; 
  height: 6px;
  border-radius: 50%;
  background: var(--primary-mid);
}

/* ── Metrics Grid ── */
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.metric-chip {
  background: var(--surface-2);
  border: 1px solid rgba(179,0,0,.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  flex: 1 1 calc(33.333% - 10px);
  min-width: 80px;
}

.metric-chip strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1;
}

.metric-chip span {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  letter-spacing: .05em;
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
}

/* ── Contacts Elements ── */
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.contact-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .8;
  margin-bottom: 2px;
}

.contact-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-row a:hover { 
  text-decoration: underline; 
}

/* ── Publications Layout ── */
.pub-list { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.pub-item {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: #faf8f5;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  line-height: 1.6;
}

.pub-item em { 
  color: var(--primary); 
  font-style: normal; 
  font-weight: 600; 
}

/* ── Custom Achievement Chips ── */
.award-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(196,108,42,.15);
  margin: 4px 4px 8px 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 991px) {
  .profile-body { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .pb-section:nth-child(2) {
    border-right: none;
  }
  .pb-section:nth-child(3) {
    grid-column: span 2;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 767px) {
  .profile-hero { 
    grid-template-columns: 1fr; 
    text-align: center;
  }
  .profile-hero img {
    margin: 0 auto 10px auto;
  }
  .profile-tags {
    justify-content: center;
  }
  .avatar-badge { 
    display: none; 
  }
}

@media (max-width: 575px) {
  .profile-body { 
    grid-template-columns: 1fr; 
  }
  .pb-section { 
    border-right: none; 
    border-bottom: 1px solid var(--border); 
    padding: 20px;
  }
  .pb-section:nth-child(3) {
    grid-column: span 1;
  }
  .metric-chip {
    flex: 1 1 100%;
  }
}