@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

:root {
  --bdts-navy: #092a52;
  --bdts-blue: #244f7b;
  --bdts-blue-light: #4d6c8f;
  --bdts-ink: #20252b;
  --bdts-muted: #5e6873;
  --bdts-light: #f4f5f6;
  --bdts-white: #fff;
  --bdts-content-width: 1140px;
  --bdts-shadow: 0 18px 45px rgba(5, 24, 48, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bdts-white);
  color: var(--bdts-ink);
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.733;
}

img {
  max-width: 100%;
}

a {
  color: var(--bdts-blue);
}

a:hover,
a:focus-visible {
  color: var(--bdts-navy);
}

.bdts-container {
  width: min(var(--bdts-content-width), calc(100% - 48px));
  margin-inline: auto;
}

/* Cassiopeia header */

.container-header {
  position: relative;
  z-index: 1000;
  min-height: 120px;
  padding: 20px 0;
  background: linear-gradient(135deg, var(--bdts-navy), var(--bdts-blue-light));
  box-shadow: none;
}

.container-header .grid-child {
  width: min(var(--bdts-content-width), calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}

.container-header > .grid-child:first-of-type {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.container-header .navbar-brand {
  position: relative;
  z-index: 2;
  max-width: 300px;
  padding: 0;
}

.container-header .navbar-brand .brand-logo {
  color: var(--bdts-white);
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
}

.container-header .navbar-brand .brand-logo img {
  display: block;
  width: 160px;
  height: 80px;
  object-fit: contain;
  object-position: left center;
}

.container-header .site-description {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.container-header .container-nav {
  min-height: 80px;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.container-header .mod-menu {
  width: 100%;
  gap: 26px;
  justify-content: flex-end;
  align-items: center;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.container-header .mod-menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--bdts-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.container-header .mod-menu > li.current > a::after,
.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li > a:hover::after,
.container-header .mod-menu > li > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

body.itemid-101 .container-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(9, 42, 82, 0.78), rgba(9, 42, 82, 0));
}

body.itemid-101 .container-header .site-description {
  display: none;
}

/* Remove Cassiopeia's homepage article gutters. */

body.itemid-101 .site-grid {
  display: block;
}

body.itemid-101 main,
body.itemid-101 .com-content-article,
body.itemid-101 .com-content-article__body {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Homepage hero */

.bdts-home {
  overflow: hidden;
}

.bdts-hero {
  position: relative;
  display: grid;
  min-height: 700px;
  height: min(806px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: var(--bdts-navy);
}

.bdts-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(5, 31, 63, 0.78), rgba(19, 62, 101, 0.48));
}

.bdts-hero__background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bdts-hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 48px;
  align-items: center;
  padding-top: 120px;
}

.bdts-hero__copy {
  position: relative;
  z-index: 2;
}

.bdts-hero__copy h1 {
  margin: 0;
  color: var(--bdts-white);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(44px, 4.8vw, 65px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.bdts-hero__copy p {
  margin: 16px 0 0 6px;
  color: var(--bdts-white);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 300;
  line-height: 1.4;
}

.bdts-hero__laptop {
  width: min(100%, 500px);
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 25px 24px rgba(0, 0, 0, 0.28));
}

/* Shared sections */

.bdts-section {
  position: relative;
  padding: 90px 0;
}

.bdts-section-heading {
  margin: 0 auto 62px;
  text-align: center;
}

.bdts-section-heading h2 {
  margin: 0;
  color: var(--bdts-navy);
  font-family: "Open Sans", sans-serif;
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.25;
}

.bdts-section-heading h2::after {
  display: block;
  width: 150px;
  height: 3px;
  margin: 16px auto 0;
  content: "";
  background: currentColor;
}

.bdts-section-heading > p {
  max-width: 910px;
  margin: 30px auto 0;
  color: var(--bdts-navy);
  font-size: 16px;
  line-height: 1.625;
}

.bdts-section-heading--light h2,
.bdts-section-heading--light > p {
  color: var(--bdts-white);
}

/* About and services */

.bdts-about {
  background: var(--bdts-white);
}

.bdts-about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(50px, 6vw, 80px);
  align-items: center;
}

.bdts-about__image {
  margin: 0;
  text-align: center;
}

.bdts-about__image img {
  display: block;
  width: min(100%, 435px);
  height: auto;
  margin-inline: auto;
}

.bdts-services {
  display: grid;
  gap: 30px;
}

.bdts-service {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 0;
  border: 0;
}

.bdts-service::before {
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--bdts-blue);
  font-family: "Font Awesome 6 Free";
  font-size: 34px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  place-items: center;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.bdts-service:nth-child(1)::before {
  content: "\f085";
}

.bdts-service:nth-child(2)::before {
  content: "\f071";
}

.bdts-service:nth-child(3)::before {
  content: "\f109";
}

.bdts-service:nth-child(4)::before {
  content: "\f0c2";
}

.bdts-service h3 {
  margin: 0 0 8px;
  color: var(--bdts-navy);
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.bdts-service p {
  margin: 0;
  color: var(--bdts-muted);
  line-height: 1.733;
}

/* Malwarebytes */

.bdts-malwarebytes {
  z-index: 1;
  margin: 0;
  padding: 145px 0;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, var(--bdts-navy), var(--bdts-blue-light));
  clip-path: polygon(0 9%, 100% 0, 100% 91%, 0 100%);
}

.bdts-malwarebytes__content {
  text-align: center;
}

.bdts-malwarebytes .bdts-section-heading {
  margin-bottom: 30px;
}

.bdts-malwarebytes__content > p {
  max-width: 930px;
  margin: 0 auto 26px;
  font-size: 16px;
}

.bdts-malwarebytes__benefits {
  display: grid;
  gap: 5px;
  max-width: 700px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
}

.bdts-malwarebytes__benefits li::before {
  margin-right: 8px;
  content: "•";
}

.bdts-malwarebytes__logo {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 58px auto 0;
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

/* Latest resources module */

.bdts-resources {
  padding-top: 125px;
  background: var(--bdts-white);
}

.bdts-resources .moduletable > h3 {
  display: none;
}

.bdts-resources .newsflash,
.bdts-resources .mod-articlesnews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.bdts-resources .mod-articlesnews__item {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--bdts-white);
  border: 1px solid rgba(9, 42, 82, 0.12);
  box-shadow: 0 12px 30px rgba(9, 42, 82, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bdts-resources .mod-articlesnews__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(9, 42, 82, 0.15);
}

.bdts-resources .newsflash-image {
  order: -1;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--bdts-navy);
}

.bdts-resources .newsflash-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.bdts-resources .mod-articlesnews__item:hover .newsflash-image img {
  transform: scale(1.025);
}

.bdts-resources .newsflash-title {
  margin: 0;
  padding: 24px 24px 0;
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.bdts-resources .newsflash-title a {
  color: var(--bdts-navy);
  text-decoration: none;
}

.bdts-resources .mod-articlesnews__item > p {
  margin: 0;
  padding: 16px 24px 28px;
  color: var(--bdts-muted);
}

/* Map and contact panel */

.bdts-contact {
  position: relative;
  margin-top: 20px;
  padding-bottom: 90px;
  background: linear-gradient(29deg, #232323, #474747);
}

.bdts-map {
  width: 100%;
  height: 520px;
  background: #e5e5e5;
  filter: grayscale(0.82) contrast(0.85);
}

.bdts-contact__container {
  position: relative;
  z-index: 2;
  margin-top: -190px;
}

.bdts-contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--bdts-white);
  box-shadow: var(--bdts-shadow);
}

.bdts-contact-card__visual {
  display: grid;
  min-height: 480px;
  padding: 70px;
  place-items: center;
  background: var(--bdts-white);
}

.bdts-contact-card__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.bdts-contact-card__details {
  padding: 68px 50px;
  color: rgba(255, 255, 255, 0.84);
  background: #0c315e;
}

.bdts-contact-card__details h2 {
  margin: 0 0 22px;
  color: var(--bdts-white);
  font-family: "Open Sans", sans-serif;
  font-size: 25px;
  font-weight: 400;
}

.bdts-contact-card__details > p {
  margin: 0 0 30px;
  line-height: 1.8;
}

.bdts-contact-list {
  display: grid;
  gap: 24px;
  margin: 0;
  font-style: normal;
}

.bdts-contact-list__item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.bdts-contact-list__item::before {
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--bdts-white);
  font-family: "Font Awesome 6 Free";
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  place-items: center;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.bdts-contact-list__item--phone::before {
  content: "\f095";
}

.bdts-contact-list__item--email::before {
  content: "\f0e0";
}

.bdts-contact-list__item--facebook::before {
  content: "\f39e";
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

.bdts-contact-list__item--location::before {
  content: "\f3c5";
}

.bdts-contact-list__content {
  display: grid;
  min-width: 0;
}

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

.bdts-contact-list a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.bdts-contact-list a:hover,
.bdts-contact-list a:focus-visible {
  color: var(--bdts-white);
  text-decoration: underline;
}

/* Tips and Resources category page */

body.itemid-104 {
  background: var(--bdts-light);
}

body.itemid-104 main {
  padding: 75px 0 95px;
  background: var(--bdts-light);
}

body.itemid-104 form.mod-finder {
  width: min(var(--bdts-content-width), calc(100% - 48px));
  margin-inline: auto;
}

body.itemid-104 form.mod-finder .awesomplete,
body.itemid-104 form.mod-finder .awesomplete > input {
  display: block;
  width: 100%;
  max-width: none;
}

body.itemid-104 .com-content-category-blog.blog {
  width: min(var(--bdts-content-width), calc(100% - 48px));
  margin-inline: auto;
}

body.itemid-104 .blog > .page-header {
  margin: 0 0 55px;
  text-align: center;
}

body.itemid-104 .blog > .page-header h1,
body.itemid-104 .blog > .page-header h2 {
  margin: 0;
  color: var(--bdts-navy);
  font-family: "Open Sans", sans-serif;
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.25;
}

body.itemid-104 .blog > .page-header h1::after,
body.itemid-104 .blog > .page-header h2::after {
  display: block;
  width: 150px;
  height: 3px;
  margin: 16px auto 0;
  content: "";
  background: currentColor;
}

body.itemid-104 .blog-items,
body.itemid-104 .blog-items.masonry-2,
body.itemid-104 .blog-items.masonry-3,
body.itemid-104 .blog-items.masonry-4 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  column-count: initial;
}

body.itemid-104 .blog-item {
  display: flex;
  width: auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--bdts-white);
  border: 1px solid rgba(9, 42, 82, 0.1);
  box-shadow: 0 12px 30px rgba(9, 42, 82, 0.09);
  break-inside: auto;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.itemid-104 .blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(9, 42, 82, 0.15);
}

body.itemid-104 .blog-item .item-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  float: none;
  background: var(--bdts-navy);
}

