/* Links */
a {
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

a:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -1px;
}

/*
 * Base structure
 */

body {
  background-color: #f8f9fa;
  color: #333;
}

/*
 * Typography
 */

hr {
  margin: 0.5rem 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .nav-link {
  color: #333;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #e8350a;
}

.dropdown-menu {
  border-radius: 0.5rem;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-menu {
  animation: fadeIn 0.15s ease-in-out;
}

.page-block-thumb {
  max-height: 120px;
  max-width: 180px;
  object-fit: contain;
}

.page-block-editor-header {
  gap: 1rem;
}

.page-block-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.page-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.page-icon-option {
  cursor: pointer;
  margin: 0;
  position: relative;
}

.page-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-icon-option-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
}

.page-icon-option-content i,
.page-icon-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #104f95;
}

.page-icon-option input:checked + .page-icon-option-content {
  border-color: #104f95;
  background: #eef5fd;
  box-shadow: 0 0 0 1px #104f95 inset;
}

.cms-page {
  max-width: 1040px;
  margin: 0 auto;
}

.cms-block {
  display: flow-root;
  clear: both;
  margin: 2.5rem 0;
}

.cms-block h1,
.cms-block h2 {
  text-align: inherit;
  margin-bottom: 1rem;
}

.cms-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f6f8;
}

.cms-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cms-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  .btn {
    background: #104f95;
    color: #fff;
    margin-top: 0.5rem;
  }
}

.cms-hero.has-image .cms-hero-content {
  color: #1f2937;
  margin: 3rem;
  border-radius: 8px;
  background: rgba(172, 172, 172, 0.69);
  padding: 0.8rem;
}

.cms-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  background: #104f95;
}

.cms-block-icon i {
  line-height: 1;
}

img.cms-block-image,
img.cms-full-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
}

img.cms-full-image {
  margin-bottom: 1rem;
}

