/* ==========================================================
   Inner pages — shared component system (scoped under .ip)
   Matches the redesigned homepage: royal blue + orange logo
   palette, soft tinted bands, rounded white cards.
   Every rule is scoped under `.ip` (the <main> wrapper of an
   inner page) so legacy Tailwind/style.css rules don't clash.
   ========================================================== */
.ip {
  --ip-blue: #0d4f9c;
  --ip-blue-deep: #083a75;
  --ip-navy: #061f42;
  --ip-orange: #f08a1c;
  --ip-orange-deep: #d9740a;
  --ip-sky: #eef4fb;
  --ip-cream: #fff6ec;
  --ip-tint: #f7f9fc;
  --ip-ink: #142033;
  --ip-muted: #4d5a6c;
  --ip-line: #e5ebf3;
  --ip-radius: 20px;
  --ip-shadow: 0 24px 50px -32px rgba(8, 58, 117, .38);
  display: block;
  width: 100%;
  min-height: 50vh;
  background: #fff;
  color: var(--ip-ink);
}
.ip *, .ip *::before, .ip *::after { box-sizing: border-box; }
.ip img { max-width: 100%; }
.ip a { text-decoration: none; }

/* ---------- layout ---------- */
.ip-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.ip-wrap--narrow { max-width: 900px; }
.ip-section { position: relative; padding: 64px 0; background: #fff; }
.ip-section--tint { background: var(--ip-tint); }
.ip-section--cream { background: var(--ip-cream); }
.ip-section--blue {
  background: linear-gradient(160deg, var(--ip-blue-deep) 0%, var(--ip-blue) 100%);
  color: #fff;
}
.ip-section--blue .ip-title, .ip-section--blue .ip-h3 { color: #fff; }
.ip-section--blue .ip-text, .ip-section--blue .ip-lead { color: rgba(255, 255, 255, .85); }
.ip-section--tight { padding: 40px 0; }

.ip-stack { display: flex; flex-direction: column; gap: 16px; }
.ip-stack--lg { gap: 28px; }
.ip-grid-2, .ip-grid-3, .ip-grid-4 { display: grid; gap: 24px; }
.ip-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ip-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ip-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.ip-split--top { align-items: start; }
.ip-split--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ip-split--main { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.ip-split--reverse > :first-child { order: 2; }
.ip-center { text-align: center; }
.ip-mt { margin-top: 32px; }

/* ---------- page hero ---------- */
.ip-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 88% 15%, rgba(240, 138, 28, .28), transparent 38%),
    linear-gradient(150deg, var(--ip-navy) 0%, var(--ip-blue) 100%);
  color: #fff;
}
.ip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.ip-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ip-orange) 0 30%, rgba(255, 255, 255, .25) 30% 100%);
}
.ip-hero-ring {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 54px solid rgba(255, 255, 255, .06);
  pointer-events: none;
}
.ip-hero .ip-wrap { position: relative; z-index: 1; }
.ip-crumbs {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.ip-crumbs li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); }
.ip-crumbs li + li::before { content: "\f105"; font-family: FontAwesome; color: var(--ip-orange); }
.ip-crumbs a { color: rgba(255, 255, 255, .85); }
.ip-crumbs a:hover { color: #fff; }
.ip-crumbs [aria-current] { color: #fff; }
.ip-hero-title {
  margin: 0;
  max-width: 900px;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.ip-hero-title span { color: var(--ip-orange); }
.ip-hero-sub { margin: 14px 0 0; max-width: 680px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .82); }

/* ---------- typography ---------- */
.ip-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; max-width: 760px; }
.ip-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.ip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ip-orange-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ip-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--ip-orange); }
.ip-title { margin: 0; font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--ip-blue-deep); }
.ip-title span { color: var(--ip-orange); }
.ip-h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; color: var(--ip-blue-deep); }
.ip-h4 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--ip-blue-deep); }
.ip-lead { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ip-muted); }
.ip-text { margin: 0; font-size: 16px; line-height: 1.75; color: var(--ip-muted); }
.ip-strong, .ip strong { color: var(--ip-blue-deep); font-weight: 700; }

