/* ================================================
  Blankboard Studio – Global Styles
  ================================================ */

/* ------------------------------------------------
  01. Responsive Scaling System by Blankboard Studio
  ------------------------------------------------ */

/* Base Container & Font Scaling */
:root {
  --size-unit: 16; /* Body font-size in design units (no px) */
  --size-container-ideal: 1440;
  --size-container-min: 992px;
  --size-container-max: 1680px;
  --size-container: clamp(
    var(--size-container-min),
    100vw,
    var(--size-container-max)
  );
  --size-font: calc(
    var(--size-container) / (var(--size-container-ideal) / var(--size-unit))
  );
  font-size: var(--size-font);
}

/* Tablet */
@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 834;
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 430;
    --size-container-min: 480px;
    --size-container-max: 767px;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 430;
    --size-container-min: 320px;
    --size-container-max: 479px;
  }
}

/* ------------------------------------------------
      02. Color System: OKLCH and Display-P3 Fallback
      ------------------------------------------------ */

/* Fallback: OKLCH if P3 is not supported */
@supports (color: oklch(60% 0 0)) {
  :root {
  }
}

/* Preferred: Display-P3 */
@supports (color: color(display-p3 1 1 1)) {
  :root {
  }
}

/* ------------------------------------------------
      03. Reset & Box Model
      ------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  text-size-adjust: 100%;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 8%;
  text-underline-offset: -6%;
  text-underline-position: from-font;
}

html {
  scroll-behavior: initial;
  scrollbar-width: none; /* Firefox */
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100vw;
}

/* Hide scrollbars universally */
body::-webkit-scrollbar,
body ::-webkit-scrollbar {
  display: none;
}

/* SVG Reset */
svg {
  max-width: none;
  height: auto;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Reset Link Color */
a {
  color: inherit;
}

/* ------------------------------------------------
      04. Typography Utilities
      ------------------------------------------------ */

/* Content & Article Styling for Rich Text */
.rte > :first-child {
  margin-top: 0;
}

.rte > :last-child {
  margin-bottom: 0;
}

.rte > div:first-child > :first-child {
  margin-top: 0;
}

.rte > div:first-child > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------
      05. Utility Attributes
      ------------------------------------------------ */

/* Scrollbars */
[scroll-show="false"] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
[scroll-show="false"]::-webkit-scrollbar {
  display: none;
}

/* Truncate Text Utility // Show "..." after 1 line */
[data-truncate] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

/* Show "..." after 1 line */
[data-truncate="1"] {
  -webkit-line-clamp: 1;
}

[data-theme="dark"] {
  background-color: var(--_colors---bg--dark);
  color: var(--_colors---text-color--light);
}

[data-theme="light"] {
  background-color: var(--_colors---bg--light);
  color: var(--_colors---text-color--dark);
}

/* Selection Highlight */
::selection {
  background-color: #d8ecfc;
  color: #008cff;
  text-shadow: none;
}
::-moz-selection {
  background-color: #d8ecfc;
  color: #008cff;
  text-shadow: none;
}

/* ------------------------------------------------
      06. Interactive Link Effects
      ------------------------------------------------ */

/* Underline Animation Link */
.link-underline {
  position: relative;
}
.link-underline::after {
  content: "";
  position: absolute;
  top: 92%;
  left: 0%;
  height: 1px;
  width: 0%;
  background: currentColor;
  transition: width 735ms cubic-bezier(0.65, 0.05, 0, 1);
}
.link-underline:hover::after {
  width: 100%;
}
.link-underline:not(:hover)::after {
  left: auto;
  right: 0%;
  width: 0%;
}

/* Inline Link Fade Effect */
.inline-link-underline {
  position: relative;
}
.inline-link-underline::after {
  content: "";
  width: 100%;
  height: 1px;
  min-height: 1px;
  background-color: currentColor;
  position: absolute;
  top: 96%;
  left: 0%;
  border-radius: 4px;
  opacity: 16%;
  transition: opacity 735ms cubic-bezier(0.65, 0.05, 0, 1);
}
.inline-link-underline:hover::after {
  opacity: 100%;
}

/* ------------------------------------------------
      07. Animations
      ------------------------------------------------ */

/* Keyframes */
@keyframes loop {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes loop-reverse {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(100%);
  }
}

/* Loop Animation (Horizontal Slide) */
.loop-animate {
  animation: loop var(--loop-time, 16s) linear infinite;
  will-change: transform;
}
.loop-animate.reverse {
  animation: loop-reverse var(--loop-time, 16s) linear infinite;
  will-change: transform;
}

.logo-slide-w:hover .partner-logo-cms.loop-animate {
  animation-play-state: paused;
}

/* ------------------------------------------------
      08. Components / Patterns
      ------------------------------------------------ */

/* Image Zoom Hover */
.image-w img {
  transition: transform 0.735s cubic-bezier(0.65, 0.05, 0, 1);
}
.image-w:hover img {
  transform: scale(1.12);
}

/* Remove wrapper pseudo-elements (redundant after refactor) */
.s-wrapper::before,
.s-wrapper::after {
  display: none;
}

/*
    form > div:last-child {
      display: none;
    }
    /* Fix to show last div (non turnsile) in Webflow Designer 
    .wf-design-mode form > div:last-child {
      display: flex;
    }
    */
:root {
  --svg-line-time: 4s;
}

.svg-animate-line {
  animation: svgDash var(--svg-line-time) linear infinite;
}
.svg-animate-line.reverse {
  animation: svgDash var(--svg-line-time) linear infinite reverse;
}

@keyframes svgDash {
  to {
    stroke-dashoffset: 420;
  }
}

.is_bullet-point {
  height: 1lh !important;
}
