/* @import url('https://fonts.googleapis.com/css2?family=Playpen+Sans&family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Lato:wght@300;400&family=Nanum+Pen+Script&display=swap'); */

* {
  --theme-light-red: rgb(221, 0, 7);
  --theme-dark-red: rgb(170, 40, 45);
  --theme-bright-red: rgb(245, 0, 0);
  --theme-damp-dark-red: rgb(193 45 49 / 80%);
  box-sizing: border-box;
}

.no-overflow {
  overflow: hidden;
}

body {
  position: relative;
  /* overflow: hidden; */
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
}

nav {
  position: sticky;
  display: flex;
  top: 0;
  align-items: center;
  width: 100%;
  height: 70px;
  padding: 15px 80px;
  background-color: #fff;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.33);
  z-index: 21;
}

/* @media screen and (max-width: 1000px) {
  nav {
    padding: 15px 100px;
  }
} */

nav a, nav a:hover {
  text-decoration: none;
  color: inherit; /* fixes an artifact of Bootstrap where anchors turn blue when hovered over */
}

#expand-sidebar {
  display: none;
  margin-right: 12px;
  padding: 0;
  background-color: transparent;
  border: none;
  outline: none;
}

#navbar-title {
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 82px;
  font-size: 20px;
}

#sidebar {
  position: fixed;
  display: none;
  left: 0;
  top: 0;
  width: 75vw;
  height: 100%;
  padding: 0 18px;
  background-color: #fff;
  border-right: 5px solid var(--theme-light-red);
  z-index: 20;
  /* transform-style: preserve-3d; */
  transform: translateX(calc(-100% - 1px));
  transition: transform 0.4s;
}
#sidebar.sidebar-expanded {
  transform: translateX(0);
}

#sidebar-expanded-overlay {
  position: fixed;
  display: none;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  /* transform: translateZ(-1px); */
  transition: opacity 0.4s;
}
#sidebar.sidebar-expanded + #sidebar-expanded-overlay {
  opacity: 1;
  z-index: 19;
  pointer-events: auto;
}

#sidebar-top {
  position: relative;
  width: 100%;
  height: 66px;
  padding-top: 23px;
  background-color: #fff;
  z-index: 30;
}

#collapse-sidebar {
  padding: 0;
  border: none;
  background-color: transparent;
}

#sidebar-items {
  margin-left: 4px;
}

.sidebar-item {
  position: relative;
  font-size: 18px;
  font-weight: 500;
}

.sidebar-item-title {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  z-index: 0;
  transition: color 0.2s;
}
.sidebar-item[data-has-subitems="true"] > .sidebar-item-title {
  padding-bottom: 15px;
}
.sidebar-item.sidebar-item-expanded > .sidebar-item-title {
  color: var(--theme-light-red);
}
.sidebar-item:not(:first-of-type) > .sidebar-item-title {
  padding-top: 16px;
}

.sidebar-item[data-has-subitems="true"] > .sidebar-item-title > :is(.material-icons, .material-icons-outlined) {
  margin: 0 2px 0 -7px;
  transform: translateY(0.5px);
  transition: transform 0.2s;
}
.sidebar-item[data-has-subitems="false"] > .sidebar-item-title > :is(.material-icons, .material-icons-outlined) {
  margin-right: 5px;
}
.sidebar-item.sidebar-item-expanded > .sidebar-item-title > :is(.material-icons, .material-icons-outlined) {
  transform: rotate(90deg);
}

/* .sidebar-item-title-text {
  width: 100%;
  background-color: #fff;
  z-index: 0;
} */

.sidebar-subitems {
  position: relative;
  background-color: #fff;
  z-index: -1;
  transition: margin-top 0.2s;
}
/* .sidebar-item.sidebar-item-expanded > .sidebar-subitems {
  padding-bottom: 16px;
} */

.sidebar-subitems > * {
  display: block;
  margin: 10px 0 0 19px;
  font-weight: 400;
}
.sidebar-subitems > :first-child {
  margin-top: 12px;
}

#navbar-hc-logo {
  height: 100%;
  margin-right: 13px;
}

#navbar-site-title > br {
  display: none;
}

#navbar-dropdowns {
  display: flex;
  gap: 52px;
  transform: translateY(2px);
}