.ip-prose { font-size: 16px; line-height: 1.8; color: var(--ip-muted); }
.ip-prose > * + * { margin-top: 14px; }
.ip-prose p { margin: 0; }
.ip-prose h2, .ip-prose h3, .ip-prose h4, .ip-prose h5, .ip-prose h6 { margin: 28px 0 0; color: var(--ip-blue-deep); font-weight: 800; line-height: 1.3; }
.ip-prose h2 { font-size: 26px; }
.ip-prose h3 { font-size: 21px; }
.ip-prose h4, .ip-prose h5, .ip-prose h6 { font-size: 17px; }
.ip-prose ul, .ip-prose ol { margin: 0; padding-left: 22px; }
.ip-prose ul { list-style: disc; }
.ip-prose ol { list-style: decimal; }
.ip-prose li + li { margin-top: 6px; }
.ip-prose li::marker { color: var(--ip-orange); }
.ip-prose a { color: var(--ip-blue); text-decoration: underline; text-underline-offset: 3px; }
.ip-prose img { border-radius: 16px; }
.ip-prose--justify p { text-align: justify; }

.ip-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ip-check li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; color: var(--ip-muted); }
.ip-check li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3e6;
  color: var(--ip-orange-deep);
  font-size: 10px;
}

/* ---------- buttons / links / pills ---------- */
.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ip-btn:hover { transform: translateY(-2px); }
.ip-btn--primary { background: var(--ip-blue); color: #fff; }
.ip-btn--primary:hover { background: var(--ip-blue-deep); color: #fff; }
.ip-btn--accent { background: var(--ip-orange); color: #fff; }
.ip-btn--accent:hover { background: var(--ip-orange-deep); color: #fff; }
.ip-btn--outline { border-color: var(--ip-blue); color: var(--ip-blue); background: transparent; }
.ip-btn--outline:hover { background: var(--ip-blue); color: #fff; }
.ip-btn--sm { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.ip-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.ip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ip-blue);
  font-size: 14.5px;
  font-weight: 700;
  transition: gap .2s ease, color .2s ease;
}
.ip-link:hover { gap: 12px; color: var(--ip-orange-deep); }

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ip-sky);
  color: var(--ip-blue);
  font-size: 12.5px;
  font-weight: 700;
}
.ip-pill--orange { background: #fff3e6; color: var(--ip-orange-deep); }

.ip-icon {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3e6;
  color: var(--ip-orange-deep);
  font-size: 22px;
}
.ip-icon img { width: 28px; height: 28px; object-fit: contain; }
.ip-icon--blue { background: var(--ip-sky); color: var(--ip-blue); }
.ip-icon--solid { background: var(--ip-orange); color: #fff; }

/* ---------- cards ---------- */
.ip-card {
  position: relative;
  padding: 30px;
  border-radius: var(--ip-radius);
  background: #fff;
  border: 1px solid var(--ip-line);
  box-shadow: var(--ip-shadow);
}
.ip-card--flat { box-shadow: none; }
.ip-card--accent { border-left: 4px solid var(--ip-orange); }
.ip-card--tint { background: var(--ip-tint); box-shadow: none; }
.ip-card--blue {
  background: linear-gradient(150deg, var(--ip-blue) 0%, var(--ip-blue-deep) 100%);
  border-color: transparent;
  color: #fff;
}
.ip-card--blue .ip-h3, .ip-card--blue .ip-h4 { color: #fff; }
.ip-card--blue .ip-text { color: rgba(255, 255, 255, .86); }
.ip-card--orange { background: linear-gradient(150deg, var(--ip-orange) 0%, var(--ip-orange-deep) 100%); border-color: transparent; color: #fff; }
.ip-card--orange .ip-h3, .ip-card--orange .ip-h4 { color: #fff; }
.ip-card--orange .ip-text { color: rgba(255, 255, 255, .92); }

/* feature card: icon + title + text */
.ip-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px;
  border-radius: var(--ip-radius);
  background: #fff;
  border: 1px solid var(--ip-line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ip-feature:hover { transform: translateY(-5px); box-shadow: var(--ip-shadow); border-color: rgba(240, 138, 28, .5); }

/* media card: image on top */
.ip-media {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--ip-radius);
  background: #fff;
  border: 1px solid var(--ip-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ip-media:hover { transform: translateY(-5px); box-shadow: var(--ip-shadow); }
.ip-media-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ip-sky); }
.ip-media-img--tall { aspect-ratio: 4 / 5; }
.ip-media-img--wide { aspect-ratio: 16 / 9; }
.ip-media-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ip-media:hover .ip-media-img img { transform: scale(1.06); }
.ip-media-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  background: #fff;
  color: var(--ip-blue-deep);
  font-size: 12.5px;
  font-weight: 700;
}
.ip-media-chip .fa { color: var(--ip-orange); }
.ip-media-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.ip-media-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--ip-blue-deep); }
.ip-media-text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ip-muted); }
.ip-media-meta { font-size: 13px; font-weight: 600; color: var(--ip-orange-deep); }
.ip-media-body .ip-link { margin-top: auto; padding-top: 8px; }

/* numbered list (rules, guidelines, regulations, mission points) */
.ip-steps { counter-reset: ipstep; display: flex; flex-direction: column; gap: 16px; }
.ip-step {
  counter-increment: ipstep;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ip-line);
}
.ip-step::before {
  content: counter(ipstep, decimal-leading-zero);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-blue);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.ip-step:nth-child(even)::before { background: var(--ip-orange); }
.ip-step-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ip-step-title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 800; color: var(--ip-blue-deep); }
.ip-step-text { font-size: 15.5px; line-height: 1.75; color: var(--ip-muted); }
.ip-step-text > * + * { margin-top: 10px; }
.ip-step-text p { margin: 0; }
.ip-step-text ol, .ip-step-text ul { margin: 0; padding-left: 20px; }

