/* Existing styles */
* {
  box-sizing: border-box;
}

:root {
  --sky-blue: #d3eef9;
  --pale-blue: #a7dcf3;
  --light-blue: #24a9e1;
  --dark-blue: #0e76bd;
  --navy: #015086;
  --dark-gray: #444444;
  --font-main: 'Avenir Next', sans-serif;
  --font-fallback: 'Lato', sans-serif;
  --font-secondary: 'Titillium Web', sans-serif;
}

body {
  background: var(--sky-blue);
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  letter-spacing: 0.015em;
  line-height: 1.5;
  color: var(--dark-gray);
  overflow-x: hidden;
}

#page {
  position: relative;
  z-index: 1;
}

p {
  margin-bottom: 1rem;
}

#content {
  min-height: 50vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-block;
  padding: 7px 40px;
  padding-top: 10px;
  border-radius: 1000px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border: none;
  transition: all 0.2s ease;
}

/* Button styles */
.btn.btn-primary {
  background: transparent;
  border: 4px solid var(--light-blue);
  color: var(--light-blue);
}
.btn.btn-primary:hover {
  background: var(--light-blue);
  color: white;
}
.btn.btn-primary.fill {
  background: var(--light-blue);
  color: white;
}
.btn.btn-primary.fill:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.btn.btn-secondary {
  background: transparent;
  border: 4px solid var(--dark-blue);
  color: var(--dark-blue);
}
.btn.btn-secondary:hover {
  background: var(--dark-blue);
  color: white;
}
.btn.btn-secondary.fill {
  background: var(--dark-blue);
  color: white;
}
.btn.btn-secondary.fill:hover {
  background: var(--navy);
  border-color: var(--navy);
}

h1,
.h1 {
  font-size: 85px;
  font-weight: bold;
  letter-spacing: 0.015em;
  margin-bottom: 2rem;
}

h2,
.h2 {
  font-size: 60px;
  font-weight: bold;
  letter-spacing: 0.015em;
  margin-bottom: 2rem;
}

h3,
.h3 {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 0.015em;
  margin-bottom: 1rem;
}

h4,
.h4 {
  font-size: 24px;
  font-weight: medium; /* Replace with numeric value if needed */
  letter-spacing: 0.015em;
  margin-bottom: 1rem;
}

.preheader {
  color: var(--dark-blue);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'Titillium Web', sans-serif;
}

b,
strong {
  font-weight: bold; /* 700 is equivalent to bold */
  color: var(--dark-blue);
}

.icon {
  display: inline-block;
  line-height: 1;
}

.icon svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-1px);
}

.icon svg path {
  fill: currentColor;
}

.body-copy-1 {
  font-size: 24px; /* Same as body tag */
  letter-spacing: 0.015em;
  line-height: 36px;
  margin-bottom: 15px;
}

.body-copy-2 {
  font-size: 18px;
  letter-spacing: 0.015em;
  line-height: 36px;
  margin-bottom: 15px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
}

.button-row .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.text-center .button-row {
  justify-content: space-around;
}

.desktop-lottie-player,
.mobile-lottie-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
}

.desktop-lottie-player path,
.mobile-lottie-player path {
  fill: white;
  stroke: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.leadin-preview-wrapper strong {
  color: white;
  text-decoration: underline;
}

.relevanssi-live-search-result {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.relevanssi-live-search-result .search-result-left {
  width: 40%;
}
.relevanssi-live-search-result .search-result-right {
  width: 60%;
  padding-left: 2rem;
}

.relevanssi-live-search-result img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2rem;
}

.search-results .pagination {
  justify-content: center;
}

#content .container.search-results {
  padding: 3rem 2rem;
}

#content .search-results .pagination a {
  background: none;
  color: var(--dark-blue);
  border: none;
}

@media (prefers-reduced-motion: reduce) {
  .desktop-lottie-player,
  .mobile-lottie-player {
    display: none;
  }
}

@media (max-width: 1400px) {
  .desktop-lottie-player > svg,
  .mobile-lottie-player > svg {
    position: absolute;
    object-fit: cover;
  }
  h1,
  .h1 {
    font-size: 60px;
  }
  h2,
  .h2 {
    font-size: 40px;
  }
  h3,
  .h3 {
    font-size: 24px;
  }
  h4,
  .h4 {
    font-size: 18px;
  }
  body,
  .btn {
    font-size: 18px;
  }
  .preheader {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  h1,
  .h1 {
    font-size: 40px;
  }
  h2,
  .h2 {
    margin-bottom: 1rem;
  }
  .preheader {
    font-size: 24px;
    margin-bottom: 0.5rem;
  }
  .relevanssi-live-search-result {
    flex-direction: column;
  }
  .relevanssi-live-search-result .search-result-left {
    width: 100%;
    margin-bottom: 2rem;
  }
  .relevanssi-live-search-result .search-result-right {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .button-row .btn {
    margin-right: 0;
  }
}
