/* Header stays theme-transparent; mega menu overlays the page */

.tp-header-area.cst-header-freshy {
  background: transparent;
  box-shadow: none;
  overflow: visible;
  z-index: 10050;
  transition: transform 0.32s ease;
}

.admin-bar .tp-header-area {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .tp-header-area {
    top: 0;
  }
}

.cst-404-page .tp-header-area.cst-header-freshy,
.cst-offline-page .tp-header-area.cst-header-freshy,
.cst-legal-page .tp-header-area.cst-header-freshy {
  background: #0b0c10;
}

.tp-header-area.header-hidden {
  transform: translate3d(0, -110%, 0);
  pointer-events: none;
}

.tp-header-area.header-hidden .cst-mega {
  display: none !important;
}

.cst-header-freshy .container {
  position: static !important;
  overflow: visible;
}

.cst-header-freshy .row,
.cst-header-freshy [class*="col-"],
.cst-header-freshy .tp-header-box,
.cst-header-freshy .tp-header-menu,
.cst-header-freshy nav,
.cst-header-freshy nav > ul,
.cst-header-freshy nav > ul > li,
.cst-header-freshy nav > ul > li.has-dropdown,
.cst-header-freshy nav > ul > li.cst-has-mega {
  overflow: visible;
  position: static !important;
}

.cst-header-freshy .tp-header-menu > nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cst-header-freshy .tp-header-menu > nav > ul > li {
  margin: 0 18px;
}

.cst-header-freshy .tp-header-menu > nav > ul > li > a {
  color: #f5f7f5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tp-ff-bricolage), sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.cst-header-freshy.header-sticky.sticky-white-bg .tp-header-menu > nav > ul > li > a,
.cst-contact-page .cst-header-freshy .tp-header-menu > nav > ul > li > a {
  color: #111;
}

.cst-404-page .cst-header-freshy .tp-header-menu > nav > ul > li > a,
.cst-offline-page .cst-header-freshy .tp-header-menu > nav > ul > li > a,
.cst-legal-page .cst-header-freshy .tp-header-menu > nav > ul > li > a {
  color: #f5f7f5;
}

.cst-nav-caret {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
}

.cst-has-mega.is-open > a .cst-nav-caret,
.cst-has-mega:hover > a .cst-nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.tp-header-menu > nav > ul > li.has-dropdown .cst-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  padding: 18px 0 14px;
  z-index: 10060;
  text-align: left;
}

.cst-mega > .container {
  position: static !important;
}

.tp-header-menu > nav > ul > li.has-dropdown.cst-has-mega:hover > .cst-mega,
.tp-header-menu > nav > ul > li.has-dropdown.cst-has-mega.is-open > .cst-mega,
.tp-header-menu > nav > ul > li.has-dropdown.cst-has-mega:focus-within > .cst-mega {
  display: block !important;
}

.cst-mega-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 0;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.cst-mega-grid > li {
  width: auto;
  margin: 0;
  min-width: 0;
  position: relative;
  padding: 10px 22px 12px 0;
}

.cst-mega-grid > li.design,
.cst-mega-grid > li.development,
.cst-mega-grid > li.hosting,
.cst-mega-grid > li.premium-support {
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  padding-right: 22px;
  padding-left: 0;
}

.cst-mega-grid > li.development,
.cst-mega-grid > li.premium-support,
.cst-mega-grid > li.maintenance,
.cst-mega-grid > li.seo {
  padding-left: 22px;
}

.cst-mega-grid > li.design,
.cst-mega-grid > li.development,
.cst-mega-grid > li.maintenance {
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  padding-bottom: 16px;
  margin-bottom: 6px;
}

.cst-mega-grid > li.hosting,
.cst-mega-grid > li.premium-support,
.cst-mega-grid > li.seo {
  padding-top: 16px;
}

.cst-mega-grid a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 6px;
  align-content: start;
  height: 100%;
  min-height: 0;
  padding: 14px 8px 14px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111;
  text-decoration: none;
  box-sizing: border-box;
  text-align: left;
  justify-items: start;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.cst-mega-grid a:hover {
  background: #f4f6fb;
  color: #111;
  box-shadow: 0 8px 20px rgba(56, 88, 233, 0.12);
}

.cst-mega-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 50px;
  height: 50px;
  border-radius: 0;
  background: #3858e9;
  display: grid;
  place-items: center;
  align-self: start;
  flex-shrink: 0;
}

.cst-mega-icon img,
.cst-mega-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.cst-mega-title {
  grid-column: 2;
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--tp-ff-bricolage), sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cst-mega-desc {
  grid-column: 2;
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--tp-ff-body), sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  color: #444;
}

.cst-mega-cta {
  grid-column: 4;
  grid-row: 1 / span 2;
  padding: 0 0 0 22px;
  border: 0;
  display: flex;
}

.cst-mega-grid > li.cst-mega-cta > a {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  grid-template-columns: none;
  background: #3858e9;
  border: 0;
  color: #fff;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 22px 22px 20px;
  border-radius: 0;
}

.cst-mega-cta a:hover {
  background: #2f4ad4;
  color: #fff;
  box-shadow: none;
}

.cst-mega-cta .cst-mega-title {
  grid-column: auto;
  width: auto;
  max-width: 11em;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.cst-mega-cta .cst-mega-arrow {
  display: inline-flex;
  margin: 0;
  color: #fff;
  transition: transform 0.28s ease;
}

.cst-mega-arrow svg {
  width: 28px;
  height: 28px;
  display: block;
}

.cst-mega-cta a:hover .cst-mega-arrow {
  transform: translateX(10px);
}

.cst-off-mega {
  display: none;
  padding: 0 0 8px 16px;
  list-style: none;
}

.tp-offcanvas-menu li.is-open .cst-off-mega {
  display: block;
}

.cst-off-mega a {
  font-size: 15px;
  padding: 8px 0;
  display: block;
}

@media (max-width: 1199px) {
  .tp-header-menu > nav > ul > li.has-dropdown.cst-has-mega:hover > .cst-mega,
  .tp-header-menu > nav > ul > li.has-dropdown.cst-has-mega.is-open > .cst-mega,
  .tp-header-menu > nav > ul > li.has-dropdown.cst-has-mega:focus-within > .cst-mega {
    display: none !important;
  }
}
