@import url("css/common/variables.css");
@import url("css/common/fonts.css");
@import url("css/common/button.css");
@import url("css/common/header.css");
@import url("css/common/footer.css");

/* Reset & base */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-body);
  color: var(--text-brand-default);
  overflow-x: clip;
}

a {
  color: var(--text-brand-default);
  text-decoration: none;
}

.anchor-blue a {
  color: #2271b1 !important;
  text-decoration: underline !important;
}

h2,
h1 {
  font-family: var(--font-family-title);
  font-size: 54px;
  font-style: normal;
  font-weight: 550;
  line-height: 56px;
}

/* a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
} */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 70px;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.spacer-88 {
  height: 88px;
  width: 100%;
}

.spacer-44 {
  height: 44px;
  width: 100%;
}

/* Mobile/Desktop visibility helpers */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (min-width: 1040px) {
  .desktop-only {
    display: block !important;
  }

  .no-desktop {
    display: none !important;
  }
}

@media (max-width: 1040px) {
  .container {
    padding: 0 40px;
  }

  .desktop-only {
    display: none !important;
  }

  .spacer-88 {
    height: 64px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-only.flex {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  .spacer-88 {
    height: 32px;
  }
}

/* Highlight text */
.highlight {
  background: linear-gradient(315deg, #dbb172 20.73%, #f5e0ba 73.39%, #ebcc96 87.72%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loading Spinner */
.loader {
  margin: 0;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 4px solid rgba(0, 0, 0, 0.2);
  border-right: 4px solid rgba(0, 0, 0, 0.2);
  border-bottom: 4px solid rgba(0, 0, 0, 0.2);
  border-left: 4px solid #000;
  transform: translateZ(0);
  animation: load8 1.1s infinite linear;
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

@keyframes load8 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  flex-direction: column;
  gap: 16px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 180px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: var(--background-default-brand-light);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  margin-bottom: 1px;
}

.back-to-top:hover {
  background-color: var(--background-default-brand);
}

@media (max-width: 640px) {
  .back-to-top {
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}