/* =========================================================
   PLACEMENTS ADDA — Floating dock, "Our Placements" tab & popup
   Theme: navy #0b1030 + orange #ff7a00 (same as pa-nav / pa-home)
   Loaded after the legacy inline <style> blocks in header.php,
   so selectors are prefixed with `body` to win the cascade.
   ========================================================= */
:root {
  --pf-navy: #0b1030;
  --pf-navy-2: #121a45;
  --pf-orange: #ff7a00;
  --pf-amber: #ff9d3d;
  --pf-ink: #1b2250;
  --pf-slate: #5a6485;
  --pf-line: #eceef6;
  --pf-grad: linear-gradient(135deg, #ff7a00 0%, #ff9d3d 100%);
}

/* =================== 1. SPEED-DIAL DOCK =================== */
body .speed-dial.pa-dock {
  position: fixed; right: 18px; bottom: 22px; z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end;
}
body .pa-dock .actions {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 12px; margin: 0 0 14px;
}
body .pa-dock .pa-dock__item {
  position: relative; width: 48px; height: 48px; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; text-decoration: none !important;
  background: rgba(11, 16, 48, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 24px -6px rgba(7, 11, 31, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
  color: var(--pf-amber); font-size: 18px; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(16px) scale(.6);
  transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1.3), background .25s, color .25s, box-shadow .25s, visibility 0s .35s;
}
body .pa-dock .actions.show .pa-dock__item {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1.3), background .25s, color .25s, box-shadow .25s, visibility 0s;
}
body .pa-dock .actions.show .pa-dock__item:nth-last-child(1) { transition-delay: .02s; }
body .pa-dock .actions.show .pa-dock__item:nth-last-child(2) { transition-delay: .08s; }
body .pa-dock .actions.show .pa-dock__item:nth-last-child(3) { transition-delay: .14s; }
body .pa-dock .pa-dock__item:hover,
body .pa-dock .pa-dock__item:focus-visible {
  background: var(--pf-grad); color: #fff; border-color: transparent;
  box-shadow: 0 12px 28px -6px rgba(255, 122, 0, .6);
  transform: translateY(-3px) scale(1.06); outline: 0;
}
/* label bubble on hover */
body .pa-dock .pa-dock__item::before {
  content: attr(data-label);
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(8px, -50%); white-space: nowrap;
  padding: 6px 12px; border-radius: 8px;
  background: var(--pf-navy); color: #fff;
  font: 600 12px/1 'Poppins', sans-serif; letter-spacing: .02em;
  box-shadow: 0 8px 20px -6px rgba(7, 11, 31, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
body .pa-dock .pa-dock__item:hover::before,
body .pa-dock .pa-dock__item:focus-visible::before { opacity: 1; transform: translate(0, -50%); }

/* main toggle */
body .pa-dock .pa-dock__main {
  position: relative; width: 58px; height: 58px; padding: 0; margin: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--pf-grad); color: #fff; font-size: 20px;
  box-shadow: 0 14px 30px -8px rgba(255, 122, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s, box-shadow .3s;
}
body .pa-dock .pa-dock__main::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 122, 0, .55); animation: pa-dock-ring 2.4s ease-out infinite;
  pointer-events: none;
}
body .pa-dock .pa-dock__main[aria-expanded="true"]::after { animation: none; opacity: 0; }
body .pa-dock .pa-dock__main:hover { transform: scale(1.07); }
body .pa-dock .pa-dock__main:focus { outline: 0; }
body .pa-dock .pa-dock__main:focus-visible { outline: 2px solid var(--pf-navy); outline-offset: 3px; }
body .pa-dock .pa-dock__main i { transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
body .pa-dock .pa-dock__main[aria-expanded="true"] i { transform: rotate(135deg); }
@keyframes pa-dock-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* =================== 2. "OUR PLACEMENTS" SIDE TAB =================== */
body .social_icons {
  position: fixed; right: 0; left: auto; top: 44%; z-index: 999;
  border-radius: 0;
}
body .social_icons .social_img {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 0;
  padding: 8px 10px 8px 8px; margin: 0;
  background: linear-gradient(160deg, var(--pf-navy-2), var(--pf-navy));
  border: 1px solid rgba(255, 255, 255, .12); border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: -10px 14px 32px -10px rgba(7, 11, 31, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: none; cursor: pointer;
  transition: box-shadow .3s, padding .3s;
}
body .social_icons .social_img::before {   /* soft orange edge glow */
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--pf-grad);
}
body .social_icons .social_img .pa-tab__ic {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--pf-grad);
  box-shadow: 0 8px 18px -4px rgba(255, 122, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: pa-tab-bob 3.2s ease-in-out infinite;
}
body .social_icons .social_img .pa-tab__ic i { margin: 0; font-size: 18px; color: #fff; }
body .social_icons .social_img .placement_heading {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  margin: 0; color: #fff; font: 600 13px/1 'Poppins', sans-serif; letter-spacing: .03em;
  transition: max-width .4s ease, opacity .3s, margin .3s;
}
body .social_icons .social_img:hover,
body .social_icons .social_img:focus-visible,
body .social_icons .social_img.show {
  transform: none; outline: 0;
  box-shadow: -14px 18px 38px -10px rgba(255, 122, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14);
}
body .social_icons .social_img:hover .placement_heading,
body .social_icons .social_img:focus-visible .placement_heading {
  max-width: 130px; opacity: 1; margin: 0 8px 0 12px;
}
body .social_icons .social_img:hover .pa-tab__ic { animation-play-state: paused; }
@keyframes pa-tab-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-6deg); } }

