/* ==========================================================
   Admission 2027–28 campaign: top-bar message, floating
   button and on-load poster popup. Loaded from header.php.
   Delete this file and its markup when admissions close.
   ========================================================== */

/* ---------- Blinking "Admission Open" in the top bar ---------- */
.it-header-2-top-left ul li.admission-blink-item a.admission-blink {
  color: #F2A227;
  font-weight: 700;
  letter-spacing: 0.3px;
  animation: admission-blink 1.1s ease-in-out infinite;
}
.it-header-2-top-left ul li.admission-blink-item a.admission-blink:hover {
  color: #ffffff;
  animation-play-state: paused;
}
.it-header-2-top-left ul li.admission-blink-item a.admission-blink span {
  color: inherit;
}

@keyframes admission-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.15; }
}

/* main.css hides the whole top bar below 768px; bring it back on
   phones so the admission message shows there too. Only the message
   (and social icons from 576px) appear, as phone/email are xl-only. */
@media (max-width: 767px) {
  .it-header-2-top-area.it-header-2-top-style.black-bg {
    display: block;
    padding: 8px 0;
  }
  .it-header-2-top-left ul {
    margin: 0;
    padding: 0;
  }
}

/* ---------- Floating "Admission 2027–28" button ---------- */
.admission-float-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: inline-block;
  padding: 16px 22px;
  background: #dc3545;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 6px 0 0 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, padding 0.2s ease;
}
.admission-float-btn:hover,
.admission-float-btn:focus {
  background: #1f255c;
  color: #ffffff;
  padding-right: 28px;
}

@media (max-width: 767px) {
  .admission-float-btn {
    font-size: 14px;
    padding: 10px 14px;
  }
  .admission-float-btn:hover,
  .admission-float-btn:focus {
    padding-right: 14px;
  }
}

/* ---------- On-load admission poster popup ---------- */
#admissionPopup .modal-dialog {
  max-width: min(520px, calc(100vw - 24px));
  margin-left: auto;
  margin-right: auto;
}
#admissionPopup .modal-content {
  position: relative;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}
#admissionPopup .admission-popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  background: #ffffff;
}
#admissionPopup .admission-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
}
#admissionPopup .admission-popup-close:hover {
  background: #8a1a2e;
}

@media (prefers-reduced-motion: reduce) {
  .it-header-2-top-left ul li.admission-blink-item a.admission-blink {
    animation: none;
  }
}
