/* ==========================================================================
   ADMINISTRATION & GOVERNANCE STYLESHEET
   Arignar Anna Zoological Park (AAZP), Vandalur
   Unified Highlighted Cream Background (#EDEEDF) & Professional Responsive Cards
   ========================================================================== */

:root {
  --adm-cream: #edeedf;
  --adm-cream-light: #f6f7ee;
  --adm-bg: #edeedf;
  /* Signature warm cream highlight tone matching website base */
  --adm-bg-soft: #e5e8da;
  --adm-card-surface: #ffffff;
  --adm-green-deep: #0b2e21;
  --adm-green-forest: #065f46;
  --adm-green-light: #0d7a5b;
  --adm-lime: #d3ef67;
  --adm-gold: #d5a84b;
  --adm-text-main: #1f2937;
  --adm-text-muted: #4b5563;
  --adm-border-color: rgba(6, 95, 70, 0.16);
  --adm-shadow-subtle: 0 4px 18px rgba(6, 95, 70, 0.07);
  --adm-shadow-hover: 0 14px 32px rgba(6, 95, 70, 0.12);
  --adm-radius: 18px;
  --adm-radius-sm: 12px;
}

/* --------------------------------------------------------------------------
   1. CLEAN PAGE HEADER WITH UNIFIED BACKGROUND & NEAT STAT CARDS
   -------------------------------------------------------------------------- */
.adm-page-body {
  background-color: var(--adm-bg);
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.adm-clean-header {
  background: var(--adm-bg);
  border-bottom: none;
  padding: 38px 0 16px 0;
  text-align: center;
}

.adm-header-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Badge */
.adm-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(6, 95, 70, 0.18);
  font-family: var(--font-body), 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--adm-green-forest);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.05);
}

.adm-header-badge i {
  color: var(--adm-green-forest);
}

/* Main Title matching home page font */
.adm-header-title {
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 600;
  color: var(--adm-green-deep);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.adm-header-desc {
  font-family: var(--font-body), 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--adm-text-muted);
  line-height: 1.6;
  max-width: 740px;
  margin: 0 auto;
  font-weight: 400;
}

/* 5 Stats Pills Neatly Aligned & Fully Responsive */
.adm-header-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.adm-stat-pill-card {
  background: #ffffff;
  border: 1px solid rgba(6, 95, 70, 0.16);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  text-align: left;
}

.adm-stat-pill-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 100% 0%, rgba(211, 239, 103, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.adm-stat-pill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 95, 70, 0.35);
  box-shadow: 0 10px 24px rgba(6, 95, 70, 0.12), inset 0 1px 0 #ffffff;
}

.adm-stat-pill-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf7f1 0%, #dfefe5 100%);
  border: 1px solid rgba(6, 95, 70, 0.16);
  color: var(--adm-green-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(6, 95, 70, 0.06);
}

.adm-stat-pill-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adm-stat-pill-text strong {
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--adm-green-deep);
  line-height: 1.15;
}

