/* Base styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: #333333;
  background-color: #f5f5f5;
}

a {
  color: #b51f1f;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Layout */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

main {
  flex: 1;
}

/* Containers */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header and nav */

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand-title {
  font-size: 22px;
  font-weight: 600;
}

.brand-subtitle {
  display: block;
  font-size: 13px;
  color: #666666;
  margin-top: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

nav li a {
  font-size: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav li a.active {
  border-bottom-color: #ed1b2f;
}

/* ============================================================
   HOME PAGE HERO — COMPACT, BALANCED VERSION
   ============================================================ */

.hero {
  background-color: #ed1b2f !important; /* McGill red */
  color: #ffffff;
  padding: 32px 0 24px 0;  /* compact height */
  margin: 12px 0 24px 0;   /* spacing above/below */
}

.hero-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 32px;
}

/* Logo */

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  height: 140px;
  width: auto;
}

/* Title + Intro */

.hero-intro h1 {
  font-size: 28px;
  margin: 0 0 8px 0;
}

.hero-intro p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
}

.hero-intro strong,
.hero-intro em {
  font-weight: 600;
}

/* Professor box */

.hero-highlight-box {
  background-color: rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.hero-highlight-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

/* ============================================================
   SUBPAGES HERO (Research, Teaching, etc.)
   ============================================================ */

.hero-compact {
  background-color: #ed1b2f !important;
  color: #ffffff;
  padding: 28px 0 22px 0;  /* slightly smaller than main hero */
  margin: 12px 0 24px 0;
}

.hero-compact .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 32px;
}

.hero-compact .hero-intro h1 {
  font-size: 26px;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

section {
  padding: 40px 0;
}

section:nth-of-type(even) {
  background-color: #f5f5f5;
}

section:nth-of-type(odd) {
  background-color: #ffffff;
}

.section-title {
  font-size: 22px;
  margin: 0 0 16px 0;
}

.section-subtitle {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #555555;
}

/* Two-column layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-info {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
}

.contact-block h3 {
  margin-top: 0;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 800px) {
  .hero-inner,
  .hero-compact .hero-inner,
  .two-column,
  .contact-info {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-logo img {
    height: 120px;
  }

  .hero-intro h1 {
    font-size: 24px;
  }

  section {
    padding: 28px 0;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background-color: #333333;
  color: #ffffff;
  font-size: 12px;
  padding: 12px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
