/* ===== Resets & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  padding: 20px;
  background-color: white;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
}
.logo img {
  max-width: 100px;
  height: auto;
}
.contact {
  display: flex;
  gap: 10px;
  margin-left: auto;
  align-items: center;
}
.contact a {
  text-decoration: none;
  color: #000;
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.menu-icon {
  font-size: 24px;
  display: block;
  cursor: pointer;
  margin-left: 10px;
}

/* ===== Navigation Pane ===== */
.nav-pane {
  position: fixed;
  left: -100%;
  top: 0;
  width: 28%;
  height: 100%;
  background-color: #f4f4f4;
  padding: 20px;
  transition: left 0.4s ease;
  z-index: 1000;
}
.nav-pane.open { left: 0; }
.nav-pane ul {
  list-style: none;
  margin-top: 5em;
  margin-left: 2em;
}
.nav-pane ul li { margin: 20px 0; }
.nav-pane ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.4rem;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 10px;
}
.nav-pane ul li a:hover { color: coral; }
.close-btn {
  font-size: 45px;
  cursor: pointer;
  position: absolute;
  top: 1.5em;
  right: 30px;
}
.close-btn:hover { color: coral; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  margin-top: 2em;
  font-size: 1rem;
  color: black;
  width: 100%;
}

/* ===== Main Content: Teaching ===== */
.contributions-section {
  text-align: center;
  padding: 40px 20px;
}
.contributions-section h1 {
  font-size: 3rem;
  margin-bottom: 50px;
}

/* Subhead and helper text */
.section-heading {
  font-size: 2rem;
  margin-bottom: 10px;
}
.section-subtext {
  color: #444;
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Slides / Resources */
.media-gallery { margin-top: 40px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px;
}
.media-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.media-card:hover { transform: translateY(-4px) scale(1.03); }
.media-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #eee;
}
.media-info { padding: 18px; flex: 1; }
.media-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.media-desc { font-size: 1rem; color: #444; }

/* ===== TA Section (Centered Section + Narrow Cards) ===== */
.ta-experience {
  margin-top: 48px;
  text-align: center; /* centers heading + subtext */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ta-list {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers the cards */
  gap: 16px;
  margin-top: 12px;
  width: 100%;
}

.ta-item {
  width: 85%;
  max-width: 800px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: left; /* keeps card content readable */
}

.ta-placeholder {
  opacity: 0.7;
  font-style: italic;
  text-align: center;
}

.ta-course {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
  text-align: center;
}

.ta-meta {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
  justify-content: center; /* center the term & students */
}

.ta-contrib {
  font-size: 0.98rem;
  margin-bottom: 8px;
  text-align: center; /* center contribution text */
}

.ta-artifacts {
  margin-top: 6px;
  text-align: center; /* center artifact buttons */
}

.ta-artifacts .btn-link {
  appearance: none;
  border: none;
  background: transparent;
  color: coral;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* ===== Modal (kept as-is for functionality) ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.modal-centerer {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.20);
  width: 80vw;
  height: 90%;
  max-width: 1400px;
  max-height: 1400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 3em;
}
.modal-content-wrapper {
  flex: 1;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
}
.modal-content-wrapper img,
.modal-content-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}
.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  color: #222;
  cursor: pointer;
  background: none;
  border: none;
}
.close-modal:hover { color: coral; }
.modal-action { text-align: center; }
.modal-action button {
  padding: 10px 28px;
  font-size: 1rem;
  background: coral;
  color: #222;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-action button:hover { background: darkorange; }

/* ===== Responsive ===== */
@media (max-width: 1400px) {
  .modal-centerer {
    max-width: 98vw;
    width: 98vw;
    padding: 1rem 0.5rem 1.8rem 0.5rem;
  }
  .modal-content-wrapper img,
  .modal-content-wrapper iframe {
    height: 60vh !important;
  }
}
@media (max-width: 900px) {
  .modal-centerer {
    max-width: 99vw;
    width: 99vw;
    padding: 0.7rem 0.2rem 1.2rem 0.2rem;
  }
  .modal-content-wrapper img,
  .modal-content-wrapper iframe {
    height: 38vh !important;
  }
}
@media (max-width: 768px) {
  .nav-pane { width: 100%; }
  .contributions-section h1 { font-size: 2rem; }
  .section-heading { font-size: 1.5rem; }
  .logo img { max-width: 80px; }
  .ta-item {
    width: 95%;
    max-width: none;
  }
}
@media (max-width: 480px) {
  .logo img { max-width: 80px; }
  .nav-pane { width: 100%; }
}
