/* Public end-user website — PIDE Rolling Plans */

:root {
  --pub-max: 1120px;
  --pub-hero-grad: linear-gradient(135deg, #0A2E1C 0%, #006B3F 55%, #0d4a2f 100%);
}

.public-site {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 107, 63, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 163, 90, 0.1), transparent 50%),
    var(--bg-page, #f5f7f6);
  color: var(--text, #1a1a1a);
}

/* —— Nav —— */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border, #e2e8e4);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.pub-nav__inner {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pub-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-primary, #006B3F);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.pub-nav__brand img {
  height: 36px;
  width: auto;
}

.pub-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.pub-nav__links a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted, #5a6b62);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.pub-nav__links a:not(.btn):hover,
.pub-nav__links a.is-active {
  color: var(--color-primary, #006B3F);
  border-bottom-color: var(--color-primary, #006B3F);
}

.pub-nav__toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.35rem;
}

.pub-main {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* —— Hero —— */
.pub-hero {
  margin: 1.5rem 0 2.5rem;
  padding: 2.75rem 2rem 2.5rem;
  border-radius: 0 0 1.5rem 1.5rem;
  background: var(--pub-hero-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
  animation: pubFadeUp 0.7s ease both;
}

.pub-hero::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.25), transparent 65%);
  pointer-events: none;
}

.pub-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.pub-hero__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}

.pub-hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.pub-hero__actions .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.pub-hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pub-hero__actions .btn--gold {
  background: var(--color-accent, #C4A35A);
  border-color: var(--color-accent, #C4A35A);
  color: #0A2E1C;
  font-weight: 600;
}

/* —— Sections —— */
.pub-section {
  margin-bottom: 2.75rem;
  animation: pubFadeUp 0.6s ease both;
}

.pub-section:nth-child(2) { animation-delay: 0.08s; }
.pub-section:nth-child(3) { animation-delay: 0.14s; }
.pub-section:nth-child(4) { animation-delay: 0.2s; }

.pub-section__head {
  margin-bottom: 1.25rem;
}

.pub-section__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  color: var(--color-primary, #006B3F);
  letter-spacing: -0.02em;
}

.pub-section__head p {
  margin: 0;
  color: var(--text-muted, #5a6b62);
  max-width: 40rem;
}

.pub-announce {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-accent, #C4A35A);
  background: #fff;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pub-announce h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.pub-announce p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* —— VC —— */
.pub-vc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8e4);
  box-shadow: 0 4px 24px rgba(10, 46, 28, 0.06);
}

@media (min-width: 720px) {
  .pub-vc {
    grid-template-columns: 140px 1fr;
    align-items: start;
  }
}

.pub-vc__mark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--pub-hero-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  margin: 0 auto;
}

.pub-vc h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.pub-vc__role {
  margin: 0 0 0.75rem;
  color: var(--color-accent, #C4A35A);
  font-weight: 600;
  font-size: 0.9rem;
}

.pub-vc blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
}

.pub-vc a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.pub-vc a:hover {
  text-decoration: underline;
}

/* —— Team —— */
.pub-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.pub-team__card {
  background: #fff;
  border: 1px solid var(--border, #e2e8e4);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 140px;
}

.pub-team__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(10, 46, 28, 0.1);
  border-color: rgba(0, 107, 63, 0.35);
}

.pub-team__card--lead {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff 40%, rgba(196, 163, 90, 0.12));
  border-color: rgba(196, 163, 90, 0.55);
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
}

@media (max-width: 600px) {
  .pub-team__card--lead {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pub-team__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0A2E1C;
  background: var(--color-accent, #C4A35A);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.pub-team__name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0;
}

.pub-team__title {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pub-team__role {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0A2E1C;
}

.pub-team__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pub-team__card--lead .pub-team__avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #006B3F, #0A2E1C);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.5);
}

/* —— Vision prose —— */
.pub-prose {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border, #e2e8e4);
  line-height: 1.65;
}

.pub-prose p {
  margin: 0 0 0.75rem;
}

.pub-prose p:last-child {
  margin-bottom: 0;
}

.pub-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.pub-source a {
  color: var(--color-primary);
}

/* —— Service cards —— */
.pub-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.pub-service {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.pub-service:hover {
  border-color: var(--color-primary);
}

.pub-service i {
  color: var(--color-primary);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.pub-service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.pub-service p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— ICT floating tree —— */
.ict-tree-wrap {
  position: relative;
  background: linear-gradient(180deg, #0A2E1C 0%, #063222 100%);
  border-radius: 16px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: 0 12px 40px rgba(10, 46, 28, 0.25);
}

.ict-tree-wrap__hint {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  pointer-events: none;
}

#ict-org-canvas {
  width: 100%;
  height: 560px;
  display: block;
  cursor: grab;
  touch-action: none;
}

#ict-org-canvas.is-dragging {
  cursor: grabbing;
}

.ict-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 260px;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.ict-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ict-tooltip strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.ict-tooltip span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ict-tooltip a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.ict-tooltip__hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary, #006B3F);
}

/* —— Live hierarchy —— */
.pub-hier {
  background:
    radial-gradient(circle at top right, rgba(196, 163, 90, 0.1), transparent 28rem),
    #f7faf8;
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 107, 63, 0.16);
  overflow-x: auto;
  box-shadow: 0 12px 36px rgba(10, 46, 28, 0.08);
}

.pub-hier__toolbar {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 107, 63, 0.13);
}

