/* =========================================
   SCHOOL CALENDAR
========================================= */

.sta-school-calendar{
  padding:56px 0;
}

.sta-school-calendar__title{
  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-calendar__title{
  font-family:var(--sta-font-cjk-serif);
  font-weight:600;
  line-height:1.24;
}

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

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

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

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

.sta-school-calendar__calendar-shell{
  border:1px solid var(--sta-border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.sta-school-calendar__calendar{
  min-height:580px;
}

.sta-school-calendar .fc .fc-toolbar-title::after{
  content:none !important;
  display:none !important;
}

.sta-school-calendar .fc .fc-toolbar-title{
  border-bottom:0 !important;
  padding-bottom:0 !important;
}

.sta-school-calendar .fc-button{
  border-radius:10px !important;
  border-color:var(--sta-border) !important;
  background:#fff !important;
  color:#000 !important;
}

.sta-school-calendar .fc-button:hover{
  background:#f5f3ef !important;
  border-color:var(--sta-gold) !important;
}

.sta-school-calendar .fc-daygrid-day-frame{
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.sta-school-calendar .fc-daygrid-day-events{
  order:1;
}

.sta-school-calendar .fc-daygrid-day-top{
  order:2;
  padding-top:2px;
}

.sta-school-calendar .fc-daygrid-day-number{
  margin-left:auto;
}

.sta-school-calendar .fc-daygrid-event{
  border-radius:8px;
  font-weight:600;
}

.sta-school-calendar .fc-bg-event .fc-event-title,
.sta-school-calendar .fc-bg-event .fc-event-time{
  display:none !important;
}

.sta-school-calendar .fc-daygrid-event{
  position:relative;
  z-index:2;
}

.sta-school-calendar .fc-bg-event{
  z-index:1;
  pointer-events:none;
}

.sta-school-calendar__legend{
  justify-content:flex-start;
}

.sta-calendar__dot--teal{
  background:#00897B;
}

.sta-calendar__dot--orange{
  background:#FF8F00;
}

.sta-calendar__dot--purple{
  background:#7A3DB8;
}

.sta-calendar__dot--pink{
  background:#FF5AA5;
}

.sta-calendar__dot--olive{
  background:#7FBF3F;
}

.sta-school-calendar__box{
  display:inline-block;
  width:14px;
  height:10px;
  margin-right:8px;
  border-radius:2px;
  vertical-align:middle;
}

.sta-school-calendar__box--ele{
  background:rgba(30,136,229,.12);
  border:1px solid rgba(30,136,229,.35);
}

.sta-school-calendar__box--summer{
  background:rgba(255,193,7,.18);
  border:1px solid rgba(255,193,7,.35);
}

.sta-school-calendar__notes{
  width:100% !important;
  display:block !important;
  margin-top:12px;
}

.sta-school-calendar__note-box{
  width:100%;
  padding:16px 18px;
  border:1px solid var(--sta-border);
  border-radius:12px;
  background:#fff;
  box-sizing:border-box;
  box-shadow:0 2px 8px rgba(0,0,0,.03);
}

.sta-school-calendar__note-box h4{
  margin:0 0 10px;
  color:var(--sta-heading);
  font-size:18px;
  font-weight:700;
}

.sta-school-calendar__note-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.sta-school-calendar__note-text{
  margin:0;
  color:#333;
  font-size:.95rem;
  line-height:1.65;
}

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

@media (max-width:768px){
  .sta-school-calendar{
    padding:42px 0;
  }

  .sta-school-calendar__calendar{
    min-height:460px;
  }

  .sta-school-calendar__filters{
    gap:8px;
  }

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