/**
 * FCE Model Secondary School — official palette on the marketing Webflow layout (S1).
 * Does not change grid/spacing; only tokens, header bar, logo, and mobile hero fix.
 */
:root {
  --base-color--black: #14261a;
  --base-color--blue: #14532d;
  --base-color--blue-secondary: #0c3320;
  --base-color--neutral-blue: #14532d;
  --base-color--blue-tertiary: #e7f0ea;
  --base-color--yellow: #d4a017;
  --base-color--yellow-secondary: #e4b84a;
  --base-color--pink: #c8e86c;
  --base-color--pink-secondary: #d4f088;
  --base-color--pink-tertiary: #eef6e8;
  --base-color--turquoise: #2f9e6b;
  --base-color--turquoise-secondary: #3db87d;
  --base-color--red: #b3122e;
  --base-color--red-secondary: #c93a52;
  --base-color--light-grey: #f3f5f3;
  --base-color--grey-tertiary: #f8faf8;
  --base-color--dark-grey: #5a6b60;
  --base-color--medium-grey: #c5d0c8;
  --base-color--white: #ffffff;
  --background-color--bg-color-white: #ffffff;
  --text-color--section-title: #14532d;
}

*[tabindex]:focus-visible,
input[type="file"]:focus-visible {
  outline-color: #d4a017 !important;
}

/* School crest — same slot as Lift SVG (74×50) */
.navbar_logo-link .navbar_logo svg,
.footer_logo-wrapper .footer_logo svg {
  display: none !important;
}

.navbar_logo-link,
.footer_logo-wrapper {
  flex-shrink: 0;
  width: 74px;
  height: 50px;
  background: url("../images/site/school-crest.png") center / contain no-repeat;
}

.navbar_logo-link {
  color: #14532d !important;
  display: grid !important;
  grid-template-columns: 74px minmax(0, auto);
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.05rem;
  align-items: center;
  width: auto !important;
  max-width: min(22rem, calc(100vw - 8.5rem));
  height: auto !important;
  min-height: 50px;
  background-image: none !important;
  transform: none !important;
}

.navbar_logo-link .navbar_logo {
  grid-row: 1 / span 2;
  width: 74px;
  height: 50px;
  background: url("../images/site/school-crest.png") center / contain no-repeat;
}

.navbar_logo-link::before {
  content: "Federal College of Education";
  grid-column: 2;
  grid-row: 1;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #b3122e;
  white-space: nowrap;
}

.navbar_logo-link::after {
  content: "Model Secondary School";
  grid-column: 2;
  grid-row: 2;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #14532d;
  white-space: nowrap;
}

.navbar_container {
  align-items: center !important;
}

/* Shorter mobile nav bar (crest + school name + Menu) */
@media screen and (max-width: 991px) {
  .navbar_component {
    margin-top: 0.25rem !important;
    top: 0 !important;
    padding: 0.375rem 0.875rem 0.5rem !important;
    min-height: 0 !important;
  }

  .navbar_container {
    min-height: 0 !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  .navbar_logo-link {
    grid-template-columns: 58px minmax(0, auto);
    column-gap: 0.5rem;
    max-width: calc(100vw - 7.25rem);
    min-height: 40px;
  }

  .navbar_logo-link .navbar_logo {
    width: 58px;
    height: 40px;
  }

  .navbar_logo-link::before {
    font-size: 0.5rem;
  }

  .navbar_logo-link::after {
    font-size: 0.75rem;
  }

  .footer_logo-wrapper {
    width: 58px !important;
    height: 40px !important;
  }

  .navbar_bg {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
  }

  .navbar_menu-buttons .button.is-tertiary {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8125rem !important;
  }
}

@media screen and (max-width: 479px) {
  .navbar_component {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
}

/* Hide partner / logo marquee band under hero (awards on History page) */
.section_logo {
  display: none !important;
}

/* Homepage — core awards (after stats) */
.section_awards-home .awards-home_lead {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  text-align: center;
  line-height: 1.55;
}

.section_awards-home .awards-home_marquee {
  margin-top: 2rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.section_awards-home .awards-home_track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding-bottom: 0.25rem;
  animation: fcemss-awards-marquee 42s linear infinite;
  will-change: transform;
}

.section_awards-home .awards-home_marquee:hover .awards-home_track,
.section_awards-home .awards-home_marquee:focus-within .awards-home_track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .section_awards-home .awards-home_track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .section_awards-home .awards-home_marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@keyframes fcemss-awards-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.section_awards-home .awards-home_card {
  flex: 0 0 auto;
  width: min(18.5rem, 78vw);
  background: #fff;
  border: 1px solid rgba(20, 83, 45, 0.12);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 16px rgba(20, 83, 45, 0.06);
}

.section_awards-home .awards-home_card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 0.5rem;
}

.section_awards-home .button-group.is-center {
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer_logo-wrapper {
  display: inline-block;
  position: relative;
}

.header_pill-pink {
  color: #0c3320 !important;
}

.header_pill-yellow {
  color: #1f2a1f !important;
}

.text-color-blue,
.text-color--text-color-blue {
  color: #14532d !important;
}

/* White nav strip (original shape, official accent border) */
.navbar_bg {
  background-color: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 1px 0 rgba(20, 83, 45, 0.12);
}

.navbar_menu-links {
  box-shadow: 0 0 0 1px rgba(20, 83, 45, 0.08);
}

button.custom-arrow.next {
  background-color: var(--base-color--blue) !important;
}

/* “Explore academics” band — school green + crest (not Lift logo / coral) */
.cta-discover_component {
  background-color: #14532d !important;
  color: #ffffff !important;
}

.cta-discover_logo svg {
  display: none !important;
}

.cta-discover_logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #ffffff url("../images/site/school-crest.png") center / 88% no-repeat;
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.45);
}

