/* --- Variables --- */

:root {
  --white:       #FFFFFF;
  --blue:        #0071B9;
  --dark-blue:   #000D29;
  --light-blue:  #88a7e9;
  --teal:        #16A4B8;
}

/* --- Globals --- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "neue-haas-grotesk-display", sans-serif;
  letter-spacing: .5px;
  color: var(--white);
  background-color: var(--dark-blue);
}

p {
  font-size: 1rem;
  line-height: 2rem;
}

h1 {
  font-size: 3.375rem;
  line-height: 3.375rem;
}

h2 {
  font-size: 2.5rem;
  line-height: 2.5rem;
}

h3 {
  font-size: 2rem;
  line-height: 2rem;
}

h4 {
  font-size: 1.75rem;
  line-height: 1.75rem;
}

h5 {
  font-size: 1.5rem;
  line-height: 1.5rem;
}

h6 {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0; /* remove all default margins */
  font-weight: 600;
  font-style: normal;
}

a {
  color: var(--white);
}

a:hover {
  cursor: pointer !important;
}

p, ul, ol, hr {
  margin-bottom: 1rem;
  font-weight: 500;
  font-style: normal;
}

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

/* --- Lists --- */

main ul {
  padding-left: 10px;
  margin: 0;
}
main ul li {
  padding: 0;
  margin: 0;
}

/* --- Forms --- */

form {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

/* All general input types */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
  all: unset;
  display: block;
  width: 100%;
  padding: 10px 16px;
  margin: 0 auto;
  box-sizing: border-box;
  border: 1px solid;
  border-color: rgba(255,255,255,0.33);
  border-radius: 13px;
  background-color: rgba(0,0,0,0);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: white;
  transition: all 0.2s ease-in-out;
}

/* All general input types: hover */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="week"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(255,255,255,0.67);
  background-color: rgba(0,0,0,0.1);
}

/* All general input types: focus/active */
input[type="text"]:focus,
input[type="text"]:active,
input[type="email"]:focus,
input[type="email"]:active,
input[type="url"]:focus,
input[type="url"]:active,
input[type="tel"]:focus,
input[type="tel"]:active,
input[type="number"]:focus,
input[type="number"]:active,
input[type="password"]:focus,
input[type="password"]:active,
input[type="search"]:focus,
input[type="search"]:active,
input[type="date"]:focus,
input[type="date"]:active,
input[type="time"]:focus,
input[type="time"]:active,
input[type="datetime-local"]:focus,
input[type="datetime-local"]:active,
input[type="month"]:focus,
input[type="month"]:active,
input[type="week"]:focus,
input[type="week"]:active,
textarea:focus,
textarea:active,
select:focus,
select:active {
  border-color: rgba(255,255,255,1.0);
}

/* All labels */
label {
  display: block;
  padding: 10px;
  margin: 16px 0 -16px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 20px;
}

/* Labels With Checkboxes */
label:has(input[type="checkbox"]) {
  display: flex;
  padding-left: 0;
  cursor: pointer;
}
label:has(input[type="checkbox"]) > input[type="checkbox"] {
  margin: 0 15px;
}

/* Handle Placeholder Text */
input::placeholder,
textarea::placeholder {
  color: transparent; /* hide placeholder text */
}

