.top-nav {
  background: #1d5b91;
  border-top: 4px solid rgba(255,255,255,.75);
  border-bottom: 4px solid rgba(255,255,255,.9);
}

.top-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.top-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: clamp(.78rem, 1.7vw, 1.05rem);
  font-weight: 650;
  letter-spacing: .02em;
}

.top-nav a:hover,
.top-nav a.active {
  background: #087bb9;
  color: #43e9ef;
}

/* HERO */

.calendar-hero {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,94,150,.15), rgba(0,166,200,.05)),
    url("HOME-PAGE-tt-background.jpg") center/cover no-repeat;
}

.calendar-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5,19,27,.86) 0%,
    rgba(5,19,27,.57) 52%,
    rgba(5,19,27,.13) 100%
  );
}

.calendar-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 70px 0 58px;
}

.calendar-hero-content h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
}

/* CONTENT */

.calendar-section {
  padding: 68px 0 74px;
  background: #eef3f6;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading h2,
.calendar-note h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.section-heading > p:last-child {
  color: #4b626d;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* CALENDAR CARD */

.calendar-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0,126,152,.12);
  box-shadow: 0 20px 50px rgba(4,20,28,.12);
}

.calendar-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.calendar-image-button img {
  display: block;
  width: 100%;
  height: auto;
}

.zoom-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11,41,50,.88);
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
  backdrop-filter: blur(5px);
}

.calendar-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-top: 1px solid #e5eef1;
}

.calendar-card-footer div {
  display: grid;
  gap: 3px;
}

.calendar-card-footer strong {
  font-size: 1rem;
}

.calendar-card-footer span {
  color: #61757e;
  font-size: .88rem;
}

.calendar-original {
  color: #007e98;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

/* NOTE */

.calendar-note-section {
  padding: 62px 0;
  background: #fff;
}

.calendar-note {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.calendar-note > p {
  margin: 0;
  color: #445d68;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* DIALOG */

.calendar-dialog {
  width: min(1180px, calc(100% - 24px));
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,20,30,.35);
}

.calendar-dialog::backdrop {
  background: rgba(4,20,28,.82);
  backdrop-filter: blur(4px);
}

.calendar-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.calendar-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px 0;
  border: 0;
  border-radius: 50%;
  background: #0b2932;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* RESPONSIVE */

@media (max-width: 860px) {
  .top-nav-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-nav a {
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .calendar-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .calendar-hero {
    min-height: 360px;
  }

  .calendar-hero-content {
    padding: 54px 0 44px;
  }

  .calendar-section {
    padding: 50px 0;
  }

  .calendar-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-original {
    white-space: normal;
  }

  .zoom-hint {
    right: 10px;
    bottom: 10px;
  }
}