.cta-discover_shape svg path {
  fill: #c8e86c !important;
  opacity: 0.9;
}

.cta-discover_component .button.is-secondary .button_text {
  color: #14532d !important;
}

.cta-discover_component .button_arrow-wrapper.is-secondary {
  background-color: #14532d !important;
}

.logo_title-bullet circle {
  fill: #d4a017 !important;
}

@media screen and (max-width: 991px) {
  .cta-discover_component {
    background-color: #14532d !important;
  }
}

/* Hero card + swirl — official greens (replace Lift purple/blue) */
.header_bg-wrapper {
  background-color: #14532d !important;
}

.header_bg-shape svg path {
  fill: #2f9e6b !important;
}

/* Desktop — larger cutout, tucked to the right/bottom edge of the green card */
@media screen and (min-width: 992px) {
  .section_header .header_component,
  .section_header .header_bg-wrapper {
    overflow: hidden !important;
  }

  .section_header .header_bg-image {
    left: auto !important;
    right: -1.25rem !important;
    bottom: 0 !important;
    width: 58% !important;
    max-width: 100% !important;
    max-height: 34rem !important;
    transform: none !important;
    object-fit: contain;
    object-position: right bottom;
  }
}

/*
 * Mobile/tablet: match desktop hero — green card behind copy, students photo
 * overlapping (Lift hides the photo below 991px; we re-enable without changing DOM).
 */
@media screen and (max-width: 991px) {
  /* Webflow sets .header_bg-image { display: none } below 992px — must override. */
  .section_header .header_bg-wrapper .header_bg-image,
  .header_bg-wrapper img.header_bg-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    content-visibility: visible !important;
  }

  .section_header {
    overflow: visible !important;
  }

  .header_component,
  .header_bg-wrapper {
    overflow: hidden !important;
  }

  /* White strip under fixed nav, then inset green card (matches Lift mobile comp) */
  .section_header {
    padding-top: 6rem !important;
    background-color: #ffffff !important;
  }

  .container-home-hero {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    margin-top: 0.625rem !important;
  }

  .header_component {
    min-height: auto !important;
    padding: 0 0 4.5rem !important;
    position: relative !important;
  }

  .header_content-wraper {
    position: relative !important;
    z-index: 3 !important;
    max-width: 100% !important;
    padding: 1.375rem 1.25rem 16.25rem !important;
  }

  .header_content-wraper,
  .header_content-wraper .header_title,
  .header_content-wraper .header_subtitle {
    color: #ffffff !important;
  }

  .header_content-wraper .header_title {
    margin-bottom: 1rem !important;
    font-size: 1.875rem !important;
    line-height: 1.12 !important;
  }

  .header_content-wraper .header_pill-pink,
  .header_content-wraper .header_pill-yellow {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.92em !important;
  }

  .header_content-wraper .header_subtitle {
    margin-bottom: 1rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
  }

  .header_component .button-group {
    margin-bottom: 0 !important;
  }

  .header_component .button.is-secondary {
    width: fit-content !important;
    max-width: 100% !important;
    padding: 0.5rem 0.5rem 0.5rem 0.875rem !important;
    grid-column-gap: 0.5rem !important;
  }

  .header_component .button.is-secondary .button_text {
    font-size: 0.8125rem !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  .header_component .button.is-secondary .button_arrow-wrapper {
    width: 1.75rem !important;
    height: 1.75rem !important;
    flex-shrink: 0;
  }

  .header_bg-wrapper {
    position: absolute !important;
    top: 6rem !important;
    right: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 96% !important;
    min-height: 18rem !important;
    margin-top: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 1rem;
    overflow: visible !important;
  }

  .header_bg-shape {
    display: flex !important;
    opacity: 0.92;
    z-index: 0;
  }

  /* Photo sits in reserved band at bottom — does not cover copy or CTA */
  .header_bg-image {
    display: block !important;
    position: absolute !important;
    z-index: 1 !important;
    left: auto !important;
    right: -0.75rem !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 19.5rem !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain;
    object-position: right bottom;
    filter: contrast(1.08) saturate(1.12);
    transform: none !important;
    pointer-events: none;
  }
}