.pub-hier__search {
  position: relative;
  display: block;
  flex: 1 1 260px;
  max-width: 390px;
}

.pub-hier__search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary, #006B3F);
  pointer-events: none;
}

.pub-hier__search input {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.9rem 0.65rem 2.5rem;
  border: 1px solid rgba(0, 107, 63, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary, #192a3d);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pub-hier__search input:focus {
  border-color: var(--color-primary, #006B3F);
  box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.12);
}

.pub-hier__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-hier__summary {
  margin-right: 0.25rem;
  color: var(--text-muted, #5a6b62);
  font-size: 0.8rem;
  white-space: nowrap;
}

.pub-hier__action {
  border: 1px solid rgba(0, 107, 63, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary, #006B3F);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.pub-hier__action:hover,
.pub-hier__action:focus-visible {
  background: rgba(0, 107, 63, 0.08);
  border-color: rgba(0, 107, 63, 0.45);
}

.pub-hier__roots,
.pub-hier__children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-hier__roots {
  min-width: 300px;
}

.pub-hier__children {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 0.9rem;
  margin: 0.85rem 0 0 1.3rem;
  padding: 0.85rem 0 0 1.15rem;
  border-left: 2px solid rgba(0, 107, 63, 0.2);
  border-top: 1px dashed rgba(0, 107, 63, 0.18);
}

.pub-hier__node {
  min-width: 0;
}

.pub-hier__roots > .pub-hier__node + .pub-hier__node {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0, 107, 63, 0.12);
}

.pub-hier__person {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 0;
}

.pub-hier__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 76px;
  padding: 0.7rem 2.25rem 0.7rem 0.75rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 107, 63, 0.14);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(10, 46, 28, 0.05);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.pub-hier__card:hover,
.pub-hier__card:focus-visible {
  background: #fff;
  border-color: rgba(0, 107, 63, 0.55);
  box-shadow: 0 9px 22px rgba(10, 46, 28, 0.13);
  transform: translateY(-2px);
  outline: none;
}

.pub-hier__card--linked {
  cursor: pointer;
}

.pub-hier__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #006B3F, #0A2E1C);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.1);
}

.pub-hier__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-hier__identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pub-hier__name {
  overflow: hidden;
  color: #192a3d;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub-hier__identity > .pub-hier__capsule {
  align-self: flex-start;
  overflow: hidden;
  max-width: 100%;
  margin-top: 0.35rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub-hier__capsule {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.pub-hier__capsule--designation {
  background: linear-gradient(135deg, rgba(0, 107, 63, 0.16), rgba(0, 107, 63, 0.08));
  color: #006B3F;
  border: 1px solid rgba(0, 107, 63, 0.28);
}

.pub-hier__capsule--department {
  background: linear-gradient(135deg, rgba(30, 104, 168, 0.16), rgba(30, 104, 168, 0.08));
  color: #155a96;
  border: 1px solid rgba(30, 104, 168, 0.28);
}

.pub-hier__capsule--wing {
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.24), rgba(196, 163, 90, 0.1));
  color: #6d5418;
  border: 1px solid rgba(196, 163, 90, 0.4);
}

.pub-hier__capsule--school {
  background: linear-gradient(135deg, rgba(115, 74, 153, 0.16), rgba(115, 74, 153, 0.08));
  color: #623f86;
  border: 1px solid rgba(115, 74, 153, 0.28);
}

.pub-hier__capsule--muted {
  background: #eef2ef;
  color: #708078;
  border: 1px solid #e2e8e4;
}

.pub-hier__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 50%;
  vertical-align: middle;
}

