/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

/* HERO */
.hero {
  background: #172c49; /* similar to the example */
  color: #fff;
  padding: 56px 20px 44px;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.hero-title {
  width: 100%;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero-subtitle {
  margin: 0 0 22px;
  max-width: 1400px;
  width: 90%;
  font-size: 1.05rem;
  opacity: 0.95;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}
/* .btn:hover { background: rgba(255,255,255,0.26); } */
.btn:hover { background: #c69214; }
.btn:active { transform: translateY(1px); }

.btn-secondary {
  background: rgba(0,0,0,0.12);
}

/* LAYOUT */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 34px 20px 60px;
}

/* Sidebar stays visible while scrolling */
.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 10px;
  border-radius: 12px;
  background: #f6f7f8;
  border: 1px solid #eee;
}
.sidebar-title {
  font-weight: 800;
  margin: 6px 10px 12px;
  color: #111;
}

/* Sidebar links: “button-like” hover */
.nav-link {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #1b1b1b;
  font-weight: 600;
}
.nav-link:hover {
  background: #e7eaed;
}

/* Content */
.content section {
  padding: 18px 0 54px;
  border-bottom: 1px solid #efefef;
}
.content section:last-child { border-bottom: none; }

h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

/* Desktop: show the active bullet dot */
.nav-link.active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #111;
  margin-right: 8px;
  vertical-align: middle;
  font-weight: 800;
}

/* Mobile: sidebar becomes top nav */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sidebar {
    position: static;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
  }

  .sidebar-title {
    width: 100%;
    margin-bottom: 6px;
  }

  .nav-link {
    background: #fff;
    border: 1px solid #eee;
  }
  
  .nav-link.active::before {
    content: none;   /* removes the dot on mobile */
  }
}

/* TEAM SECTION */
.team-section {
  margin-bottom: 50px;
}

.team-section h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
}

.team-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.team-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* Ensure mentor card matches student card size */
.mentor-grid .team-card {
    width: 260px; /* same visual width as grid minmax(220px) with padding */
  }  

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
  }
  

.role {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #666;
}

.team-icons {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.team-icons .icon {
  width: 26px;
  height: 26px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.team-icons .icon:hover {
  opacity: 1;
}

/* Mentor centered */
.mentor-grid {
    display: flex;
    justify-content: center;
    max-width: 100%;
  }  

/* Center text for Mentor & Students headings */
.center-text {
    text-align: center;
  }
  
  /* Center sections and grids */
  .team-section.center {
    text-align: center;
  }
  
  /* Ensure mentor card is centered */
  .mentor-grid {
    justify-content: center;
  }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: #4a4a4a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  }
  
  .back-to-top:hover {
    background: #5a5a5a;
  }
  
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
  }

/* ---------------------------------------------
   CONTENT TYPOGRAPHY + SPACING UPGRADE
   --------------------------------------------- */

   .prose {
    max-width: 850px;
    line-height: 1.65;
    font-size: 1.05rem;
  }
  
  .prose section {
    padding: 40px 0 70px;
  }
  
  .prose h2 {
    margin-bottom: 18px;
    font-size: 2.15rem;
    letter-spacing: -0.02em;
    font-weight: 750;
    color: #222;
  }
  
  .prose h3 {
    margin-top: 32px;
    margin-bottom: 14px;
    font-size: 1.45rem;
    font-weight: 700;
  }
  
  .prose p {
    margin: 12px 0 18px;
    color: #333;
    max-width: 800px;
  }
  
  .prose ul, .prose ol {
    margin: 14px 0 20px 20px;
    line-height: 1.6;
  }
  
  .prose li {
    margin-bottom: 6px;
  }
  
  .prose img {
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin: 24px 0;
  }
  
  .prose section + section {
    margin-top: 40px;
  }
  
  @media (max-width: 700px) {
    .prose {
      font-size: 1rem;
      padding: 10px;
    }
  
    .prose h2 {
      font-size: 1.75rem;
    }
  }  

  .img-caption {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    text-align: center;
    margin-top: -10px;   /* pulls caption closer to image */
    margin-bottom: 20px;
  }

  .hero-logos {
    margin-top: 26px;
    display: flex;
    gap: 22px;
    justify-content: flex-end;
    align-items: center;
  }
  
  .hero-logos img {
    height: 48px;       
    width: auto;
    display: block;
    opacity: 0.93;
    transition: opacity 0.2s ease;
  }
  
  .hero-logos img:hover {
    opacity: 1;
  }

  @media (max-width: 700px) {
    .hero-actions-row {
      flex-direction: column;      /* keep them stacked nicely */
      align-items: center;
      gap: 14px;                   /* add spacing between buttons and logos */
    }
  
    .hero-logos {
      margin-top: 6px;             /* extra breathing room */
      justify-content: center;
    }
  }

  .hero-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap; /* keeps it responsive */
  }
  
  /* Ensures both sides stay aligned and don’t push the hero taller */
  .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .hero-logos {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 0; /* remove excess spacing */
  }

/* Grid for 2 images per row */
.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 30px 0;
}

.img-item img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.img-item .img-caption {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  margin-top: 8px;
}

/* Mobile: make it a 1-column stack */
@media (max-width: 700px) {
  .img-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.references p {
  padding-left: 2em;
  text-indent: -2em;
}

.references {
  font-size: 0.95rem;
  line-height: 1.6;
}