/* Select Input Overrides */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;  /* Transparent background */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A97B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 1.25em auto;
  cursor: pointer;
}
select:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B4C1E3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
select:focus,
select:active {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Text Selection */
::selection {
  background-color: var(--blue);
  color: var(--dark-blue);
}
::-moz-selection {
  background-color: var(--blue);
  color: var(--dark-blue);
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.contained {
  width: 100%;
  max-width: 1280px;
  position: relative;
  margin: 0 auto;
}

.full-bleed {
  width: 100%;
  position: relative;
  margin: 0;
  overflow: hidden;
}

section {
  padding: 75px 0;
}

@media screen and (max-width: 768px) {
  section {
    padding: 50px 0;
  }
}

@media screen and (max-width: 1280px) {
  section {
    padding: 30px;
  }
}

/* --- Custom Padding --- */

.pt0 {
  padding-top: 0px !important;
}

.pb0 {
  padding-bottom: 0px !important;
}

/* Add margin to the top of pages without Hero Slider etc. */
#content > :first-child:not(.hero-slider):not(article):not(.search-results):not(.events-archive) {
  margin-top: 100px;
}

/* Hides but still exposes to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Hides */
.is-hidden {
  display: none;
}

.tab-menu {
  display: flex;
  gap: 50px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

@media only screen and (max-width: 768px) {
  .tab-menu {
    gap: 30px;
  }
}

.tab-menu a {
    display: inline-block;
    padding: 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--white);
    opacity: .4;
    transition: color .25s ease, opacity .25s ease;
}

.tab-menu a:hover:not(.active) {
  opacity: 1;
  color: var(--white);
}

.tab-menu a.active {
    color: var(--teal);
    border-bottom: 2px solid var(--teal);
    opacity: 1;
}

/* default: hidden */
.tab-content { display: none; }

/* when shown, fade in */
.tab-content.is-active {
  display: block;
  animation: tabFade .7s ease both;  /* both = keep final opacity:1 */
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --- Section Heading --- */

.section-header {
  margin-bottom: 50px;
}

@media screen and (max-width: 768px) {
  .section-header {
    margin-bottom: 30px;
  }
}


.section-header .section-heading {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 4.5rem;
  word-break: normal;
}
@media only screen and (max-width: 768px) {
  .section-header .section-heading {
      font-size: 2.5rem;
      line-height: 2.5rem;
  }
}
.section-header .section-subheading {
  margin-top: 16px; /* separation from heading above it */
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1rem;
}

/* --- Light Leak --- */

.light-leak::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(148deg,rgba(0, 0, 0, 1) 0%, rgba(0, 22, 68, 1) 50%, rgba(0, 78, 241, 1) 100%);
    opacity: .6;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

.light-leak::after {
  mix-blend-mode: soft-light;
}


/* --- Section Gradient --- */

.gradient-bg {
  position: relative;
  isolation: isolate;
  overflow: visible;
  z-index: 0;
}

.gradient-bg::before,
.gradient-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: calc(100% + 200px);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Full-bleed width on mobile viewports */
@supports (width: 100dvw) {
  .gradient-bg::before,
  .gradient-bg::after { width: 100dvw; }
}

.gradient-bg::before {
  z-index: -2; /* below noise */
  background: linear-gradient(
    to bottom,
    rgba(0, 13, 41, 1) 0%,
    rgb(7 35 94) 35%,
    rgb(0 29 92 / 50%) 75%,
    rgba(0, 13, 41, 1) 100%
  );
  opacity: 1;
}

.gradient-bg::after {
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: .35;
  mix-blend-mode: overlay;

  /* fade noise top & bottom (include both for Safari/Firefox) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 5%, #000 250px, #000 calc(100% - 250px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 5%, #000 250px, #000 calc(100% - 250px), transparent 100%);
}

.smooth-gradient.gradient-bg::before {
  background: linear-gradient(
    to bottom,
    rgba(0 13 41 / 0%) 0%,
    rgb(7 35 94) 35%,
    rgb(0 29 92 / 50%) 75%,
    rgba(0, 13, 41, 1) 100%
  );
}

.gradient-bg.no-gradient::before {
  background: none;
}

.gradient-bg.no-gradient::after {
  background: none;
}

/* --- 404 Page --- */

.error-404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50vh;
  padding: 20px;
  text-align: center;
}

/* --- Search Page --- */

.site-page-search {
  margin: 5rem 0 3rem;
}

.search-entry-title {
  margin-bottom: 1rem;
}

.search-entry-title a {
  color: var(--light-blue);
}

.search-results .cards .card {
  min-height: auto;
}

.search-results-container {
  padding: 2rem;
  border-radius: 8px;
}

.search-results-container article:not(:last-child) {
  border-bottom: 1px solid var(--blue);
}


.search-results-container article:not(:last-child),
.search-results-container article:last-child {
  padding: 2rem 0;
  z-index: 1;
}

.search-title span {
  color: var(--light-blue);
}

.search-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.search-results input[type="search"] {
  border: none;
}

.site-page-search .search-submit i,
.site-page-search .search-field {
  font-size: 2rem !important;
  width: 100%;
}

.site-page-search .search-form label {
  width: 100%;
}

.site-page-search .search-form {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid var(--light-blue);
}

.search-field::placeholder {
  color: var(--light-blue);
}

.search-field {
  border: none;
  padding: 12px 18px;
  width: 210px;
  color: var(--white);
  background: none;
}

.search-submit i {
  color: var(--white);
}

.search-submit {
  background: none;
  border: none;
}

.search-results .blog-pagination {
  max-width: 100%;
  margin-top: 2rem;
}