.cms-image-content {
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.cms-image-content h2,
.cms-image-content .cms-rich-text,
.cms-image-content .cms-rich-text p {
  margin: 0;
}

.cms-rich-text {
  line-height: 1.8;
}

.cms-page-links {
  max-width: 1040px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #d8dee4;
}

.cms-page-links h2 {
  margin-bottom: 1rem;
  text-align: inherit;
  font-size: 1.25rem;
}

.cms-page-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cms-page-links a {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
}

.cms-block-quote blockquote {
  border-inline-start: 4px solid #104f95;
  padding: 1.5rem;
  background: #f8f9fa;
}

.cms-cta {
  padding: 2rem;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  text-align: center;
}

.breadcrumb {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: medium;
  text-transform: none;
  color: white;
  h4 {
    font-weight: 600;
    margin-top: 7px;
  }
  a {
    color: #000;
  }
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  border-bottom: solid thin lightgray;
}

.breadcrumb .page-heading {
  color: white;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
}

.breadcrumb ol {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.breadcrumb li {
  color: white;
  list-style: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: small;
}

.breadcrumb-item+.breadcrumb-item {
  padding-right: 0px;
  padding-left: 0px;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #000;
  padding: 0px 3px;
}

.breadcrumb li:after {
  margin: 0 10px;
}

.breadcrumb li:last-child:after {
  margin: 0;
}


/* Lexxy css */
lexxy-editor.form-control .lexxy-content__table-wrapper {
  margin: 0;
  margin-block: 1ch;
  overflow-x: auto;
}

lexxy-editor.form-control table {
  border-collapse: collapse;
  border-spacing: 0;
  inline-size: calc(100% - 0.5ch);
  margin: 0.25ch;
}

lexxy-editor.form-control table th,
lexxy-editor.form-control table td {
  border: 1px solid var(--lexxy-color-table-cell-border);
  min-width: 5ch;
  max-width: 50ch;
  padding: 1ch;
  text-align: start;
  word-break: normal;
}

lexxy-editor.form-control table th.lexxy-content__table-cell--header,
lexxy-editor.form-control table td.lexxy-content__table-cell--header {
  background-color: var(--lexxy-color-table-header-bg);
  font-weight: bold;
}

.cms-video,
.cms-video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.cms-video-embed {
  margin-bottom: 1rem;
}

.banner-overlay {
  position: absolute;
  bottom: 20%;
  left: 20%;
  z-index: 1;
  max-width: 520px;
  color: #fff;
  text-align: start;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.banner-text {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 700;
}

.banner-button {
  display: inline-block;
  padding: 0.2rem 1rem;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 600;
  text-shadow: none;
}

@media (max-width: 575.98px) {
  .banner-overlay {
    inset: auto 6% 8%;
  }

  .banner-text {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
  }

  .banner-button {
    padding: 0.5rem 0.9rem;
  }
}

@media (max-width: 800px) {
  .cms-hero {
    min-height: 280px;
  }

  .cms-hero-content {
    padding: 1.5rem;
  }

  .cms-hero.has-image .cms-hero-content {
    margin: 1rem;
  }

  .page-block-editor-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .page-block-editor-actions {
    justify-content: flex-start;
  }
}

/* Main-page copy beside the three brand cards. */
.home-stories {
  margin-block: 3rem;
}

.home-stories--with-brands {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: start;
}

.home-stories-content,
.home-brands {
  min-width: 0;
}

.home-stories-content .cms-block:first-child {
  margin-top: 0;
}

.home-stories-content .cms-hero:not(.has-image) {
  min-height: 0;
  background: transparent;
  border-radius: 0;
}

.home-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-brand-card {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1 / 1.5;
  overflow: hidden;
  border-radius: 1rem;
  background: #273747;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.home-brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
  z-index: -1;
}

.home-brand-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 200ms ease;
}

.home-brand-title {
  padding: 1.5rem 0.75rem 2rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-brand-card:hover {
  color: #fff;
  text-decoration: none;
}

.home-brand-card:hover .home-brand-image {
  transform: scale(1.04);
}

.home-brand-card:focus-visible {
  outline: 3px solid #104f95;
  outline-offset: 4px;
}

.home-other-brands {
  margin: 3rem auto;
  max-width: 1040px;
  text-align: center;
}

.home-other-brands h2 {
  margin-bottom: 1.5rem;
}

.home-other-brands .carousel {
  padding: 0 4rem;
}

.home-other-brand-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.home-other-brand {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.home-other-brand-icon {
  width: 120px;
  height: 120px;
  border: 1px solid #d8dee4;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.home-other-brand-icon--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #104f95;
  font-size: 2rem;
}

.home-other-brand-title {
  font-weight: 600;
}

.home-other-brand:hover,
.home-other-brand:focus-visible {
  color: #104f95;
  text-decoration: underline;
}

.home-other-brands .carousel-control-prev-icon,
.home-other-brands .carousel-control-next-icon {
  filter: invert(1) grayscale(1);
}

.home-news {
  margin: 5rem auto;
  max-width: 1180px;
  padding-inline: 1.25rem;
}

.home-news h2 {
  margin: 0;
  color: #123b6d;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.05;
}

.home-news .carousel {
  padding: 0 3.75rem;
}

.home-news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  padding-block: 0.75rem 1.5rem;
}

.home-news-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  height: 390px;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 0.35rem 1.6rem rgba(18, 59, 109, 0.12);
  color: #172536;
  text-align: start;
  text-decoration: none;
  transition: color 350ms ease, transform 350ms ease, box-shadow 350ms ease;
}

.home-news-card::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 90%;
  z-index: 1;
  background: white;
  content: "";
  pointer-events: none;
  transform: translateY(101%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-news-card:hover,
.home-news-card:focus-visible {
  color: #000;
  text-decoration: none;
  transform: translateY(-0.4rem);
}

.home-news-card:hover::before,
.home-news-card:focus-visible::before {
  transform: translateY(0);
}

.home-news-card:focus-visible {
  outline: 3px solid #104f95;
  outline-offset: 4px;
}

.home-news-card-content,
.home-news-card-footer,
.home-news-card-meta {
  display: flex;
  position: relative;
  z-index: 2;
}

.home-news-card-content {
  position: absolute;
  top: calc(210px + 2rem);
  right: 2rem;
  bottom: 4.5rem;
  left: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  padding-top: 1rem;
  text-align: center;
  transition: top 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-news-card:hover .home-news-card-content,
.home-news-card:focus-visible .home-news-card-content {
  top: calc(10% + 2rem);
}

.home-news-card-logo {
  width: calc(100% + 4rem);
  height: 210px;
  flex: 0 0 210px;
  margin: -2rem -2rem 0;
  object-fit: cover;
  background: #eef3f8;
}

.home-news-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.home-news-card-summary {
  display: block;
  width: 100%;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: black;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  position: relative;
  z-index: 1;
  transition: max-height 350ms ease, margin-top 350ms ease, opacity 350ms ease, color 350ms ease;
}

.home-news-card:hover .home-news-card-summary,
.home-news-card:focus-visible .home-news-card-summary {
  max-height: 12rem;
  margin-top: 1rem;
  color: #000;
  opacity: 1;
}

.home-news-card-footer {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  pointer-events: auto;
}

.home-news-card:hover .home-news-card-footer,
.home-news-card:focus-visible .home-news-card-footer {
  justify-content: center;
  text-align: center;
}

.home-news-card-meta {
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  color: #687889;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 350ms ease;
}

.home-news-card:hover .home-news-card-kicker,
.home-news-card:hover .home-news-card-summary,
.home-news-card:hover .home-news-card-meta,
.home-news-card:focus-visible .home-news-card-kicker,
.home-news-card:focus-visible .home-news-card-summary,
.home-news-card:focus-visible .home-news-card-meta {
  color: #526171;
}

.home-news-card:hover .home-news-card-kicker,
.home-news-card:focus-visible .home-news-card-kicker {
  color: #104f95;
}

.home-news-card:hover .home-news-card-title,
.home-news-card:focus-visible .home-news-card-title {
  color: #123b6d;
}

.page-icon-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.page-collection {
  margin-block: clamp(2rem, 6vw, 5rem);
}

.page-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.page-collection-card {
  overflow: hidden;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.35rem 1.6rem rgba(18, 59, 109, 0.12);
  color: #172536;
  text-decoration: none;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.page-collection-card:hover,
.page-collection-card:focus-visible {
  color: #123b6d;
  text-decoration: none;
  transform: translateY(-0.3rem);
  box-shadow: 0 0.75rem 2rem rgba(18, 59, 109, 0.18);
}

.page-collection-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #eef3f8;
}

.page-collection-image--fallback {
  display: grid;
  place-items: center;
  color: #104f95;
  font-size: 3rem;
}

.page-collection-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}

.page-collection-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.page-collection-summary {
  color: #526171;
  line-height: 1.6;
}

.page-collection-date {
  margin-top: auto;
  color: #687889;
  font-size: 0.85rem;
}

@media (max-width: 767.98px) {
  .page-collection-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .page-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .home-stories--with-brands {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .home-brands-grid {
    gap: 0.5rem;
  }

  .home-brand-card {
    border-radius: 0.65rem;
  }

  .home-brand-title {
    font-size: 0.875rem;
    padding: 1rem 0.375rem;
  }

  .home-other-brands .carousel {
    padding: 0 2.5rem;
  }

  .home-other-brand-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-news .carousel {
    padding: 0 2.5rem;
  }

  .home-news-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand-image,
  .home-news-card,
  .home-news-card::before,
  .home-news-card-kicker,
  .home-news-card-summary,
  .home-news-card-meta,
  .home-news-card-arrow {
    transition: none;
  }
}

/* Contact page */
.contact-page {
  margin-block: clamp(2.5rem, 7vw, 6rem);
}

.contact-intro {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-intro h1 {
  margin-bottom: 1rem;
  color: #123b6d;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 300;
  line-height: 1.05;
}

.contact-intro p {
  margin: 0;
  color: #526171;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #f4f7fa;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #172536;
  font-weight: 600;
}

.contact-field .form-control {
  min-height: 3.25rem;
  border: 1px solid #c7d0da;
  border-radius: 0;
  background: #fff;
}

.contact-field textarea.form-control {
  min-height: 10rem;
  resize: vertical;
}

.contact-field .form-control:focus {
  border-color: #104f95;
  box-shadow: 0 0 0 0.2rem rgba(16, 79, 149, 0.16);
}

.contact-submit {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid #104f95;
  border-radius: 0;
  background: #104f95;
  color: #fff;
  font-weight: 700;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #fff;
  color: #104f95;
  transform: translateY(-2px);
}

.contact-details {
  padding-top: 0.5rem;
}

.contact-details h2 {
  margin-bottom: 1.5rem;
  color: #123b6d;
  font-size: 1.6rem;
}

.contact-details-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #526171;
}

.contact-details-item i {
  width: 1.25rem;
  margin-top: 0.25rem;
  color: #104f95;
  text-align: center;
}

.contact-details-item a {
  color: inherit;
  overflow-wrap: anywhere;
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  .contact-layout,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-field--full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit {
    transition: none;
  }
}
