:root {
  /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */
  --primary: #b3cce5;
  --primaryLight: #ffba43;
  --secondary: #ffba43;
  --secondaryLight: #ffba43;
  /* --headerColor: #b3cce5; */
  /* Carlo - change colours here */
  --headerColor: #8b2842;
  --headerBigColor: #3e7898;
  --bodyTextColor: #4e4b66;
  --bodyTextColorWhite: #fafbfc;
  --linkColor: #168fe0;
  /* 13px - 16px */
  --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
  /* 31px - 49px */
  /* --headerBigFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); */
  /* Carlo - change header sizes here */
  --headerBigFontSize: 2.5rem;
  --headerFontSize: 1.5rem;
  --bannerFontSize: 4rem;
  --subbannerFontSize: 2.5rem;
  --bodyFontSize: 1rem;
  /* 60px - 100px top and bottom */
  /* --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; */
  /* 20px - 40px top and bottom */
  --sectionPadding: clamp(1.25rem, 3vw, 2.5rem) 1rem;
  --bannerPadding: clamp(1.25rem, 3vw, 2.5rem);
}

/* public-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/afo_assets/public-sans-v15-latin-regular.woff2")
      format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url("/assets/afo_assets/public-sans-v15-latin-regular.ttf")
      format("truetype"); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* public-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400;
  src: url("/assets/afo_assets/public-sans-v15-latin-italic.woff2")
      format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url("/assets/afo_assets/public-sans-v15-latin-italic.ttf")
      format("truetype"); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* public-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/afo_assets/public-sans-v15-latin-700.woff2") format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url("/assets/afo_assets/public-sans-v15-latin-700.ttf") format("truetype"); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* public-sans-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 900;
  src: url("/assets/afo_assets/public-sans-v15-latin-900.woff2") format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url("/assets/afo_assets/public-sans-v15-latin-900.ttf") format("truetype"); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

body {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  /* prevents padding from affecting height and width */
  box-sizing: border-box;
}

.link-section {
  max-width: 1004px !important;
  margin: 0 auto !important;
  display: flex;
  justify-content: space-between;
  padding-top: 2rem; /* Optional padding */
}

.link-section div {
  font-size: 16px; /* Adjust font size as needed */
}

.link-section a {
  font-weight: bold;
  color: #468cb3; /* Set your preferred color */
}

.link-section a:hover {
  text-decoration: underline;
}

.cs-container {
  font-family: "Public Sans" !important;
  max-width: 1004px !important;
}

.cs-center-margin {
  margin: 0 auto !important;
  max-width: 1004px !important;
}

.cs-banner-title {
  font-family: "Public Sans" !important;
}

.cs-topper {
  font-family: "Public Sans" !important;
  font-size: var(--topperFontSize);
  line-height: 1.2em;
  text-transform: uppercase;
  text-align: inherit;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: calc(4 / 16 * 1rem);
  display: block;
}

.cs-title {
  font-family: "Public Sans" !important;
  font-size: var(--headerFontSize);
  font-weight: 400;
  line-height: 1.2em;
  text-align: inherit;
  max-width: calc(700 / 16 * 1rem);
  margin: 0 0 calc(16 / 16 * 1rem) 0;
  color: var(--headerColor);
  position: relative;
}

.cs-title:last-of-type {
  color: var(--headerBigColor);
}

.cs-text {
  font-family: "Public Sans" !important;
  font-size: var(--bodyFontSize);
  line-height: 1.5em;
  text-align: inherit;
  width: 100%;
  max-width: calc(650 / 16 * 1rem);
  margin: 0;
  color: var(--bodyTextColor);
}

.cs-blue-header {
  font-family: "Public Sans" !important;
}

/*-- -------------------------- -->
<---         Banner Title       -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  .cs-banner-container {
    max-width: 1004px;
    margin: 0 auto;
    text-align: left;
  }

  .cs-banner-content {
    margin-bottom: calc(20 / 16 * 1rem);
    text-align: center;
  }

  .cs-banner-title {
    font-size: var(--bannerFontSize);
    color: var(--headerBigColor);
    font-weight: 400;
    line-height: 1.2em;
    margin-top: 0rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  .cs-3rem {
    font-size: var(--subbannerFontSize);
  }
}

@media only screen and (min-width: 48rem) {
  .cs-banner-content {
    text-align: center;
  }

  .cs-banner-title {
    max-width: 100%;
  }
}

/*-- -------------------------- -->
<---        Banner Image        -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #banner-image {
    padding: var(--sectionPadding);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    height: 300px;
  }
  #banner-image .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #banner-image .cs-big-link {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  #banner-image.cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    /* clips the img from overflowing the container on hover */
    overflow: hidden;
  }
  #banner-image .cs-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
}

