/* Cyprus Student Group — popup styles */
.csg-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: grid;
  place-items: center;
  padding: 16px;
}
.csg-popup.is-open { opacity: 1; pointer-events: auto; }

.csg-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.csg-popup__card {
  position: relative;
  width: min(960px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  transform: translateY(8px);
  transition: transform 0.25s ease;
}
.csg-popup.is-open .csg-popup__card { transform: translateY(0); }

.csg-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0A0A0A;
  border: 0;
  font-size: 28px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 2;
  display: grid;
  place-items: center;
  font-weight: 300;
  transition: transform 0.15s ease, background 0.15s ease;
}
.csg-popup__close:hover { background: #f4f4f5; transform: scale(1.05); }
.csg-popup__close:focus-visible { outline: 2px solid #0047FF; outline-offset: 2px; }

.csg-popup__link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #FFFFFF;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
}
.csg-popup__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 64px);
  object-fit: contain;
}

@media (max-width: 720px) {
  .csg-popup__close {
    top: -8px;
    right: 4px;
    width: 38px;
    height: 38px;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .csg-popup__card { width: calc(100% - 16px); }
}