.navbar-dropdown {
  position: relative;
  height: 100%;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.navbar-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  /* bottom: -2px; */
  width: 0;
  height: 3px;
  background-color: var(--theme-light-red);
  border-radius: 100px; /* greater than 50% height */
  transition: width 0.2s;
}
.navbar-dropdown:hover::after {
  width: 100%;
}

.navbar-dropdown-title {
  position: relative;
  display: flex;
  height: 24px;
  /* font-weight: 400; */
  transition: color 0.2s;
}
.navbar-dropdown:hover > .navbar-dropdown-title {
  color: var(--theme-light-red);
}
.navbar-dropdown-title::after {
  content: "";
  position: absolute;
  bottom: -21px;
  width: 100%;
  height: 0;
}
.navbar-dropdown:hover > .navbar-dropdown-title::after {
  height: 18px;
}

.navbar-dropdown > .navbar-dropdown-title > .material-icons {
  transition: transform 0.2s;
}
.navbar-dropdown:hover > .navbar-dropdown-title > .material-icons {
  transform: rotate(-180deg);
}

.navbar-dropdown-items {
  transform-origin: 50% 0;
  position: absolute;
  /* display: none; */
  top: 50%;
  /* padding-top: 70px; */
  width: 200px;
  /* height: 0; */
  /* margin-top: 30px; */
  /* max-height: 0; */
  /* clip-path: polygon(-10px -10px, calc(100% + 10px) -10px, calc(100% + 10px) -10px, -10px -10px); */
  height: auto;
  margin-top: 27px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.33);
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  /* border-radius: 5px; */
  /* z-index: 99999; */
  /* z-index: -1; */
  /* box-shadow: 0 0 15px 0 #bbb; */
  /* transition: clip-path 0.2s; */
  /* transition: height 0.2s; */
}
.navbar-dropdown:hover > .navbar-dropdown-items {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.navbar-dropdown-item {
  position: relative;
  display: block;
  padding: 13px;
  transition: background-color 0.15s, color 0.15s;
  /* box-sizing: border-box; */
  /* transition: background-color 0.1s; */
}
.navbar-dropdown-item:hover {
  background-color: rgba(220, 0, 0, 0.1);
  color: red;
}
/* .navbar-dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: red;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.15s;
}
.navbar-dropdown-item:hover::before {
  opacity: 1;
} */

#page-title {
  position: relative;
  display: flex;
  height: 500px;
  padding: 60px;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  z-index: -1;
  color: #fff;
}
#page-title::before { /* use this as an overlay to darken or tint the background image */
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
}
@keyframes down-arrow-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes down-arrow-vertical-motion {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

#page-title::after {
  content: "";
  position: absolute;
  bottom: 19px;
  width: 100%;
  height: 35px;
  opacity: 0;
  background-image: url("/media/rounded-down-arrow.svg");
  background-position: center;
  background-repeat: no-repeat;
  animation: down-arrow-vertical-motion 1s ease-in-out 2.5s infinite alternate, down-arrow-fade-in 0.5s linear 2s 1 normal forwards;
}

#page-title > span {
  text-align: center;
  line-height: 1.3;
  z-index: 2;
  font-family: 'Playpen Sans', cursive;
  font-size: 80px;
  /* font-weight: 400; */
  /* text-shadow: 2px 2px 5px #; */
}

main {
  margin: 0 auto;
  padding: 13px 0 120px;
  max-width: 65%;
}

p, ol, ul {
  font-size: 18px;
  line-height: 1.5;
}

p + :is(ol, ul) {
  margin-top: -13px;
}
/* p:first-child {
  margin-top: 0;
} */
/* p:last-child {
  margin-bottom: 0;
} */

.position-relative {
  position: relative;
}

.equal-width-content {
  display: flex;
}

.equal-width-content img {
  width: 100%;
}

.equal-width-content > * {
  flex: 1 0 0;
}

.equal-width-content > :first-child {
  margin-right: 50px;
}

.video-iframe-wrapper-2 {
  width: 560px;
  max-width: 100%;
  margin: 24px auto 0;
}

.video-iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%;
}

.video-iframe-wrapper > iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* .footer {
  position: relative;
  z-index: 9999;
  padding: 2.5rem 0;
  color: #999;
  text-align: center;
  background-color: #f9f9f9;
  border-top: .05rem solid #e5e5e5;
}
.footer p:last-child {
  margin-bottom: 0;
} */

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 0;
  background-color: var(--theme-dark-red);
  color: #fff;
  z-index: 20;
  position: absolute;
}

