﻿.sub-hero {
  height: 420px;
  background:
    linear-gradient(rgba(5, 25, 50, 0.164), rgba(5, 25, 50, 0.103)),
    url("../../images/front/subpage-banner.png") center/cover no-repeat;
}

.sub-path {
  height: 64px;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.349);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #979292;
  border-bottom: 1px solid #979292;
  margin-top: -64px;
  position: relative;
  z-index: 20;
}

.sub-path-inner {
  width: min(1320px, 100%);
  display: flex;
}

.sub-path a,
.sub-path-toggle {
  /* width: 260px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-left: 1px solid #979292;
  color: #fff;
  font-size: var(--font-seciton-title-sm);
  font-weight: 700;
  word-break: keep-all;
}

.sub-path-inner > *:last-child {
  border-right: 1px solid #979292;
}

.sub-path .sub-home {
  width: 72px;
  justify-content: center;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.sub-path-item {
  position: relative;
}

.sub-path-toggle {
  width: 370px;
  height: 100%;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sub-path-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex: 0 0 auto;
}

.sub-path-item.open .sub-path-arrow {
  transform: translateY(4px) rotate(225deg);
}

.sub-path-menu {
  position: absolute;
  top: 63px;
  left: 0;
  z-index: 999;
  width: 100%;
  background: rgba(22, 22, 22, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

.sub-path-item.open .sub-path-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.sub-path-menu a {
  min-width: 0;
  height: 48px;
  padding: 0 34px;
  border-left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.sub-path-menu a:hover,
.sub-path-menu a.active {
  color: #fff;
  /* background: rgba(255, 255, 255, 0.12); */
}

.sub-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 100px auto 0;
}

.sub-title {
  margin: 0;
  text-align: center;
  font-size: 42px;
  font-weight: 900;
}

.sub-title-line {
  width: 54px;
  height: 5px;
  background: #073b82;
  margin: 28px auto 64px;
}

.section-mark {
  width: 30px;
  height: 5px;
  background: #073b82;
  margin-bottom: 12px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
}

.calendar-left h2 {
  font-size: 30px;
  margin: 0 0 32px;
}

.calendar-month {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 34px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-weekdays {
  color: #999;
  font-weight: 800;
  margin-bottom: 24px;
}

.calendar-cell {
  height: 76px;
  position: relative;
  font-size: 24px;
  font-weight: 900;
}

.calendar-cell.muted {
  color: #d5d5d5;
}

.calendar-cell.sun {
  color: #ff4b43;
}

.calendar-cell.selected span {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  /* background: #073b82; */
  color: #fff;
}

.calendar-cell i {
  display: block;
  width: 6px;
  height: 6px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: #073b82;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 30px;
  margin-bottom: 34px;
}

.calendar-nav strong {
  color: #073b82;
}

.schedule-cards {
  display: grid;
  gap: 22px;
}

.schedule-cards article {
  background: #f7f7f7;
  padding: 28px 34px;
}

.schedule-cards h3 {
  font-size: 22px;
  margin: 0 0 22px;
}

.schedule-cards p {
  color: #aaa;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.empty-content {
  color: #777;
  font-size: 18px;
}

@media (max-width: 1197px) {
  .sub-path-toggle {
    width: 300px;
  }
  .sub-hero {
    height: 400px;
  }
}

@media (max-width: 987px) {
  .sub-path {
    height: 55px;
    margin-top: -55px;
    width: 100%;
  }
  .sub-path-menu {
    top: 54px;
  }
  .sub-path a,
  .sub-path-toggle {
    width: auto;
    padding: 0 16px;
  }
  .sub-path-item {
    flex: 1;
  }
  .sub-path-inner > *:last-child {
    border: none;
  }
  .sub-path-toggle {
    gap: 12px;
    justify-content: space-between;
    width: 100%;
  }
  .sub-path-toggle span {
    word-break: keep-all;
  }
  .sub-hero {
    height: 300px;
  }
}

@media (max-width: 900px) {
  .calendar-layout,
  .charter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 715px) {
  .sub-path-toggle span,
  .sub-path-menu a {
    font-size: var(--font-size-sm);
  }
  .sub-path {
    height: 50px;
    margin-top: -50px;
  }
  .sub-path-menu {
    top: 49px;
  }
}
@media (max-width: 660px) {
  .sub-path-inner .sub-home,
  .sub-path-inner:has(> .sub-path-item:nth-child(4))
    > .sub-path-item:nth-child(2) {
    display: none;
  }
}
@media (max-width: 480px) {
  .sub-hero {
    height: 230px;
  }
  .sub-title {
    font-size: 30px;
  }
  .sub-wrap {
    margin: 60px auto 0;
  }

  .sub-title-line {
    width: 54px;
    height: 5px;
    background: #073b82;
    margin: 20px auto 40px;
  }
}
