/* ===== AMIS SME 2026 — Header Menu v3 =====
 * Figma node 473-25368
 * Font: Inter (loaded by theme)
 */

/* ---- Reset container ---- */
.sme-header-v3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: #fff;
    box-shadow: 0px 6px 20px 0px rgba(116, 135, 255, 0.03),
        0px 3px 6px 0px rgba(10, 27, 137, 0.03);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    z-index: 9999;
}

.td-header-menu-wrap {
    display: none;
}

.td-header-style-7 .td-header-menu-wrap-full,
.td-header-style-7 .td-header-main-menu {
    height: unset !important;
}

#td-outer-wrap {
    padding-top: 72px;
}

/* ---- Inner container ---- */
.sme-header-v3 .sme-hdr-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 48px;
    max-width: 100%;
}

/* ---- Logo ---- */
.sme-header-v3 .sme-hdr-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    padding-right: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    height: 100%;
    box-sizing: border-box;
}

.sme-header-v3 .sme-hdr-logo img.sme-logo-full {
    display: block;
    height: 36px;
    width: auto;
}

/* ---- Nav ---- */
.sme-header-v3 .sme-hdr-nav {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
}

.sme-header-v3 .sme-hdr-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ---- Nav item ---- */
.sme-header-v3 .sme-hdr-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
}

.sme-header-v3 .sme-hdr-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    height: 100%;
    color: #181D27;
    font-family: 'Inter Medium', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.2px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s;
    border-bottom: 3px solid transparent;
}

.sme-header-v3 .sme-hdr-nav-link:hover {
    color: #0066FF;
    border-bottom-color: #0066FF;
}

.sme-header-v3 .sme-hdr-nav-link:hover,
.sme-header-v3 .sme-hdr-nav-link:focus,
.sme-header-v3 .sme-hdr-nav-item.has-dropdown:hover>.sme-hdr-nav-link {
    color: #4155f5;
    text-decoration: none;
    
}

/* ---- Chevron ---- */
.sme-header-v3 .sme-hdr-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.sme-header-v3 .sme-hdr-chevron img {
    width: 100%;
    height: 100%;
    display: block;
}

.sme-header-v3 .sme-hdr-nav-item.open>.sme-hdr-nav-link .sme-hdr-chevron {
    transform: rotate(180deg);
}

/* ---- Right area ---- */
.sme-header-v3 .sme-hdr-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* ---- Language switcher ---- */
.sme-header-v3 .sme-hdr-lang {
    display: flex;
    align-items: center;
}

svg.dropdown-arrow {
    display: none;
}

.language-dropdown-toggle span.language-name.notranslate:after {
    content: url(/sites/sme/images/main-menu/ic-chevron-down.svg);
    padding-left: 4px;
    width: 16px;
    height: 16px;
}

span.language-name.notranslate {
    display: flex;
    align-items: center;
    width: fit-content;
    font-family: 'Inter medium';
}

.language-dropdown-toggle::before {
    display: none;
}

.language-dropdown {
    width: fit-content;
}

.sme-header-v3 .language-link {
    padding: 10px 12px;
}

.sme-header-v3 .language-dropdown-toggle {
    padding: 10px 16px;
}

/* ---- CTA Button ---- */
.sme-header-v3 .sme-hdr-btn-register {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 120px;
    height: 42px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0066FF, #0052CC);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter Semi Bold', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.2px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    opacity: 1;
}