.adm-stat-pill-text span {
  font-family: var(--font-body), 'Inter', sans-serif;
  font-size: 0.74rem;
  color: var(--adm-text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   2. STICKY TOP TOGGLE BAR (SEAMLESS FLOATING CAPSULE, NO DIVIDING EDGES)
   -------------------------------------------------------------------------- */
.adm-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--adm-bg);
  border: none;
  box-shadow: none;
  padding: 10px 0 16px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.adm-nav-wrapper.adm-nav-scrolled {
  background: rgba(237, 238, 223, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(6, 95, 70, 0.08);
}

/* Only the toggle capsule itself is shown */
.adm-nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  padding: 6px;
  border-radius: 999px;
  border: 1.5px solid rgba(6, 95, 70, 0.16);
  box-shadow: 0 4px 20px rgba(6, 95, 70, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  scrollbar-width: none;
}

.adm-nav-capsule::-webkit-scrollbar {
  display: none;
}

.adm-nav-pill-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #065f46 0%, #087a5b 100%);
  box-shadow: 0 3px 12px rgba(6, 95, 70, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.adm-tab-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: #173d30;
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.adm-tab-btn:hover:not(.active) {
  color: var(--adm-green-deep);
  background: rgba(6, 95, 70, 0.05);
}

.adm-tab-btn.active {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.adm-tab-btn i {
  font-size: 0.92rem;
  color: var(--adm-green-forest);
  transition: color 0.25s ease;
}

.adm-tab-btn.active i {
  color: var(--adm-lime);
}

.adm-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #dde5dc;
  color: #173d30;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.adm-tab-btn.active .adm-tab-badge {
  background: var(--adm-lime);
  color: #03261c;
}

/* --------------------------------------------------------------------------
   3. PANELS & COMMON SECTION HEADERS (SAME UNIFIED BG)
   -------------------------------------------------------------------------- */
.adm-main-content {
  padding: 24px 0 84px;
  background: var(--adm-bg);
  /* EXACT SAME BACKGROUND AS HEADER */
  min-height: 70vh;
}

.adm-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.adm-tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.adm-tab-panel.animating-out {
  display: block;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.adm-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 38px;
}

.adm-section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--adm-green-forest);
  margin-bottom: 6px;
}

.adm-section-title {
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 600;
  color: var(--adm-green-deep);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.adm-section-sub {
  font-size: 0.95rem;
  color: var(--adm-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   4. TAB 1: ADMINISTRATION LEADERS (CRISP WHITE CARDS WITH BG EFFECTS)
   -------------------------------------------------------------------------- */
.adm-leaders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.adm-leader-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(211, 239, 103, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(6, 95, 70, 0.04) 0%, transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #fafcfb 45%, #f1f7f3 100%);
  border-radius: var(--adm-radius);
  border: 1px solid rgba(6, 95, 70, 0.16);
  border-left: 5px solid var(--adm-green-forest);
  box-shadow: 0 6px 24px -4px rgba(6, 95, 70, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.adm-leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.adm-leader-card:hover::before {
  left: 150%;
}

.adm-leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -6px rgba(6, 95, 70, 0.13), 0 4px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
  border-color: rgba(6, 95, 70, 0.32);
}

.adm-leader-portrait-col {
  text-align: center;
  position: relative;
  z-index: 1;
}

.adm-portrait-frame {
  width: 195px;
  height: 225px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f4f7f5 100%);
  padding: 4px;
  border: 2px solid rgba(6, 95, 70, 0.16);
  box-shadow: 0 8px 22px rgba(6, 95, 70, 0.09), inset 0 1px 0 #ffffff;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.adm-leader-card:hover .adm-portrait-frame {
  border-color: var(--adm-green-forest);
  transform: scale(1.02);
}

.adm-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
}

.adm-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--adm-green-forest);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(6, 95, 70, 0.16);
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.04);
}

.adm-rank-badge i {
  color: var(--adm-gold);
}

.adm-leader-order {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--adm-green-forest);
  background: linear-gradient(135deg, #eef7f2 0%, #e2f1e8 100%);
  border: 1px solid rgba(6, 95, 70, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.adm-leader-name {
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--adm-green-deep);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.adm-leader-designation {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--adm-green-forest);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.adm-cred-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid rgba(6, 95, 70, 0.16);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #173d30;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(6, 95, 70, 0.03);
  transition: all 0.2s ease;
}

.adm-cred-chip:hover {
  background: #ffffff;
  border-color: rgba(6, 95, 70, 0.28);
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.08);
}

.adm-cred-chip i {
  color: var(--adm-green-forest);
}

.adm-leader-bio {
  font-size: 0.93rem;
  color: var(--adm-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.adm-leader-bio p {
  margin-bottom: 10px;
}

.adm-leader-bio p:last-child {
  margin-bottom: 0;
}

.adm-btn-dossier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #065f46 0%, #0a7356 100%);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(6, 95, 70, 0.22);
}

.adm-btn-dossier:hover {
  background: linear-gradient(135deg, #044633 0%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 95, 70, 0.32);
}

/* --------------------------------------------------------------------------
   5. TAB 2: FOREST RANGE OFFICERS (PROFESSIONAL RESPONSIVE CARDS)
   -------------------------------------------------------------------------- */
.adm-fro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 22px;
}

.adm-fro-card {
  background:
    radial-gradient(circle at 95% 10%, rgba(16, 185, 129, 0.09) 0%, transparent 45%),
    linear-gradient(145deg, #ffffff 0%, #fbfdfc 45%, #f1f7f4 100%);
  border-radius: var(--adm-radius);
  border: 1px solid rgba(6, 95, 70, 0.16);
  border-top: 4px solid var(--adm-green-forest);
  box-shadow: 0 4px 18px rgba(6, 95, 70, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
}

.adm-fro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(6, 95, 70, 0.12), inset 0 1px 0 #ffffff;
  border-color: rgba(6, 95, 70, 0.3);
}

.adm-fro-avatar-wrap {
  width: 124px;
  height: 124px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f3f7f5 100%);
  padding: 4px;
  border: 2px solid rgba(6, 95, 70, 0.18);
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.08), inset 0 1px 0 #ffffff;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.adm-fro-card:hover .adm-fro-avatar-wrap {
  transform: scale(1.04);
  border-color: var(--adm-green-forest);
}

