:root {
  --primary-color: #0a66c2;
  --primary-dark: #004182;
  --primary-darkest: #003366;
  --text-primary: #222;
  --text-secondary: #4b5862;
  --bg-light: #f7f9fc;
  --bg-hover: #e3ebf9;
  --border-light: #ddd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  font-family: 'Computer Modern Serif', serif;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.profile-container {
  max-width: 700px;
  width: 100%;
}

.profile-header {
  text-align: center;
}

.cover-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cover-image {
  width: 100%;
  height: auto;
  display: block;
  transform: scaleY(1.1765);
  transform-origin: top center;
}

h1 {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.headline {
  margin: 0 0 32px 0;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 3px solid var(--border-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tabs-nav button {
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  transition: border-color 0.3s ease, color 0.3s ease;
  position: relative;
  top: 3px;
  font-family: inherit;
}

.tabs-nav button:hover:not([aria-selected="true"]) {
  color: var(--primary-dark);
}

.tabs-nav button[aria-selected="true"] {
  border-bottom-color: var(--primary-color);
  color: var(--primary-darkest);
}

.tab-content {
  display: none;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.honors-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.honors-table tbody tr {
  background: var(--bg-light);
  box-shadow: 0 1px 4px rgba(10, 102, 194, 0.1);
  transition: background-color 0.3s ease;
}

.honors-table tbody tr:hover {
  background: var(--bg-hover);
}

.honors-table tbody td {
  padding: 16px;
  vertical-align: top;
}

.honors-table tbody td:first-child {
  width: 80px;
  font-weight: 600;
  color: var(--primary-color);
}

.honors-table strong {
  color: var(--primary-darkest);
}

.teaching-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.teaching-card {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teaching-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(10, 102, 194, 0.2);
}

.teaching-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.teaching-card p {
  margin: 6px 0;
}

.teaching-card a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.teaching-card a:hover {
  text-decoration: underline;
  color: var(--primary-darkest);
}

.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.contact-form button {
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Inter', sans-serif;
}

.contact-form button:hover {
  background: var(--primary-dark);
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  h1 {
    font-size: 2rem;
  }

  .headline {
    font-size: 1.05rem;
  }

  .tabs-nav {
    justify-content: space-around;
    border-bottom: none;
  }

  .tabs-nav button {
    flex: 1 1 45%;
    margin-bottom: 10px;
    min-width: 110px;
  }

  .honors-table {
    font-size: 0.92rem;
  }

  .honors-table tbody td:first-child {
    width: 60px;
  }
}