/* ============================================
   HEADER - Mobile First
   ============================================ */
.header button {
  background: none;
  appearance: none;
  border: none;
  font-family: inherit;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  --header-height: 72px;
  height: var(--header-height);
}
.header.sticky-header {
  background: rgba(25, 19, 95, 0.95) !important;
}
.header ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.header__logo {
  height: 32px;
  transition: opacity 0.3s ease;
}

.header__logo img {
  height: 100%;
  width: auto;
}

.header__logo--hidden {
  opacity: 0;
  pointer-events: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
}

.header__icon-btn svg,
.header__icon-btn img {
  width: 24px;
  height: 24px;
}
.header__icon-btn .icon-hamburger {
  display: block;
}
.header__icon-btn .icon-close {
  display: none;
}
.header__icon-btn.active .icon-hamburger {
  display: none;
}
.header__icon-btn.active .icon-close {
  display: block;
}

/* Hide search toggle when menu is open */
.header__icon-btn[data-search-toggle] {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay--active ~ .header .header__icon-btn[data-search-toggle],
.header.menu-is-open .header__icon-btn[data-search-toggle] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.header__back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  padding: 0;
}

.header__back svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.menu-overlay {
  position: fixed;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 19, 95, 0.75);
  backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay--active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-overlay__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 32px;
  margin-top: var(--header-height);
}

/* ============================================
   NAVIGATION MENU - Level 1
   ============================================ */
.custom-nav{
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.nav__main {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px 24px 24px;
  flex: 1;
  overflow-y: auto;
}

.nav__item {
  border-bottom: 1px solid #F2F2F2;
}

.nav__item:last-child {
  border-bottom: none;
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: #0C083B;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  text-align: left;
}

.nav__link svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.nav__cta {
  width: 100%;
}

/* ============================================
   SUBMENU - Level 2
   ============================================ */
.submenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 19, 95, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.submenu--active {
  transform: translateX(0);
}

.submenu__content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.submenu__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 32px;
  margin-top: var(--header-height);
}

.submenu__panel {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 0;
  display: none;
  height: 100%;
}

.submenu__panel.submenu__panel--active {
  display: flex;
  flex-direction: column;
}

.submenu__header {
  padding: 24px 24px 8px;
}

.submenu__title {
  font-size: 24px;
  font-weight: 600;
  color: #0C083B;
  line-height: 1.2;
  margin: 0;
}

.submenu__list {
  padding: 16px 8px 0;
  letter-spacing: -0.28px;
  font-size: 14px;
  font-weight: 500;
  color: #0C083B;
  flex: 1;
  overflow-y: auto;
}

.submenu__list  a {
  color: inherit;
}
/* Submenu item structure */
.submenu__item,
.submenu__nested > .submenu__see-all {
  border-top: 1px solid #F2F2F2;
}

.submenu__item:first-child {
  border-bottom: none;
}

/* Unified submenu link style for all levels */
.submenu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: #0C083B;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  text-decoration: none !important;
}

.submenu__link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  opacity: 0.3;
}

/* Open/Expanded state */
.submenu__item.open-submenu > .submenu__link  {
  background: #F2F2F2;
}
.submenu__item.open-submenu > .submenu__link svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Nested container */
.submenu__nested {
  display: none;
  padding: 8px 0 8px 16px;
}
.submenu__nested:has(.tech-card) {
  padding: 16px 32px 24px;
}
.submenu__item.open-submenu > .submenu__nested {
  display: block;
}


.submenu__see-all {
  padding: 16px 16px 10px;
}

.submenu__see-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3B47A0;
  font-size: 14px;
  font-weight: 700;
  padding: 4px;
}

.submenu__see-all-btn svg {
  width: 24px;
  height: 24px;
  transform: rotate(90deg);
}

.submenu__footer {
  padding: 0 16px 24px;
}

.submenu__footer-btn {
  color: #3B47A0;
  font-size: 14px;
  font-weight: 700;
  padding: 4px;
}

/* ============================================
   SEARCH MODAL
   ============================================ */

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(25, 19, 95, .75);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-inner {
  position: relative;
  width: 100%;
}

.search-modal-close {
  right: 0;
  color: #FFFFFF;
  padding: 0 8px;
  display: block;
  margin-left: auto;
  margin-bottom: 22px;
}

.search-modal-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.search-form {
  display: flex;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 8px;
}

.search-input {
  flex: 1;
  border: none !important;
  padding: 8px !important;
  font-size: 16px;
  outline: none;
  font-family: inherit !important;
}
.search-input::placeholder {
  font-family: inherit !important;
}
.search-submit {
  padding: 6px 8px;
  line-height: 1;
  color: #FFFFFF;
  border-radius: 4px;
}

.search-submit svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.header__logo-desktop {
  display: block;
}

.header__logo-mobile {
  display: none;
}
.custom-header{
  background: rgba(25, 19, 95, .95);
}
.custom-header.menu-is-open,
body:has(.banner-home) .custom-header,
body:has(.banner-internal) .custom-header,
body:has(.banner-technology) .custom-header{
  background: none;
}
@media (max-width: 1024px) {
  .header__logo-desktop {
    display: none;
  }

  .header__logo-mobile {
    display: block;
  }
  html:has(.search-modal.active) .custom-header {
    opacity: 0;
  }
}