/*-- -------------------------- -->
<---          Content           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #content-1638 {
    padding: var(--sectionPadding);
    position: relative;
    z-index: 1;
  }
  #content-1638 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 100px */
    gap: clamp(3rem, 9vw, 6.25rem);
  }
  #content-1638 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }
  #content-1638 .cs-title {
    color: #1a1a1a;
  }
  #content-1638 .orange {
    color: #d36430;
  }
  #content-1638 .cs-flex {
    max-width: 38rem;
  }
  #content-1638 .cs-text {
    margin-bottom: 1rem;
  }
  #content-1638 .cs-text:last-of-type {
    margin-bottom: 0;
  }
  #content-1638 .cs-link {
    font-weight: 700;
    color: var(--linkColor);
    text-decoration: none;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #content-1638:before {
    height: 63%;
  }
  #content-1638 .cs-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2.5rem;
  }
  #content-1638 .cs-flex {
    width: 50%;
    text-align: left;
    max-width: 38rem;
  }
  #content-1638 .cs-flex1 {
    width: 30%;
  }
  #content-1638 .cs-flex2 {
    width: 70%;
    max-width: 100%;
  }
  #content-1638 .cs-title {
    margin: 0;
    margin-bottom: 3.5rem;
  }
}

/*-- -------------------------- -->
<---     Image Section          -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #image-section {
    padding: var(--sectionPadding);
  }
  #image-section .cs-container {
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 34.375em;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #image-section .cs-chevron {
    --chevronColor: var(--primary);
    width: 3rem;
    height: auto;
  }
  #image-section .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 16px - 20px */
    column-gap: clamp(1rem, 2.5vw, 1.25rem);
    /* 28px - 40px */
    row-gap: clamp(1.75rem, 2.5vw, 2.5rem);
  }
  #image-section .cs-item {
    list-style: none;
    width: 100%;
    display: flex;
    grid-column: span 12;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }
  #image-section .cs-link {
    text-decoration: none;
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #image-section .cs-picture {
    width: 100%;
    height: 20.25rem;
    margin-bottom: 1.5rem;
    background-color: #000;
    overflow: hidden;
    display: block;
    position: relative;
  }
  #image-section .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  #image-section .cs-h3 {
    font-size: 1.25rem;
    line-height: 1.2em;
    font-weight: 700;
    text-align: left;
    margin: 0 0 0.75rem 0;
    color: var(--headerColor);
    text-transform: uppercase;
  }
  #image-section .cs-item-text {
    font-size: 1rem;
    line-height: 1.5em;
    text-align: left;
    margin: 0 0 1.5rem 0;
    color: var(--bodyTextColor);
  }
  #image-section .cs-fake-link {
    font-size: 1rem;
    line-height: 1.2em;
    font-weight: 700;
    margin: 0;
    margin-top: auto;
    color: var(--headerBigColor);
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
  }
  #image-section .cs-icon {
    width: 1.25rem;
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(37%) sepia(89%) saturate(295%)
      hue-rotate(157deg) brightness(94%) contrast(87%);
  }

  #image-section .cs-big-link {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
  }
  #image-section .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    /* clips the img from overflowing the container on hover */
    overflow: hidden;
  }
  #image-section .cs-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
  }
  /* Add the gray overlay */
    #image-section .cs-background-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Adjust the color and opacity */
    z-index: 0;
    }

  #image-section .cs-play-icon {
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; /* Adjust size as needed */
    height: 60px; /* Adjust size as needed */
    background-image: url('/assets/media/images/AFO/video-play-button.png'); /* URL to your play icon */
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* So it doesn't interfere with video link click */
  }
  #video-popup-section .cs-video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#video-popup-section .cs-video-container {
    width: 80%;
    max-width: 800px;
    position: relative;
}

#video-popup-section .cs-close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

#video-popup-section iframe {
    width: 100%;
    height: 450px; /* Fixed height */
    border: none;
}

#image-section .cs-big-video {
    cursor: pointer;
}
}


/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #image-section .cs-container {
    max-width: 80rem;
  }
  #image-section .cs-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  #image-section .cs-flex {
    text-align: left;
    width: 40vw;
    max-width: 40rem;
    flex: none;
  }
  #image-section .cs-item {
    grid-column: span 4;
  }
}

/*-- -------------------------- -->
<---         News          -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #news {
    padding: var(--sectionPadding);
    padding-bottom: 0;
  }
}
