/*
Original Template: Tooplate 2119 Gymso Fitness
https://www.tooplate.com/view/2119-gymso-fitness
*/

/* MAIN SITE-WIDE STYLESHEET */


/* ---------------------------------------
   GLOBAL VARIABLES
----------------------------------------- */

:root {
  --white-color: #ffffff;
  --primary-color: #2C6E91;
  --secondary-color: #5C946E;
  --third-color: #A3B18A;
  --fourth-color: #A0522D;
  --fifth-color: #7F5539;
  --p-color: #030303;

  --font-heading: "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-title: "agenda", sans-serif;

  --font-weight-bold: bold;
  --font-weight-normal: normal;
  --font-weight-boldish: 500;
  --font-weight-light: 300;
  --font-weight-thin: 100;

  --h1-font-size: 51px;
  --h2-font-size: 43px;
  --h3-font-size: 31px;
  --h4-font-size: 25px;
  --h5-font-size: 25px;
  --h6-font-size: 23px;
  --p-font-size: 21px;
  --small-txt: 17px;
  --smallest-txt: 14px;

  --less-line-height: 1.2em;

  --border-radius-img: 10px;
  --border-radius-btn: 90px;

  --shadow-reg: 0 6px 18px rgba(0, 0, 0, 0.18);
  --shadow-bottom: 0 6px 10px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.14);
  --shadow-bottom-small: 0 5px 9px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------
   GENERAL SETUP
----------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--white-color);
  font-family: var(--font-body);
}


/* ---------------------------------------
   TYPOGRAPHY
----------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-thin);
  line-height: var(--less-line-height);
}

h1 {
  margin: 20px 0;
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
}

h3 {
  margin: 0;
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-boldish);
}

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

h5 {
  margin-bottom: 0.75rem;
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-bold);
}

h6 {
  margin: 0;
  color: var(--p-color);
  font-size: var(--h6-font-size);
  line-height: inherit;
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  line-height: 1.5em;
}

ul li {
  font-size: var(--p-font-size);
}

b,
strong {
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
}

.blue-txt {
  color: var(--primary-color);
}

.white-txt {
  color: var(--white-color);
}

.brown-txt {
  color: var(--fifth-color);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.small-txt {
  font-size: var(--small-txt);
}

.grey-txt {
  color: grey;
}


/* ---------------------------------------
   LINKS
----------------------------------------- */