.adm-fro-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.adm-fro-badge-id {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef7f2 0%, #e2f1e8 100%);
  border: 1px solid rgba(6, 95, 70, 0.18);
  color: var(--adm-green-forest);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.adm-fro-name {
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--adm-green-deep);
  margin-bottom: 4px;
}

.adm-fro-role {
  font-size: 0.88rem;
  color: var(--adm-text-muted);
  font-weight: 500;
  margin-bottom: 14px;
  min-height: 38px;
  line-height: 1.35;
}

.adm-fro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid rgba(6, 95, 70, 0.12);
  padding-top: 14px;
}

.adm-fro-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: #214034;
  border: 1px solid rgba(6, 95, 70, 0.14);
  box-shadow: 0 1px 3px rgba(6, 95, 70, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   6. TAB 3: SCIENTIFIC MANAGEMENT TEAM (CRISP WHITE SPECIALIST CARDS)
   -------------------------------------------------------------------------- */
.adm-sci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.adm-sci-card {
  background:
    radial-gradient(circle at 95% 10%, rgba(13, 122, 91, 0.09) 0%, transparent 45%),
    linear-gradient(145deg, #ffffff 0%, #fbfdfc 45%, #eff6f3 100%);
  border-radius: var(--adm-radius);
  border: 1px solid rgba(6, 95, 70, 0.16);
  border-top: 4px solid #0d7a5b;
  box-shadow: 0 4px 18px rgba(6, 95, 70, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 26px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
}

.adm-sci-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(6, 95, 70, 0.12), inset 0 1px 0 #ffffff;
  border-color: rgba(6, 95, 70, 0.3);
}

.adm-sci-avatar-wrap {
  width: 124px;
  height: 124px;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #eff5f2 100%);
  padding: 4px;
  border: 2px solid rgba(6, 95, 70, 0.16);
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.08), inset 0 1px 0 #ffffff;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.adm-sci-card:hover .adm-sci-avatar-wrap {
  transform: scale(1.04);
  border-color: #0d7a5b;
}

.adm-sci-avatar {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.adm-sci-field-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6f5f0 0%, #d8eee6 100%);
  border: 1px solid rgba(13, 122, 91, 0.2);
  color: var(--adm-green-forest);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.adm-sci-name {
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--adm-green-deep);
  margin-bottom: 4px;
}

.adm-sci-role {
  font-size: 0.9rem;
  color: var(--adm-green-forest);
  font-weight: 500;
  margin-bottom: 12px;
}

.adm-sci-duty {
  font-size: 0.83rem;
  color: var(--adm-text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(6, 95, 70, 0.12);
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   7. TAB 4: SUPPORT TEAM & TECHNICAL SECTION (RESPONSIVE CARDS)
   -------------------------------------------------------------------------- */
.adm-staff-subheading {
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--adm-green-deep);
  margin: 32px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-staff-subheading i {
  color: var(--adm-green-forest);
  font-size: 1.05rem;
}

.adm-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.adm-staff-card {
  background: #ffffff;
  border-radius: var(--adm-radius-sm);
  border: 1px solid rgba(6, 95, 70, 0.16);
  border-left: 4px solid #10b981;
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease;
}

#admTechGrid .adm-staff-card {
  border-left: 4px solid #d5a84b;
  border-color: rgba(213, 168, 75, 0.25);
}

.adm-staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(6, 95, 70, 0.12), inset 0 1px 0 #ffffff;
  border-color: rgba(6, 95, 70, 0.32);
}

#admTechGrid .adm-staff-card:hover {
  border-color: rgba(213, 168, 75, 0.45);
  box-shadow: 0 10px 22px rgba(213, 168, 75, 0.14), inset 0 1px 0 #ffffff;
}

