.kq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
 
.kq-overlay.active {
  opacity: 1;
  visibility: visible;
}
 
.kq-popup {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
  position: relative;
}
 
.kq-overlay.active .kq-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}
 
/* Close button */
.kq-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
 
.kq-close:hover  { background: rgba(0, 0, 0, 0.55); }
.kq-close:active { transform: scale(0.92); }
 
/* Image banner */
.kq-image-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #e8f4e8;
}
 
.kq-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
 
/* Colour strip — school colours (green/gold feel) */
.kq-strip {
  height: 5px;
  background: linear-gradient(90deg, #1a6b3c 0%, #f5c518 50%, #1a6b3c 100%);
}
 
/* Text body */
.kq-body {
  padding: 20px 22px 24px;
  text-align: center;
}
 
.kq-badge {
  display: inline-block;
  background: #e8f4e8;
  color: #1a6b3c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
 
.kq-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.3;
}
 
.kq-body p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}
 
.kq-cta {
  display: inline-block;
  background: #1a6b3c;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}
 
.kq-cta:hover  { background: #145430; }
.kq-cta:active { transform: scale(0.97); }
 
.kq-dismiss {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
}
 
.kq-dismiss:hover { color: #777; }
 
/* ===== Responsive ===== */
@media (max-width: 480px) {
  .kq-image-wrap { height: 180px; }
  .kq-body h2    { font-size: 17px; }
  .kq-body       { padding: 16px 16px 20px; }
}