@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");

:root {
  --chauncy-blue: #111836;
  --chauncy-blue-light: #192350;
  --chauncy-blue-dark: #0d122b;
  --chauncy-blue-75: rgba(17, 24, 54, 0.75);
  --chauncy-gold: #febf00;
  --chauncy-gold-dark: #cf9d04;
  --chauncy-green: #068447;
  --white: #ffffff;
  --black: #080808;
  --off-white: #f3f3f3;
  --off-white-90: rgba(243, 243, 243, 0.90);
  --font-size: 1.8rem;
  --border-radius: 1rem;
}

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
  /* list-style: none; */
  margin:0;
  padding: 0;
  text-decoration: none;
  font-weight: normal;
  font-size: 16px;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

html {
  min-height: 100vh;
  font-size: 10px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: "Lato", sans-serif;
  font-weight: 400;
}
html .no-scroll {
  overflow: hidden;
}

body {
  background: var(--off-white);
}

h1, h2, h3, h4, h5, h6, .wp-block-heading {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  margin-bottom: 2rem;
}

h1 {
  font-size: 3.8rem;
  font-weight: 700;
}

h2 {
  font-size: 3.2rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: var(--font-size);
}

h6 {
  font-size: 1.4rem;
}

p, .wp-block-paragraph {
  font-family: "Lato", sans-serif;
  font-size: var(--font-size);
}
p:not(:last-child) {
  margin-bottom: 1rem;
}

a {
  text-decoration: underline;
  cursor: pointer;
  /* font-size: var(--font-size); */
  color: var(--chauncy-blue);
  transition: 0.4s color ease-in-out;
}

ul, ol {
  font-size: var(--font-size);
  margin-bottom: 2rem;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

hr {
  color: var(--chauncy-blue-dark);
}

ion-icon {
  fill: var(--white);
}
.search-field{
  margin-right: 1.5rem;
}
.card {
  display: grid;
  color: var(--white);
}
.card--home{
  display: flex;
  flex-direction: column;
  color: var(--black);
  background: var(--off-white);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.card--news {
  color: var(--black);
}
.card--search {
  margin-bottom: 2.5rem;
}
.card__img {
  margin-bottom: auto;
}
.content .card__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0;
}
.card__img--home img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card__content {
  padding: 0 1rem;
}
.card__heading {
  padding: 1.5rem 0 0;
}
.card__heading--search {
  padding: 0;
}
.card__heading h3,
.card__heading--search h3
 {
  margin-bottom: 0;
}
.card__text {
  padding: 1.5rem 0 0;
}
.card__text--search {
  margin-bottom: 1.5rem;
}
.card__text p {
  margin-bottom: 1.5rem;
}
.card__info {
  align-self: self-end;
}
.card__info span,
.card__info span a {
  padding-right: 1.5rem;
  font-size: 1.5rem;
}
.card__info span ion-icon {
  padding-right: 0.5rem;
}
.card__button {
  margin-top: auto;
}

.button {
  display: inline-block;
  background: var(--chauncy-gold);
  border: 1px solid var(--chauncy-gold);
  border-radius: var(--border-radius);
  color: var(--black);
  font-size: var(--font-size);
  padding: 1.5rem 2.5rem;
  outline: none;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}
.button:hover {
  background-color: var(--chauncy-gold-dark);
  color: var(--white);
}

.button--top{
  position: fixed;
  display: block;
  border: none;
  bottom: 50px;
  right: 50px;
  margin-right: -30px;
  opacity: 0;
  transition: opacity .3s ease, margin-right .5s ease-out;
}

.button--search{
  padding: 0 1rem;
}

.visible{
  transition: opacity .3s ease, margin-right .5s ease-out;
  margin-right: 0px;
  opacity: .6;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--chauncy-blue);
  box-shadow: 0rem 1rem 3rem var(--chauncy-blue-dark);
  border-bottom: 0.1rem solid var(--chauncy-blue-dark);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  max-width: 108rem;
  margin: 0 auto;
  flex-wrap: wrap;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: auto;
  width: 9rem;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin-bottom: 0;
  margin-left: auto;
}
.nav__list .sub-menu {
  display: none;
  position: absolute;
  background: var(--chauncy-blue);
  padding: 1rem;
  margin: 0;
  list-style: none;
}
.nav__list .sub-menu > li {
  margin-bottom: 1rem;
}
.nav__list.sub-menu--active {
  display: block;
}
.nav__list a {
  color: var(--white);
  text-decoration: none;
  font-size: var(--font-size);
  transition: color 0.4s ease-in-out;
}
.nav__search-icon {
  align-items: center;
  margin-left: 1rem;
  padding-top: 0.8rem;
}
.nav__search-icon ion-icon {
  fill: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: 0.4s fill ease-in-out;
}
.nav__search-icon ion-icon:hover {
  fill: var(--chauncy-gold);
}
.search__form {
  display: none;
  width: 100%;
  background: var(--chauncy-blue);
  margin-top: 2rem;
}