#footer-content-wrapper {
  flex: 1 0 0;
  max-width: 65%;
}

#footer-hc-logo {
  display: block;
  width: 250px;
  margin-bottom: 20px;
}

#footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
}

.footer-column {
  flex: 1 0;
  /* width: max-content; */
  font-size: 16px;
}
.footer-column:first-of-type {
  max-width: 40%;
  flex-basis: fit-content;
  flex-grow: 0;
}

/* .footer-column > * {
  margin-bottom: 10px;
} */

.footer-column > h1 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 500;
}

.footer-column a {
  color: inherit;
  text-decoration: none;
}

#footer-copyright-notice {
  font-weight: 600;
}

.footer-column:first-of-type a {
  position: relative;
  transition: opacity 0.2s;
}
.footer-column:first-of-type a:hover {
  opacity: 0.75;
}
.footer-column:first-of-type a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5px;
  width: 100%;
  height: 0.5px;
  background-color: #fff;
  transition: opacity 0.2s;
}
.footer-column:first-of-type a:hover::after {
  opacity: 0.75;
}

.footer-column:not(:first-of-type) > a {
  display: block;
  margin-bottom: 10px;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-column:not(:first-of-type) > a:hover {
  opacity: 1;
}

.footer-column-item {
  /* display: block; */
  margin-bottom: 7px;
}

#footer-contact-info > .footer-column-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
#footer-contact-info > .footer-column-item:last-child {
  margin-bottom: 0;
}

#footer-contact-info > .footer-column-item > :is(.material-icons, .material-icons-outlined) {
  margin-right: 6.5px;
}

#footer-contact-info > .footer-column-item > a {
  transition: opacity 0.2s;
}
#footer-contact-info > .footer-column-item > a:hover {
  opacity: 0.75;
}

.todo {
  color: red;
}

/* ------------ RESPONSIVE STYLING ------------ */

@media screen and (max-width: 1550px) {
  main, #footer-content-wrapper {
    max-width: 72%;
  }
}

@media screen and (max-width: 1341px) {
  nav {
    padding: 15px 50px;
  }
}
@media screen and (max-width: 1240px) {
  nav {
    padding: 15px 40px;
  }
}
@media screen and (max-width: 1090px) {
  nav {
    padding: 15px 30px;
  }
}

@media screen and (max-width: 1280px) {
  #navbar-title {
    margin-right: 70px;
  }

  #navbar-dropdowns {
    gap: 40px;
  }
}

@media screen and (max-width: 1200px) {
  #navbar-title {
    margin-right: 50px;
    font-size: 18px;
  }

  #footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-column:first-of-type {
    grid-column: 1 / span 3;
    max-width: 100%;
  }

  #navbar-hc-logo {
    margin-right: 11px;
  }

  #navbar-dropdowns {
    gap: 30px;
  }
}

@media screen and (max-width: 1090px) {
  #navbar-title {
    margin-right: 30px;
  }

  #navbar-dropdowns {
    gap: 20px;
  }
}

@media screen and (max-width: 1000px) {
  nav {
    padding: 15px 20px;
  }

  #navbar-dropdowns {
    gap: 15px;
  }

  .navbar-dropdown > .navbar-dropdown-title > .material-icons {
    margin-left: -2px;
  }
}

/* mobile styles */
@media screen and (max-width: 944px) {
  nav {
    padding: 15px 18px;
  }

  #navbar-title {
    margin-right: 0;
    font-size: 20px;
  }

  #navbar-dropdowns {
    display: none;
  }
  #expand-sidebar {
    display: inline-block;
  }

  #sidebar, #sidebar-expanded-overlay {
    display: block;
  }

  main {
    max-width: calc(100% - 50px);
    padding-top: 3px;
  }

  footer {
    padding: 45px 0;

  }

  #footer-content-wrapper {
    max-width: calc(100% - 70px);
  }
}

@media screen and (max-width: 730px) {
  #footer-main {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-column {
    max-width: 100%;
  }
  .footer-column:first-of-type {
    grid-column: 1 / 2;
  }
}

@media screen and (max-width: 530px) {
  #page-title > span {
    font-size: 15vw;
  }
}

@media screen and (max-width: 420px) {
  #navbar-site-title > br {
    display: inline;
  }
}


#pdf-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none; /* Hide by default */
}
#controls {
  margin: 10px;
}
canvas {
  border: 1px solid #ccc;
}