.adm-staff-avatar-box {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  padding: 2px;
  border: 1.5px solid rgba(6, 95, 70, 0.18);
  box-shadow: 0 3px 8px rgba(6, 95, 70, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.adm-staff-card:hover .adm-staff-avatar-box {
  transform: scale(1.05);
  border-color: var(--adm-green-forest);
}

.adm-staff-avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

.adm-staff-meta {
  overflow: hidden;
  flex: 1;
}

.adm-staff-name {
  font-family: var(--font-heading), 'Fredoka', cursive, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--adm-green-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.adm-staff-role {
  font-size: 0.82rem;
  color: var(--adm-green-forest);
  font-weight: 500;
  line-height: 1.35;
}

.adm-staff-dept {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   8. TAB 5: ORGANISATION CHART (SINGLE UNIFIED CARD WITH EMBEDDED CONTROLS)
   -------------------------------------------------------------------------- */
.adm-org-card {
  background: #ffffff;
  border-radius: var(--adm-radius);
  border: 1px solid rgba(6, 95, 70, 0.16);
  box-shadow: 0 6px 24px rgba(6, 95, 70, 0.07);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.adm-org-card:hover {
  box-shadow: 0 12px 32px rgba(6, 95, 70, 0.1);
}

.adm-org-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  padding: 14px 24px;
  border: none;
  border-bottom: 1px solid rgba(6, 95, 70, 0.12);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.adm-org-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(6, 95, 70, 0.18);
  color: var(--adm-green-forest);
  cursor: pointer;
  font-size: 0.88rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.adm-tool-btn:hover {
  background: var(--adm-green-forest);
  color: #ffffff;
  border-color: var(--adm-green-forest);
  transform: translateY(-1px);
}

.adm-org-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #334155;
}

.adm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adm-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.adm-org-canvas-wrap {
  position: relative;
  background: #ffffff;
  border: none;
  box-shadow: none;
  border-radius: 0;
  min-height: 540px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 24px 48px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.adm-org-canvas-wrap.adm-canvas-grabbing {
  cursor: grabbing;
}

.adm-org-card:fullscreen,
.adm-org-card:-webkit-full-screen {
  background: #ffffff;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.adm-org-card:fullscreen .adm-org-canvas-wrap,
.adm-org-card:-webkit-full-screen .adm-org-canvas-wrap {
  flex: 1;
  height: calc(100vh - 65px);
  min-height: auto;
}

.adm-tree-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1040px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  transition: transform 0.25s ease;
  transform-origin: top center;
}

.adm-node {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.adm-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.adm-node--director {
  background: linear-gradient(135deg, #065f46 0%, #0b3d2e 100%);
  color: #ffffff;
  font-size: 1rem;
  padding: 14px 32px;
  border: 2px solid rgba(211, 239, 103, 0.4);
  box-shadow: 0 6px 20px rgba(6, 95, 70, 0.25);
}

.adm-node--deputy {
  background: linear-gradient(135deg, #0d7a5b 0%, #065f46 100%);
  color: #ffffff;
  font-size: 0.92rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.adm-tree-connector-v {
  width: 2px;
  height: 24px;
  background: #64748b;
}

.adm-branches-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
  position: relative;
  padding-top: 24px;
}

.adm-branches-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #64748b;
}

.adm-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: opacity 0.2s ease;
}

.adm-branch-col::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 2px;
  height: 24px;
  background: #64748b;
  transform: translateX(-50%);
}

/* Pillar 1: Assistant Director -> Range & Maintenance */
.adm-node--asst-dir { 
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%); 
  color: #ffffff; 
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  width: 100%;
}
.adm-node--asst-dir small {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.adm-node--range-head { 
  background: linear-gradient(135deg, #be123c 0%, #e11d48 100%); 
  color: #ffffff; 
  border: none;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.28);
  margin-top: 14px; 
  width: 100%;
}

.adm-list--range .adm-node--leaf {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 3.5px solid #e11d48;
  color: #881337;
  font-weight: 500;
}
.adm-list--range .adm-node--leaf:hover {
  background: #ffe4e6;
  border-color: #e11d48;
  transform: translateY(-1px);
}

.adm-node--maint-head { 
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%); 
  color: #ffffff; 
  border: none;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.28);
  margin-top: 14px; 
  width: 100%;
}

.adm-list--maint .adm-node--leaf {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 3.5px solid #ea580c;
  color: #7c2d12;
  font-weight: 500;
}
.adm-list--maint .adm-node--leaf:hover {
  background: #ffedd5;
  border-color: #ea580c;
  transform: translateY(-1px);
}

/* Pillar 2: Technical Team */
.adm-node--tech { 
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%); 
  color: #ffffff; 
  border: none;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
  width: 100%;
}

.adm-list--tech .adm-node--leaf {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 3.5px solid #ea580c;
  color: #7c2d12;
  font-weight: 500;
}
.adm-list--tech .adm-node--leaf:hover {
  background: #ffedd5;
  border-color: #ea580c;
  transform: translateY(-1px);
}

/* Pillar 3: Veterinary Care Team */
.adm-node--vet { 
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%); 
  color: #ffffff; 
  border: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.28);
  width: 100%;
}