.search__form.show {
  display: flex;
}
.search__form form {
  margin-left: auto;
  font-size: var(--font-size);
}
.nav__dropdown {
  display: none;
}
.nav .nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: relative;
  visibility: hidden;
}
.nav .nav__toggle .nav__toggle-bar {
  width: 100%;
  height: 4px;
  background-color: var(--white);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.nav .nav__toggle .nav__toggle-bar:nth-child(1) {
  top: 0;
}
.nav .nav__toggle .nav__toggle-bar:nth-child(2) {
  top: 10px;
}
.nav .nav__toggle .nav__toggle-bar:nth-child(3) {
  bottom: 0;
}
.nav .nav__toggle--active .nav__toggle-bar:nth-child(1) {
  animation: bar1-active 0.3s forwards;
}
.nav .nav__toggle--active .nav__toggle-bar:nth-child(2) {
  animation: bar2-active 0.3s forwards;
}
.nav .nav__toggle--active .nav__toggle-bar:nth-child(3) {
  animation: bar3-active 0.3s forwards;
}
.nav .nav__toggle:not(.nav .nav__toggle--active) .nav__toggle-bar:nth-child(1) {
  animation: bar1-inactive 0.3s forwards;
}
.nav .nav__toggle:not(.nav .nav__toggle--active) .nav__toggle-bar:nth-child(2) {
  animation: bar2-inactive 0.3s forwards;
}
.nav .nav__toggle:not(.nav .nav__toggle--active) .nav__toggle-bar:nth-child(3) {
  animation: bar3-inactive 0.3s forwards;
}

@keyframes bar1-active {
  0% {
    transform: rotate(0deg);
    top: 0;
  }
  50% {
    transform: rotate(45deg);
    top: 10px;
  }
  100% {
    transform: rotate(45deg);
    top: 10px;
  }
}
@keyframes bar1-inactive {
  0% {
    transform: rotate(45deg);
    top: 10px;
  }
  100% {
    transform: rotate(0deg);
    top: 0;
  }
}
@keyframes bar2-active {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes bar2-inactive {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes bar3-active {
  0% {
    transform: rotate(0deg);
    bottom: 0;
  }
  50% {
    transform: rotate(-45deg);
    bottom: 10px;
  }
  100% {
    transform: rotate(-45deg);
    bottom: 10px;
  }
}
@keyframes bar3-inactive {
  0% {
    transform: rotate(-45deg);
    bottom: 10px;
  }
  100% {
    transform: rotate(0deg);
    bottom: 0;
  }
}
.logged-in .nav {
  margin-top: 3.2rem;
}

.footer {
  background: var(--chauncy-blue);
}
.footer p {
  font-size: 1.5rem;
}
.footer__container {
  display: grid;
  grid-template-columns: repeat(1, 1fr 1fr 2fr);
  grid-template-rows: auto;
  grid-template-areas: "contact usefull other" "social . other" "copyright copyright other";
  margin: 0 auto;
  padding: 5rem 0;
  max-width: 108rem;
  gap: 2.5rem;
}

.contact-us {
  grid-area: contact;
  color: var(--white);
}
.contact-us a:link{
  color: var(--chauncy-gold);
  transition: 0.4s color ease-in-out;
}
.contact-us a:hover{
  color: var(--white);
}
.contact-us__header {
  font-weight: 500;
  margin-bottom: 1rem;
}

.useful-links {
  grid-area: usefull;
}
.useful-links__header {
  color: var(--white);
  font-weight: 500;
  margin-bottom: 1rem;
}
.useful-links__list {
  list-style: none;
  padding: 0;
  font-size: 1.6rem;
}
.useful-links__list a {
  color: var(--chauncy-gold);
  transition: 0.4s color ease-in-out;
}

.other-links {
  grid-area: other;
  justify-self: right;
  width: 320px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: min-content;
  gap: 2.5rem;
}

.other-links_links--span1 {
  grid-column: auto;
}

.other-links_links--span2 {
  grid-column: 1/span 2;
}

.social-media {
  grid-area: social;
  display: flex;
  gap: 2rem;
}
.social-media ion-icon {
  fill: var(--white);
  height: 2.5rem;
  width: 2.5rem;
  cursor: pointer;
  transition: 0.4s fill ease-in-out;
}

.copyright {
  grid-area: copyright;
  color: var(--white);
}
.copyright a {
  color: var(--chauncy-gold);
  transition: 0.4s color ease-in-out;
}

.slider {
  margin-top: 7rem;
}

.glide {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.glide * {
  box-sizing: inherit;
}
.glide__track {
  overflow: hidden;
}
.glide__slides {
  position: relative;
  width: 100%;
  list-style: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  touch-action: pan-Y;
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}
.glide__slides--dragging {
  user-select: none;
}
.glide__slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  white-space: normal;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.glide__slide img {
  width: 100%;
  height: auto;
}
.glide__slide a {
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.glide__arrows {
  -webkit-touch-callout: none;
  user-select: none;
}
.glide__bullets {
  -webkit-touch-callout: none;
  user-select: none;
}
.glide--rtl {
  direction: rtl;
}
.glide {
  height: auto;
  width: 100%;
}
.glide__text-container {
  margin: 0 auto;
  position: absolute;
  bottom: 10%;
  left: 5%;
  max-width: 75%;
}
.glide__text {
  padding: 1rem 2rem;
  color: var(--white);
  border-radius: var(--border-radius);
  background-color: var(--chauncy-blue-75);

}
.glide__text h1 {
  display: inline-block;
  font-weight: 400;
  color: var(--white);
  margin: 0;
}

.welcome {
  display: grid;
  max-width: 108rem;
  margin: 5rem auto;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
}
.welcome__logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.welcome__title {
  color: var(--chauncy-blue);
  margin-bottom: 2.5rem;
  align-self: center;
  text-transform: capitalize;
}

.logo {
  margin-bottom: 2.5rem;
  align-self: center;
  width: 22.5rem;
  height: auto;
}
.logo__text {
  color: var(--chauncy-blue);
  text-align: center;
}

.news {
  background: var(--chauncy-blue);
}
.news__container {
  max-width: 108rem;
  margin: 0 auto;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news__header {
  color: var(--white);
  margin-bottom: 2.5rem;
  text-transform: capitalize;
}
.news__contents {
  grid-template-columns: 1fr 1fr 1fr;
  display: grid;
  gap: 2.5rem;
}
.news__read-more {
  width: fit-content;
}
.news__read-more a {
  color: var(--black);
  font-size: 1.6rem;
  transition: color 0.4s ease-in-out;
}
.news__read-more a:hover {
  color: var(--chauncy-gold);
}
.news__pag {
  grid-column: 1/span 3;
}
.news__pag span.current {
  font-size: 2rem;
}

.dates {
  background: var(--off-white);
}
.dates__container {
  max-width: 108rem;
  margin: 0 auto;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dates__header {
  color: var(--black);
  margin-bottom: 2.5rem;
  text-transform: capitalize;
}
.dates__contents {
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  display: grid;
  gap: 2.5rem;
}
.dates__card {
  display: flex;
}
.dates__read-more a {
  color: var(--black);
  font-size: 1.6rem;
  transition: color 0.4s ease-in-out;
}
.dates__read-more a:hover {
  color: var(--chauncy-gold);
}

.date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 2.5rem;
  margin-right: 2.5rem;
}
.date__day {
  font-weight: 700;
  font-size: 2.5rem;
}
.date__month {
  font-weight: 300;
  font-size: 2.5rem;
}
.date__event {
  align-content: center;
}
.date__event p {
  font-size: 2rem;
}

.prospectus {
  background-color: var(--chauncy-blue);
}
.prospectus__container {
  display: flex;
  flex-direction: column;
  max-width: 108rem;
  margin: 0 auto;
  padding: 5rem 0;
  align-items: center;
}
.prospectus__header {
  color: var(--white);
  margin-bottom: 2.5rem;
  text-transform: capitalize;
}
.prospectus__contents {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2.5rem;
}
.prospectus__contents {
  color: var(--white);
}
.prospectus__img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.options {
  background: var(--off-white);
}
.options__container {
  max-width: 108rem;
  margin: 0 auto;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.options__header {
  color: var(--black);
  margin-bottom: 2.5rem;
  text-transform: capitalize;
}
.options__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.options__gcse {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.options__alevel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gcse__header {
  margin-bottom: 1.5rem;
}
.gcse__options-img {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.alevel__header {
  margin-bottom: 1.5rem;
}
.alevel__options-img {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 25px;
}
.alevel__options-img img {
  align-self: flex-end;
}
.alevel__text {
  margin-bottom: auto;
}
.alevel__text p:last-child {
  margin-bottom: 2.5rem;
}

.content {
  max-width: 108rem;
  margin: 7rem auto;
  padding: 5rem 0;
  color: var(--black);
}
.content iframe[src*="youtube.com"],
.content iframe[src*="youtu.be"]{
  max-width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  display: block;
}
.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1em;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.content--news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.content .feature-image img {
  width: 100%;
  height: auto;
}
.content img {
  margin-bottom: 2.5rem;
}

.content p + h2,
.content p + h3,
.content p + h4,
.content p + h5,
.content p + h6 {
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}

.content ul {
  list-style: disc;
  padding-left: 2.5rem;
}

.term {
  margin: 0 0 2.5rem 0;
}
.term__header {
  margin: 0 0 1.5rem 0;
}
.term__dates {
  margin-bottom: 2.5rem;
}
.term__dates ul {
  list-style: none;
  padding-left: 0;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--chauncy-gold);
  }
  .nav__list a:hover {
    color: var(--chauncy-gold);
  }
  .nav__list a:hover + .sub-menu {
    display: block;
  }
  .nav__list li:hover ul.sub-menu {
    display: block;
  }
  .nav__search ion-icon:hover {
    fill: var(--chauncy-gold);
  }
  .useful-links__list a:hover {
    color: var(--white);
  }
  .social-media ion-icon:hover {
    fill: var(--chauncy-gold);
  }
  .copyright a:hover {
    color: var(--white);
  }
}
@media only screen and (max-width: 1500px) {
  .glide__text h1 {
    font-size: 3.6rem;
  }
}
@media screen and (max-width: 1150px) {
  .glide__text h1 {
    font-size: 3.0rem;
  }
  .content {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .welcome {
    margin: 0 1.5rem 2rem;
  }
  .news__contents,
  .dates__container,
  .prospectus__container,
  .options__container,
  .footer__container {
    margin: 0 1.5rem;
  }
}
@media screen and (max-width: 1000px) {
  .logged-in .nav .nav__list {
    margin-top: 3.2rem;
  }
  .body__active{
    overflow-y: hidden;
  }
  .nav {
    gap: 2.5rem;
    row-gap: 1rem;
  }
  .nav__dropdown {
    display: inline-block;
  }
  .nav__dropdown > ion-icon {
    fill: var(--white);
    width: 1.8rem;
    height: 1.8rem;
  }
  .nav .nav__list {
    position: absolute;
    top: 6rem;
    right: 0;
    background-color: var(--chauncy-blue);
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: none;
  }
  .nav .nav__list--active {
    display: flex;
    align-items: flex-start;
    padding: 2.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
  .nav .nav__list .sub-menu > li {
    margin-left: 1.5rem;
    border-bottom: 1px solid var(--white);
  }
  .nav .nav__list .sub-menu > li:last-of-type {
    margin-bottom: 1.5rem;
  }
  .nav .nav__list .sub-menu.sub-menu--active {
    display: block;
  }
  .nav .nav__link {
    display: block;
    padding: 10px 20px;
  }
  .nav .nav__toggle {
    order: 4;
    visibility: visible;

  }
  .nav .nav__search-icon {
    order: 3;
    margin-left: auto;
  }
  .nav__search-icon ion-icon{
    font-size: 3rem;
  }
  .search__form.show{
    order: 5;
    margin-top: 0;
  }
  .content--news {
    grid-template-columns: repeat(2, 1fr);
  }
  .news__pag {
    font-size: 1.8rem;
    grid-template: 1 / span 2;
  }
}
@media screen and (max-width: 750px) {
  .logged-in .nav {
    margin-top: 4.6rem;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 1rem
  }
  .welcome__logo {
    flex-direction: column-reverse;
  }
  .welcome__logo .logo {
    margin-top: 1rem;
    width: 60%;
  }
  .welcome__title {
    text-align: center;
  }
  .news__contents {
    grid-template-columns: 1fr;
  }
  .prospectus__contents {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .prospectus__img {
    grid-row-start: 1;
    max-width: 66%;
    justify-self: center;
  }
  .content--news {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .news__pag {
    grid-column: auto;
  }
}
@media screen and (max-width: 650px) {
  .glide__text-container{
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
  }
  .options__content {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .footer__container {
    grid-template-columns: repeat(1, 1fr 1fr);
    grid-template-areas: "contact usefull" "other other" "social social" "copyright copyright";
  }
  .other-links {
    width: 100%;
  }
  .dates__contents {
    grid-template-columns: 1fr;
  }
  .card--news:first-of-type {
    grid-column: auto;
  }
}

@media screen and (max-width: 460px) {
  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: var(--font-size);
  }

  p {
    font-size: 1.6rem;
  }
  .button--top {
    right: 30px;
  }
}

