.source-sans {
  font-family: "Source Sans 3", sans-serif;
}

.brand-blue {
  color: #193285;
}

.brand-lightblue {
  color: #08b9f8;
}

.brand-grey {
  color: #6b6b6b;
}

.main-container {
  width: calc(100% - 2rem);
  max-width: 77.5rem;
  margin-inline: auto;
}

/* .primary-btn */
.primary-btn {
  display: inline-flex;
  justify-content: center;
  color: #fff;
  font-family: "source-sans", sans-serif;
  font-size: clamp(0.9954rem, calc(0.9583rem + 0.1852vw), 1.125rem);
  text-decoration: none;
  background-color: #08b9f8;
  border: 2px solid #08b9f8;
  border-radius: 30px;
  cursor: pointer;
  font-size: clamp(0.9954rem, calc(0.9583rem + 0.1852vw), 1.125rem);
  font-family: "source-sans", sans-serif;
  font-weight: 700;
  width: max-content;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}

.primary-btn:hover {
  background-color: transparent;
  color: #08b9f8;
  border-color: #08b9f8;
}

.primary-btn:active {
  transform: scale(0.97);
}

/* Secondary Button */
.secondary-btn {
  display: inline-flex;
  justify-content: center;
  color: #ffffff;
  font-family: "source-sans", sans-serif;
  font-size: clamp(0.9954rem, calc(0.9583rem + 0.1852vw), 1.125rem);
  text-decoration: none;
  background-color: #19407c;
  border: 2px solid #19407c;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  width: max-content;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}

.secondary-btn:hover {
  background-color: transparent;
  color: #19407c;
  border-color: #19407c;
}

.secondary-btn:active {
  transform: scale(0.97);
}

/* gradient btn */
.gradient-btn {
  display: inline-flex;
  justify-content: center;
  color: #ffffff;
  font-family: "source-sans", sans-serif;
  font-size: clamp(0.9954rem, calc(0.9583rem + 0.1852vw), 1.125rem);
  text-decoration: none;
  background: linear-gradient(0deg, #022673 0%, #006dd5 100%);
  border: 2px solid #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  width: max-content;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.15s ease;
}

.gradient-btn:hover {
  background: transparent;
  color: #19407c;
  border: 2px solid #19407c;
}

.gradient-btn:active {
  transform: scale(0.97);
}

.no-border-btn {
  border: 1px solid transparent;
}

.no-border-btn:hover {
  border: 2px solid #19407c;
}

/* mobile version changes */
@media (max-width: 639px) {
  .primary-btn {
    padding: 7px 22px;
  }

  .secondary-btn {
    padding: 7px 22px;
  }
}

/* btn hover effect */
.blog-btn-bg {
  transition: fill 0.4s ease;
}

.blog-btn-border {
  fill: none;
  stroke: transparent;
  stroke-width: 2;
  transition: stroke 0.4s ease;
}

.blog-btn-text {
  transition: fill 0.4s ease;
}

.group:hover .blog-btn-bg {
  fill: white;
}

.group:hover .blog-btn-border {
  stroke: #006dd5;
}

.group:hover .blog-btn-text {
  fill: #006dd5;
}

/* brand-scrollbar-hide */
.brand-scrollbar-hide::-webkit-scrollbar {
  height: 12px;
}

.brand-scrollbar-hide::-webkit-scrollbar-track {
  background: #e7f1ff;
  border-radius: 10px;
}

.brand-scrollbar-hide::-webkit-scrollbar-thumb {
  background: #006dd5;
  border-radius: 10px;
}

.brand-scrollbar-hide::-webkit-scrollbar-thumb:hover {
  background: #022673;
}

.buy-now-wrapper {
  position: relative;
}

.buy-now-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background-color: #ffffff;
  min-width: 180px;
  padding: 0.75rem;
  border-radius: 0 0 24px 24px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 50;
  flex-direction: column;
  gap: 0.5rem;
}

.buy-now-dropdown.is-open {
  display: flex;
}

.buy-now-link {
  display: block;
  padding: 0.5rem;
}

.buy-now-link img {
  display: block;
  width: 70%;
  height: auto;
  object-fit: contain;
  margin: auto;
}

@media (min-width: 768px) {
  #site-navigation .menu-item > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
  }

  #site-navigation .menu-item > a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: transparent;
    transition: background-color 0.3s ease;
  }

  #site-navigation .menu-item:hover > a::before,
  #site-navigation .menu-item.current-menu-item > a::before,
  #site-navigation .menu-item.current-menu-ancestor > a::before {
    background-color: #ffffff;
  }

  .menu-item-has-children {
    position: relative;
  }

  .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 3L7 11L14 3H0Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }

  .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
  }

  .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1.5rem);
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    padding: 0.75rem 0;
    border-radius: 0 0 24px 24px;
    box-shadow:
      0 10px 25px -5px rgba(0, 0, 0, 0.1),
      0 8px 10px -6px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    z-index: 50;
  }

  .menu-item-has-children::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 2.2rem;
    background: transparent;
    z-index: 49;
  }

  .menu-item-has-children:hover > .sub-menu {
    display: flex;
  }

  .sub-menu li {
    list-style: none;
    margin: 0;
  }

  .sub-menu li a {
    color: #022673;
    font-size: clamp(0.8704rem, calc(0.8333rem + 0.1852vw), 1rem);
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
    transition:
      color 0.2s ease,
      background-color 0.2s ease;
  }

  .sub-menu li a:hover,
  .sub-menu li.current-menu-item > a {
    color: #006dd5;
  }

  .sub-menu li > a::before,
  .sub-menu li > a::after {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* floating card, right aligned (matches header container's 0.625rem side margin) */
  #mobile-menu {
    position: absolute;
    top: 100%;
    right: 0rem;
    width: min(15rem, calc(100vw - 1.25rem));
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding: 14px;
    background: #ffffff;
    border-radius: 0px 0px 14px 14px;
    box-shadow:
      0 10px 25px -5px rgba(0, 0, 0, 0.15),
      0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
  }

  #mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* links */
  #mobile-menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0;
    color: #19407c;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    justify-content: start;
  }

  /* caret (dark blue, rotates when open) */
  #mobile-menu .menu-item-has-children > a::after {
    content: "";
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 3L7 11L14 3H0Z' fill='%2319407c'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }

  #mobile-menu .menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
  }

  /* submenu accordion */
  #mobile-menu .sub-menu {
    display: none;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0 0 0.25rem 0.75rem;
  }

  #mobile-menu .menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }

  #mobile-menu .sub-menu li a {
    padding: 0.45rem 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: #022673;
  }

  .mobile-buy-list {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.5rem;
  }

  .mobile-buy-list.is-open {
    display: flex;
  }
}