a {
  color: var(--primary-color);
  font-weight: var(--font-weight-normal);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:active,
a:focus {
  color: var(--primary-color);
  text-decoration: underline;
  outline: none;
}


/* ---------------------------------------
   BUTTONS
----------------------------------------- */

.custom-btn,
.custom-btn-brown,
.custom-btn-green {
  border-radius: var(--border-radius-btn);
  padding: 14px 24px;
  color: var(--white-color);
  font-size: var(--base-font-size);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.custom-btn {
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.custom-btn:hover {
  color: var(--white-color);
  opacity: 0.85;
}

.custom-btn:focus {
  box-shadow: none;
}

.custom-btn-brown {
  background: var(--fourth-color);
  border: 3px solid var(--fourth-color);
}

.custom-btn-brown:hover {
  color: var(--fourth-color);
  background: var(--white-color);
}

.custom-btn-green {
  background: var(--secondary-color);
  border: 3px solid var(--secondary-color);
}

.custom-btn-green:hover {
  color: var(--secondary-color);
  background: var(--white-color);
}

.custom-btn-disabled {
  background: gray;
  color: lightgray;
  border: 2px solid gray;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.9;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

@media (max-width: 575.98px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ---------------------------------------
   GENERAL SITE ELEMENTS
----------------------------------------- */

.section {
  padding: 3.5rem 0;
}

.rounded-img {
  border-radius: var(--border-radius-img);
}

.shadow-img {
  box-shadow: var(--shadow-reg);
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;

  color: var(--fifth-color);
}

.blue-txt.icon-title {
  color: var(--primary-color);
}

.small-icon {
  color: inherit;
  font-size: 1.6rem;
  opacity: 0.9;
}

hr {
  border: none;
  border-top: 2px solid var(--primary-color);
  opacity: 0.35;
}

.section-divider-wide {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.section-divider-wide span {
  flex: 1;
  border-top: 2px solid var(--primary-color);
  opacity: 0.35;
}

.divider-icon {
  color: var(--primary-color);
  font-size: 2.8rem;
  opacity: 0.9;
}

.column-space {
  --bs-gutter-x: 8rem;
}

.bg-section {
  position: relative;
  background: #a3b18a4e;
  box-shadow: var(--shadow-bottom-small);
}


/* ---------------------------------------
   NAV BAR
----------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  overflow: visible;
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  box-shadow: var(--shadow-bottom);
  transition: transform 0.35s ease;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar-logo {
  height: 42px;
  width: auto;
  max-width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.navbar .nav-link {
  padding: 0.85rem 1rem;
  font-size: 1.15rem;
}

.nav-item .nav-link {
  display: block;
  padding: 2px 6px;
  color: var(--white-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-normal);
}

.nav-item .nav-link.active,
.nav-item .nav-link:hover {
  text-decoration: underline;
}

.navbar-toggler {
  width: 30px;
  height: 35px;
  margin: 0 10px 0 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler .navbar-toggler-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 2px;
  background: var(--white-color);
  transition: background 10ms 300ms ease;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  position: absolute;
  right: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--white-color);
  content: "";
  transition:
    top 300ms 350ms ease,
    transform 300ms 50ms ease;
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 0;
  transition:
    top 300ms 50ms ease,
    transform 300ms 350ms ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
}

/* dropdown menu */
.navbar .dropdown-menu {
  margin-top: 0;
  padding: 0.15rem 0;
  background: var(--primary-color);
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.navbar .dropdown-item {
  color: var(--white-color);
  background: transparent;
  text-decoration: none;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  color: var(--white-color);
  background: transparent;
  text-decoration: underline;
}

.navbar .dropdown-item:focus,
.navbar .dropdown-toggle:focus {
  outline: none;
  box-shadow: none;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: none;
  }

  .navbar .dropdown.is-hover > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .navbar-logo {
    height: 36px;
  }

  .navbar .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    text-align: center;
  }

  .navbar .dropdown-item {
    text-align: center;
  }
}


/* ---------------------------------------
   HOME PAGE
----------------------------------------- */

.home-img {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-img);
  background-image: url("/img/index-pg/home-algae.jpeg");
  background-size: cover;
  background-position: center;
}

@media (max-width: 767.98px) {
  .home-img {
    height: 240px;
  }
}

@media (min-width: 768px) {
  .section-reverse .split-row {
    flex-direction: row-reverse;
  }
}

@media (min-width: 992px) {
  .split-row .split-media {
    flex: 0 0 38%;
    max-width: 38%;
  }

  .split-row .split-text {
    flex: 0 0 52%;
    max-width: 52%;
  }
}


/* ---------------------------------------
   HOME HEADER
----------------------------------------- */

.hero {
  position: relative;
  overflow: visible;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18px;
  box-shadow: var(--shadow-bottom);
  pointer-events: none;
  content: "";
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11, 53, 77, 0.02) 0%,
    rgba(11, 53, 77, 0.45) 45%,
    rgba(11, 53, 77, 0.85) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.hero-text {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.hero-top-right {
  position: absolute;
  top: 6.5rem;
  right: 2rem;
  text-align: right;
}

.hero-bottom-left {
  position: absolute;
  bottom: 3.5rem;
  left: 0;
  text-align: left;
}

.hero-text h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-title);
  font-size: clamp(3.6rem, 10vw, 9.5rem);
  font-style: normal;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: normal;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-text h4 {
  margin: 0.8rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 500;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  white-space: nowrap;
}

.hero-title-block {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.hero-block-logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: clamp(80px, 10vw, 175px);
}

.hero-block-text h1 {
  margin: 0 0 0.6rem;
}

.hero-block-text .hero-subtitle {
  margin: 0;
}

@media (max-width: 768px) {
  .hero-top-right {
    top: 6rem;
  }

  .hero-bottom-left {
    bottom: 2.75rem;
    left: 1rem;
  }

  .hero-subtitle {
    font-size: clamp(1.2rem, 4.2vw, 1.8rem);
    white-space: nowrap;
  }

  .hero-title-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-block-logo {
    height: 64px;
  }
}


/* ---------------------------------------
   TOUR VIDEO POPUP
----------------------------------------- */

.tour-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.tour-video-modal.active {
  display: flex;
}

.tour-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.tour-video-box {
  position: relative;
  z-index: 2;
  width: 75vw;
  max-width: 1280px;
  min-width: 360px;
  background: #000;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.tour-video-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.tour-video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.tour-video-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .tour-video-box {
    width: 90vw;
    min-width: 0;
  }
}


/* ---------------------------------------
   LANDING HEADERS
----------------------------------------- */

.landing-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 78vh, 880px);
  padding-top: clamp(96px, 11vh, 140px);
  padding-bottom: 46px;
  overflow: hidden;
}

.landing-header-trend-bg,
.landing-header-wqpredict-bg,
.landing-header-land2water-bg,
.landing-header-about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.landing-header-trend-bg {
  background-image: url("/img/trend/trend-header-compressed.jpg");
}

.landing-header-wqpredict-bg {
  background-image: url("/img/wqpredict/wqpredict-header-compressed.jpg");
}

.landing-header-land2water-bg {
  background-image: url("/img/land2water/land2water-header-compressed.jpg");
}

.landing-header-about-bg {
  background:
    linear-gradient(rgba(44, 110, 145, 0.25), rgba(1, 34, 39, 0.55)),
    url("/img/about/about-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.landing-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(34, 132, 142, 0.32) 0%,
    rgba(22, 115, 127, 0.4) 25%,
    rgba(1, 34, 39, 0.65) 100%
  );
}

.landing-header-container {
  position: relative;
  z-index: 2;
}

.landing-header-row {
  width: 100%;
}

.landing-header-text-col {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-header-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-title);
  font-size: clamp(2.65rem, 6.4vw, 6.1rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow:
    0 6px 20px rgba(0, 0, 0, 0.50),
    0 2px 4px rgba(0, 0, 0, 0.38);
}

.landing-header-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.25vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  text-shadow:
    0 4px 14px rgba(0, 0, 0, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.30);
}

