.page-hero {
  background: linear-gradient(90deg, #f2f4f6, #e6e9ec);
  padding: 40px;
}
.page-hero h1 {
  margin: 0;
  padding-left: 255px; /* no extra offset needed once page-hero padding matches */
  font-size: clamp(20px, 3vw, 32px);
  color: var(--navy);
  font-weight: 700;
}
@media (max-width: 1800px) {
  .page-hero h1 {
    padding-left: 180px;
  }
}
@media (max-width: 1700px) {
  .page-hero h1 {
    padding-left: 140px;
  }
}
@media (max-width: 1600px) {
  .page-hero h1 {
    padding-left: 120px;
  }
}
/* --- large laptop / smaller desktop (matches .mainnav 1500px step) --- */
@media (max-width: 1500px) {
  .page-hero h1 {
    padding-left: 0px;
  }
}
@media (max-width: 1400px) {
  .page-hero h1 {
    padding-left: 0px;
  }
}
/* --- laptop / large tablet (matches .mainnav 1300px step) --- */
@media (max-width: 1300px) {
  .page-hero h1 {
    padding-left: 0px;
  }
}

/* --- small laptop / tablet (matches .mainnav 1100px step) --- */
@media (max-width: 1100px) {
  .page-hero h1 {
    padding-left: 0px;
  }
}

/* --- mobile: logo goes flex-start at 900px, so heading resets to 0 --- */
@media (max-width: 900px) {
  .page-hero h1 {
    padding-left: 0;
  }
}

/* ---------- Layout wrapper ---------- */
.content-wrap {
  display: flex;
  gap: 90px;
  padding: 40px;
  padding-bottom: 180px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* ---------- Main content ---------- */
.content-main {
  flex: 2 1 600px;
  background: #f5f6f7;
  border-radius: 6px;
  padding: 30px;
  min-width: 0;
}
.content-main img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.content-main table {
  width: 100%;
  border-collapse: collapse;
}

/* ---------- Text content (About Us, etc.) ---------- */
.content-main h2 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px 0;
}
.content-main h2:first-child {
  margin-top: 0;
}
.content-main p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px 0;
}
.content-main ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}
.content-main ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}
.content-main strong {
  color: var(--navy);
}

/* ---------- Publications list ---------- */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.pub-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid #e2e6ea;
}
.pub-list li:first-child {
  padding-top: 0;
}
.pub-year {
  display: inline-block;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 10px;
}
.pub-list li a {
  color: var(--teal);
  word-break: break-word;
}
.pub-list li a:hover {
  text-decoration: underline;
}

/* ---------- Team member card ---------- */
.team-member {
  display: flex;
  gap: 28px;
  align-items: stretch;
  max-width: 560px; /* keep the card compact instead of stretching across the whole content area */
}
.team-photo {
  width: 220px;
  min-width: 220px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center; /* keep the face in frame instead of a dead-center crop */
  background: var(--navy-light);
  align-self: stretch; /* photo fills the full height of the text column next to it */
}
.team-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-info h3 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  border-bottom: none;
  padding-bottom: 0;
}
.team-info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 4px 0;
}
.team-info p.role {
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Embedded form (Apply Here) ---------- */
.iframe-wrap {
  width: 100%;
}
.content-main iframe {
  width: 100%;
  min-height: 1500px; /* generous default so the form isn't clipped before JS can measure it */
  border: none;
  display: block;
}

/* ---------- Sidebar ---------- */
.sidebar {
  flex: 1 1 260px;
  padding-top: 6px;
  min-width: 0;
  border-left: 1px solid #e2e6ea; /* separator line between image and links, desktop */
  padding-left: 30px;
}
.sidebar h3 {
  color: var(--navy);
  font-size: 16px;
  border-bottom: 2px solid var(--navy-light);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.sidebar ul li a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
}
.sidebar ul li a:before {
  content: "\203A  ";
  color: var(--teal);
}
.sidebar ul li a:hover {
  color: var(--teal);
}

/* ---------- Contact block ---------- */
.contact-block p {
  font-size: 14px;
  margin: 2px 0;
  color: var(--text);
  word-break: break-word;
}
.contact-block strong {
  display: block;
  color: var(--navy);
  margin-top: 16px;
  margin-bottom: 4px;
}

/* ---------- Misc ---------- */
hr.divider {
  border: none;
  border-top: 1px solid #e2e6ea;
  margin: 24px 0;
}
.no-cat {
  font-size: 14px;
  color: var(--muted);
}
.logo {
  width: 245px;
  height: 75px;
  object-fit: contain;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS (largest → smallest)
   =================================================== */

/* --- laptop / small desktop (≤1100px) --- */
@media (max-width: 1100px) {
  .page-hero {
    padding: 32px 24px;
  }
  .content-wrap {
    padding: 32px 24px;
    gap: 60px;
  }
}

/* --- tablet (≤900px) --- */
@media (max-width: 900px) {
  .page-hero {
    padding: 28px 20px;
  }
  .content-wrap {
    padding: 24px 20px;
    gap: 28px;
  }
  .content-main {
    padding: 20px;
  }
  .team-photo {
    width: 160px;
    min-width: 160px;
  }
}

/* --- large mobile / small tablet (≤768px) --- */
@media (max-width: 768px) {
  .content-main {
    padding: 10px;
    height: auto;
    min-height: 0;
  }
  .content-main img {
    width: 100%;
    height: auto;
  }
  .content-main table {
    font-size: 14px;
  }
  .content-main iframe {
    min-height: 1600px; /* embedded forms tend to need more scroll room on narrow screens */
  }
  .iframe-wrap {
    max-height: 65vh; /* boxed height on mobile */
    overflow-y: auto; /* scroll happens inside this box, not the whole page */
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
  }
}

/* --- mobile: stack sidebar under content (≤600px) --- */
@media (max-width: 600px) {
  .page-hero {
    padding: 22px 16px;
  }
  .content-wrap {
    padding: 16px;
    gap: 24px;
  }
  .content-main {
    padding: 16px;
    flex: none !important;
  }
  .sidebar {
    padding-top: 20px;
    border-left: none; /* remove vertical line */
    border-top: 1px solid #e2e6ea; /* horizontal separator instead, since it's stacked now */
    padding-left: 0;
  }
  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  .team-photo {
    width: 100%;
    max-width: 280px;
    height: 280px;
    min-width: 0;
    object-position: top center; /* same face-safe crop on mobile */
  }
}

/* --- small mobile (≤480px) --- */
@media (max-width: 480px) {
  .content-main {
    padding: 10px;
  }
  .content-main img {
    width: 100%;
  }
}

/* --- very small phones (≤360px) --- */
@media (max-width: 360px) {
  .page-hero {
    padding: 18px 12px;
  }
  .content-wrap {
    padding: 12px;
    gap: 20px;
  }
  .content-main {
    padding: 12px;
  }
  .sidebar h3 {
    font-size: 15px;
  }
}
