@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1520px;
  }
}
body.dark,
section.dark {
  background: url("graphic.svg") #1a1a2c no-repeat top;
}

body {
  background-color: #f4f4f4;
}

.main-header {
  padding: 1rem 0;
}
.main-header .navbar-brand img {
  height: 40px;
}
.main-header .navbar-toggler {
  border: none;
}
.main-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.main-header .navbar-nav .nav-link,
.main-header .navbar-nav a {
  color: #ffffff;
  text-transform: uppercase;
  text-decoration: none !important;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.14em;
  text-align: right;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}
.main-header .navbar-nav .nav-link.active,
.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav a:hover,
.main-header .navbar-nav .current-menu-item > a {
  color: #9e24fb;
}
.main-header .dropdown-menu {
  padding: 20px 15px;
  background-color: #ffffff;
  border: 1px solid #9e24fb;
  border-radius: 20px;
}
.main-header .dropdown-menu a {
  color: #00196b !important;
  position: relative;
  display: inline;
  margin-bottom: 2px !important;
}
.main-header .dropdown-menu a:hover::after {
  content: "";
  position: absolute;
  background-image: url(arrow.png);
  background-position: right center;
  background-repeat: no-repeat;
  right: -10px;
  width: 20px;
  height: 20px;
  top: 2px;
}
.main-header .navbar-nav a {
  letter-spacing: 0px;
  text-transform: initial;
  text-align: left !important;
  font-weight: 400;
  display: inline-block;
}

li.nav-item.dropend {
  margin-bottom: 4px;
}
li.nav-item.dropend a {
  display: inline !important;
}

.dropdown-item:focus,
.dropdown-item:hover {
  background-color: transparent !important;
}

body.light .main-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
body.light .main-header .navbar-nav .nav-link,
body.light .main-header .navbar-nav a {
  color: #1a1a2c !important;
}
body.light .main-header .navbar-nav .nav-link.active,
body.light .main-header .navbar-nav .nav-link:hover,
body.light .main-header .navbar-nav a:hover,
body.light .main-header .navbar-nav .current-menu-item > a {
  color: #9e24fb !important;
}

#mainMenu .nav-link:hover,
#mainMenu .dropdown-item:hover {
  color: #9e24fb;
}

h1 {
  font-family: "dm-sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: #9e24fb;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.125rem);
  line-height: clamp(2.8rem, 5.2vw + 1rem, 4.3rem);
  letter-spacing: -0.02em;
}
h1 em {
  font-style: normal !important;
  color: #ffffff !important;
}

h2 {
  font-family: "dm-sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw + 1rem, 1.85rem);
  line-height: clamp(2rem, 2.2vw + 1rem, 2.125rem);
  color: #351c72;
}
h2 em {
  font-style: normal;
  color: #9e24fb;
}

.dark p {
  font-family: "dm-sans", sans-serif !important;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 2vw + 1rem, 1.375rem);
  line-height: clamp(1.8rem, 2.2vw + 1rem, 2.1rem);
  color: #ffffff;
}

.homepage-feature {
  background: url("line.svg") #fefbfb no-repeat 0px 204px;
  background-size: 100% 100%;
  border-radius: 40px;
}
.homepage-feature h2 {
  font-family: "dm-sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  line-height: clamp(2rem, 2.2vw + 1rem, 2.325rem);
  color: #351c72;
}
.homepage-feature h2 span {
  color: #7324fb;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-heading h2 {
  font-size: 0.75rem;
  letter-spacing: 0.5rem;
  color: #999;
  margin: 0;
  white-space: nowrap;
}
.section-heading .line {
  flex-grow: 1;
  height: 1px;
  background-color: #ddd;
}

.client-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.client-logos img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1) opacity(0.9);
}
@media (max-width: 1024px) {
  .client-logos {
    justify-content: space-around;
  }
  .client-logos img {
    width: 160px;
    height: 80px;
  }
}
@media (max-width: 768px) {
  .client-logos {
    justify-content: center;
  }
  .client-logos img {
    width: 140px;
    height: 70px;
  }
}
@media (max-width: 480px) {
  .client-logos {
    flex-direction: column;
    align-items: center;
  }
  .client-logos img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
}