.landing-header-actions-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.landing-header-spacer {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.landing-header-actions {
  width: 100%;
  max-width: 210px;
}

.landing-header-btn {
  justify-content: center;
  gap: 0.65rem;
  padding: 20px 16px;
  font-size: 1.12rem;
  line-height: 1.1;
  box-shadow: var(--shadow-reg);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.landing-header-btn-text {
  text-align: left;
  line-height: 1.15;
}

.landing-header-btn i {
  display: inline-flex;
  align-items: center;
  font-size: 1.45em;
  line-height: 1;
}

.landing-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 18px;
  box-shadow: var(--shadow-bottom);
  pointer-events: none;
  content: "";
}

@media (min-width: 992px) {
  .landing-header-actions {
    max-width: 230px;
  }

  .landing-header-btn {
    padding: 24px 16px;
    font-size: 1.22rem;
  }

  .landing-header-btn i {
    font-size: 1.55em;
  }
}

@media (max-width: 991.98px) {
  .landing-header {
    min-height: clamp(640px, 82vh, 920px);
  }

  .landing-header-actions-col {
    margin-top: 0.75rem;
  }

  .landing-header-actions {
    max-width: 320px;
  }

  .landing-header-btn {
    padding: 20px 16px;
    font-size: 1.12rem;
  }
}


/* ---------------------------------------
   THUMBNAIL CARDS
----------------------------------------- */

.thumbnail-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: var(--border-radius-img);
  box-shadow: var(--shadow-reg);
}