/* ---------- profile / message pages ---------- */
.ip-photo {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 24px 24px;
  border: 8px solid #fff;
  background: var(--ip-sky);
  box-shadow: 0 30px 60px -28px rgba(8, 58, 117, .5);
  aspect-ratio: 4 / 5;
}
.ip-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ip-photo--square { border-radius: 24px; aspect-ratio: auto; }
.ip-photo--square img { height: auto; }
.ip-photo-wrap { position: relative; padding: 0 0 24px 24px; }
.ip-photo-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  right: 24px;
  bottom: 0;
  border-radius: 999px 999px 24px 24px;
  border: 3px solid var(--ip-orange);
  opacity: .7;
}
.ip-photo-wrap .ip-photo { position: relative; z-index: 1; }
.ip-photo-wrap--square::before { border-radius: 24px; }
.ip-namecard {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -16px rgba(8, 58, 117, .4);
}
.ip-namecard img { width: 42px; height: 42px; object-fit: contain; }
.ip-namecard strong { display: block; font-size: 15px; line-height: 1.25; color: var(--ip-blue-deep); }
.ip-namecard small { display: block; font-size: 12.5px; color: var(--ip-muted); }
.ip-quote-mark { font-family: Georgia, serif; font-size: 90px; line-height: .6; color: var(--ip-orange); opacity: .5; height: 40px; }
.ip-signature { display: flex; flex-direction: column; gap: 2px; padding-top: 20px; border-top: 1px dashed var(--ip-line); }
.ip-signature strong { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 24px; font-weight: 400; color: var(--ip-blue-deep); }
.ip-signature span { font-size: 13.5px; font-weight: 600; color: var(--ip-muted); }

/* ---------- tables ---------- */
.ip-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--ip-line); background: #fff; }
.ip-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.ip-table th, .ip-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ip-line); color: var(--ip-muted); }
.ip-table th { background: var(--ip-blue); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ip-table tr:last-child td { border-bottom: 0; }
.ip-table tbody tr:nth-child(even) td { background: var(--ip-tint); }

/* ---------- downloads ---------- */
.ip-docs { display: flex; flex-direction: column; gap: 12px; }
.ip-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ip-line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ip-doc:hover { border-color: rgba(240, 138, 28, .55); box-shadow: var(--ip-shadow); }
.ip-doc-title { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--ip-blue-deep); }
.ip-doc-meta { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ip-muted); }

/* ---------- forms ---------- */
.ip-form { display: flex; flex-direction: column; gap: 16px; }
.ip-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ip-field { display: flex; flex-direction: column; gap: 6px; }
.ip-label { font-size: 13.5px; font-weight: 700; color: var(--ip-blue-deep); }
.ip-input, .ip-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ip-line);
  background: var(--ip-tint);
  color: var(--ip-ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ip-input::placeholder, .ip-textarea::placeholder { color: #8a95a6; }
.ip-input:focus, .ip-textarea:focus { border-color: var(--ip-blue); background: #fff; box-shadow: 0 0 0 4px rgba(13, 79, 156, .1); }
.ip-textarea { min-height: 160px; resize: vertical; }

/* ---------- galleries ---------- */
.ip-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ip-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ip-sky);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.ip-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ip-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 58, 117, 0) 55%, rgba(8, 58, 117, .55) 100%); transition: background .3s ease; }
.ip-tile:hover img { transform: scale(1.07); }
.ip-tile:hover::after { background: rgba(8, 58, 117, .45); }
.ip-tile-cap {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .95);
  color: var(--ip-blue-deep);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.ip-tile-cap .fa { color: var(--ip-orange); }
.ip-tile-zoom {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-orange);
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transform: translate(-50%, -30%);
  transition: opacity .25s ease, transform .25s ease;
}
.ip-tile:hover .ip-tile-zoom { opacity: 1; transform: translate(-50%, -50%); }

