/* =========================================
   SCHOOLS CITIES BLOCK
========================================= */

.sta-city-wrap{
  width:min(100% - 24px, 1200px);
  margin-inline:auto;
  padding:8px 12px;
  font-family:var(--sta-font-body);
}

.sta-city-wrap .sta-city-intro{
  margin-bottom:20px;
}

.sta-city-wrap .sta-city-intro h2{
  margin:0 0 10px;
  color:var(--sta-gold);
  font-family:var(--sta-font-body);
  font-size:clamp(24px, 3vw, 34px);
  font-weight:700;
  line-height:1.2;
  text-align:center;
}

html[lang="zh-TW"] .sta-city-wrap .sta-city-intro h2{
  font-family:var(--sta-font-cjk-sans);
}

.sta-city-wrap .sta-city-intro p{
  margin:0;
  color:#444;
  font-family:var(--sta-font-body);
  font-size:clamp(15px, 1.5vw, 19px);
  line-height:1.7;
}

html[lang="zh-TW"] .sta-city-wrap .sta-city-intro p{
  font-family:var(--sta-font-cjk-sans);
}

.sta-city-wrap .sta-city-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
}

@media (min-width:640px){
  .sta-city-wrap .sta-city-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (min-width:992px){
  .sta-city-wrap .sta-city-grid{
    grid-template-columns:repeat(3, 1fr);
  }
}

.sta-city-wrap .city-card{
  display:flex;
  flex-direction:column;
}

.sta-city-wrap .city-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.sta-city-wrap .city-link:focus-visible{
  outline:none;
}

.sta-city-wrap .city-figure{
  position:relative;
  margin:0;
  overflow:hidden;
  border:1px solid var(--sta-border);
  border-radius:16px;
  background:#f6f6f6;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.sta-city-wrap .city-figure::before{
  content:"";
  display:block;
  width:100%;
  padding-top:62.5%;
}

.sta-city-wrap .city-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:filter .35s ease, transform .35s ease;
  will-change:filter, transform;
}

.sta-city-wrap .city-title{
  position:absolute;
  left:16px;
  bottom:12px;
  margin:0;
  color:#fff;
  font-family:var(--sta-font-body);
  font-size:clamp(18px, 2.2vw, 28px);
  font-weight:700;
  letter-spacing:.02em;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
  pointer-events:none;
}

html[lang="zh-TW"] .sta-city-wrap .city-title{
  font-family:var(--sta-font-cjk-sans);
}

.sta-city-wrap .city-cta{
  position:absolute;
  right:16px;
  bottom:16px;
  inset:auto 16px 16px auto;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:10px;
  background:rgba(0,0,0,.38);
  color:#fff;
  font-family:var(--sta-font-body);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .25s ease, transform .25s ease, background .25s ease;
}

html[lang="zh-TW"] .sta-city-wrap .city-cta{
  font-family:var(--sta-font-cjk-sans);
}

.sta-city-wrap .city-figure:hover .city-img{
  filter:grayscale(100%) brightness(.88);
  transform:scale(1.01);
}

.sta-city-wrap .city-figure:hover .city-cta,
.sta-city-wrap .city-link:focus .city-cta,
.sta-city-wrap .city-link:focus-visible .city-cta{
  opacity:1;
  transform:translateY(0);
}

.sta-city-wrap .city-link:focus-visible .city-figure{
  box-shadow:
    0 10px 28px rgba(0,0,0,.08),
    0 0 0 3px rgba(195,168,144,.28);
}

.sta-city-wrap .sta-city-seo{
  margin-top:18px;
  padding:16px 18px;
  border:1px solid var(--sta-border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.sta-city-wrap .sta-city-seo p{
  margin:0;
  color:#444;
  font-family:var(--sta-font-body);
  font-size:15.5px;
  line-height:1.6;
}

html[lang="zh-TW"] .sta-city-wrap .sta-city-seo p{
  font-family:var(--sta-font-cjk-sans);
}

.sta-city-wrap .sta-city-seo a{
  color:var(--sta-green-dark);
  text-decoration:underline;
  text-underline-offset:2px;
}

.sta-city-wrap .sta-city-seo a:hover{
  color:#1f4d17;
}

@media (max-width:767px){
  .sta-city-wrap{
    width:min(100% - 20px, 1200px);
    padding:6px 0;
  }

  .sta-city-wrap .sta-city-grid{
    gap:18px;
  }

  .sta-city-wrap .city-title{
    left:14px;
    bottom:12px;
    font-size:clamp(18px, 5.6vw, 24px);
  }

  .sta-city-wrap .city-cta{
    right:14px;
    bottom:14px;
    padding:7px 12px;
    font-size:11px;
  }

  .sta-city-wrap .sta-city-seo{
    padding:14px 14px 15px;
  }

  .sta-city-wrap .sta-city-seo p{
    font-size:15px;
  }
}