.thumbnail-img-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 160px;
  padding: 1.25rem 1rem 0.25rem;
  overflow: hidden;
  background: #fff;
  border-top-left-radius: var(--border-radius-img);
  border-top-right-radius: var(--border-radius-img);
}

.thumbnail-img-wrap img {
  display: block;
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
}

.thumbnail-body {
  flex: 1;
  padding: 0.9rem 1.25rem 1.5rem;
}

.thumbnail-body-bottom {
  height: 100%;
}

.thumbnail-img-wrap-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  margin-top: 0.75rem;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-bottom-right-radius: var(--border-radius-img);
  border-bottom-left-radius: var(--border-radius-img);
}

.thumbnail-img-wrap-bottom img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.thumbnail-card-side {
  display: flex;
  flex: 1;
  align-items: center;
  height: 100%;
}

.thumbnail-side-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
}

.thumbnail-img-wrap-side {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-img-frame-side {
  width: 100%;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.thumbnail-img-frame-side img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-img);
}

.thumbnail-body-side {
  padding: 0;
}

.thumbnail-body-side h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.thumbnail-body-side hr {
  margin: 0.4rem 0 0.6rem;
}

.thumbnail-body-side p {
  margin-bottom: 0;
}

.thumbnail-img-wrap-side-full-width {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-body-side-full-width {
  flex: 1 1 auto;
  padding: 0;
}

@media (max-width: 991.98px) {
  .thumbnail-img-wrap-bottom img {
    max-height: 220px;
    border-radius: var(--border-radius-img);
  }

  .thumbnail-side-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .thumbnail-img-wrap-side,
  .thumbnail-img-frame-side {
    width: 190px;
  }

  .thumbnail-img-wrap-side {
    flex: none;
  }

  .thumbnail-img-wrap-side-full-width {
    flex: none;
    width: 210px;
  }
}


/* ---------------------------------------
   NEWS
----------------------------------------- */

.news-thumbnail-card {
  height: 100%;
  background: #fff;
  border-radius: var(--border-radius-img);
  box-shadow: var(--shadow-reg);
}

.news-thumbnail-img-wrap {
  display: block;
  height: 190px;
  overflow: hidden;
  border-top-left-radius: var(--border-radius-img);
  border-top-right-radius: var(--border-radius-img);
}

.news-thumbnail-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.news-thumbnail-img-wrap:hover img {
  transform: scale(1.07);
}

.news-thumbnail-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.news-thumbnail-body h5 a {
  color: inherit;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

.news-thumbnail-body h5 a:hover {
  text-decoration: underline;
}


/* ---------------------------------------
   ABOUT PAGE
----------------------------------------- */

.about-page .site-footer {
  margin-top: 0;
}

.about-spaced-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.about-page .section:last-of-type {
  margin-bottom: 0;
}

.about-page .bg-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-page .section:last-of-type.bg-section {
  margin-bottom: 0;
}

.about-equal-row {
  align-items: stretch !important;
}

.about-equal-row .split-media,
.about-equal-row .split-text {
  display: flex;
  flex-direction: column;
}

.about-split-img-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  max-height: 420px;
  overflow: hidden;
}

.about-split-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-equal-row .split-text {
  justify-content: center;
}

.about-page .split-text hr,
.about-team-text hr {
  width: 100%;
  margin: 1rem 0 1.25rem;
}

.about-quote {
  margin-bottom: 1.1rem;
  color: var(--primary-color);
  font-size: var(--h6-font-size);
  font-weight: var(--font-weight-boldish);
  line-height: 1.4;
}

.about-team-card-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.about-team-img-wrap {
  flex: 0 0 240px;
  max-width: 240px;
  overflow: hidden;
  background: #f7f7f7;
  border-top-left-radius: var(--border-radius-img);
  border-bottom-left-radius: var(--border-radius-img);
}

.about-team-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center top;
}

.about-team-text {
  flex: 1;
}