.object-fit-cover {
  object-fit: cover;
}

.card {
  border: none;
  height: 350px !important;
  width: 100%;
  display: flex;
  justify-content: center;
}
.card a {
  text-decoration: none;
}
.card h3 {
  width: 100%;
  text-align: center;
  font-family: "dm-sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw + 1rem, 1.85rem);
  line-height: clamp(2rem, 2.2vw + 1rem, 2.125rem);
  color: #ffffff;
}

.slick-slide > div {
  width: 100%;
}

.slick-two-column .slide {
  height: 100%;
  display: flex;
  align-items: stretch;
  padding: 2rem 0;
}
.slick-two-column .slide .row {
  width: 100%;
  margin: 0;
}
.slick-two-column .slide .col-md-6 {
  display: flex;
  align-items: stretch;
}

.custom-arrow {
  position: absolute;
  top: 0;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 10;
}
.custom-arrow img {
  width: 55px;
  height: 55px;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.custom-arrow:hover img {
  content: url("arrow-on.svg");
}

.slider-wrapper {
  position: relative;
}
.slider-wrapper h2 {
  max-width: 85%;
}
.slider-wrapper .slide h2 {
  color: #ffffff !important;
}
.slider-wrapper .slick-prev {
  right: 5.5rem;
  transform: rotate(180deg);
}
.slider-wrapper .slick-next {
  right: 1rem;
}
@media (max-width: 768px) {
  .slider-wrapper h2 {
    max-width: 100%;
  }
  .slider-wrapper .custom-arrow {
    top: 7rem;
  }
  .slider-wrapper .slick-prev {
    right: 5.5rem;
  }
  .slider-wrapper .slick-next {
    right: 1rem;
  }
}

.services h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  line-height: clamp(1.8rem, 2.2vw + 1rem, 3rem);
  letter-spacing: -0.01em;
}
.services h2 span {
  color: #9e24fb;
}
.services .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}
.services .feature-box h5 {
  color: #ffffff;
  font-weight: 600;
}
.services .feature-box a {
  text-decoration: none;
  color: #ffffff;
}
.services .feature-box p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  color: #c0c0d0;
}

.callback-wrapper {
  background: url(purple-line.svg) no-repeat center, linear-gradient(82.55deg, #00196b -45.61%, #9e24fb 85.32%);
  border-radius: 40px;
  margin: 40px auto;
}
.callback-wrapper h3 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  line-height: clamp(1.8rem, 2.2vw + 1rem, 4rem);
  color: #ffffff;
  font-weight: 600;
  font-family: "dm-sans", sans-serif;
}
.callback-wrapper p {
  font-family: "dm-sans", sans-serif !important;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
}
.callback-wrapper h6 {
  position: relative;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 2rem;
}
.callback-wrapper h6::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background-color: #ffffff;
  margin-top: 10px;
  position: absolute;
  bottom: -19px;
}

.callback-form {
  background: #fff;
  border-radius: 20px !important;
  padding: 50px !important;
  color: #333;
}
.callback-form p {
  font-family: "dm-sans";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #484848;
}
.callback-form h4 {
  font-family: "dm-sans", sans-serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 40px;
  color: #3840f4;
}
.callback-form input,
.callback-form textarea {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding-left: 0;
  font-size: 0.95rem;
  background-color: transparent;
}
.callback-form input:focus,
.callback-form textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: #5e5eea;
}
.callback-form button {
  background-color: #1d2cf0;
  border: none;
  color: #ffffff;
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}
.callback-form button:hover {
  background-color: #0813c2;
}
@media (max-width: 768px) {
  .callback-form {
    margin-top: 40px;
  }
}

