@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --ink: #3a3a3a;
  --muted: #767676;
  --blue: #3878ff;
  --page-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 400;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #3a3a3a;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #fff;
  background: #01239e;
  transform: translateY(-150%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  height: 119px;
  background: #fff;
}

.header-inner {
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 150px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 20px;
}

.primary-nav a {
  font-size: 0.92rem;
  white-space: nowrap;
}

.primary-nav a.active,
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #595959;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  margin: 4px auto;
  background: #01239e;
}

.home-main {
  width: min(var(--page-width), calc(100% - 20px));
  margin: 10px auto 0;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #fff;
  background: #1f2430;
  margin-bottom: 10px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px 15%;
  text-align: center;
  background-image:
    linear-gradient(rgba(63, 70, 87, 0.55), rgba(63, 70, 87, 0.55)),
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    var(--slide-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.hero-copy {
  width: min(623.33px, 100%);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 30px;
  color: #fff;
  font-size: 60px;
  font-weight: 800;
  line-height: 70px;
}

.hero-copy p {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 30px;
}

.hero-copy p:last-child {
  margin-bottom: 28.8px;
}

.carousel-arrow,
.testimonial-arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0 0 5px;
  color: #383838;
  background: #fff;
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 30px;
}

.hero-next {
  right: 30px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 43px;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dots button.is-active {
  width: 31px;
  background: var(--blue);
}

.section-block {
  position: relative;
}

.section-title {
  margin: 0;
  color: #555;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 175px;
  height: 10px;
  margin: 7px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12'%3E%3Cpath d='M1 8c8-10 16 10 24 0s16 10 24 0 16 10 24 0 16 10 24 0 16 10 24 0 16 10 24 0 16 10 24 0' fill='none' stroke='%236dc982' stroke-width='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.programs {
  padding: 11px 10px 20px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.program-card {
  position: relative;
  height: 280px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
}

.program-card.green,
.program-card.green .program-face {
  background: #4cc587;
}

.program-card.blue,
.program-card.blue .program-face {
  background: #6aa8c3;
}

.program-card.orange,
.program-card.orange .program-face {
  background: #f4a85f;
}

.program-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transition: transform 500ms cubic-bezier(.2, .75, .25, 1);
}

.program-front {
  transform: translateY(0);
}

.program-back {
  gap: 18px;
  transform: translateY(100%);
}

.program-card:hover .program-front,
.program-card:focus-visible .program-front,
.program-card.is-flipped .program-front {
  transform: translateY(-100%);
}

.program-card:hover .program-back,
.program-card:focus-visible .program-back,
.program-card.is-flipped .program-back {
  transform: translateY(0);
}

.program-face svg {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  fill: #fff;
}

.program-face strong {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.5;
}

.program-back span {
  font-size: 0.94rem;
  line-height: 1.75;
}

.testimonials {
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 11px max(15px, calc((100vw - var(--page-width)) / 2)) 47px;
  background: #f2f2f2;
}

.testimonial-viewport {
  width: min(var(--page-width), 100%);
  margin: 24px auto 0;
  overflow: hidden;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.testimonial-card {
  min-height: 266px;
  padding: 74px 45px 36px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card[hidden] {
  display: none;
}

.testimonial-card > p {
  min-height: 73px;
  margin: 0;
  color: #777;
  font-family: Georgia, "Times New Roman", "PingFang TC", serif;
  font-size: 0.79rem;
  font-style: italic;
  line-height: 1.65;
  text-align: center;
}

.person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.person img {
  width: 76px;
  height: 76px;
  border: 2px solid var(--blue);
  border-right-color: #e8e8e8;
  border-top-color: #e8e8e8;
  border-radius: 50%;
  object-fit: cover;
}

.person strong {
  color: #000;
  font-size: 0.88rem;
  white-space: nowrap;
}

.testimonial-arrow {
  top: 55%;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  color: #fff;
  background: var(--blue);
  font-size: 1.7rem;
  line-height: 1;
}

.testimonial-prev {
  left: 48px;
}

.testimonial-next {
  right: 48px;
}

.testimonial-dots {
  margin-top: 31px;
  gap: 10px;
}

.testimonial-dots button {
  width: 20px;
  height: 9px;
  background: var(--blue);
}

.testimonial-dots button.is-active {
  width: 31px;
}

.activities {
  padding: 10px 0 20px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 0;
  margin-top: 35px;
}

.activity-columns {
  display: contents;
}

.activity-grid-secondary {
  margin-top: 20px;
}

.activity-grid figure {
  min-width: 0;
  min-height: 216.734px;
  margin: 0;
  text-align: center;
}

.activity-grid img {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.activity-grid figcaption {
  min-height: 38px;
  margin-top: 14px;
  color: #111;
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer {
  min-height: 181px;
  padding: 52px 20px 30px;
  color: #f5f5f5;
  background: #333;
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.site-footer a {
  color: #f5f5f5;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 24px 0 0;
  font-size: 1rem;
}

/* Contact page */

.contact-page {
  background: #f3f3f3;
}

.contact-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 70px auto;
  padding: 98px 120px 99px;
  background: #fff;
}

.contact-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 492px;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/contact-hero.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 95vw auto;
}

.contact-hero h1 {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.contact-intro {
  min-height: 301.36px;
  padding: 5px 10px 25px;
}

.contact-intro h2,
.directions h2,
.contact-details-form h2 {
  margin: 0;
  color: #333;
  font-size: 45px;
  font-weight: 800;
  line-height: 1.3;
}

.contact-details-form h2 {
  margin-bottom: 40px;
  color: #3a3a3a;
  font-family: "Montserrat", sans-serif;
}

.contact-intro p {
  margin: 30px 0 0;
  color: #747474;
  font-size: 1rem;
  line-height: 1.8;
}

.map-wrap {
  height: 500px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.directions {
  min-height: 1401.375px;
  padding: 34px 10px 15px;
  background: #fbfbfb;
}

.tabs {
  margin-top: 38px;
}

.desktop-tabs {
  display: flex;
  align-items: flex-end;
}

.tab-button,
.mobile-tab {
  padding: 17px 25px;
  color: #939593;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tab-button.is-active {
  border: 1px solid #d5d5d5;
  border-bottom-color: #f7f7f7;
  background: #f7f7f7;
}

.tab-panel {
  min-height: 780px;
  padding: 20px;
  color: #737373;
  border: 1px solid #d5d5d5;
  background: #f7f7f7;
  font-size: 0.92rem;
  line-height: 1.7;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel p {
  margin: 0 0 24px;
}

.tab-panel .route {
  margin-bottom: 21px;
}

.green-text {
  color: #339966;
}

.red-text {
  color: #f00;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mobile-tab {
  display: none;
}

.contact-details-form {
  display: grid;
  grid-template-columns: 40% 60%;
  padding: 25px 0 30px;
  background: #f7f7f7;
}

.contact-details,
.contact-form-wrap,
.contact-channels-wrap {
  padding: 0;
}

.contact-channels-wrap p {
  margin: 0 0 25.6px;
  color: #3a3a3a;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

.contact-channels {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-channels li {
  margin: 0 0 20px;
}

.contact-channels .channel-label {
  display: block;
  margin-bottom: 4px;
  color: #3a3a3a;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-channels a {
  color: #767676;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  word-break: break-word;
}

.contact-details p {
  margin: 0 0 25.6px;
  color: #3a3a3a;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

.contact-details a {
  color: #767676;
}

.contact-form {
  margin-top: 40px;
  padding-bottom: 6px;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
  color: #3a3a3a;
  font-size: 0.78rem;
}

.contact-form label > span {
  color: #f28c8c;
}

.form-row-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 9px 14px;
  color: #3a3a3a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background: transparent;
  font-size: 0.9rem;
  outline-offset: 2px;
}

.contact-form input,
.contact-form select {
  height: 46px;
}

.contact-form textarea {
  min-height: 137px;
  resize: vertical;
}

.contact-form button {
  padding: 10px 15px;
  color: #fff;
  border: 0;
  border-radius: 2px;
  background: #6ec1e4;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  color: #6f77f4;
}

.form-note {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: #666;
  font-size: 0.75rem;
}

.form-note:empty {
  display: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding-top: 20px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.social-links svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.social-links .facebook {
  background: #3b5998;
}

.social-links .instagram {
  background: #262626;
}

.social-links .youtube {
  background: #cd201f;
}

@media (min-width: 768px) and (max-width: 1200px) {
  .hero-copy h1,
  .hero-copy h2 {
    font-size: 50px;
    line-height: 60px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-copy h1,
  .hero-copy h2 {
    font-size: 44px;
    line-height: 50px;
  }
}

@media (max-width: 1024px) {
  .testimonial-prev {
    left: 10px;
  }

  .testimonial-next {
    right: 10px;
  }

  .contact-shell {
    padding-right: 60px;
    padding-left: 60px;
  }

  .contact-details-form {
    grid-template-columns: 1fr;
  }

  .contact-details,
  .contact-form-wrap {
    padding: 24px 20px;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 16.4px;
  }

  .site-header {
    height: 98px;
  }

  .header-inner {
    width: calc(100% - 40px);
  }

  .brand img {
    width: 118px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    z-index: 20;
    top: 98px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px 10px;
    background: #fff;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 0;
    border-top: 1px solid #eee;
  }

  .home-main {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .hero-carousel {
    height: 600px;
  }

  .hero-slide {
    padding: 65px 18px 125px;
  }

  .hero-copy {
    transform: translateY(32px);
  }

  .hero-copy h1,
  .hero-copy h2 {
    margin-bottom: 24px;
    font-size: 2rem;
  }

  .hero-copy p {
    margin-bottom: 30px;
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .carousel-arrow {
    top: auto;
    bottom: 74px;
    width: 40px;
    height: 40px;
    transform: none;
  }

  .hero-prev {
    left: calc(50% - 47px);
  }

  .hero-next {
    right: calc(50% - 47px);
  }

  .hero-dots {
    bottom: 41px;
  }

  .carousel-dots button {
    width: 16px;
    height: 16px;
  }

  .carousel-dots button.is-active {
    width: 30px;
  }

  .section-title {
    font-size: 2rem;
  }

  .programs {
    padding: 10px;
  }

  .program-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 25px;
  }

  .program-card {
    height: 280px;
  }

  .testimonials {
    padding-top: 10px;
    padding-bottom: 54px;
  }

  .testimonial-track {
    display: block;
  }

  .testimonial-card {
    min-height: 328px;
    padding: 58px 28px 30px;
  }

  .testimonial-arrow {
    top: 58%;
    width: 40px;
    height: 40px;
  }

  .testimonial-prev {
    left: 6px;
  }

  .testimonial-next {
    right: 6px;
  }

  .activities {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .activity-columns {
    display: flex;
    align-items: flex-start;
  }

  .activity-grid {
    width: 50%;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0;
    margin-top: 35px;
  }

  .activity-grid-secondary {
    min-height: 2482.906px;
    margin-top: 35px;
  }

  .activity-grid img {
    width: min(140px, 80vw);
    height: min(140px, 80vw);
  }

  .activity-grid figcaption {
    min-height: 30px;
    margin-top: 10px;
    padding: 0 3px;
    font-size: 0.55rem;
  }

  .activity-grid figure {
    min-height: 205.242px;
  }

  .site-footer {
    min-height: 143px;
    padding: 46px 20px 25px;
  }

  .site-footer nav {
    gap: 20px;
  }

  .site-footer p {
    margin-top: 25px;
    font-size: 0.94rem;
  }

  .contact-shell {
    width: calc(100% - 16px);
    margin: 27px auto;
    padding: 24px 17px 30px;
  }

  .contact-hero {
    min-height: 225px;
  }

  .contact-hero h1 {
    font-size: 50px;
  }

  .contact-intro {
    min-height: 326.3px;
    padding: 7px 10px 25px;
  }

  .contact-intro h2,
  .directions h2,
  .contact-details-form h2 {
    font-size: 28px;
  }

  .contact-intro p {
    margin-top: 30px;
    font-size: 1rem;
    line-height: 1.85;
  }

  .map-wrap {
    height: 225px;
  }

  .directions {
    min-height: 0;
    padding: 35px 15px 15px;
  }

  .tabs {
    margin-top: 38px;
  }

  .desktop-tabs {
    display: none;
  }

  .mobile-tab {
    display: block;
    width: 100%;
    padding: 14px 11px;
    border: 1px solid #d5d5d5;
    border-bottom: 0;
    background: #f7f7f7;
    text-align: left;
  }

  .mobile-tab:last-of-type {
    border-bottom: 1px solid #d5d5d5;
  }

  .tab-panel {
    min-height: 991.25px;
    padding: 14px 10px 24px;
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .tab-panel p {
    margin-bottom: 23px;
  }

  #bus-panel,
  #taxi-panel {
    min-height: 0;
  }

  .contact-details-form {
    display: block;
    padding: 0 0 25px;
  }

  .contact-details,
  .contact-form-wrap {
    padding: 22px 15px 4px;
  }

  .contact-form-wrap {
    padding-top: 24px;
  }

  .contact-form {
    margin-top: 16px;
  }

  .form-row-three {
    display: block;
  }

  .contact-form label {
    margin-bottom: 25px;
    font-size: 0.8rem;
  }

  .contact-form input,
  .contact-form select {
    height: 47px;
  }

  .contact-form textarea {
    min-height: 143px;
  }

  .social-links {
    padding: 10px 0 0;
  }

  .social-links a {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