.partner-list {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.partner-list li {
  margin-bottom: 0.35rem;
}

.about-nserc-logo {
  max-width: 145px;
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--border-radius-img);
  box-shadow: var(--shadow-bottom-small);
}

.about-nserc-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-cta {
  text-align: center;
}

.about-cta p {
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

@media (min-width: 992px) {
  .about-page .split-row .split-media {
    flex: 0 0 44%;
    max-width: 44%;
  }

  .about-page .split-row .split-text {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

@media (max-width: 767.98px) {
  .about-spaced-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .about-split-img-wrap {
    height: 280px;
    max-height: none;
  }

  .about-team-card-inner {
    flex-direction: column;
  }

  .about-team-img-wrap {
    flex: none;
    width: 100%;
    max-width: none;
    border-top-right-radius: var(--border-radius-img);
    border-bottom-left-radius: 0;
  }

  .about-team-img-wrap img {
    min-height: 280px;
  }
}


/* ---------------------------------------
   WEBINAR PAGE
----------------------------------------- */

@media (min-width: 768px) {
  .split-row-small.section-reverse .split-row {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .split-row-small .split-row .split-media {
    flex: 0 0 26%;
    max-width: 26%;
    padding-left: 4rem;
  }

  .split-row-small .split-row .split-text {
    flex: 0 0 74%;
    max-width: 74%;
    padding-right: 2.5rem;
  }

  .split-row-small .split-row .split-media img {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-left: auto;
  }
}

.recording-layout .video-container {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-reg);
}

.recording-layout .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--border-radius-img);
}

.split-text li a {
  color: inherit;
  text-decoration: underline;
}

.split-text li a:hover {
  color: var(--primary-color);
}


/* ---------------------------------------
   CONTACT PAGE
----------------------------------------- */

.contact-section {
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
}

/* equal height columns */
.contact-section .row {
  align-items: stretch;
}

.contact-section .row > div {
  display: flex;
  flex-direction: column;
}

/* contact links */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link i {
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--primary-color);
}


/* contact form */
.webform input,
button#submit-button {
  height: calc(2.25rem + 20px);
}

.form-control {
  margin: 1.3rem 0;
  border-radius: var(--border-radius-img);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

/* submit button */
button#submit-button {
  padding: 14px 24px;
  color: var(--white-color);
  font-size: var(--base-font-size);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: var(--secondary-color);
  border: 3px solid var(--secondary-color);
  border-radius: var(--border-radius-btn);
  transition: all 0.3s ease;
}

button#submit-button:hover {
  color: var(--secondary-color);
  background: var(--white-color);
}


/* contact form dropdown */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 42px;
  cursor: pointer;

  background-color: #fff;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      rgba(0, 0, 0, 0.55) 50%
    ),
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.55) 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);

  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* grey placeholder text */
.custom-select:invalid {
  color: rgba(0, 0, 0, 0.55);
}

/* selected option text */
.custom-select option {
  color: #000;
}


/* embedded map */
.google-map {
  flex: 1;

  display: flex;
  flex-direction: column;

  margin-top: 1.5rem;
  padding-top: 1.5rem;

  border-top: 1px solid #efebeb;
}

.google-map iframe {
  flex: 1;

  width: 100%;
  min-height: 100%;

  border-radius: var(--border-radius-img);
}


/* mobile spacing */
@media screen and (max-width: 992px) {
  .section.contact-section {
    padding-top: 8.5rem;
    padding-bottom: 4rem;
  }
}

@media screen and (max-width: 767px) {
  .section.contact-section {
    padding-top: 8rem;
  }

  /* reset equal height layout on mobile */
  .contact-section .row > div {
    display: block;
  }

  .google-map iframe {
    min-height: 300px;
  }
}


/* ---------------------------------------
   FOOTER
----------------------------------------- */

.site-footer {
  margin-top: 8rem;
  padding: 3rem 0;
  border-top: 1px solid #efebeb;
}

.site-footer .row {
  justify-content: space-between;
}

.site-footer p {
  margin-bottom: 0;
  font-size: var(--smallest-txt);
}

