/* ISI Academic Year: accessibility and layout stability refinements. */

/* OnePress' default #777 body text sits on the WCAG AA boundary.
   Use a darker neutral while preserving the existing visual hierarchy. */
body,
.section-desc,
.feature-item-content,
.service-content,
.entry-content {
  color: #5f6368;
}

.site-footer .site-info {
  background: #183b4a;
  color: #fff;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-align: center;
}

.site-footer .site-info p,
.site-footer .site-info .container p {
  color: #fff;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.site-footer .site-info p:last-child,
.site-footer .site-info .container p:last-child {
  margin-bottom: 0 !important;
}

.site-footer .site-info a {
  color: #ef8f86;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  text-decoration: none;
}

.site-info a:hover,
.site-info a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Keep contextual text links clearly distinguishable and AA-friendly on white. */
.site-content a:not(.btn):not(.button) {
  color: #5b3f6f;
}

.site-content a:not(.btn):not(.button):hover,
.site-content a:not(.btn):not(.button):focus {
  color: #143852;
}

/* Section eyebrow text is decorative/supporting copy, not a heading. */
.section-subtitle {
  color: #555b61;
}

/* Header logo: use the 310x56 Retina asset at the same visual size as
   Summer Camp and School Groups (155x28). */
.site-logo-div img.custom-logo {
  height: 28px !important;
  width: auto !important;
  max-height: 28px !important;
}

/* ==================================================
   Academic Year desktop menu
   Match Summer Camp / School Groups typography exactly.
================================================== */
@media (min-width: 992px) {
  html body #masthead #site-navigation .onepress-menu > li > a,
  html body #masthead .main-navigation .onepress-menu > li > a,
  html body .site-header #site-navigation .onepress-menu > li > a {
    color: #fff !important;
    background-color: transparent !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Summer Camp behaviour: top-level hover/current changes the text accent. */
  html body #masthead #site-navigation .onepress-menu > li > a:hover,
  html body #masthead #site-navigation .onepress-menu > li > a:focus,
  html body #masthead #site-navigation .onepress-menu > li.current-menu-item > a,
  html body #masthead #site-navigation .onepress-menu > li.current-menu-ancestor > a,
  html body #masthead #site-navigation .onepress-menu > li.current-menu-parent > a,
  html body #masthead .main-navigation .onepress-menu > li > a:hover,
  html body #masthead .main-navigation .onepress-menu > li > a:focus,
  html body .site-header #site-navigation .onepress-menu > li > a:hover,
  html body .site-header #site-navigation .onepress-menu > li > a:focus {
    color: #d6b06c !important;
    background-color: transparent !important;
  }

  /* Summer Camp behaviour: dropdowns are white/dark, then accent/white on hover. */
  html body #masthead #site-navigation .onepress-menu ul.sub-menu,
  html body #masthead #site-navigation .onepress-menu .sub-menu,
  html body #masthead .main-navigation .onepress-menu ul.sub-menu,
  html body .site-header #site-navigation .onepress-menu ul.sub-menu {
    background-color: #fff !important;
  }

  html body #masthead #site-navigation .onepress-menu ul.sub-menu li a,
  html body #masthead #site-navigation .onepress-menu .sub-menu li a,
  html body #masthead .main-navigation .onepress-menu ul.sub-menu li a,
  html body .site-header #site-navigation .onepress-menu ul.sub-menu li a {
    background-color: transparent !important;
    color: #193439 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body #masthead #site-navigation .onepress-menu ul.sub-menu li a:hover,
  html body #masthead #site-navigation .onepress-menu ul.sub-menu li a:focus,
  html body #masthead #site-navigation .onepress-menu ul.sub-menu li.current-menu-item > a,
  html body #masthead #site-navigation .onepress-menu .sub-menu li a:hover,
  html body #masthead #site-navigation .onepress-menu .sub-menu li a:focus,
  html body #masthead #site-navigation .onepress-menu .sub-menu li.current-menu-item > a,
  html body #masthead .main-navigation .onepress-menu ul.sub-menu li a:hover,
  html body #masthead .main-navigation .onepress-menu ul.sub-menu li a:focus,
  html body #masthead .main-navigation .onepress-menu ul.sub-menu li.current-menu-item > a,
  html body .site-header #site-navigation .onepress-menu ul.sub-menu li a:hover,
  html body .site-header #site-navigation .onepress-menu ul.sub-menu li a:focus,
  html body .site-header #site-navigation .onepress-menu ul.sub-menu li.current-menu-item > a {
    background-color: #765985 !important;
    color: #fff !important;
  }
}

/* ==================================================
   Academic Year hero
   Match the real OnePress/Summer Camp hero geometry.
================================================== */

/* Fullscreen geometry copied from the Summer Camp implementation. */
@media (max-width: 767px) {
  body.home #header-section .video-section,
  body.home #hero.hero-slideshow-wrapper,
  body.home #hero.hero-slideshow-fullscreen,
  body.home #hero.video-hero {
    min-height: 100vh !important;
    height: 100vh !important;
    min-height: 100svh !important;
    height: 100svh !important;
  }

  body.home #hero .container {
    min-height: 100vh !important;
    height: 100vh !important;
    min-height: 100svh !important;
    height: 100svh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.home #hero .hero__content {
    width: 100% !important;
  }
}

@media (min-width: 768px) {
  body.home #header-section .video-section,
  body.home #hero.hero-slideshow-wrapper,
  body.home #hero.hero-slideshow-fullscreen,
  body.home #hero.video-hero {
    min-height: 100vh !important;
    height: 100vh !important;
  }

  body.home #hero .container {
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.home #hero .hero__content {
    width: 100% !important;
  }
}

/* Academic Year keeps a semantic H1, but visually it is exactly the
   same scale as OnePress' native H2 used on Summer Camp. */
body.home #hero .hero-content-style1 h1.hero-large-text {
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 35px !important;
  letter-spacing: 2px !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: 800 !important;
  text-transform: uppercase !important;
  margin-top: 0;
}

@media screen and (min-width: 720px) {
  body.home #hero .hero-content-style1 h1.hero-large-text {
    font-size: 60px !important;
    letter-spacing: 3px !important;
  }
}

@media screen and (min-width: 940px) {
  body.home #hero .hero-content-style1 h1.hero-large-text {
    font-size: 75px !important;
    letter-spacing: 4px !important;
  }
}

/* Let OnePress style the subtitle and buttons exactly as on Summer Camp. */
#hero .hero-small-text a {
  color: #fff;
}

#hero .hero-small-text small {
  display: block;
  margin-top: 0.6em;
  font-size: 0.72em;
}

/* Keep background video/image filling the fullscreen hero. */
.video-section {
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.video-section video,
#hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avoid intrinsic media dimensions creating unexpected overflow/shifts. */
img {
  max-width: 100%;
  height: auto;
}