.footer-links {
  font-size: 0.8rem;
  opacity: 0.8;
}
.footer-links .text-white {
  color: unset !important;
}

.light .text-white {
  color: #1a1a2c !important;
}

.social-icons a {
  color: #5cf6ff;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: 0.3s;
}
.social-icons a:hover {
  color: #ffffff;
}

.overlap-image {
  top: 36px;
  border-radius: 40px !important;
  z-index: 10;
  position: relative;
  margin-right: -10px !important;
  right: 40px;
}
@media (max-width: 992px) {
  .overlap-image {
    margin-top: 0;
    right: 0px;
    margin-bottom: 20px;
    top: 0px;
  }
}

.latest-updates {
  background: #fff;
  border-radius: 2rem;
  padding: 3rem;
  color: #1a1a2c;
}
.latest-updates .section-title {
  font-family: "dm-sans", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #351c72;
}
.latest-updates .post-card {
  color: #1a1a2c;
  transition: all 0.3s ease;
}
.latest-updates .post-card:hover .arrow {
  transform: translateX(5px);
}
.latest-updates .post-card .post-thumb img {
  border-radius: 2rem;
}
.latest-updates .post-card .post-title {
  font-family: "dm-sans", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 2vw + 1rem, 2.25rem);
  line-height: clamp(2rem, 2.2vw + 1rem, 2rem);
  margin-top: 20px;
  color: #351c72;
}
.latest-updates .post-card .post-title .highlight {
  color: #9e24fb;
  font-weight: 400;
}
.latest-updates .post-card .post-title .arrow {
  font-weight: 600;
  display: inline-block;
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .latest-updates {
    padding: 2rem;
    border-radius: 1.5rem;
  }
}
@media (max-width: 576px) {
  .latest-updates .section-title {
    font-size: 1.5rem;
  }
  .latest-updates .post-title {
    font-size: 1rem;
  }
}

.page-content-wrapper {
  position: relative;
  z-index: 0;
}

.cta-overlap-wrapper {
  margin-top: -100px;
  z-index: 2;
  position: relative;
}

.cta-overlap-container {
  margin-top: -60px;
  margin-bottom: -100px;
  position: relative;
  z-index: 3;
}