.site-footer a {
  color: var(--p-color);
  font-weight: var(--font-weight-light);
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.site-footer a span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.site-footer a:hover {
  color: var(--primary-color);
  opacity: 0.75;
}

.site-footer a:hover span {
  text-decoration-color: currentColor;
}

.footer-contact a,
.copyright-text a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
  vertical-align: middle;
}

.footer-contact a i,
.copyright-text a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.95em;
}


/* NSERC logo block */
.nserc-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nserc-logo {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}


/* tablet footer */
@media (max-width: 991.98px) {

  .copyright-text {
    margin-bottom: 1.25rem !important;
  }

}


/* mobile footer */
@media (max-width: 575.98px) {

  .nserc-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

}


/* ---------------------------------------
   WORKFLOW (WQPREDICT METHODS PG)
----------------------------------------- */

.method-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.5rem 1.25rem 1.6rem;
  background: #fff;
  border-radius: var(--border-radius-img);
  box-shadow: var(--shadow-reg);
  text-align: center;
}

.method-step img {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: var(--border-radius-img);
}

.method-step h4 {
  width: 100%;
  margin: 0 0 0.35rem;
}

.method-step p {
  width: 100%;
  margin: 0;
  text-align: left;
}

@media (min-width: 992px) {
  .method-flow {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr) auto
      minmax(0, 1fr) auto
      minmax(0, 1fr);
    column-gap: 2.25rem;
    row-gap: 3rem;
    align-items: start;
    justify-items: center;
  }

  .method-step {
    width: 100%;
    max-width: 360px;
  }

  .method-flow > .flow-arrow:nth-child(6n),
  .method-flow > .flow-arrow:last-child {
    display: none;
  }

  /* side arrows */
  .flow-arrow.side-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: 100%;
    width: 100%;
    margin: 0;
  }

  .side-arrow .side-line {
    width: 46px;
    height: 9px;
    background: var(--primary-color);
  }

  .side-arrow .side-head {
    width: 0;
    height: 0;
    margin-left: -1px;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 32px solid var(--primary-color);
  }

  /* row connectors (down, across) */
  .method-flow > .flow-arrow.row-connector {
    grid-column: 1 / -1;
    position: relative;
    display: block;
    width: 100%;
    height: 116px;
    margin: 0;
  }

  .row-connector .connector-drop {
    position: absolute;
    top: 0;
    right: 16%;
    width: 9px;
    height: 50px;
    background: var(--primary-color);
  }

  .row-connector .connector-across {
    position: absolute;
    top: 41px;
    left: 16%;
    right: 16%;
    height: 9px;
    background: var(--primary-color);
  }

  .row-connector .connector-stub {
    position: absolute;
    top: 41px;
    left: 16%;
    width: 9px;
    height: 34px;
    background: var(--primary-color);
  }

  .row-connector .connector-arrow {
    position: absolute;
    top: 75px;
    left: calc(16% - 17.5px);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 32px solid var(--primary-color);
  }
}

@media (max-width: 991.98px) {
  .method-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .method-step {
    width: 100%;
    max-width: 520px;
  }

  .flow-arrow {
    position: relative;
    width: auto;
    height: auto;
    margin: 0.25rem 0;
    font-size: 0;
    line-height: 0;
  }

  /* hide every arrow */
  .flow-arrow > * {
    display: none;
  }

  .flow-arrow::after {
    content: "↓";
    display: block;
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1;
  }
}


/* ---------------------------------------
   RESPONSIVE MOBILE STYLES
----------------------------------------- */

@media screen and (max-width: 992px) {
  .section {
    padding: 5rem 0;
  }

  .section-tight-top {
    padding-top: 2.5rem;
  }

  .nav-item .nav-link {
    padding: 6px;
  }

  .navbar-collapse,
  .site-footer {
    text-align: center;
  }
  
  .section.contact-section {
    padding-top: 8.5rem;
    padding-bottom: 4rem;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 38px;
  }
  
  .section.contact-section {
    padding-top: 8rem;
  }
}