@media (max-width: 575px) {
  body .speed-dial.pa-dock { right: 12px; bottom: 16px; }
  body .social_icons { top: 40%; right: 12px; border-radius: 50%; height: auto; }
  body .social_icons .social_img {
    padding: 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
  }
  body .social_icons .social_img::before,
  body .social_icons .social_img .placement_heading { display: none; }
}

/* =================== 3. "OUR PLACED STUDENTS" POPUP =================== */
/* Clean, standard modal: header · stats strip · card grid · footer.   */
body .placement-modal.show {
  background: rgba(7, 11, 31, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  overflow-y: auto !important; padding: 16px !important;
}
body .placement-modal .modal-dialog {
  max-width: 1040px; width: 100%; margin: 0 auto; min-height: calc(100% - 0px);
  display: flex; align-items: center;
}
body .placement-modal .modal-content.pa-pm {
  position: relative; width: 100%; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 0; border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(7, 11, 31, .6);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: 'Poppins', sans-serif;
}

/* ---- header ---- */
.pa-pm__head {
  position: relative; flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 28px 22px;
  background: linear-gradient(135deg, #0b1030 0%, #151d4e 100%);
  border-bottom: 3px solid var(--pf-orange);
}
.pa-pm__kicker {
  display: block; margin-bottom: 6px; color: #ffa24d;
  font: 600 11.5px/1 'Poppins', sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
body .placement-modal .pa-pm__title {
  margin: 0; color: #fff; font: 700 clamp(21px, 2.4vw, 27px)/1.25 'Poppins', sans-serif; letter-spacing: -.01em;
}
.pa-pm__sub { margin: 6px 0 0; max-width: 560px; color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.5; }
.pa-pm__close {
  flex: none; width: 36px; height: 36px; padding: 0; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: 14px; transition: background .2s, border-color .2s;
}
.pa-pm__close:hover, .pa-pm__close:focus-visible { background: var(--pf-orange); border-color: var(--pf-orange); outline: 0; }

/* ---- stats strip ---- */
.pa-pm__stats {
  flex: none; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #f7f8fc; border-bottom: 1px solid #e8ebf4;
}
.pa-pm__stats[hidden] { display: none; }
.pa-pm__stat { padding: 14px 20px; text-align: center; }
.pa-pm__stat + .pa-pm__stat { border-left: 1px solid #e8ebf4; }
.pa-pm__stat strong { display: block; color: #0b1030; font: 700 20px/1.2 'Poppins', sans-serif; }
.pa-pm__stat span { display: block; margin-top: 2px; color: #5a6485; font-size: 12px; font-weight: 500; }

/* ---- body / grid ---- */
.pa-pm__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 28px; background: #fff; scrollbar-width: thin; scrollbar-color: #c9cee3 transparent; }
.pa-pm__body::-webkit-scrollbar { width: 8px; }
.pa-pm__body::-webkit-scrollbar-thumb { background: #c9cee3; border-radius: 8px; }
.pa-pm__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }

/* ---- student card ---- */
.pa-pc {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 16px 16px; background: #fff; border: 1px solid #e8ebf4; border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pa-pc:hover { border-color: rgba(255, 122, 0, .45); box-shadow: 0 10px 26px -12px rgba(11, 16, 48, .25); transform: translateY(-2px); }
.pa-pc__tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px;
  background: #fff3e6; color: #c25a00; font: 600 10.5px/1.3 'Poppins', sans-serif; letter-spacing: .03em;
}
.pa-pc__av {
  position: relative; width: 76px; height: 76px; margin-bottom: 12px; border-radius: 50%; overflow: hidden;
  background: #eef1f8; border: 2px solid #e8ebf4; display: grid; place-items: center;
}
.pa-pc__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-pc__av.is-fallback { background: linear-gradient(135deg, #0b1030, #1f2a6b); border-color: #0b1030; }
.pa-pc__av.is-fallback::after {
  content: attr(data-initials); color: #fff; font: 600 22px/1 'Poppins', sans-serif; letter-spacing: .02em;
}
.pa-pc__name {
  width: 100%; margin: 0 0 4px; color: #0b1030; font: 600 16px/1.35 'Poppins', sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pa-pc__co {
  width: 100%; margin: 0 0 14px; display: flex; align-items: center; justify-content: center; gap: 6px;
  color: #5a6485; font-size: 12.5px; line-height: 1.4;
}
.pa-pc__co i { flex: none; color: var(--pf-orange); font-size: 12px; }
.pa-pc__co span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-pc__pkg {
  width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px dashed #dfe3f0;
  display: flex; align-items: center; justify-content: space-between;
}
.pa-pc__pkg span { color: #7a839f; font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.pa-pc__pkg strong { color: #0b1030; font: 700 16px/1 'Poppins', sans-serif; }
.pa-pc__pkg strong small { color: var(--pf-orange); font-size: 11.5px; font-weight: 700; }

/* skeleton + empty state */
.pa-pc--skel { pointer-events: none; }
.pa-pc--skel .pa-pc__av { border-color: transparent; }
.pa-pc--skel .pa-pc__av, .pa-sk {
  background: linear-gradient(90deg, #eef1f8 25%, #f7f8fc 50%, #eef1f8 75%); background-size: 200% 100%;
  animation: pa-shimmer 1.3s linear infinite;
}
.pa-sk { display: block; height: 12px; border-radius: 6px; margin-bottom: 10px; }
.pa-sk--l { width: 70%; } .pa-sk--m { width: 50%; } .pa-sk--b { width: 100%; height: 30px; margin: 8px 0 0; }
@keyframes pa-shimmer { to { background-position: -200% 0; } }
.pa-pm__empty { grid-column: 1 / -1; padding: 48px 16px; text-align: center; color: #5a6485; }
.pa-pm__empty i { display: block; margin-bottom: 12px; color: #c4cadd; font-size: 34px; }
.pa-pm__empty p { margin: 0; font-size: 14px; }

/* ---- footer ---- */
.pa-pm__foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: #f7f8fc; border-top: 1px solid #e8ebf4;
}
.pa-pm__note { color: #5a6485; font-size: 12.5px; }
.pa-pm__note i { margin-right: 6px; color: var(--pf-orange); }
.pa-pm__link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 8px;
  background: var(--pf-orange); color: #fff !important; text-decoration: none !important;
  font: 600 13px/1 'Poppins', sans-serif; transition: background .2s, transform .2s;
}
.pa-pm__link i { font-size: 11px; transition: transform .2s; }
.pa-pm__link:hover { background: #e66d00; }
.pa-pm__link:hover i { transform: translateX(3px); }

/* ---- polish: entrance, stagger, hover, shine ---- */
body .placement-modal.fade { transition: opacity .3s ease; }
body .placement-modal.fade .modal-dialog { transform: translateY(28px) scale(.96); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .3, 1.15), opacity .35s ease; }
body .placement-modal.show .modal-dialog { transform: none; opacity: 1; }
.pa-pm__head::before {
  content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 122, 0, .35), transparent 65%); animation: pa-glow 6s ease-in-out infinite alternate;
}
.pa-pm__head::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%; background: linear-gradient(90deg, transparent, #ffd1a1, transparent);
  transform: translateX(-100%); animation: pa-sweep 3.2s ease-in-out 1s infinite;
}
.pa-pm__head > * { position: relative; z-index: 1; }
@keyframes pa-glow { to { transform: translate(-30px, 20px) scale(1.15); opacity: .7; } }
@keyframes pa-sweep { 60%, 100% { transform: translateX(100%); } }
.pa-pm__close { transition: background .2s, border-color .2s, transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.pa-pm__close:hover { transform: rotate(90deg) scale(1.08); }
.pa-pm__stat { transition: background .25s; }
.pa-pm__stat:hover { background: #fff; }
.pa-pm__stat strong { background: var(--pf-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pa-pm__stats:not([hidden]) .pa-pm__stat { animation: pa-rise .5s cubic-bezier(.2, .8, .3, 1) both; }
.pa-pm__stats .pa-pm__stat:nth-child(2) { animation-delay: .08s; }
.pa-pm__stats .pa-pm__stat:nth-child(3) { animation-delay: .16s; }
.pa-pm__grid > .pa-pc:not(.pa-pc--skel) { animation: pa-rise .55s cubic-bezier(.2, .8, .3, 1) both; }
.pa-pm__grid > .pa-pc:nth-child(1) { animation-delay: .05s; } .pa-pm__grid > .pa-pc:nth-child(2) { animation-delay: .1s; }
.pa-pm__grid > .pa-pc:nth-child(3) { animation-delay: .15s; } .pa-pm__grid > .pa-pc:nth-child(4) { animation-delay: .2s; }
.pa-pm__grid > .pa-pc:nth-child(5) { animation-delay: .25s; } .pa-pm__grid > .pa-pc:nth-child(6) { animation-delay: .3s; }
.pa-pm__grid > .pa-pc:nth-child(7) { animation-delay: .35s; } .pa-pm__grid > .pa-pc:nth-child(8) { animation-delay: .4s; }
.pa-pm__grid > .pa-pc:nth-child(n+9) { animation-delay: .45s; }
@keyframes pa-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pa-pc { overflow: hidden; transition: border-color .25s, box-shadow .3s, transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.pa-pc::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--pf-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.pa-pc:hover { transform: translateY(-5px); box-shadow: 0 18px 34px -14px rgba(11, 16, 48, .32); }
.pa-pc:hover::before { transform: scaleX(1); }
.pa-pc__av { transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), border-color .25s, box-shadow .3s; }
.pa-pc:hover .pa-pc__av { transform: scale(1.08); border-color: var(--pf-orange); box-shadow: 0 0 0 4px rgba(255, 122, 0, .15); }
.pa-pc__tag { background: var(--pf-grad); color: #fff; box-shadow: 0 4px 10px -3px rgba(255, 122, 0, .6); }
.pa-pm__link { box-shadow: 0 8px 18px -8px rgba(255, 122, 0, .7); transition: background .2s, transform .25s, box-shadow .25s; }
.pa-pm__link:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -8px rgba(255, 122, 0, .8); }

/* ---- responsive ---- */
@media (max-width: 767px) {
  body .placement-modal.show { padding: 10px !important; }
  body .placement-modal .modal-content.pa-pm { max-height: calc(100vh - 20px); border-radius: 14px; }
  .pa-pm__head { padding: 18px 18px 16px; }
  .pa-pm__sub { font-size: 12.5px; }
  .pa-pm__stat { padding: 11px 6px; }
  .pa-pm__stat strong { font-size: 16px; }
  .pa-pm__stat span { font-size: 11px; }
  .pa-pm__body { padding: 16px; }
  .pa-pm__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .pa-pc { padding: 18px 10px 12px; }
  .pa-pc__av { width: 64px; height: 64px; }
  .pa-pc__name { font-size: 14.5px; }
  .pa-pm__foot { padding: 12px 16px; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
  .pa-pm__link { justify-content: center; }
}
@media (max-width: 380px) { .pa-pm__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  body .pa-dock .pa-dock__main::after,
  body .social_icons .social_img .pa-tab__ic { animation: none; }
  body .pa-dock .pa-dock__item, .pa-pc { transition: none; }
  .pa-pc--skel .pa-pc__av, .pa-sk { animation: none; }
  .pa-pm__head::before, .pa-pm__head::after, .pa-pm__stat, .pa-pm__grid > .pa-pc { animation: none !important; }
  body .placement-modal.fade .modal-dialog { transition: none; transform: none; }
}
