body {
  background-color: #f2f2f2;
  font-family: var(--ncer-font);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Section */
.freelance-section {
  background-color: #cccccc;
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h3 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.section-title h3 span {
  color: #009966;
}

/* ============================================================
   HOME TEAM — the chairman sits on the left and stays put; the
   rest of the senior team rotate through the card on the right,
   so two people are on screen at once.
   ============================================================ */
.team-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: stretch;
}
.team-lead-card,
.team-rota-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: none;
  border: none;
  padding: 0;
}
.team-lead-card { height: 100%; }

.team-card-photo img {
  width: 246px;
  height: 286px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  display: block;
}
.team-card-info { min-width: 0; }
.team-card-info .name {
  font-family: inherit;
  font-size: 27px;
  font-weight: 700;
  color: #0f2557;
  margin: 0 0 .45rem;
  line-height: 1.2;
}
.team-card-info .role {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #1e4a99;
  margin: 0;
}

.team-lead-contact {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(15, 37, 87, .15);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.team-lead-contact li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 16px;
  color: #4a5568;
  word-break: break-word;
}
.team-lead-contact i { color: #e8440a; font-size: 14px; width: 16px; text-align: center; }
.team-lead-contact a { color: inherit; text-decoration: none; }
.team-lead-contact a:hover { color: #1e4a99; text-decoration: underline; }

/* Right-hand card: one visible, the rest stacked behind it. */
.team-rota { position: relative; min-height: 330px; }
.team-rota-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.team-rota-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Arrows and dots sit together under the rotating card; floating the
   arrows beside it left them stranded in the gutter once the card
   backgrounds came off. */
.team-rota-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 3;
}
.team-rota-nav {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 37, 87, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  color: #0f2557;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.team-rota-nav:hover { background: #0f2557; color: #fff; border-color: #0f2557; }

.team-rota-dots {
  display: flex;
  gap: .4rem;
}
.team-rota-dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(15, 37, 87, .2);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.team-rota-dot.active { background: #e8440a; width: 34px; }

@media (max-width: 991px) {
  .team-duo { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 575px) {
  .team-lead-card, .team-rota-card { flex-direction: column; text-align: center; gap: 1rem; }
  .team-card-photo img { width: 220px; height: 260px; }
  .team-lead-contact li { justify-content: center; }
  .team-rota { min-height: 440px; }
}




/* The `.section-title h3 { margin: 0 }` rule above is unscoped, so on the home
   page it also removes the gap that the shared decorative bar
   (style.css `.section-title h3:after`) sits in. In the about-info block that
   bar then lands on the first line of body copy ("NCER is a Nepalese..."), so
   drop it there. */
.about-info .section-title h3:after { display: none; }