/* lightbox: JS toggles the Tailwind `hidden` class, so only show when it's absent */
.ip-modal { display: none; }
.ip-modal:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 31, 66, .9);
}
.ip-modal-img { max-width: min(1000px, 100%); max-height: 85vh; width: auto; height: auto; border-radius: 18px; object-fit: contain; }
.ip-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ip-blue-deep);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.ip-modal-close:hover { background: var(--ip-orange); color: #fff; }

.ip-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--ip-navy); }
.ip-video iframe, .ip-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ip-empty {
  padding: 48px 24px;
  border-radius: 18px;
  border: 2px dashed var(--ip-line);
  background: var(--ip-tint);
  text-align: center;
  color: var(--ip-muted);
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ip-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-split, .ip-split--wide, .ip-split--main { grid-template-columns: 1fr; gap: 40px; }
  .ip-split--reverse > :first-child { order: 0; }
  .ip-hero-title { font-size: 42px; }
}
@media (max-width: 640px) {
  .ip-wrap { padding: 0 16px; }
  .ip-section { padding: 44px 0; }
  .ip-hero { padding: 44px 0 52px; }
  .ip-hero-title { font-size: 32px; }
  .ip-title { font-size: 28px; }
  .ip-grid-2, .ip-grid-3, .ip-grid-4, .ip-row { grid-template-columns: 1fr; }
  .ip-card, .ip-feature { padding: 22px; }
  .ip-step { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .ip-btn-row .ip-btn { width: 100%; }
  .ip-doc { flex-wrap: wrap; }
  .ip-doc .ip-btn { width: 100%; }
  .ip-prose--justify p { text-align: left; }
}

/* ==========================================================
   Team / management profile cards (faculty page)
   ========================================================== */
.ip-team-section { overflow: hidden; }
.ip-team-dots {
  position: absolute;
  right: 4%;
  top: 40px;
  width: 160px;
  height: 120px;
  background-image: radial-gradient(rgba(13, 79, 156, .2) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
}
.ip-team {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.ip-member {
  --ip-member-accent: var(--ip-blue);
  --ip-member-accent-2: var(--ip-blue-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--ip-line);
  box-shadow: var(--ip-shadow);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ip-member:nth-child(even) { --ip-member-accent: #f39a2e; --ip-member-accent-2: var(--ip-orange-deep); }
.ip-member:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(8, 58, 117, .5); }

.ip-member-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 128px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .25), transparent 40%),
    linear-gradient(135deg, var(--ip-member-accent) 0%, var(--ip-member-accent-2) 100%);
}
.ip-member-top::after {
  /* soft dot pattern on the band */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}

.ip-member-photo {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 168px;
  margin-top: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  background: var(--ip-sky);
  box-shadow: 0 0 0 3px var(--ip-member-accent), 0 20px 40px -18px rgba(6, 31, 66, .55);
  transition: box-shadow .3s ease;
}
.ip-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s ease; }
.ip-member:hover .ip-member-photo { box-shadow: 0 0 0 3px var(--ip-orange), 0 24px 44px -18px rgba(6, 31, 66, .6); }
.ip-member:hover .ip-member-photo img { transform: scale(1.06); }

.ip-member-body { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.ip-member-name { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--ip-blue-deep); }
.ip-member-role {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ip-sky);
  color: var(--ip-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ip-member:nth-child(even) .ip-member-role { background: #fff3e6; color: var(--ip-orange-deep); }
.ip-member-role p { margin: 0; }

.ip-member-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-top: 1px dashed var(--ip-line);
  background: var(--ip-tint);
  font-size: 12px;
  font-weight: 600;
  color: var(--ip-muted);
}
.ip-member-foot img { width: 22px; height: 22px; object-fit: contain; }

/* closing banner */
.ip-team-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(240, 138, 28, .35), transparent 40%),
    linear-gradient(135deg, var(--ip-blue) 0%, var(--ip-navy) 100%);
  color: #fff;
}
.ip-team-cta-text { display: flex; align-items: center; gap: 16px; }
.ip-team-cta-ico {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-orange);
  color: #fff;
  font-size: 22px;
}
.ip-team-cta strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.ip-team-cta-text span:not(.ip-team-cta-ico) { display: block; font-size: 14px; color: rgba(255, 255, 255, .8); }

@media (max-width: 1100px) { .ip-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .ip-team { grid-template-columns: 1fr; }
  .ip-team-cta { padding: 22px; }
  .ip-team-cta .ip-btn { width: 100%; }
}