body.itemid-104 .blog-item .item-image a {
  display: block;
  width: 100%;
  height: 100%;
}

body.itemid-104 .blog-item .item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

body.itemid-104 .blog-item:hover .item-image img {
  transform: scale(1.025);
}

body.itemid-104 .blog-item .item-content {
  display: flex;
  min-width: 0;
  padding: 25px 25px 28px;
  flex: 1;
  flex-direction: column;
}

body.itemid-104 .blog-item .page-header {
  margin: 0;
}

body.itemid-104 .blog-item .page-header h2 {
  margin: 0 0 13px;
  font-family: "Open Sans", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

body.itemid-104 .blog-item .page-header a {
  color: var(--bdts-navy);
  text-decoration: none;
}

body.itemid-104 .blog-item .page-header a:hover,
body.itemid-104 .blog-item .page-header a:focus-visible {
  text-decoration: underline;
}

body.itemid-104 .blog-item .article-info {
  margin: 0 0 16px;
  color: #78818a;
  font-size: 13px;
  line-height: 1.5;
}

body.itemid-104 .blog-item .item-content > p {
  margin: 0;
  color: var(--bdts-muted);
  line-height: 1.7;
}

body.itemid-104 .pagination {
  margin-top: 55px;
  justify-content: center;
}

/* Inner article baseline; we can refine article layouts separately. */

body:not(.itemid-101) main {
  padding-block: 65px;
}

body:not(.itemid-101) .com-content-article,
body:not(.itemid-101) .blog,
body:not(.itemid-101) .blog-items {
  width: min(var(--bdts-content-width), calc(100% - 48px));
  margin-inline: auto;
}

body:not(.itemid-101) .page-header h1,
body:not(.itemid-101) .page-header h2,
body:not(.itemid-101) .com-content-article h1,
body:not(.itemid-101) .com-content-article h2 {
  color: var(--bdts-navy);
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

/* Tablet */

@media (max-width: 991.98px) {
  .container-header,
  body.itemid-101 .container-header {
    min-height: 100px;
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(9, 42, 82, 0.97), rgba(77, 108, 143, 0.94));
  }

  .container-header > .grid-child:first-of-type {
    top: 10px;
  }

  .container-header .navbar-brand .brand-logo img {
    width: 140px;
    height: 70px;
  }

  .container-header .container-nav {
    min-height: 80px;
  }

  .container-header .navbar-toggler {
    position: relative;
    z-index: 3;
    margin-left: auto;
    color: var(--bdts-white);
    border-color: rgba(255, 255, 255, 0.6);
  }

  .container-header .mod-menu {
    gap: 0;
  }

  .bdts-hero {
    min-height: 680px;
    height: auto;
  }

  .bdts-hero__content {
    grid-template-columns: 1fr 0.9fr;
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .bdts-hero__copy h1 {
    font-size: clamp(38px, 6vw, 52px);
    line-height: 1.2;
  }

  .bdts-about__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .bdts-resources .newsflash,
  .bdts-resources .mod-articlesnews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.itemid-104 .blog-items,
  body.itemid-104 .blog-items.masonry-2,
  body.itemid-104 .blog-items.masonry-3,
  body.itemid-104 .blog-items.masonry-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bdts-contact-card__visual {
    min-height: 440px;
    padding: 45px;
  }

  .bdts-contact-card__details {
    padding: 52px 38px;
  }
}

/* Mobile */

@media (max-width: 767.98px) {
  .bdts-container,
  .container-header .grid-child,
  body:not(.itemid-101) .com-content-article,
  body:not(.itemid-101) .blog,
  body:not(.itemid-101) .blog-items {
    width: min(calc(100% - 32px), var(--bdts-content-width));
  }

  .container-header .navbar-brand {
    max-width: calc(100% - 70px);
  }

  .container-header .navbar-brand .brand-logo {
    font-size: 18px;
  }

  .container-header .site-description {
    display: none;
  }

  .container-header .container-nav {
    position: relative;
    justify-content: flex-end;
  }

  .container-header .navbar-toggler {
    position: absolute;
    top: 20px;
    right: 0;
    margin: 0;
  }

  .container-header .navbar-collapse {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    z-index: 4;
  }

  .container-header .container-nav .mod-menu {
    width: 100%;
    padding: 15px 20px;
    justify-content: flex-start;
    background: var(--bdts-navy);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  }

  .bdts-hero {
    min-height: 720px;
  }

  .bdts-hero::after {
    background: rgba(5, 31, 63, 0.72);
  }

  .bdts-hero__content {
    grid-template-columns: 1fr;
    gap: 30px;
    align-content: center;
    padding-top: 130px;
    padding-bottom: 55px;
    text-align: center;
  }

  .bdts-hero__copy h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.16;
  }

  .bdts-hero__copy p {
    margin-left: 0;
    font-size: 18px;
  }

  .bdts-hero__laptop {
    width: min(88%, 430px);
    justify-self: center;
  }

  .bdts-section {
    padding: 70px 0;
  }

  .bdts-section-heading {
    margin-bottom: 45px;
  }

  .bdts-section-heading h2::after {
    width: 110px;
  }

  .bdts-about__grid {
    grid-template-columns: 1fr;
  }

  .bdts-about__image img {
    width: min(100%, 370px);
  }

  .bdts-service {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .bdts-service::before {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .bdts-malwarebytes {
    padding: 110px 0;
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  }

  .bdts-malwarebytes__logo {
    margin-top: 40px;
  }

  .bdts-resources {
    padding-top: 95px;
  }

  .bdts-resources .newsflash,
  .bdts-resources .mod-articlesnews {
    grid-template-columns: 1fr;
  }

  body.itemid-104 main {
    padding: 55px 0 75px;
  }

  body.itemid-104 .com-content-category-blog.blog {
    width: min(calc(100% - 32px), var(--bdts-content-width));
  }

  body.itemid-104 form.mod-finder {
    width: min(calc(100% - 32px), var(--bdts-content-width));
  }

  body.itemid-104 .blog-items,
  body.itemid-104 .blog-items.masonry-2,
  body.itemid-104 .blog-items.masonry-3,
  body.itemid-104 .blog-items.masonry-4 {
    grid-template-columns: 1fr;
  }

  .bdts-map {
    height: 430px;
  }

  .bdts-contact__container {
    margin-top: -100px;
  }

  .bdts-contact-card {
    grid-template-columns: 1fr;
  }

  .bdts-contact-card__visual {
    min-height: 0;
    padding: 30px;
  }

  .bdts-contact-card__details {
    padding: 42px 30px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .container-header .mod-menu > li > a::after,
  .bdts-resources .mod-articlesnews__item,
  .bdts-resources .newsflash-image img {
    transition: none;
  }
}