.cta-overlap {
  background: url(purple-line.svg) no-repeat 0px, linear-gradient(82.55deg, #00196b -21.61%, #9e24fb 110.32%);
  border-radius: 40px;
  margin: 40px auto;
  overflow: hidden;
  z-index: 0;
  background-size: 115%;
  background-repeat: no-repeat;
  background-position: right;
}
.cta-overlap h4 {
  font-family: "dm-sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2rem, 5vw + 1rem, 3.75rem);
  /*line-height: 4.7rem;*/
  letter-spacing: -0.04em;
  color: #ffffff;
}
.cta-overlap p {
  font-family: "dm-sans";
  font-style: normal;
  font-weight: light;
  font-size: 22px;
  line-height: 34px;
  /* or 155% */
  letter-spacing: -0.01em;
  color: #ffffff;
}
.cta-overlap .btn-white {
  padding: 5px 20px;
  background: #fff;
  color: #351c72;
  font-size: 17px;
  letter-spacing: 0.31em;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  font-weight: 700;
  z-index: 1;
}
.cta-overlap .btn-white:hover {
  background-color: #e9e9e9;
  color: #7d1acc;
}

.header h1 {
  font-weight: 500;
  font-size: clamp(2rem, 2vw + 1rem, 3.6rem);
  /*line-height: clamp(2rem, 2.2vw + 1rem, 3.5rem);*/
  /*letter-spacing: -0.04em;*/
  color: #9e24fb;
}
.header p {
  font-weight: lighter;
  font-size: clamp(1.125rem, 2vw + 1rem, 1.625rem);
  line-height: clamp(1.8rem, 2.2vw + 1rem, 2.875rem);
  text-align: center;
  color: #484848;
}

.main-content {
  max-width: 90%;
  margin: 0px auto;
}
.main-content h2 {
  font-family: "dm-sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw + 1rem, 1.65rem);
  line-height: clamp(2rem, 2.2vw + 1rem, 2.125rem);
  color: #351c72;
}
.main-content h2 em {
  font-style: normal;
  color: #9e24fb;
}
.main-content h3 {
  font-family: "dm-sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 2vw + 1rem, 1.475rem);
  line-height: clamp(1.5rem, 2.2vw + 1rem, 2rem);
  color: #351c72;
}
.main-content .intro {
  font-family: "dm-sans";
  font-style: normal;
  font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
  line-height: clamp(1.75rem, 2.2vw + 1rem, 2.5rem);
  font-weight: normal;
  letter-spacing: -0.04em;
  color: #351c74;
}
.main-content .intro i {
  color: #7324fb;
  font-style: normal;
}
.main-content p {
  font-size: clamp(1rem, 2vw + 1rem, 1.275rem);
  line-height: clamp(1.5rem, 2.2vw + 1rem, 2rem);
  font-family: "dm-sans", sans-serif;
  font-weight: 200;
  margin-bottom: 1rem;
}
.main-content td {
  font-size: clamp(1rem, 2vw + 1rem, 1.275rem);
  line-height: clamp(1.5rem, 2.2vw + 1rem, 2rem);
  font-family: "dm-sans", sans-serif;
  font-weight: 200;
  margin-bottom: 1rem;
}
.main-content thead {
  background-color: #361c72;
  color: white;
}
.main-content thead th {
  padding: 10px 10px;
  border: 1px solid #dad5d5;
}
.main-content tbody td {
  padding: 10px 10px;
  border: 1px solid #dad5d5;
}
.main-content ul,
.main-content ol {
  margin-left: 0px;
  margin-bottom: 20px;
}
.main-content li {
  font-size: clamp(1rem, 2vw + 1rem, 1.275rem);
  line-height: clamp(1.5rem, 2.2vw + 1rem, 2rem);
  font-family: "dm-sans", sans-serif;
  font-weight: 200;
}
.main-content a {
  text-decoration: none;
  color: #7324fb;
  border-bottom: 1px solid;
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    padding-right: 40px;
  }
  .navbar .dropdown-toggle::after {
    margin-left: 0.25rem;
    vertical-align: 0.1em;
  }
  /* Keep active item styled */
  .navbar .nav-item.active > .nav-link {
    color: var(--bs-primary);
  }
}
/* Nested submenu alignment tweaks (Bootstrap 5) */
.dropdown-submenu .dropdown-menu {
  margin-left: 0.25rem;
}

.dropdown-menu {
  left: -12px;
  background-color: #efefef;
}

.dropdown-menu a {
  margin-left: 0 !important;
}

.archive p:first-of-type {
  font-family: "dm-sans";
  font-style: normal;
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: -0.04em;
  color: #351c74;
}
.archive p:first-of-type i {
  color: #7324fb;
  font-style: normal;
}

.gform-theme--foundation .gform_fields {
  row-gap: 0px !important;
}

/* Disable Gravity Forms theme framework focus styles */
.form-control {
  border: none !important;
  padding: 5px 0px;
}

.gform_wrapper.gravity-theme .gfield textarea {
  height: 100px !important;
}

h2.gform_submission_error.hide_summary {
  font-size: clamp(1rem, 2vw + 1rem, 1.2rem);
  line-height: clamp(2rem, 2.2vw + 1rem, 1.125rem);
  border: 1px solid;
  padding: 10px 10px;
  background: #9f24fb;
  color: white;
  border-radius: 10px 10px;
  text-align: center;
}

span.gform-icon.gform-icon--circle-error,
.gfield_validation_message {
  display: none;
}

.blog-card {
  background-color: #1a1a2c; /* Bootstrap primary blue */
  transition: background-color 0.3s ease;
  color: #ffffff;
  border-radius: 2rem !important;
}
.blog-card h3,
.blog-card p {
  color: #ffffff !important;
}
.blog-card a {
  text-decoration: none !important;
}