/* ============================================
   TECHNOLOGY CARD STYLES - Shared (Mobile & Desktop)
   ============================================ */
.tech-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-card__image {
  width: 100%;
  overflow: hidden;
}

.tech-card__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 288/152;
  object-fit: cover;
}

.tech-card__content {
  display: flex;
  flex-direction: column;
}

.tech-card__title {
  font-size: 20px;
  font-weight: 600;
  color: #0C083B;
  margin: 0;
}

.tech-card__description {
  font-size: 16px;
  line-height: 1.4;
  color: #0C083B;
}

.tech-card__actions {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.tech-card__btn {

  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.header .tech-card__btn--primary {
  color: #3B47A0;
  padding: 4px;
}

.header .tech-card__btn--primary:hover {
  color: #0C083B;
}

.header .tech-card__btn--secondary {
  border: 1px solid #3B47A0;
  color: #0C083B;
  padding: 11px 24px;
}

.header .tech-card__btn--secondary:hover {
  background: #3B47A0;
  color: #FFFFFF;
}
.header .see-all-btn {
  color: #3B47A0;
  font-size: 14px;
  font-weight: 700;
  padding: 4px;
}

@media (min-width: 768px) {
  .menu-overlay__body,
  .submenu__body {
    padding: 0 48px 32px;
  }
  .submenu__panel {
    padding: 0 16px;
  }
}
@media (min-width: 1025px) {
  .custom-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(25, 19, 95, 0.75);
    backdrop-filter: blur(10px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .custom-header:has(.desktop-dropdown--active)::before {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__cta {
    width: auto;
  }
  /* Header */
  .header {
    --header-height: 80px;
  }
  .header a {
    text-decoration: none;
  }
  .header__nav-item {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
  }
  .header__container {
    padding-top: 0;
    padding-bottom: 0;
  }

  .header__logo {
    height: auto;
    width: 298px;
  }

  .header__logo--hidden {
    opacity: 1;
  }

  .header__mobile-toggle {
    display: none;
  }

  .header__actions {
    flex: 1;
    justify-content: flex-end;
    gap: 36px;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .header__nav-item--active {
    color: #C2FF03;
  }

  .header__nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
  }

  .header__nav-item--active svg {
    transform: scaleY(-1);
  }

  .header__search-cta {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .header__search-btn {
    padding: 8px;
  }
  .header__search-btn:hover {
    color: #C2FF03;
  }
  .header__search-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Desktop Dropdown */
  .desktop-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    max-width: 1266px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 8px;

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 8px 32px rgba(12, 8, 59, 0.15);
  }

  .desktop-dropdown--active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .menu-dropdown-item {
    position: absolute;
    padding: 24px 40px 48px;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  .menu-dropdown-item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
  }
  .menu-dropdown-item:first-child {
    display: block;
  }

  .desktop-dropdown__container {
    display: flex;
    gap: 24px;
    max-width: 1266px;
  }

  .desktop-dropdown__title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #0C083B;
    width: 405px;
    flex-shrink: 0;
    padding-right: 80px;
  }

  .desktop-dropdown__content {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    flex: 1;
  }

  .desktop-dropdown__column--flex {
    flex: 1;
    display: none;
  }

  .desktop-dropdown__column--flex.desktop-dropdown__column--active {
    display: flex;
    flex-direction: column;
  }

  .desktop-dropdown__content-group {
    display: none;
    gap: 8px;
    grid-column: span 2;
    padding-bottom: 50px;
    margin-bottom: -50px;
  }
  .desktop-dropdown__content-group--active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .desktop-dropdown__column--card {
    width: 288px;
    max-width: 100%;
    margin-left: 32px;
    display: block;;
  }

  .desktop-dropdown__item {
    border-bottom: 1px solid #F2F2F2;
  }

  .desktop-dropdown__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15.5px 12px;
    color: #0C083B;
    font-size: 14px;
    font-weight: 500;
  }

  .desktop-dropdown__link--active,
  .desktop-dropdown__link:hover  {
    background: #F2F2F2;
    color: #0c083b;
  }

  .desktop-dropdown__link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .desktop-dropdown__see-all {
    padding: 20px 0 0;
  }


  /* Hide mobile menu elements on desktop */
  .menu-overlay,
  .submenu {
    display: none;
  }
  .search-modal {
    padding: var(--header-height) 0 0;
    z-index: 999;
  }
  .search-modal-inner {
    max-width: 1266px;
  }

  .search-form {
    padding: 28px 90px 28px 40px;
  }
  .search-modal-close {
    position: absolute;
    color: #0C083B;
    padding: 10px;
    margin: 0;
    top: 29px;
    right: 39px;
  }
  .search-modal-close:hover,
  .search-submit:hover {
    color: #C2FF03;
  }
  .search-submit svg {
    width: 32px;
    height: 32px;
  }
  .header .search-input {
    font-size: 20px;
   
  }
  .header .search-input::placeholder {
    font-size: 20px;
  }
}

@media (max-width: 1024px) {

  .header__nav,
  .header__search-cta,
  .desktop-dropdown {
    display: none;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3B47A0;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-nav:focus {
  top: 0;
}
.