/* Apply Now Popup */
#apply-popup {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(100%);
  width: 340px;
  z-index: 9999;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 4px 0 0 4px;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
  background: #fff;
}

#apply-popup.is-open {
  transform: translateY(-50%) translateX(0);
}

/* Reopen Tab */
#apply-popup-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(100%);
  background: #002868;
  color: #fff;
  border: none;
  border-radius: 4px 0 0 4px;
  padding: 14px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 9998;
  transition: transform 0.3s ease, background 0.2s ease;
  box-shadow: -3px 0 12px rgba(0,0,0,0.25);
}

#apply-popup-tab.is-visible {
  transform: translateY(-50%) translateX(0);
}

#apply-popup-tab span {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1;
}

#apply-popup-tab span:first-child {
  color: #FFCA00;
}

#apply-popup-tab:hover {
  background: #BF0A30;
}

/* Close Button */
#apply-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
  padding: 0;
}

#apply-popup-close:hover {
  background: rgba(191, 10, 48, 0.85);
  border-color: #fff;
}

/* Photo Section */
.apply-popup__photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Branding Section */
.apply-popup__branding {
  display: none;
}

.apply-popup__at {
  font-size: 13px;
  font-weight: 700;
  color: #002868;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0;
  line-height: 1.2;
}

.apply-popup__university-name {
  font-size: 26px;
  font-weight: 900;
  color: #002868;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2px 0 0;
  line-height: 1.1;
}

.apply-popup__university-sub {
  font-size: 11px;
  font-weight: 700;
  color: #002868;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0;
  padding-top: 2px;
  border-top: 2px solid #002868;
  display: inline-block;
}

/* Contact Bar */
.apply-popup__contact {
  background: #002868;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.apply-popup__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.apply-popup__contact-item:visited,
.apply-popup__contact-item:active,
.apply-popup__contact-item:focus {
  color: #fff;
  text-decoration: none;
  outline: none;
}

.apply-popup__contact-item:hover {
  color: #FFCA00;
  text-decoration: none;
}

.apply-popup__contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: #fff;
}

/* Buttons Section */
.apply-popup__buttons {
  background: #002868;
  padding: 10px 14px 14px;
  display: flex;
  gap: 10px;
}

.apply-popup__btn {
  flex: 1;
  display: inline-block;
  text-align: center;
  padding: 10px 6px;
  background: #FFCA00;
  color: #002868;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  border: 2px solid #FFCA00;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.apply-popup__btn:hover {
  background: transparent;
  color: #FFCA00;
  text-decoration: none;
}

@media (max-width: 480px) {
  #apply-popup {
    width: 300px;
  }
  .apply-popup__apply-text {
    font-size: 60px;
  }
}