.blog-card:hover {
  background: linear-gradient(135deg, #b422f6 0%, #a32eff 100%);
}

.blue-link {
  color: #ffffff !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
main {
  background: #f4f4f4;
}

.blog-card:hover i.fa-gear-code {
  animation: spin 4s linear infinite;
}

/* ===== Mobile overlay (<= lg) ===== */
@media (max-width: 991.98px) {
  /* Stop Bootstrap's slide animation */
  #mainMenu.collapsing {
    height: auto !important;
    transition: none !important;
    opacity: 0; /* start transparent while opening */
  }
  .main-header .navbar-nav .nav-link,
  .main-header .navbar-nav a {
    text-align: center;
    color: #ffffff !important;
  }
  /* Use fade/visibility instead of height */
  #mainMenu.collapse {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #0c0c1a;
    z-index: 9998; /* below toggler/logo */
    display: block !important; /* keep in flow for opacity transition */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* centre the nav */
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  #mainMenu.collapse.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  /* Stack + centre items */
  #mainMenu .navbar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  #mainMenu .nav-link {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff !important;
  }
  /* Submenu shown inline, centred */
  #mainMenu .dropdown-menu {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 10px 0px;
    padding: 0;
    text-align: center;
    display: none;
  }
  #mainMenu .dropdown.show .dropdown-menu,
  #mainMenu .nav-item.dropdown .dropdown-menu[aria-expanded=true] {
    display: block;
  }
  #mainMenu .dropdown-item {
    color: #ffffff !important;
    font-size: 1rem;
    white-space: break-spaces;
    padding: 12px 0px;
  }
  /* Keep logo + toggler visible above overlay */
  .navbar .navbar-brand,
  .navbar .navbar-toggler {
    position: relative;
    z-index: 9999;
  }
  /* Place them nicely while menu is open */
  body.menu-open .navbar .navbar-brand {
    position: fixed;
    top: 12px;
    left: 16px;
  }
  body.menu-open .navbar .navbar-toggler {
    position: fixed;
    top: 12px;
    right: 16px;
  }
  /* Turn hamburger into an X when open */
  .navbar-toggler .navbar-toggler-icon {
    transition: transform 0.2s ease;
  }
  .navbar-toggler[aria-expanded=true] .navbar-toggler-icon {
    background-image: none; /* hide default bars */
    width: 22px;
    height: 22px;
    position: relative;
  }
  .navbar-toggler[aria-expanded=true] .navbar-toggler-icon::before,
  .navbar-toggler[aria-expanded=true] .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #fff;
  }
  .navbar-toggler[aria-expanded=true] .navbar-toggler-icon::before {
    transform: rotate(45deg);
  }
  .navbar-toggler[aria-expanded=true] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
  }
}
/* Body lock to prevent background scroll */
body.menu-open {
  overflow: hidden;
}

/* Optional nicer hover */
#mainMenu .nav-link:hover,
#mainMenu .dropdown-item:hover {
  opacity: 0.9;
  text-decoration: none;
}

:root {
  --cta-purple: #7324fb;
  --image-outline: #34b1ff; /* tweak to taste */
}

.blog-feature {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.blog-feature a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.blog-feature__image {
  border-radius: 30px; /* matches the screenshot */
}

.blog-feature__crumb {
  letter-spacing: -0.02em;
  line-height: 1.6;
}

.blog-feature__title a {
  font-family: "dm-sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.04em;
  color: #7324fb;
}

.blog-feature__title a::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 10px;
  background: url("blog-arrow.png") no-repeat bottom;
  background-size: contain;
}

/* optional: tighten spacing on small screens */
@media (max-width: 576px) {
  .blog-feature__image {
    box-shadow: 0 0 0 2px var(--image-outline) inset, 0 0 0 2px var(--image-outline);
  }
 
}
