/* ═══════════════════════════════════════
   SEC 5: UNIVERSITIES — 지도 줌/패닝
   ═══════════════════════════════════════ */

.universities {
  background: var(--bg-light);
}

.uni-inner {
  display: flex;
  height: 100%;
}

.uni-text-area {
  width: 35%;
  padding: 8vh 4vw 8vh 8vw;
  display: flex;
  align-items: center;
  position: relative;
}

.uni-text-sub {
  position: absolute;
  left: 8vw;
  right: 4vw;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.uni-text-sub.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.uni-label {
  font-family: var(--font-en);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.uni-headline {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.uni-desc {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
}

.uni-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.uni-logo-grid span {
  font-family: var(--font-en);
  font-size: clamp(10px, 0.8vw, 12px);
  padding: 10px 8px;
  border: 1px solid #ddd;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.uni-logo-grid span:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

/* 지도 영역 */
.uni-map-area {
  width: 65%;
  position: relative;
  overflow: hidden;
  background: #e8e4de;
}

.uni-map-container {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.uni-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) sepia(0.05);
}

.uni-map-container.zoom-australia {
  transform: scale(1.3) translate(-5%, 5%);
}

.uni-map-container.zoom-newzealand {
  transform: scale(1.6) translate(-20%, -8%);
}

/* ── 모바일 반응형 ── */
@media (max-width: 768px) {
  .uni-inner {
    flex-direction: column;
  }

  .uni-text-area {
    width: 100%;
    padding: 6vh 6vw 2vh;
    min-height: 55vh;
  }

  .uni-text-sub {
    position: relative;
    left: auto;
    right: auto;
    display: none;
  }

  .uni-text-sub.active {
    display: block;
  }

  .uni-map-area {
    width: 100%;
    height: 30vh;
  }

  .uni-headline {
    font-size: clamp(20px, 6vw, 28px);
  }

  .uni-logo-grid {
    gap: 6px;
  }

  .uni-logo-grid span {
    padding: 8px 4px;
    font-size: 10px;
  }
}
