/* Shared public chrome: topbar, nav, footer, lightbox — both themes */

.pub-container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
.pub-main { min-height: 55vh; }

/* Top bar — Classic (Mud) default */
.pub-topbar {
  background: linear-gradient(90deg, #0a3d91 0%, #1565c0 55%, #1e88e5 100%);
  color: #e3f2fd;
  font-size: .85rem;
  padding: .4rem 0;
  border-bottom: 2px solid #ffc107;
}
.pub-topbar .pub-notice-badge { background: #ffc107; color: #0d47a1; }
.pub-topbar .lang-switcher.variant-dark .lang-chip.active {
  background: #ffc107;
  color: #0d47a1;
}

/* Edufy top bar — teal / amber */
.edufy-site .pub-topbar {
  background: linear-gradient(90deg, #134e4a 0%, #0f766e 50%, #0d9488 100%);
  color: #ecfdf5;
  border-bottom: 2px solid #f59e0b;
}
.edufy-site .pub-topbar .pub-notice-badge {
  background: #f59e0b;
  color: #134e4a;
}
.edufy-site .pub-topbar .pub-top-link { color: #fde68a; }
.edufy-site .pub-topbar .lang-switcher.variant-dark .lang-chip.active {
  background: #f59e0b;
  color: #134e4a;
}
.pub-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 1.6rem;
}
.pub-notice {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.pub-notice-badge {
  flex-shrink: 0;
  background: #f59e0b;
  color: #111;
  font-weight: 800;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .15rem .5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pub-notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-weight: 500;
  animation: pub-fade .4s ease;
}
@keyframes pub-fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.pub-top-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.pub-top-link { color: #cbd5e1; text-decoration: none; white-space: nowrap; }
.pub-top-link:hover { color: #fff; }
.pub-top-name { font-weight: 600; color: #fff; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.pub-top-meta {
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  font-size: .8rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

/* Nav */
.pub-nav {
  position: relative;
  z-index: 30;
  background: #0f766e;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.pub-shell.public-site .pub-nav.mud-nav,
.public-site .pub-nav.mud-nav {
  background: #0d47a1;
}
.pub-nav-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 0;
  flex-wrap: nowrap;
}
.pub-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  min-width: 0;
}
.pub-logo { height: 40px; width: auto; object-fit: contain; }
.pub-brand-text {
  max-width: min(100%, 560px);
  white-space: normal;
  line-height: 1.25;
  font-size: clamp(.88rem, 2.2vw, 1.08rem);
  font-weight: 800;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}
.pub-burger {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  flex-shrink: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
}
.pub-burger:hover { background: rgba(255,255,255,.22); }
.pub-burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  pointer-events: none;
}
.pub-burger-lines i {
  display: block;
  height: 2.5px;
  background: #fff;
  border-radius: 1px;
  width: 100%;
}
.pub-burger-label { display: none !important; }

.pub-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .1rem;
  margin-left: auto;
  min-width: 0;
}
.pub-menu a, .pub-more-btn {
  color: #fff;
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.pub-menu a:hover, .pub-more-btn:hover { background: rgba(255,255,255,.12); }
.pub-login {
  background: #f59e0b !important;
  color: #111 !important;
  font-weight: 700 !important;
  margin-left: .25rem;
}
.pub-more { position: relative; }
.pub-more-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 180px;
  background: #0f172a;
  border-radius: 10px;
  padding: .4rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: 40;
}
.pub-more-panel.open { display: flex; flex-direction: column; }
@media (min-width: 961px) {
  .pub-more:hover .pub-more-panel { display: flex; flex-direction: column; }
  .pub-menu a, .pub-more-btn { padding: .4rem .55rem; font-size: .86rem; }
}

.pub-more-panel a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 8px;
}

@media (max-width: 960px) {
  .pub-nav-row {
    flex-wrap: wrap;
    padding: .5rem 0;
    gap: .5rem;
  }
  .pub-menu { flex-wrap: wrap; }
  .pub-more { width: 100%; }
  .pub-more-btn { width: 100%; text-align: left; }
  .pub-more-panel.open { display: flex !important; }
  .pub-burger {
    display: flex !important;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 40;
  }
  .pub-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: .65rem 0 .35rem;
    border-top: 1px solid rgba(255,255,255,.15);
    gap: .15rem;
  }
  .pub-menu.open {
    display: flex !important;
  }
  .pub-menu a,
  .pub-more-btn {
    width: 100%;
    text-align: left;
    padding: .7rem .85rem !important;
    white-space: normal;
  }
  .pub-nav-tools {
    width: 100%;
    margin: .35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    justify-content: space-between;
  }
  .pub-menu .pub-nav-extra { display: block !important; }
  .pub-more-panel {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,.12);
    margin-top: .25rem;
  }
  .pub-topbar-row { flex-wrap: wrap; }
  .pub-notice { max-width: 100%; width: 100%; }
  .pub-top-right { width: 100%; flex-wrap: wrap; }
  .pub-brand-text {
    max-width: calc(100vw - 110px);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    -webkit-line-clamp: unset;
    font-size: .95rem;
  }
  .pub-container { padding-left: .85rem; padding-right: .85rem; }
  .pub-main { overflow-x: hidden; }
  img, video { max-width: 100%; height: auto; }
  .pub-page-banner { padding: 1.25rem 0 !important; }
  .pub-page-title { font-size: 1.35rem !important; }
}

@media (max-width: 600px) {
  .pub-logo { height: 34px; }
  .pub-brand-text {
    max-width: calc(100vw - 100px);
    font-size: .9rem;
    white-space: normal;
  }
  .pub-login span:not(.pub-login-ico) { /* keep label on mobile */ }
  .pub-float-stack, .pub-theme-fab, .pub-ai-fab, .pub-whatsapp {
    /* keep visible but smaller — theme-specific bottoms already set */
  }
}

/* Footer */
.pub-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 2rem;
  padding-top: 2rem;
}
.pub-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding-bottom: 1.75rem;
}
.pub-footer-title {
  display: inline-block;
  background: #1e293b;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  border-left: 4px solid #22c55e;
}
.pub-footer-list, .pub-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pub-footer-list li { margin-bottom: .55rem; }
.pub-footer-list a {
  color: #94a3b8;
  text-decoration: none;
}
.pub-footer-list a:hover { color: #fff; }
.pub-footer-list a::before {
  content: "🔗 ";
  color: #f43f5e;
  font-size: .75rem;
}
.pub-footer-contact li {
  display: flex;
  gap: .75rem;
  margin-bottom: .85rem;
  align-items: flex-start;
}
.pub-footer-contact .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #1e293b;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pub-footer-contact a { color: #e2e8f0; text-decoration: none; }
.pub-footer-bottom {
  border-top: 1px solid #1e293b;
  background: #0b1220;
  padding: .85rem 0;
  font-size: .85rem;
  color: #64748b;
}
.pub-footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pub-social {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.pub-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
}
.pub-social a:hover { background: #0ea5e9; }

/* Floating stack (top → bottom on screen): Theme → WhatsApp → AI → Scroll-to-top */
.pub-scroll-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.25rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  background: #0f172a;
  color: #22c55e;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1200;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pub-scroll-top:hover {
  background: #14532d;
  color: #86efac;
}

@media (max-width: 900px) {
  .pub-footer-grid { grid-template-columns: 1fr; }
}

/* Lightbox (shared) */
.pub-lightbox, .ed-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(2,6,23,.9);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem;
  animation: pub-fade .2s ease;
}
.pub-lightbox img, .ed-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}
.pub-lb-close, .ed-lb-close {
  position: absolute; top: 14px; right: 18px;
  background: rgba(255,255,255,.1);
  border: none; color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.pub-lb-cap, .ed-lb-cap {
  color: #e2e8f0;
  margin-top: .75rem;
  text-align: center;
  max-width: 90vw;
}


/* Home About + Notice Board (screenshot style) */
.pub-about-wrap { padding: 2.75rem 0 2rem; overflow: visible; }
.pub-about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
}
.pub-about-media {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.pub-about-photo {
  position: relative;
  width: 88%;
  border-radius: 22px;
  overflow: hidden;
  min-height: 380px;
  background: #0f172a;
  box-shadow: 0 22px 50px rgba(15,23,42,.18);
  z-index: 1;
}
.pub-about-photo img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}
.pub-about-photo-ph {
  min-height: 380px;
  background: linear-gradient(135deg, #0d9488, #0f172a);
}
/* Content card: sits mid-height, overlaps image ~10% */
.pub-about-card {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(52%, 420px);
  margin-right: -2%;
  left: auto;
  bottom: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.25rem;
  box-shadow: 0 18px 44px rgba(15,23,42,.16);
  z-index: 2;
}
.pub-about-card h2 {
  margin: 0 0 .65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-about-card h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: #22c55e;
  border-radius: 4px;
  margin-top: .45rem;
}
.pub-about-card p {
  margin: 0 0 1rem;
  color: #475569;
  line-height: 1.75;
  font-size: .92rem;
  max-height: 9.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  white-space: pre-wrap;
}
.pub-about-more {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-weight: 600;
  font-size: .85rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  text-decoration: none;
}
.pub-about-more:hover { background: #bbf7d0; }

.pub-notice-board {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #eef2f7;
  box-shadow: 0 12px 36px rgba(15,23,42,.06);
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.pub-nb-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-bottom: .85rem;
}
.pub-nb-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-nb-icon { font-size: 1.2rem; }
.pub-nb-list { flex: 1; display: flex; flex-direction: column; gap: .55rem; }
.pub-nb-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: .65rem .75rem;
}
.pub-nb-alert {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.pub-nb-body { flex: 1; min-width: 0; }
.pub-nb-title {
  font-size: .9rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pub-nb-detail {
  flex-shrink: 0;
  background: #ecfdf5;
  color: #0d9488;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .65rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.pub-nb-detail:hover { background: #d1fae5; }
.pub-nb-foot { text-align: center; margin-top: .9rem; }
.pub-nb-all {
  display: inline-block;
  background: #16a34a;
  color: #fff !important;
  font-weight: 700;
  padding: .55rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
}
.pub-nb-all:hover { background: #15803d; }
.pub-nb-empty { text-align: center; color: #94a3b8; padding: 1rem; }

@media (max-width: 960px) {
  .pub-about-grid { grid-template-columns: 1fr; }
  .pub-about-media { min-height: auto; display: block; }
  .pub-about-photo { width: 100%; }
  .pub-about-card {
    position: relative;
    top: auto; transform: none;
    width: auto;
    margin: -2.5rem 1rem 0;
    right: auto;
  }
  .pub-about-card {
    position: relative;
    right: auto; bottom: auto;
    width: auto;
    margin: -2.5rem 1rem 0;
  }
  .pub-about-photo { min-height: 240px; }
  .pub-about-photo img { min-height: 240px; }
}


/* Leadership speeches + important links */
.pub-speech-wrap { padding: 2.25rem 0 1rem; }
.pub-speech-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.pub-speech-panel {
  background: transparent;
}
.pub-speech-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pub-speech-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-speech-nav { display: flex; gap: .4rem; }
.pub-speech-nav button {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  color: #334155;
}
.pub-speech-nav button:hover { background: #f1f5f9; }
.pub-speech-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.pub-speech-card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  min-height: 280px;
}
.pub-speech-top {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-bottom: .85rem;
}
.pub-speech-photo {
  width: 88px; height: 88px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}
.pub-speech-photo-ph {
  width: 88px; height: 88px;
  border-radius: 14px;
  background: linear-gradient(135deg,#cbd5e1,#94a3b8);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.pub-speech-meta h3 {
  margin: .15rem 0 .25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-speech-meta h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #22c55e;
  border-radius: 3px;
  margin-top: .35rem;
}
.pub-speech-quote {
  color: #16a34a;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}
.pub-speech-name {
  color: #475569;
  font-size: .9rem;
  font-weight: 600;
  margin-top: .35rem;
}
.pub-speech-body {
  color: #475569;
  font-size: .9rem;
  line-height: 1.75;
  max-height: 11em;
  overflow: hidden;
  white-space: pre-wrap;
}

.pub-ilinks {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15,23,42,.06);
  padding: 1.1rem;
}
.pub-ilinks-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-bottom: .9rem;
}
.pub-ilinks-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-ilink-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: .55rem .7rem;
  margin-bottom: .5rem;
}
.pub-ilink-ico {
  color: #f43f5e;
  font-weight: 700;
  flex-shrink: 0;
}
.pub-ilink-title {
  flex: 1;
  min-width: 0;
  font-size: .88rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pub-ilink-btn {
  flex-shrink: 0;
  background: #ecfdf5;
  color: #0d9488;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .65rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.pub-ilink-btn:hover { background: #d1fae5; }

@media (max-width: 960px) {
  .pub-speech-grid { grid-template-columns: 1fr; }
  .pub-speech-track { grid-template-columns: 1fr; }
}


/* Teachers panel + other links — no overlap */
.pub-teacher-wrap {
  padding: 2rem 0 2.75rem;
  position: relative;
  z-index: 1;
  clear: both;
  overflow: hidden;
  width: 100%;
}
.pub-teacher-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  isolation: isolate;
}
.pub-teacher-grid-layout > * {
  min-width: 0;
  max-width: 100%;
}
.pub-teacher-main { min-width: 0; max-width: 100%; }
.pub-ilinks {
  position: relative;
  z-index: 1;
  align-self: start;
  max-width: 100%;
}
.pub-teacher-head {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-teacher-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}
.pub-tcard {
  display: flex;
  gap: .75rem;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: .75rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
  align-items: flex-start;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
}
.pub-tcard .ed-photo-btn {
  flex-shrink: 0;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 0;
}
.pub-tcard-photo {
  width: 88px; height: 88px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
  display: block;
}
.pub-tcard-photo-ph {
  width: 88px; height: 88px;
  border-radius: 14px;
  background: linear-gradient(135deg,#cbd5e1,#94a3b8);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.pub-tcard-body {
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}
.pub-tcard-name {
  margin: 0 0 .15rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pub-tcard-role {
  margin: 0 0 .55rem;
  color: #64748b;
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pub-tcard-icons {
  display: flex;
  gap: .35rem;
  margin-bottom: .55rem;
}
.pub-tcard-icons a {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
}
.pub-tcard-icons a:hover { background: #d1fae5; }
.pub-tcard-more {
  display: inline-block;
  background: #ecfdf5;
  color: #0d9488;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 999px;
  text-decoration: none;
}
.pub-tcard-more:hover { background: #d1fae5; }

@media (max-width: 1100px) {
  .pub-teacher-grid-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pub-teacher-cards { grid-template-columns: 1fr; }
}



/* Home gallery carousel */
.pub-gal-wrap { padding: 2rem 0 2.5rem; }
.pub-gal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.pub-gal-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-gal-nav { display: flex; gap: .4rem; }
.pub-gal-nav button {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  color: #334155;
}
.pub-gal-nav button:hover { background: #f1f5f9; }
.pub-gal-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pub-gal-card {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 4 / 3;
  width: 100%;
  box-shadow: 0 12px 30px rgba(15,23,42,.1);
}
.pub-gal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pub-gal-card .pub-gal-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1rem .85rem;
  background: linear-gradient(transparent, rgba(15,23,42,.82));
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.pub-gal-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  background: rgba(0,0,0,.2);
  pointer-events: none;
}
.pub-gal-more-wrap { text-align: center; margin-top: 1.25rem; }
.pub-gal-more {
  display: inline-block;
  background: #ecfdf5;
  color: #0d9488;
  font-weight: 700;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
}
.pub-gal-more:hover { background: #d1fae5; }

/* Lightbox with prev/next */
.pub-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
}
.pub-lightbox-nav:hover { background: rgba(255,255,255,.28); }
.pub-lightbox-nav.prev { left: 16px; }
.pub-lightbox-nav.next { right: 16px; }
.pub-lb-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #e2e8f0;
  font-size: .9rem;
}

@media (max-width: 960px) {
  .pub-gal-track { grid-template-columns: 1fr; }
  .pub-gal-card { aspect-ratio: 16 / 10; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .pub-gal-track { grid-template-columns: 1fr 1fr; }
}


/* School committee members */
.pub-committee-wrap { padding: 2rem 0 2.5rem; }
.pub-committee-head {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-committee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pub-ccard {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 1.25rem 1rem 1.15rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
}
.pub-ccard-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .9rem;
  display: block;
  background: #e2e8f0;
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
}
.pub-ccard-photo-ph {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto .9rem;
  background: linear-gradient(135deg,#cbd5e1,#94a3b8);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}
.pub-ccard-name {
  margin: 0 0 .25rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-ccard-role {
  margin: 0 0 .55rem;
  color: #64748b;
  font-size: .88rem;
}
.pub-ccard-meta {
  color: #94a3b8;
  font-size: .78rem;
  line-height: 1.55;
  margin-bottom: .7rem;
}
.pub-ccard-icons {
  display: flex;
  justify-content: center;
  gap: .4rem;
}
.pub-ccard-icons a {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
}
.pub-ccard-icons a:hover { background: #d1fae5; }
.pub-committee-more-wrap { text-align: center; margin-top: 1.25rem; }

@media (max-width: 1100px) {
  .pub-committee-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pub-committee-grid { grid-template-columns: 1fr; }
}


/* Class-wise student stats */
.pub-stats-wrap { padding: 2rem 0 1.5rem; }
.pub-stats-head {
  margin: 0 0 1.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.5rem;
}
.pub-stat-circle {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .5rem;
}
.pub-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #16a34a;
  line-height: 1.1;
}
.pub-stat-label {
  font-size: .78rem;
  color: #64748b;
  margin-top: .2rem;
}
.pub-stat-class {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: .1rem;
}

/* Best students carousel */
.pub-best-wrap { padding: 1.5rem 0 2.5rem; }
.pub-best-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.pub-best-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-best-nav { display: flex; gap: .4rem; }
.pub-best-nav button {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  color: #334155;
}
.pub-best-nav button:hover { background: #f1f5f9; }
.pub-best-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pub-best-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 1rem .85rem 1.1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.pub-best-photo {
  width: 100%;
  aspect-ratio: 1;
  max-width: 160px;
  margin: 0 auto .75rem;
  border-radius: 14px;
  object-fit: cover;
  background: #e2e8f0;
  display: block;
}
.pub-best-photo-ph {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  margin: 0 auto .75rem;
  border-radius: 14px;
  background: linear-gradient(135deg,#cbd5e1,#94a3b8);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.pub-best-name {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
}
.pub-best-class {
  margin: .25rem 0 0;
  font-size: .8rem;
  color: #64748b;
}

@media (max-width: 960px) {
  .pub-best-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pub-best-track { grid-template-columns: 1fr; }
  .pub-stat-circle { width: 120px; height: 120px; }
}


/* News / Blog section */
.pub-blog-wrap { padding: 2rem 0 2.5rem; }
.pub-blog-head {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.pub-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.pub-blog-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
  display: flex;
  flex-direction: column;
}
.pub-blog-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}
.pub-blog-img-ph {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0d9488, #0f172a);
}
.pub-blog-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pub-blog-meta {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: #94a3b8;
  font-size: .8rem;
  margin-bottom: .55rem;
}
.pub-blog-title {
  margin: 0 0 .9rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.pub-blog-more {
  display: inline-block;
  align-self: flex-start;
  background: #ecfdf5;
  color: #0d9488;
  font-size: .82rem;
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: 999px;
  text-decoration: none;
}
.pub-blog-more:hover { background: #d1fae5; }
.pub-blog-all-wrap { text-align: center; margin-top: 1.25rem; }

@media (max-width: 960px) {
  .pub-blog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .pub-blog-grid { grid-template-columns: 1fr 1fr; }
}


/* legacy pub-ai-fab block removed — use unified stack */
.pub-ai-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 9.5rem;
  width: min(360px, calc(100vw - 24px));
  max-height: min(480px, 70vh);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15,23,42,.25);
  display: flex;
  flex-direction: column;
  z-index: 61;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.pub-ai-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: #0f766e;
  color: #fff;
}
.pub-ai-x { background: transparent; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
.pub-ai-note {
  font-size: .72rem;
  color: #64748b;
  padding: .4rem .85rem;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}
.pub-ai-msgs {
  flex: 1;
  overflow: auto;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: #f8fafc;
}
.pub-ai-msg {
  max-width: 90%;
  padding: .55rem .75rem;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.pub-ai-msg.bot { background: #fff; border: 1px solid #e2e8f0; align-self: flex-start; color: #0f172a; }
.pub-ai-msg.user { background: #ccfbf1; align-self: flex-end; color: #134e4a; }
.pub-ai-input {
  display: flex;
  gap: .4rem;
  padding: .65rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.pub-ai-input input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .5rem .65rem;
  font-size: .88rem;
}
.pub-ai-input button {
  border: none;
  background: #0d9488;
  color: #fff;
  border-radius: 10px;
  padding: .5rem .8rem;
  font-weight: 700;
  cursor: pointer;
}


/* Overall institution stats bar (keep) */
.stats-section, .ed-stats-bar {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  color: #fff;
  padding: 2.25rem 0;
}
.ed-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stats-section .stat-card, .ed-stats-bar .stat-card { text-align: center; }
.stats-section .stat-icon, .ed-stats-bar .stat-icon { font-size: 1.8rem; margin-bottom: .35rem; }
.stats-section .stat-value, .ed-stats-bar .stat-value { font-size: 1.85rem; font-weight: 800; }
.stats-section .stat-label, .ed-stats-bar .stat-label { opacity: .92; margin-top: .2rem; font-size: .9rem; }

.pub-section-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}
.pub-section-sub {
  text-align: center;
  color: #64748b;
  margin: .35rem 0 1.25rem;
}

.pub-infra-wrap, .pub-why-wrap, .pub-testi-wrap, .pub-faq-wrap {
  padding: 2.25rem 0;
}
.pub-infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pub-infra-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.pub-infra-card img, .pub-infra-ph {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.pub-infra-ph { background: linear-gradient(135deg,#99f6e4,#0d9488); }
.pub-infra-body { padding: .85rem 1rem 1rem; }
.pub-infra-body h4 { margin: 0 0 .35rem; font-size: .95rem; }
.pub-infra-body p { margin: 0; color: #64748b; font-size: .82rem; line-height: 1.45; max-height: 3.2em; overflow: hidden; }

.pub-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pub-why-card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 1rem;
}
.pub-why-num {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: .5rem;
}
.pub-why-card h4 { margin: 0 0 .35rem; font-size: .95rem; }
.pub-why-card p { margin: 0; color: #64748b; font-size: .85rem; }

.pub-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pub-testi-card {
  display: flex;
  gap: .85rem;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.pub-testi-photo, .pub-testi-photo-ph {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pub-testi-photo-ph {
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
}
.pub-testi-msg { font-size: .88rem; color: #334155; line-height: 1.5; margin-bottom: .4rem; }
.pub-testi-name { font-weight: 700; color: #0f172a; }
.pub-testi-role { font-size: .8rem; color: #94a3b8; }

.pub-faq-list { max-width: 820px; margin: 0 auto; }
.pub-faq-item {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: .75rem 1rem;
  margin-bottom: .55rem;
}
.pub-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}
.pub-faq-ans {
  margin-top: .55rem;
  color: #475569;
  line-height: 1.6;
  font-size: .92rem;
}

@media (max-width: 960px) {
  .ed-stats-row { grid-template-columns: repeat(2, 1fr); }
  .pub-infra-grid, .pub-why-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-testi-grid { grid-template-columns: 1fr; }
}


/* Floating WhatsApp support */
.pub-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 9.75rem; /* above AI; below Theme */
  z-index: 1220;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: .92rem;
  padding: .7rem 1rem .7rem .75rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pub-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(37, 211, 102, .55);
  color: #fff !important;
}
.pub-wa-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.pub-wa-label { padding-right: .15rem; }
@media (max-width: 600px) {
  .pub-whatsapp { right: .75rem; bottom: 8.6rem; padding: .65rem; }
  .pub-wa-label { display: none; }
  .pub-wa-icon { width: 2.6rem; height: 2.6rem; font-size: 1.35rem; }
  .pub-scroll-top { right: .75rem; bottom: .9rem; width: 44px; height: 44px; }
  /* pub-ai-fab mobile: handled in component */
  .pub-theme-fab { right: .75rem; bottom: 12.4rem !important; }
  /* pub-ai-panel mobile: handled in component */
}


/* Internal chat (admin) */
.chat-fab-wrap { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 2000; }
.chat-fab { box-shadow: 0 8px 24px rgba(0,158,247,.35) !important; }
.chat-panel {
  position: fixed; right: 1.25rem; bottom: 4.5rem; z-index: 2000;
  width: 380px; max-width: calc(100vw - 1.5rem); height: 520px; max-height: calc(100vh - 6rem);
  background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(15,23,42,.25);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(0,0,0,.08);
}
.chat-panel-header, .chat-thread-header {
  display: flex; align-items: center; gap: .35rem; padding: .55rem .75rem;
  background: #1e1e2d; color: #fff;
}
.chat-panel-header .mud-icon-button, .chat-thread-header .mud-icon-button { color: #fff !important; }
.chat-room-list { overflow-y: auto; max-height: 420px; }
.chat-room-row {
  display: flex; align-items: center; gap: .65rem; padding: .65rem .85rem; cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.chat-room-row:hover { background: #f8fafc; }
.chat-room-meta { flex: 1; min-width: 0; }
.chat-room-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room-prev { font-size: .75rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-messages { flex: 1; overflow-y: auto; padding: .75rem; background: #f1f5f9; }
.chat-bubble {
  max-width: 82%; padding: .55rem .75rem; border-radius: 12px; margin-bottom: .55rem; font-size: .9rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.chat-bubble.mine { margin-left: auto; background: #009ef7; color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.theirs { background: #fff; border-bottom-left-radius: 4px; }
.chat-sender { font-size: .7rem; font-weight: 700; opacity: .8; margin-bottom: .15rem; }
.chat-time { font-size: .65rem; opacity: .75; text-align: right; margin-top: .2rem; }
.chat-img { max-width: 180px; border-radius: 8px; display: block; margin-top: .35rem; }
.chat-file { color: inherit; text-decoration: underline; display: block; margin-top: .25rem; }
.chat-compose { display: flex; align-items: center; gap: .25rem; padding: .4rem .5rem; border-top: 1px solid #e2e8f0; background: #fff; }
.chat-pending { padding: .25rem .75rem .5rem; }


/* Top notice ticker — clickable */
a.pub-notice-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  overflow: hidden;
}
a.pub-notice-link:hover {
  text-decoration: underline;
  opacity: .95;
}
.pub-notice-more {
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  opacity: .85;
  white-space: nowrap;
}

.pub-ilink-group-title {
  font-weight: 800;
  font-size: .95rem;
  color: #0f766e;
  margin: .85rem 0 .35rem;
  padding-top: .35rem;
  border-top: 1px dashed #99f6e4;
}
.pub-ilinks .pub-ilink-group-title:first-of-type { border-top: none; margin-top: 0; }


/* ========== Unified floating icon stack (all themes / devices) ==========
   Bottom → top: ScrollTop → Visitor chat (wa-fab) → AI Help → Theme
   Equal size 52px, equal gap 12px, shared right edge 16px
*/
:root {
  --pub-fab-size: 52px;
  --pub-fab-gap: 12px;
  --pub-fab-right: 16px;
  --pub-fab-bottom: 16px;
}
.pub-scroll-top,
.pub-ai-fab,
.wa-fab,
.pub-theme-fab,
.pub-theme-fab-btn,
.pub-whatsapp {
  box-sizing: border-box !important;
}
.pub-scroll-top {
  position: fixed !important;
  right: var(--pub-fab-right) !important;
  bottom: var(--pub-fab-bottom) !important;
  width: var(--pub-fab-size) !important;
  height: var(--pub-fab-size) !important;
  min-width: var(--pub-fab-size) !important;
  min-height: var(--pub-fab-size) !important;
  border-radius: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.wa-fab {
  position: fixed !important;
  right: var(--pub-fab-right) !important;
  bottom: calc(var(--pub-fab-bottom) + var(--pub-fab-size) + var(--pub-fab-gap)) !important;
  width: var(--pub-fab-size) !important;
  height: var(--pub-fab-size) !important;
  min-width: var(--pub-fab-size) !important;
  min-height: var(--pub-fab-size) !important;
  border-radius: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2501 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.wa-panel {
  right: var(--pub-fab-right) !important;
  bottom: calc(var(--pub-fab-bottom) + 2 * (var(--pub-fab-size) + var(--pub-fab-gap))) !important;
}
/* AI Help — middle between visitor chat and theme */
.pub-ai-fab {
  position: fixed !important;
  right: var(--pub-fab-right) !important;
  bottom: calc(var(--pub-fab-bottom) + 2 * (var(--pub-fab-size) + var(--pub-fab-gap))) !important;
  width: var(--pub-fab-size) !important;
  height: var(--pub-fab-size) !important;
  min-width: var(--pub-fab-size) !important;
  min-height: var(--pub-fab-size) !important;
  border-radius: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2502 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.pub-ai-panel {
  position: fixed !important;
  right: var(--pub-fab-right) !important;
  bottom: calc(var(--pub-fab-bottom) + 3 * (var(--pub-fab-size) + var(--pub-fab-gap))) !important;
  z-index: 2503 !important;
}
.pub-theme-fab {
  position: fixed !important;
  right: var(--pub-fab-right) !important;
  bottom: calc(var(--pub-fab-bottom) + 3 * (var(--pub-fab-size) + var(--pub-fab-gap))) !important;
  width: var(--pub-fab-size) !important;
  height: var(--pub-fab-size) !important;
  z-index: 2504 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pub-theme-fab-btn {
  width: var(--pub-fab-size) !important;
  height: var(--pub-fab-size) !important;
  min-width: var(--pub-fab-size) !important;
  min-height: var(--pub-fab-size) !important;
}
/* Legacy pill WhatsApp (if used) — icon circle only on mobile stack */
.pub-whatsapp {
  position: fixed !important;
  right: var(--pub-fab-right) !important;
  bottom: calc(var(--pub-fab-bottom) + 4 * (var(--pub-fab-size) + var(--pub-fab-gap))) !important;
  width: var(--pub-fab-size) !important;
  height: var(--pub-fab-size) !important;
  min-width: var(--pub-fab-size) !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center !important;
  z-index: 2505 !important;
}
.pub-whatsapp .pub-wa-label { display: none !important; }

@media (max-width: 600px) {
  :root {
    --pub-fab-size: 48px;
    --pub-fab-gap: 12px;
    --pub-fab-right: 12px;
    --pub-fab-bottom: 12px;
  }
}


/* ===== Faculty cards (home + list) — IIUC-style ===== */
.fac-home-section { padding: 2rem 0; }
.fac-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.fac-home-head h2 {
  margin: 0;
  text-align: left;
}
.fac-slide-nav { display: flex; gap: .4rem; }
.fac-nav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
}
.fac-nav-btn:hover { background: #f0fdfa; border-color: #0d9488; color: #0d9488; }
.fac-slide-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.fac-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8eef5;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  padding: 1.15rem 1.05rem 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.fac-card-photo {
  background: linear-gradient(160deg, #ecfdf5, #f1f5f9);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.fac-card-photo img {
  width: 150px;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15,23,42,.12);
  background: #fff;
}
.fac-card-photo-ph {
  width: 120px; height: 140px;
  border-radius: 12px;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.fac-card h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}
.fac-card-role {
  color: #64748b;
  font-size: .88rem;
  margin-bottom: .45rem;
}
.fac-card-email {
  font-size: .86rem;
  color: #334155;
  margin-bottom: .65rem;
  word-break: break-all;
}
.fac-card-email a { color: #2563eb; text-decoration: none; }
.fac-view {
  margin-top: auto;
  color: #2563eb;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.fac-view:hover { text-decoration: underline; }

/* Faculty list page */
.fac-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(13,148,136,.06), transparent 50%),
    #f8fafc;
  min-height: 60vh;
}
.fac-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.fac-sidebar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eef5;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
  position: sticky;
  top: 1rem;
}
.fac-sidebar h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.fac-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: .4rem;
}
.fac-search {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .55rem .75rem;
  font-size: .9rem;
  box-sizing: border-box;
}
.fac-radio {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: #334155;
  margin: .35rem 0;
  cursor: pointer;
}
.fac-title {
  margin: 0 0 1.15rem;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}
.fac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.fac-muted { color: #94a3b8; text-align: center; }

/* Detail pages */
.fac-detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.fac-detail-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8eef5;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.fac-detail-photo {
  width: 200px; height: 240px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
}
.fac-detail-photo-ph {
  width: 200px; height: 240px;
  border-radius: 14px;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.fac-detail-body h1 {
  margin: 0 0 .35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}
.fac-role { color: #0d9488; font-weight: 700; margin-bottom: .75rem; }
.fac-meta { font-size: .95rem; color: #475569; margin: .35rem 0; }
.fac-meta a { color: #2563eb; }
.fac-msg {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  line-height: 1.65;
  color: #334155;
}
.fac-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #0d9488;
  font-weight: 700;
  text-decoration: none;
}

/* Principal centered in welcome */
.tmt-principal-center {
  align-items: center !important;
  text-align: center !important;
}
.tmt-principal-photo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: .55rem;
}
.tmt-principal-img {
  width: 124px !important;
  height: 124px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid var(--tmt-teal, #0a6e72) !important;
  margin: 0 auto !important;
  display: block !important;
  box-shadow: 0 4px 12px rgba(10, 110, 114, 0.2);
}
.tmt-principal-center .name,
.tmt-principal-center .role {
  text-align: center;
}
.tmt-principal-center .msg {
  text-align: left;
}

@media (max-width: 960px) {
  .fac-slide-track,
  .fac-grid { grid-template-columns: 1fr 1fr; }
  .fac-layout { grid-template-columns: 1fr; }
  .fac-sidebar { position: static; }
  .fac-detail-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 600px) {
  .fac-slide-track,
  .fac-grid { grid-template-columns: 1fr; }
}


/* ===== Leadership quote detail ===== */
.quote-page { max-width: 920px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.quote-hero {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: start;
  background: linear-gradient(135deg, #fffdf8, #eef2ff); border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
@media (max-width: 640px) { .quote-hero { grid-template-columns: 1fr; text-align: center; } }
.quote-photo, .quote-photo-ph {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto;
  border: 4px solid #fff; box-shadow: 0 0 0 3px #c9a227, 0 8px 20px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center; background: #e3f2fd; font-size: 3rem;
}
.quote-role { color: #0d47a1; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: .25rem; }
.quote-name { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 0 0 .75rem; }
.quote-body {
  font-size: 1.05rem; line-height: 1.85; color: #334155; position: relative;
  padding: 1rem 1.25rem; border-left: 4px solid #c9a227; background: #fff; border-radius: 0 12px 12px 0;
}
.quote-body::before { content: "“"; position: absolute; top: -8px; left: 8px; font-size: 3rem; color: #c9a227; opacity: .5; line-height: 1; }
.quote-back { display: inline-block; margin-top: 1.25rem; color: #0d47a1; font-weight: 600; text-decoration: none; }

/* Teachers / committee compact circular (match principal) */
.pub-tcard-photo, .pub-tcard-photo-ph,
.tmt-fac-photo, .tmt-fac-photo img, .tmt-committee-photo, .tmt-committee-photo img {
  width: 64px !important; height: 64px !important; border-radius: 50% !important; object-fit: cover !important;
  border: 3px solid #fff !important; box-shadow: 0 0 0 2px #0d47a1, 0 4px 10px rgba(13,71,161,.18) !important;
}
.tmt-principal-img, .tmt-principal-ph {
  width: 88px !important; height: 88px !important; border-radius: 50% !important; object-fit: cover !important;
  border: 3px solid #fff !important; box-shadow: 0 0 0 2px #c9a227, 0 4px 12px rgba(0,0,0,.12) !important;
}
.pub-teacher-wrap, .pub-speech-wrap { padding: 1rem 0 1.25rem !important; }
.pub-tcard { padding: 0.55rem 0.4rem 0.65rem !important; }
.tmt-fac-card, .tmt-committee-card { text-align: center; padding: 0.6rem !important; }


/* COMPACT FAC CARDS TMT / home teachers & committee */
.tmt-home .fac-card {
  padding: 0.55rem 0.5rem 0.65rem !important;
  border-radius: 12px !important;
}
.tmt-home .fac-card-photo {
  min-height: 0 !important;
  padding: 0.35rem !important;
  margin-bottom: 0.4rem !important;
  background: transparent !important;
}
.tmt-home .fac-card-photo img,
.tmt-home .tmt-fac-photo,
.tmt-home .fac-card-photo-ph {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.tmt-home .fac-card h3 { font-size: 0.92rem !important; margin: 0 0 0.15rem !important; text-align: center; }
.tmt-home .fac-card-role { font-size: 0.78rem !important; text-align: center; margin-bottom: 0.25rem !important; }
.tmt-home .fac-card-email { display: none; }
.tmt-home .fac-view { font-size: 0.78rem !important; text-align: center; }

.tmt-committee-card, .tmt-teacher-card {
  padding: 0.5rem !important;
}
.tmt-committee-card img, .tmt-teacher-card img,
.tmt-committee-photo, .tmt-committee-photo img {
  width: 72px !important; height: 72px !important; border-radius: 50% !important;
}

.tmt-stats-section {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 55%, #1e88e5 100%);
  color: #fff !important;
  padding: 1.75rem 0 !important;
}
.tmt-stats-title { text-align: center; color: #fff !important; margin: 0 0 1rem !important; font-size: 1.35rem; }
.tmt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.tmt-stat-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  text-align: center;
}
.tmt-stat-val { font-size: 1.65rem; font-weight: 800; color: #fff !important; line-height: 1.2; }
.tmt-stat-lbl { font-size: 0.85rem; color: rgba(255,255,255,0.92) !important; margin-top: 0.25rem; }
@media (max-width: 700px) {
  .tmt-stats-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== Stats band (force contrast — not white) ===== */
.tmt-stats-band,
.tmt-stats-section {
  background: linear-gradient(135deg, #0b3d91 0%, #1565c0 45%, #1e88e5 100%) !important;
  color: #ffffff !important;
  padding: 2.25rem 0 2.5rem !important;
  margin: 0 !important;
  border: none !important;
}
.tmt-stats-band .tmt-container,
.tmt-stats-section .tmt-container { color: #fff !important; }
.tmt-stats-title {
  text-align: center !important;
  color: #ffffff !important;
  margin: 0 0 1.25rem !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
}
.tmt-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
.tmt-stat-card {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 16px !important;
  padding: 1.15rem 0.75rem 1.2rem !important;
  text-align: center !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  transition: transform .2s ease, background .2s ease;
}
.tmt-stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2) !important;
}
.tmt-stat-icon { font-size: 1.55rem; line-height: 1; margin-bottom: 0.35rem; }
.tmt-stat-val {
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
}
.tmt-stat-lbl {
  font-size: 0.88rem !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-top: 0.35rem !important;
  font-weight: 600 !important;
}
@media (max-width: 800px) {
  .tmt-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ===== Why choose us ===== */
.tmt-why-section { background: #f8fafc; padding: 2.25rem 0; }
.tmt-section-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}
.tmt-section-sub {
  text-align: center;
  color: #64748b;
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
}
.tmt-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.tmt-why-card {
  display: flex;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tmt-why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.12);
  border-color: #bfdbfe;
}
.tmt-why-num {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.tmt-why-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.tmt-why-body p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
}

/* ===== Testimonials / guardian reviews ===== */
.tmt-testi-section { background: #fff; padding: 2.25rem 0; }
.tmt-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.tmt-testi-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tmt-testi-top { display: flex; gap: 0.75rem; align-items: center; }
.tmt-testi-photo, .tmt-testi-photo-ph {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #0d47a1, 0 4px 10px rgba(13,71,161,.15);
}
.tmt-testi-photo-ph {
  background: linear-gradient(145deg, #c5e8c7, #0a6e72);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.tmt-testi-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.tmt-testi-name { font-weight: 800; color: #0f172a; font-size: 0.95rem; }
.tmt-testi-role { margin-top: 0.15rem; font-size: 0.8rem; color: #64748b; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.tmt-testi-badge {
  display: inline-block;
  background: #e3f2fd;
  color: #0d47a1;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.tmt-testi-msg {
  margin: 0;
  font-style: italic;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.6;
}

.pub-testi-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}
.pub-testi-badge {
  display: inline-block;
  background: #e3f2fd;
  color: #0d47a1;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

/* ===== FAQ ===== */
.tmt-faq-section {
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
  padding: 2.25rem 0 2.5rem;
}
.tmt-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.tmt-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.tmt-faq-item[open] {
  border-color: #90caf9;
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.1);
}
.tmt-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.45;
}
.tmt-faq-item summary::-webkit-details-marker { display: none; }
.tmt-faq-q { flex: 1; text-align: left; }
.tmt-faq-chev {
  color: #0d47a1;
  font-size: 0.85rem;
  transition: transform .2s ease;
}
.tmt-faq-item[open] .tmt-faq-chev { transform: rotate(180deg); }
.tmt-faq-ans {
  padding: 0.85rem 1.15rem 1.05rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: left;
  border-top: 1px solid #f1f5f9;
}

.pub-faq-list { max-width: 820px; margin: 0 auto; }
.pub-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
}
.pub-faq-item summary {
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
  text-align: left;
}
.pub-faq-ans {
  padding: 0 1.1rem 0.95rem;
  color: #475569;
  line-height: 1.65;
  text-align: left;
}

/* Softzone IT developer credit */
.pub-footer-bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; }
.pub-footer-dev-social { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; text-align: right; }
.pub-dev-credit { font-size: .78rem; opacity: .9; line-height: 1.35; }
.pub-dev-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; margin-left: .15rem; }
@media (max-width: 600px) {
  .pub-footer-dev-social { align-items: flex-start; text-align: left; width: 100%; }
}

.pub-dev-credit .app-version { font-weight: 600; margin-right: .15rem; }
.pub-dev-credit .dev-sep { margin: 0 .3rem; opacity: .55; }


