:root {

  --bg-light1: #fdfbfb;
  --bg-light2: #ebedee;
  --text: #333333;
  --muted: #666666;
  --accent: #444444;
  --border: #d9dde2;
  --surface: #ffffff;
  --radius: 14px;
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-light1), var(--bg-light2));
}

/* Layout helpers */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #666666;
  text-decoration: underline;
}

/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Make all normal paragraphs dark text */
p {
  color: var(--text);
}

/* Strong titles in body text */
p strong {
  font-weight: 700;
  color: var(--text);
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--border);
  width: 44px;
  height: 38px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
}

#primaryNav {
  position: absolute;
  top: 64px;
  right: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
  padding: 0.5rem;
  display: none;
}

#primaryNav.open {
  display: block;
}

#primaryNav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 220px;
}

#primaryNav li {
  margin: 0;
}

#primaryNav a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

#primaryNav a:hover,
#primaryNav a:focus {
  background: #f2f2f2;
  color: #222222;
}

#primaryNav a.active {
  font-weight: 700;
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }

  #primaryNav {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  #primaryNav ul {
    display: flex;
    gap: 0.6rem;
    min-width: auto;
  }

  #primaryNav a {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
  }

  #primaryNav a:hover {
    background: #f5f5f5;
  }
}

/* Cards & Sections */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  margin: 1rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.section {
  margin: 2rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #ffffff;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 160px 1fr;
  }
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.cta {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.cta:hover {
  background: #f7f7f7;
  border-color: #cfd3da;
  color: #222222;
  transform: translateY(-1px);
}

.cta--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.cta--primary:hover {
  background: #666666;
  border-color: #666666;
}

/* Grids */
.team-grid,
.clients-grid,
.mentors-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mentors-grid {
    grid-template-columns: repeat(1, 320px);
    justify-content: center;
  }
}

@media (max-width: 899.98px) {
  .mentors-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mentors-grid .person {
    max-width: 420px;
    width: 100%;
  }
}

/* Person cards */
.person {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.person:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.person img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f7f7f7;
  object-fit: cover;
}

.team-img {
  height: 239px;
}

.client-mentor-img {
  height: 239px;
  max-width: 239px;
}

.person h4 {
  margin: 0.6rem 0 0.2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  padding: 1rem 0;
}

/* --- Shared page helpers --- */
.page-header {
  margin: 2rem 0 1rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
}

.page-intro {
  max-width: 60rem;
}

/* Sub-navigation (for Project page anchors) */
.subnav {
  margin: 1rem 0 1.5rem;
  text-align: center;
}

.subnav a {
  margin: 0 0.75rem;
  font-weight: 600;
}

/* Demo page */
.demo-hero {
  text-align: center;
  padding: 3rem 1rem;
}

/* Timeline (Schedule page) */
.timeline {
  position: relative;
  list-style: none;
  margin: 2rem 0;
  padding: 0 0 0 40px;
  border-left: 2px solid var(--accent);
}

.month {
  position: relative;
  margin: 20px 0;
}

.month::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 17px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.label {
  font-weight: bold;
  margin-bottom: 18px;
  color: var(--accent);
}

.timeline .card {
  margin: 10px 0;
}

.links {
  margin-top: 6px;
}

.links a {
  color: var(--accent);
  text-decoration: underline;
  margin-right: 10px;
  font-size: 0.9rem;
}

.link-card {
  display: block;
  border-radius: 6px;
}

.link-card:hover {
  background: #f5f5f5;
  border-color: var(--accent);
}

.link-card:visited {
  color: inherit;
}

.card.team-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.card.team-photos > img {
  width: 100%;
  height: 300px;   /* adjust if you want taller/shorter */
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  border-radius: 14px;
  overflow: hidden;
  margin-top: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-player {
  width: 100%;
  max-height: 420px;
  margin-top: 0.75rem;
  border-radius: 14px;
  display: block;
  background: #000; /* nice black frame while loading */
}