.sme-header-v3 .sme-hdr-btn-register::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(90deg,
      #ff6ec4,
      #7873f5,
      #22d3ee,
      #4ade80,
      #ff6ec4);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}

.sme-header-v3 .sme-hdr-btn-register:hover {
    background: linear-gradient(135deg, #0058E5, #0044B3);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.sme-header-v3 .sme-hdr-btn-register:hover::before {
  opacity: 1;
  animation: shadowMove 4s linear infinite;
}

@keyframes shadowMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* ---- Mobile toggle ---- */
.sme-header-v3 .sme-hdr-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.sme-header-v3 .sme-hdr-mobile-toggle img {
    width: 24px;
    height: 24px;
}

/* ---- Dropdown panels ---- */
.sme-header-v3 .sme-hdr-nav-item.has-dropdown:hover>.sme-dropdown-panel {
    display: block;
}

.sme-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(24, 29, 39, 0.12);
    padding: 8px 0;
    z-index: 100;
}

.sme-dropdown-panel a {
    display: block;
    padding: 10px 20px;
    color: #181D27;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.sme-dropdown-panel a:hover {
    background: #F5F6FA;
    color: #0066FF;
}

/* ---- Mega dropdown grid ---- */
.sme-dropdown-grid {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
}

.sme-dropdown-col {
    min-width: 180px;
}

.sme-dropdown-col-narrow {
    min-width: 140px;
}

.sme-dropdown-section-title {
    font-family: 'Inter Semi Bold', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #8B93A7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
    white-space: nowrap;
}

.sme-dropdown-col a {
    white-space: nowrap;
}

/* Two-column within a mega dropdown col */
.sme-dropdown-grid-2col {
    display: flex;
    gap: 16px;
}

.sme-dropdown-grid-2col>div {
    display: flex;
    flex-direction: column;
    min-width: 170px;
}

/* ---- ===== RESPONSIVE ===== ---- */
@media (max-width: 1600px) {
    .sme-header-v3 .sme-hdr-inner {
        padding: 0 15px;
    }

    .sme-header-v3 .sme-hdr-logo {
        max-width: 200px;
    }

    .sme-header-v3 .sme-hdr-nav-link {
        padding: 8px 4px;
        font-size: 13px;
    }
}

@media (max-width: 1299px) {
    .sme-header-v3 .sme-hdr-nav {
        display: none;
    }

    .sme-header-v3 .sme-hdr-mobile-toggle {
        display: flex;
    }

    .sme-header-v3 .sme-hdr-lang,
    .sme-header-v3 .sme-hdr-right .sme-hdr-btn-register {
        display: none;
    }

    .sme-header-v3 .sme-hdr-inner {
        padding: 0 16px;
        justify-content: space-between;
    }
}


/* ---- ===== MOBILE OVERLAY ===== ---- */
.sme-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.sme-mobile-overlay.active {
    display: block;
}

.sme-mobile-panel {
    font-family: Inter, Arial, Helvetica, sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sme-mobile-pnl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sme-mobile-pnl-header .sme-mobile-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.sme-mobile-pnl-header .sme-mobile-logo-link img {
    width: 32px;
    height: 32px;
}

.sme-mobile-pnl-header .sme-mobile-logo-text {
    height: 14px;
}

.sme-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
}

.sme-mobile-close img {
    width: 20px;
    height: 20px;
}

/* Mobile nav list */
.sme-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sme-mobile-nav-item {
    border-bottom: 1px solid #F0F1F5;
}

.sme-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: #181D27;
    font-family: 'Inter Medium', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.sme-mobile-nav-link .sme-mob-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.sme-mobile-nav-item.open>.sme-mobile-nav-link .sme-mob-chevron {
    transform: rotate(180deg);
}

/* Mobile submenu */
.sme-mobile-sub {
    display: none;
    padding: 0 0 12px 16px;
    flex-direction: column;
    gap: 2px;
}

.sme-mobile-nav-item.open>.sme-mobile-sub {
    display: flex;
}

.sme-mobile-sub a {
    display: block;
    padding: 8px 0;
    color: #4A505E;
    font-size: 13px;
    line-height: 18px;
    text-decoration: none;
}

.sme-mobile-sub-section {
    padding: 10px 0 4px 0;
    font-family: 'Inter Semi Bold', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    color: #8B93A7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sme-mobile-sub-section:first-child {
    padding-top: 4px;
}

.sme-mobile-lang {
    padding: 4px 0;
    border-bottom: 1px solid #F0F1F5;
}

.sme-mobile-lang .polylang-hybrid-switcher {
    font-family: 'Inter Medium', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #181D27;
}

/* Mobile footer buttons */
.sme-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.sme-mobile-footer .sme-hdr-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 12px 20px;
    border: 2px solid #0066FF;
    border-radius: 12px;
    color: #0066FF;
    font-family: 'Inter Semi Bold', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
}