/* =========================================
   SCHOOL COURSES
========================================= */

.sta-school-courses{
  width:min(1100px, calc(100% - 32px));
  margin-inline:auto;
  padding:clamp(34px, 5vw, 56px) 0;
}

.sta-school-courses__title{
  margin:0 0 22px;
  color:var(--sta-heading);
  font-family:var(--sta-font-serif);
  font-size:clamp(24px, 3vw, 36px);
  font-weight:500;
  line-height:1.16;
}

html[lang^="zh"] .sta-school-courses__title{
  font-family:var(--sta-font-cjk-serif);
  font-weight:600;
  line-height:1.24;
}

.sta-school-courses__filters{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
}

.sta-school-courses__label{
  color:var(--sta-heading);
  font-size:15px;
  font-weight:600;
}

.sta-school-courses__select{
  min-width:220px;
  min-height:46px;
  padding:10px 14px;
  border:1px solid var(--sta-border);
  border-radius:12px;
  background:#fff;
  color:var(--sta-text);
  font-family:var(--sta-font-body);
  font-size:15px;
  box-shadow:none;
  appearance:none;
}

.sta-school-courses__select:focus{
  border-color:var(--sta-gold);
  outline:none;
  box-shadow:0 0 0 3px rgba(195,168,144,.16);
}

.sta-school-courses__nav{
  margin-bottom:16px;
}

.sta-school-courses__panel{
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.sta-school-courses__panel-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1.2fr);
  gap:18px;
}

.sta-school-courses__list{
  list-style:none;
  margin:0;
  padding:0;
  border:1px solid var(--sta-border);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--sta-shadow-sm);
}

.sta-school-courses__list li{
  margin:0;
  border-bottom:1px solid var(--sta-border);
}

.sta-school-courses__list li:last-child{
  border-bottom:none;
}

.sta-school-courses__list button{
  width:100%;
  min-height:0;
  padding:14px 16px;
  border:0;
  background:#fff;
  color:#000;
  text-align:left;
  font-size:16px;
  font-weight:600;
  line-height:1.35;
  cursor:pointer;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
  transition:background-color .2s ease, box-shadow .2s ease;
}

.sta-school-courses__list button:hover{
  background:#faf8f3;
}

.sta-school-courses__list button.is-active{
  background:#f3efe8;
  box-shadow:inset 3px 0 0 var(--sta-gold);
}

.sta-school-courses__list button small{
  display:block;
  margin-top:6px;
  color:var(--sta-text-soft);
  font-size:13px;
  font-weight:400;
  line-height:1.45;
}

.sta-school-courses__detail{
  min-height:260px;
  padding:18px;
  border:1px solid var(--sta-border);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--sta-shadow-sm);
}

.sta-school-courses__detail-title{
  margin:0 0 12px;
  font-size:clamp(20px, 2.2vw, 28px);
}

.sta-school-courses__summary{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:0 0 14px;
}

.sta-school-courses__summary-item{
  display:grid;
  gap:8px;
  padding:14px 16px;
  border:1px solid rgba(31, 42, 32, .08);
  border-radius:12px;
  background:#faf8f3;
}

.sta-school-courses__summary-label{
  color:var(--sta-text-soft);
  font-size:14px;
  font-weight:600;
  line-height:1.4;
}

.sta-school-courses__summary-value{
  color:var(--sta-heading);
  font-size:15px;
  font-weight:400;
  line-height:1.45;
}

.sta-school-courses__features{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}

.sta-school-courses__features li{
  margin:0;
  padding:10px 12px;
  border:1px solid #f0f0f0;
  border-radius:10px;
  background:#fcfcfc;
  color:var(--sta-text);
  line-height:1.65;
}

.sta-school-courses__empty{
  margin:0;
  color:var(--sta-text-soft);
  line-height:1.7;
}

.sta-school-courses .sta-tabs__btn:focus-visible,
.sta-school-courses__list button:focus-visible{
  outline:3px solid var(--sta-gold);
  outline-offset:2px;
}

@media (max-width:1024px){
  .sta-school-courses{
    width:min(1100px, calc(100% - 24px));
  }
}

@media (max-width:900px){
  .sta-school-courses__panel-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:767px){
  .sta-school-courses{
    width:min(1100px, calc(100% - 20px));
    padding:28px 0 42px;
  }

  .sta-school-courses__filters{
    margin-bottom:16px;
  }

  .sta-school-courses__select{
    width:100%;
    min-width:0;
  }

  .sta-school-courses__detail{
    padding:18px 16px;
    min-height:0;
  }

}