@media screen and (max-width: 767px) {
  .section_header {
    padding-top: 6.25rem !important;
  }

  .header_bg-wrapper {
    top: 6.25rem !important;
  }

  .container-home-hero {
    margin-top: 0.75rem !important;
  }

  .header_content-wraper {
    padding-bottom: 15.75rem !important;
  }

  .header_content-wraper .header_title {
    font-size: 1.75rem !important;
  }

  .header_bg-image {
    right: -0.75rem !important;
    width: 100% !important;
    max-height: 20rem !important;
  }
}

@media screen and (max-width: 479px) {
  .section_header {
    padding-top: 6.5rem !important;
  }

  .header_bg-wrapper {
    top: 6.5rem !important;
  }

  .container-home-hero {
    margin-top: 0.875rem !important;
  }

  .header_bg-wrapper {
    width: 94% !important;
  }

  .header_component {
    padding-bottom: 4rem !important;
  }

  .header_content-wraper {
    padding-bottom: 15.5rem !important;
  }

  .header_content-wraper .header_title {
    font-size: 1.625rem !important;
    line-height: 1.15 !important;
  }

  .header_bg-image {
    right: -0.65rem !important;
    width: 100% !important;
    max-height: 19rem !important;
    filter: contrast(1.1) saturate(1.15);
  }
}

/* FAQ band — official green field, gold decorative shape, white card */
.section_faq.background-color-turquoise {
  background-color: #2f9e6b !important;
}

.section_faq .faq_shape svg path:first-of-type {
  fill: #d4a017 !important;
  opacity: 0.92;
}

.section_faq .section_title {
  color: #14532d !important;
}

.section_faq .section_title .pill-blue {
  background-color: #14532d !important;
  color: #ffffff !important;
}

.section_faq .text-color-dark-grey {
  color: #5a6b60 !important;
}

.section_faq .faq_content {
  background-color: #ffffff !important;
  box-shadow: 0 1px 0 rgba(20, 83, 45, 0.06);
}

.section_faq .faq_accordion {
  border-bottom-color: #e7f0ea !important;
}

.section_faq .faq_accordion:hover {
  background-color: #f8faf8 !important;
}

.section_faq .faq_question-title {
  color: #14532d !important;
}

.section_faq .faq-icon svg path {
  fill: #14532d !important;
}

/* Gallery slider — no play overlay (school photos, not video) */
.slide_play {
  display: none !important;
}

/* Gallery — a little taller and wider than the original slides; crop from the top so faces stay in frame */
@media screen and (min-width: 992px) {
  .section_gallery .splide__slide {
    min-width: 78rem !important;
    width: 78rem !important;
    min-height: 36rem !important;
  }
}

.section_gallery .splide_slide-lightbox {
  display: block !important;
  width: 100% !important;
  height: 36rem !important;
  overflow: hidden !important;
}

.section_gallery .splide_slide-lightbox-image {
  display: block !important;
  width: 100% !important;
  height: 36rem !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: top center !important;
}

.section_gallery .splide__slide.is-active .splide_slide-lightbox,
.section_gallery .splide__slide.is-active .splide_slide-lightbox-image {
  height: 36rem !important;
}

@media screen and (max-width: 991px) {
  .section_gallery .splide__slide {
    min-width: 22.5rem !important;
    max-width: 22.5rem !important;
    width: 22.5rem !important;
    min-height: 16rem !important;
    max-height: 16rem !important;
  }

  .section_gallery .splide_slide-lightbox,
  .section_gallery .splide_slide-lightbox-image,
  .section_gallery .splide__slide.is-active .splide_slide-lightbox,
  .section_gallery .splide__slide.is-active .splide_slide-lightbox-image {
    height: 16rem !important;
  }
}

/* Stats row — horizontal swipe on phone/tablet (3 cards) */
@media screen and (max-width: 991px) {
  .section_numbers .padding-global,
  .section_numbers .numbers_component,
  .section_numbers .container-large {
    overflow: visible !important;
  }

  .section_numbers .numbers_row.w-layout-grid {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    grid-template-columns: unset !important;
    grid-auto-columns: unset !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .section_numbers .numbers_row::-webkit-scrollbar {
    display: none;
  }

  .section_numbers .numbers_card {
    flex: 0 0 min(82vw, 17.5rem) !important;
    width: min(82vw, 17.5rem) !important;
    max-width: none !important;
    scroll-snap-align: start;
    min-height: 100%;
  }
}

/* Stats icons — official green + gold */
.numbers_embed-wrapper {
  background-color: #14532d !important;
}

.numbers_embed-wrapper.is-yellow {
  background-color: #d4a017 !important;
}