.adm-list--vet .adm-node--leaf {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-left: 3.5px solid #7c3aed;
  color: #581c87;
  font-weight: 500;
}
.adm-list--vet .adm-node--leaf:hover {
  background: #f3e8ff;
  border-color: #7c3aed;
  transform: translateY(-1px);
}

/* Pillar 4: Research & Education */
.adm-node--research { 
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%); 
  color: #ffffff; 
  border: none;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
  width: 100%;
}

.adm-list--research .adm-node--leaf {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-left: 3.5px solid #d97706;
  color: #713f12;
  font-weight: 500;
}
.adm-list--research .adm-node--leaf:hover {
  background: #fef9c3;
  border-color: #d97706;
  transform: translateY(-1px);
}

/* Pillar 5: Support Team */
.adm-node--support { 
  background: linear-gradient(135deg, #047857 0%, #059669 100%); 
  color: #ffffff; 
  border: none;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
  width: 100%;
}

.adm-list--support .adm-node--leaf {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 3.5px solid #059669;
  color: #14532d;
  font-weight: 500;
}
.adm-list--support .adm-node--leaf:hover {
  background: #dcfce7;
  border-color: #059669;
  transform: translateY(-1px);
}

.adm-subnode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.adm-node--leaf {
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* --------------------------------------------------------------------------
   9. MODAL DOSSIER
   -------------------------------------------------------------------------- */
.adm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 46, 33, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.adm-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.adm-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  border-radius: var(--adm-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.adm-modal-backdrop.active .adm-modal-dialog {
  transform: translateY(0);
}

.adm-modal-header {
  padding: 18px 24px;
  background: var(--adm-green-deep);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adm-modal-title {
  font-family: var(--font-body), 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.adm-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.adm-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.adm-modal-body {
  padding: 24px;
  overflow-y: auto;
  line-height: 1.6;
  color: var(--adm-text-main);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   10. THOROUGH RESPONSIVENESS (MOBILE, TABLET, DESKTOP)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .adm-header-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .adm-leader-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }

  .adm-credentials-row,
  .adm-leader-designation {
    justify-content: center;
  }

  .adm-btn-dossier {
    margin: 0 auto;
  }

  .adm-nav-capsule {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .adm-clean-header {
    padding: 28px 0 24px;
  }

  .adm-header-title {
    font-size: 1.85rem;
  }

  .adm-header-desc {
    font-size: 0.92rem;
  }

  .adm-nav-capsule {
    border-radius: 16px;
    padding: 4px;
  }

  .adm-nav-pill-indicator {
    border-radius: 12px;
  }

  .adm-tab-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .adm-tab-btn i {
    font-size: 0.82rem;
  }

  .adm-main-content {
    padding: 32px 0 60px;
  }

  .adm-section-title {
    font-size: 1.6rem;
  }

  .adm-org-canvas-wrap {
    padding: 24px 14px 36px;
  }
}

@media (max-width: 640px) {
  .adm-header-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .adm-header-stats-grid .adm-stat-pill-card:last-child {
    grid-column: span 2;
  }

  .adm-fro-grid,
  .adm-sci-grid,
  .adm-staff-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .adm-leader-card {
    padding: 22px 16px;
  }

  .adm-portrait-frame {
    width: 170px;
    height: 195px;
  }

  .adm-leader-name {
    font-size: 1.3rem;
  }

  .adm-leader-designation {
    font-size: 0.88rem;
  }

  .adm-cred-chip {
    font-size: 0.76rem;
    padding: 4px 9px;
  }

  .adm-fro-card,
  .adm-sci-card {
    padding: 22px 16px;
  }

  .adm-staff-card {
    padding: 12px 14px;
  }
}

@media (max-width: 420px) {
  .adm-header-stats-grid {
    grid-template-columns: 1fr;
  }

  .adm-header-stats-grid .adm-stat-pill-card:last-child {
    grid-column: span 1;
  }
}
/* Visually hidden, still read by screen readers and search engines */
.adm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