.pub-hier__dot--designation { background: #006B3F; }
.pub-hier__dot--department { background: #1e68a8; }
.pub-hier__dot--wing { background: #C4A35A; }
.pub-hier__dot--school { background: #734a99; }

.pub-hier__external {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  color: rgba(0, 107, 63, 0.55);
  font-size: 0.72rem;
}

.pub-hier__card--linked:hover .pub-hier__external {
  color: var(--color-primary, #006B3F);
}

.pub-hier__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.2rem;
  flex: 0 0 70px;
  border: 1px solid rgba(0, 107, 63, 0.18);
  border-radius: 12px;
  background: rgba(0, 107, 63, 0.06);
  color: var(--color-primary, #006B3F);
  font: inherit;
  cursor: pointer;
}

.pub-hier__toggle span {
  max-width: 60px;
  font-size: 0.65rem;
  line-height: 1.15;
  text-align: center;
}

.pub-hier__toggle:hover,
.pub-hier__toggle:focus-visible {
  background: rgba(0, 107, 63, 0.12);
  outline: none;
}

.pub-hier__node.is-collapsed > .pub-hier__children {
  display: none;
}

.pub-hier__node.is-filtered {
  display: none;
}

.pub-hier__node.is-match > .pub-hier__person > .pub-hier__card {
  border-color: var(--color-accent, #C4A35A);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.18);
}

.pub-hier__empty {
  margin: 1rem 0 0;
  padding: 1.25rem;
  border-radius: 12px;
  background: #fff;
  color: var(--text-muted);
  text-align: center;
}

/* Curated ICT tree: same cards/tooltips, more spacious floating hierarchy. */
.pub-hier--ict-floating {
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 107, 63, 0.12), transparent 18rem),
    radial-gradient(circle at 85% 70%, rgba(196, 163, 90, 0.13), transparent 20rem),
    linear-gradient(180deg, #f9fcfa 0%, #f1f7f3 100%);
}

.pub-hier__float-stage {
  min-height: 500px;
  padding: 1rem 0.5rem 2rem;
  background-image: radial-gradient(rgba(0, 107, 63, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 14px;
}

.pub-hier--ict-floating .pub-hier__roots {
  max-width: 1050px;
  margin: 0 auto;
}

.pub-hier--ict-floating .pub-hier__roots > .pub-hier__node > .pub-hier__person {
  width: min(360px, 100%);
  margin: 0 auto;
}

.pub-hier--ict-floating .pub-hier__children {
  margin: 2.1rem 0 0;
  padding: 1.35rem 0.7rem 0;
  border-left: 0;
  border-top: 2px solid rgba(0, 107, 63, 0.22);
}

.pub-hier--ict-floating .pub-hier__children::before {
  content: '';
  position: absolute;
  top: -2.1rem;
  left: 50%;
  width: 2px;
  height: 2.1rem;
  background: linear-gradient(180deg, rgba(0, 107, 63, 0.35), rgba(0, 107, 63, 0.18));
}

.pub-hier--ict-floating .pub-hier__children > .pub-hier__node {
  position: relative;
}

.pub-hier--ict-floating .pub-hier__children > .pub-hier__node::before {
  content: '';
  position: absolute;
  top: -1.35rem;
  left: 50%;
  width: 2px;
  height: 1.35rem;
  background: rgba(0, 107, 63, 0.22);
}

.pub-hier--ict-floating .pub-hier__person {
  animation: ictNodeArrive 0.55s ease both;
}

.pub-hier--ict-floating .pub-hier__node:nth-child(2n) > .pub-hier__person {
  animation-delay: 0.08s;
}

.pub-hier--ict-floating .pub-hier__node:nth-child(3n) > .pub-hier__person {
  animation-delay: 0.16s;
}

.pub-hier--ict-floating .pub-hier__card {
  border-color: rgba(0, 107, 63, 0.24);
  box-shadow: 0 9px 25px rgba(10, 46, 28, 0.11);
}

.pub-hier--ict-floating .pub-hier__card:hover,
.pub-hier--ict-floating .pub-hier__card:focus-visible {
  box-shadow:
    0 14px 35px rgba(10, 46, 28, 0.18),
    0 0 0 3px rgba(196, 163, 90, 0.16);
}

@keyframes ictNodeArrive {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-hier--ict-floating .pub-hier__person {
    animation: none;
  }
}

.pub-hier__details-template {
  display: none !important;
}

.pub-hier-tip {
  position: fixed;
  z-index: 4000;
  width: min(380px, calc(100vw - 20px));
  max-height: min(520px, calc(100vh - 20px));
  overflow-y: auto;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(0, 107, 63, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: #192a3d;
  box-shadow: 0 22px 60px rgba(10, 46, 28, 0.24);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.pub-hier-tip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pub-hier-tip__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 107, 63, 0.12);
}

.pub-hier-tip__header > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pub-hier-tip__header strong {
  color: #192a3d;
  font-size: 0.95rem;
}

.pub-hier-tip__header small {
  margin-top: 0.15rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.pub-hier-tip__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #006B3F, #0A2E1C);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  box-shadow: 0 0 0 4px rgba(0, 107, 63, 0.1);
}

.pub-hier-tip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-hier-tip__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0.75rem 0 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(0, 107, 63, 0.14);
  color: #5a6b62;
  font-size: 0.68rem;
  font-weight: 650;
}

.pub-hier-tip__group {
  margin-top: 0.75rem;
}

.pub-hier-tip__group b {
  display: block;
  margin-bottom: 0.35rem;
  color: #3A4F66;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pub-hier-tip__capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pub-hier-tip__hint {
  margin: 0.85rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 107, 63, 0.1);
  color: var(--color-primary, #006B3F);
  font-size: 0.75rem;
  font-weight: 650;
}

.pub-hier-tip__hint i {
  margin-right: 0.3rem;
}

.pub-hier-tip__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #006B3F, #0A2E1C);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 107, 63, 0.22);
}

.pub-hier-tip__cta:hover,
.pub-hier-tip__cta:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

@media (max-width: 680px) {
  .pub-hier {
    padding: 0.85rem;
  }

  .pub-hier__toolbar,
  .pub-hier__actions {
    align-items: stretch;
  }

  .pub-hier__search {
    max-width: none;
  }

  .pub-hier__summary {
    width: 100%;
  }

  .pub-hier__children {
    grid-template-columns: 1fr;
    margin-left: 0.55rem;
    padding-left: 0.65rem;
  }

  .pub-hier__toggle {
    flex-basis: 52px;
  }

  .pub-hier__toggle span {
    display: none;
  }

  .pub-hier__avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .pub-hier__card {
    min-height: 68px;
  }

  .pub-hier--ict-floating .pub-hier__children {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .pub-hier--ict-floating .pub-hier__children::before {
    top: -1.5rem;
    height: 1.5rem;
  }
}

/* —— Footer —— */
.pub-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: auto;
}

.pub-footer__inner {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pub-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

.pub-footer a:hover {
  text-decoration: underline;
}

.pub-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0;
}

@keyframes pubFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .pub-nav__toggle {
    display: block;
  }

  .pub-nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }

  .pub-nav__links.is-open {
    display: flex;
  }

  .pub-nav__inner {
    flex-wrap: wrap;
  }

  .pub-hero {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    border-radius: 0;
    padding: 2rem 1.25rem;
  }
}

/* —— Full-bleed home —— */
.pub-main--bleed {
  max-width: none;
  padding: 0;
}

.pub-main--bleed > .pub-section,
.pub-main--bleed > .pide-banner + .pub-section {
  max-width: var(--pub-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.pub-main--bleed > .pub-section {
  margin-bottom: 2.75rem;
}

.pub-page-hero {
  padding: 2rem 0 0.5rem;
}

.pub-page-hero h1 {
  margin: 0 0 0.35rem;
  color: var(--color-primary, #006B3F);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.pub-page-hero p {
  margin: 0;
  color: var(--text-muted);
}

.pub-section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pub-section__head--center p {
  margin-left: auto;
  margin-right: auto;
}

.pub-prose--wide {
  max-width: 48rem;
}

.pub-service {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* —— Banner (pide.org.pk style) —— */
.pide-banner {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.pide-banner__slides {
  position: absolute;
  inset: 0;
}

.pide-banner__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 8s ease;
}

.pide-banner__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.pide-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 46, 28, 0.88) 0%, rgba(10, 46, 28, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
}

.pide-banner__content {
  position: relative;
  z-index: 2;
  max-width: var(--pub-max);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
}

.pide-banner__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #C4A35A);
}

.pide-banner h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.pide-banner__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
}

.pide-banner__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pide-banner__ghost {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: #fff !important;
}

.pide-banner__dots {
  position: absolute;
  z-index: 3;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.pide-banner__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.pide-banner__dots button.is-active {
  background: var(--color-accent, #C4A35A);
}

/* —— Four pillar cards (pide.org.pk clone) —— */
.pide-pillars-section {
  padding-top: 35px !important;
  padding-right: 35px !important;
  padding-bottom: 35px !important;
  padding-left: 35px !important;
  background: #fff;
}

.pide-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

.pide-pillar {
  --pillar-accent: #0f8040;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  min-height: 514px;
  margin: 10px;
  padding: 20px;
  background: transparent;
  border: 0;
  border-top: 5px solid var(--pillar-accent);
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.27);
  color: #3a4f66;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pide-pillar:hover {
  transform: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.27);
}

.pide-pillar--research { --pillar-accent: #0f8040; }
.pide-pillar--academics { --pillar-accent: #111111; }
.pide-pillar--policy { --pillar-accent: #bfa15f; }
.pide-pillar--edc { --pillar-accent: #080147; }

.pide-pillar__icon {
  display: block;
  width: 35px;
  height: 42.4px;
  margin: 0;
  color: var(--pillar-accent);
  font-size: 35px;
  line-height: 35px;
}

.pide-pillar__title {
  margin: 0;
  padding: 0;
  color: #050404;
  font-family: "Lato", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}

.pide-pillar__sub {
  margin: -8px 0 0;
  padding: 0;
  color: #272020;
  font-family: "Merriweather", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
}

.pide-pillar__divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border-top: 1px solid #a7a5a5;
}

.pide-pillar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.pide-pillar__links li {
  display: flex;
  margin: 0;
  padding: 0 0 4px;
  border: 0;
}

.pide-pillar__links a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0;
  padding: 0;
  text-decoration: none;
  color: #000;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 24.75px;
  transition: color 0.15s ease;
}

.pide-pillar__links a i {
  width: 14px;
  margin: 0 3.5px 0 0;
  color: #2872fa;
  font-size: 14px;
  line-height: 14px;
  flex-shrink: 0;
}

.pide-pillar__links a:hover {
  color: #000;
}

.pide-pillar__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 12px 24px;
  border-radius: 3px;
  background: rgba(248, 248, 248, 0.03);
  color: #048834;
  font-family: "Merriweather", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 15px;
  text-decoration: none;
}

.pide-pillar__cta:hover {
  color: #048834;
  text-decoration: none;
}

.pide-pillar__cta i {
  font-size: 15px;
}

/* —— VC spotlight —— */
.pide-vc-section {
  background: linear-gradient(180deg, #f2f5f7 0%, transparent 100%);
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  max-width: none !important;
}

.pub-main--bleed > .pide-vc-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pide-vc {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2rem;
  align-items: center;
}

.pide-vc__photo img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10, 46, 28, 0.18);
  background: #fff;
}

.pide-vc__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent, #C4A35A);
}

.pide-vc h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #192a3d;
}

.pide-vc__role {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

.pide-vc__tagline {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #3A4F66;
}

.pide-vc blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  font-style: italic;
  line-height: 1.65;
  color: #3A4F66;
  font-size: 1.05rem;
}

.pide-vc__more {
  margin: 0 0 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.contact-card p {
  margin: 0.25rem 0;
}

.contact-ict-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-ict-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(0, 107, 63, 0.35);
  border-radius: 999px;
}

.contact-ict-nav a:hover {
  background: rgba(0, 107, 63, 0.08);
}

/* —— PIDE-style footer —— */
.pide-footer {
  margin-top: 2rem;
  color: #fff;
}

.pide-footer__middle {
  background: #192a3d;
  padding: 2.5rem 1.25rem;
}

.pide-footer__grid {
  max-width: var(--pub-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.5rem;
}

.pide-footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

.pide-footer__brand p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.pide-footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #fff;
}

.pide-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pide-footer li {
  margin: 0.35rem 0;
  font-size: 0.85rem;
}

.pide-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.pide-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.pide-footer__contact i {
  width: 1.1rem;
  margin-right: 0.35rem;
  color: var(--color-accent, #C4A35A);
}

.pide-footer__social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.pide-footer__social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pide-footer__bottom {
  background: #c0ccd6;
  color: #192a3d;
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
}

.pide-footer__bottom p {
  margin: 0.25rem 0;
}

.pide-footer__bottom a {
  color: #192a3d;
  font-weight: 600;
}

@media (max-width: 960px) {
  .pide-vc {
    grid-template-columns: 1fr;
  }

  .pide-vc__photo {
    max-width: 280px;
  }

  .pide-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pide-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pide-pillars {
    grid-template-columns: 1fr;
  }

  .pide-footer__grid {
    grid-template-columns: 1fr;
  }

  .pide-banner {
    min-height: 70vh;
  }
}
