/* contact.css - styled to match projects/about/teaching pages */
:root {
  --btn-blue: #1976d2;
  --btn-blue-hover: #1565c0;
}
[data-theme="dark"] {
  --btn-blue: #1976d2;
  --btn-blue-hover: #1565c0;
}
.page-main {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 32px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(25, 118, 210, 0.07);
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.5em;
}
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.page-desc {
  color: var(--accent);
  margin-bottom: 2em;
  font-size: 1.2rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: var(--primary);
  border-bottom: 4px solid var(--primary);
  display: inline-block;
  padding-bottom: 0.25rem;
  background: none;
}
.page-section {
  margin-bottom: 2.5em;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2em;
  margin-bottom: 2em;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1em;
  background: var(--btn-blue);
  color: #fff;
  border-radius: 12px;
  padding: 1.1em 1.3em;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
.contact-card:hover, .contact-card:focus {
  background: var(--btn-blue-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,101,192,0.15);
}
.contact-icon {
  font-size: 2rem;
  margin-right: 0.5em;
}
.contact-label {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}
.contact-bio-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1em;
}
.btn-link {
  background: var(--btn-blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}
.btn-link:hover, .btn-link:focus {
  background: var(--btn-blue-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,101,192,0.15);
}
.contact-bio-flex {
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: flex-start;
}
.contact-bio-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--btn-blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #fff;
}
.contact-bio-text {
  flex: 1;
  background: var(--card-bg);
  color: var(--foreground);
  border-radius: 10px;
  border: 1px solid var(--card-border);
  padding: 1.2em 1.3em;
  font-size: 1.08rem;
  white-space: pre-wrap;
  margin: 0;
  min-width: 0;
}
@media (max-width: 700px) {
  .page-main {
    padding: 16px 4px;
  }
  .contact-bio-flex {
    flex-direction: column;
    gap: 1.2em;
    align-items: flex-start;
  }
  .contact-bio-img {
    width: 80px;
    height: 80px;
  }
}
[data-theme="dark"] .section-title {
  color: #90caf9;
  border-bottom: 4px solid #90caf9;
}
[data-theme="dark"] .contact-card,
[data-theme="dark"] .btn-link {
  background: #1976d2;
  color: #fff;
}
[data-theme="dark"] .contact-card:hover,
[data-theme="dark"] .contact-card:focus,
[data-theme="dark"] .btn-link:hover,
[data-theme="dark"] .btn-link:focus {
  background: #1565c0;
  color: #fff;
}
[data-theme="dark"] .contact-bio-img {
  background: #23272f;
  border: 4px solid #90caf9;
}
[data-theme="dark"] .contact-bio-text {
  background: #23272f;
  color: #e4e6eb;
  border: 1px solid #333;
}
