/* ========== Font faces (from footer) ========== */
@font-face {
    font-family: 'icomoon';
    src: url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/icomoon110724.woff2') format('woff2'),
     url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/icomoon110724.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Material Icons Round';
    font-style: normal;
    font-weight: 400;
    src: url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/MaterialSymbolsRounded-Regular.ttf') format('truetype');
}

.material-icons-round {
    font-family: 'Material Icons Round';
}

@font-face {
    font-weight: 500;
    font-family: "Galano Grotesque";
    font-style: italic;
    src: url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/GalanoGrotesque-MediumItalic.woff2') format("woff2"),
     url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/GalanoGrotesque-MediumItalic.woff') format("woff");
}

@font-face {
    font-weight: 500;
    font-family: "Galano Grotesque";
    font-style: normal;
    src: url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/GalanoGrotesque-Medium.woff2') format("woff2"),
     url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/GalanoGrotesque-Medium.woff') format("woff");
}

@font-face {
    font-weight: normal;
    font-family: "Galano Grotesque";
    font-style: italic;
    src: url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/GalanoGrotesque-Italic.woff2') format("woff2"),
     url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/GalanoGrotesque-Italic.woff') format("woff");
}

@font-face {
    font-weight: normal;
    font-family: "Galano Grotesque";
    font-style: normal;
    src: url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/GalanoGrotesque-Regular.woff2') format("woff2"),
     url('https://storage.googleapis.com/static1-us-zyxel-com/fonts/GalanoGrotesque-Regular.woff') format("woff");
}

/* ========== Variables & reset (header + footer merged) ========== */
:root {
    --zyxel-blue: #00B2FF;
    --nav-text: #333;
    --sub-text: #666;
    --border-color: #eee;
    --max-width: 1110px;
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', 'Noto Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--nav-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== Header ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header {
    width: 100%;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    height: var(--header-height);
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--zyxel-blue);
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    color: var(--nav-text);
    position: relative;
    transition: color .2s;
    user-select: none;
    line-height: 1;
}

.nav-item:hover {
    color: var(--zyxel-blue);
}

.nav-item.active {
    color: var(--zyxel-blue) !important;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 14px solid #fff;
    display: none;
    filter: drop-shadow(0 -2px 1px rgba(0,0,0,.15));
    z-index: 1001;
}

.nav-item.active::after {
    display: block;
}

.nav-chevron {
    margin-left: 10px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    color: inherit;
    transition: transform .3s;
    font-family: 'icomoon';
    font-size: 0.5rem;
    font-style: normal;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
}

.nav-chevron::before {
    content: "\e907";
    -webkit-text-stroke: 0.35px currentColor;
    paint-order: stroke fill;
}

/* Down arrow when closed (glyph points down at 0deg) */
.nav-chevron {
    transform: rotate(0deg);
}

/* Up arrow when open */
.nav-item.active .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.search-icon {
    color: var(--nav-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: color .2s;
}

.search-icon:hover {
    color: var(--zyxel-blue);
}

.search-icon .material-icons-round {
    font-size: 24px;
    display: block;
    line-height: 1;
}

.search-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 2000;
    display: none;
}

.search-overlay-backdrop.show {
    display: block;
}

.search-overlay-panel {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: #fff;
    border: 1px solid var(--zyxel-blue);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    z-index: 2001;
    display: none;
    overflow: hidden;
}

.search-overlay-panel.show {
    display: block;
}

.search-overlay-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.search-overlay-input-wrap .search-magnify {
    color: #000;
    flex-shrink: 0;
    font-family: 'icomoon';
    font-size: 20px;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.search-overlay-input-wrap .search-magnify::before {
    content: "\e94b";
}

.search-overlay-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    color: var(--nav-text);
    background: transparent;
}

.search-overlay-input-wrap input::placeholder {
    color: var(--sub-text);
}

.search-overlay-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
    font-family: 'icomoon';
    font-size: 20px;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
}

.search-overlay-close::before {
    content: "\e908";
}

.search-overlay-close:hover {
    color: var(--zyxel-blue);
}

.search-overlay-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
}

.search-overlay-tip-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.search-overlay-tip-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--zyxel-blue);
    font-size: 18px;
    font-weight: 400;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: 'icomoon';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.search-overlay-tip-icon::before {
    content: "\e90f";
}

.search-overlay-tip-text {
    font-size: 14px;
    color: var(--nav-text);
    line-height: 1.5;
    margin: 0;
}

.search-overlay-tip-right {
    flex-shrink: 0;
}

.search-overlay-tip-right a {
    color: var(--zyxel-blue);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.search-overlay-tip-right a:hover {
    text-decoration: underline;
}

.search-overlay-chevron {
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    font-family: 'icomoon';
    font-size: 0.85rem;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
    color: inherit;
    transform: rotate(-90deg);
}

.search-overlay-chevron::before {
    content: "\e907";
}

.btn-contact {
    background: var(--zyxel-blue);
    color: #fff !important;
    width: 135px;
    height: 48px;
    padding: 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: box-shadow .25s ease;
    opacity: 1 !important;
}

.btn-contact:hover {
    background: #007aff;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.3), 0 0 18px rgba(0, 122, 255, 0.1);
    opacity: 1 !important;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: calc(var(--header-height) + 1px);
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    display: none;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.mega-menu.show {
    display: block;
}

/* ABOUT submenu */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 265px;
    gap: 5px;
    width: 100%;
}

#about .about-grid .about-col {
    margin-top: -8px;
}

.about-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.about-item {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 10px;
    border-radius: 4px;
}

.about-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px 0;
    color: var(--nav-text);
    transition: color .2s ease;
}

.about-item:hover h3 {
    color: var(--zyxel-blue);
}

.about-item p {
    font-size: 14px;
    color: var(--sub-text);
    line-height: 1.5;
    margin: 0;
}

/* Solutions/Products Layout */
.menu-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.menu-left-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 110%;
}

.menu-header-row {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#solutions .menu-header-row {
    margin-right: -10px;
    padding-right: 10px;
}

#solutions .all-menu-link {
    color: var(--zyxel-blue);
}

#solutions .all-menu-link .all-menu-link-chevron {
    color: var(--zyxel-blue);
}

#products .all-menu-link {
    color: var(--zyxel-blue);
}

#products .all-menu-link .all-menu-link-chevron {
    color: var(--zyxel-blue);
}

.all-menu-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    color: var(--nav-text);
    transition: color .25s ease;
}

.all-menu-link:hover {
    color: var(--zyxel-blue);
}

.all-menu-link-text {
    position: relative;
    display: inline-block;
}

.all-menu-link-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: var(--zyxel-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.all-menu-link:hover .all-menu-link-text::after {
    transform: scaleX(1);
}

.all-menu-link-chevron {
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    color: inherit;
    vertical-align: bottom;
}

.all-menu-link-chevron.material-icons-round {
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    -webkit-text-stroke: 0.35px currentColor;
    paint-order: stroke fill;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-col ul li {
    padding: 12px 0;
}

.menu-col ul li a {
    text-decoration: none;
    color: var(--sub-text);
    font-size: 15px;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    transition: color .2s;
    line-height: 1.2;
}

.menu-col ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--zyxel-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.menu-col ul li a:hover {
    color: var(--zyxel-blue);
}

.menu-col ul li a:hover::after {
    transform: scaleX(1);
}

.menu-card-img {
    display: block;
    background: #111;
    color: #fff;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 250px;
    width: 250px;
    padding: 0;
    text-decoration: none;
    justify-self: end;
}

.menu-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    opacity: .9;
}

.menu-card-content {
    position: relative;
    z-index: 2;
    padding: 18px;
    max-width: 95%;
    color: #fff;
}

.menu-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
}

.menu-card-content p {
    margin: 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    opacity: .9;
    color: #fff;
}

.menu-card-content div {
    color: #fff;
}

/* SUPPORT MENU */
.mega-menu.support-menu {
    padding: 8px 0 30px;
}

.support-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 265px;
    gap: 5px;
    align-items: start;
}

.support-link {
    text-decoration: none;
    color: inherit;
    max-width: 460px;
}

.support-link h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    transition: .2s;
}

.support-link p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--sub-text);
}

.support-link:hover h3 {
    color: var(--zyxel-blue);
}

.overlay {
    position: fixed;
    top: calc(var(--header-height) + 1px);
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    display: none;
    z-index: 900;
}

.overlay.show {
    display: block;
}

/* ========== Footer ========== */
.page-placeholder {
    flex: 1;
    min-height: 60vh;
}

.footer {
    background-color: rgb(0, 178, 255);
    color: #fff;
    width: 100%;
    margin-top: auto;
}

.footer .footer-col h3,

.footer .footer-col p,

.footer .footer-link,

.footer .footer-link .footer-link-text {
    color: #fff !important;
}

.footer-main {
    width: 100%;
    max-width: 1110px;
    margin: 0 auto;
    padding: 72px 24px 40px;
    min-height: 325px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

.footer-col {
    flex: 0 0 205px;
    padding-left: 12px;
    padding-right: 12px;
}

.footer-col h3 {
    font-family: 'Galano Grotesque', 'Noto Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: #fff !important;
}

.footer-col p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
    font-weight: 400;
    color: #fff !important;
}

.footer-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s;
    opacity: 1 !important;
}

.footer-btn:hover {
    background-color: #fff;
    color: #007aff;
    opacity: 1 !important;
}

.footer-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 1 !important;
}

.footer-link-text {
    position: relative;
    font-weight: 600;
}

.footer-link-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-link:hover .footer-link-text::after {
    transform: scaleX(1);
}

.footer-link .chevron {
    display: inline-block;
    font-family: 'icomoon';
    font-size: 0.77rem;
    font-style: normal;
    transform: rotate(-90deg);
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-link .chevron::before {
    content: "\e907";
}

.footer-col > .footer-link {
    margin-top: 16px;
}

.footer-links-stack .footer-link {
    display: inline-flex;
    margin-bottom: 10px;
}

.footer-bar {
    background-color: rgb(0, 154, 255);
    width: 100%;
    min-height: 75px;
    display: flex;
    align-items: center;
}

.footer-bar-inner {
    width: 1110px;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
}

.footer-bar-copy {
    font-size: 16px;
    color: #fff !important;
    text-align: left;
    margin: 0;
    padding: 10px 0;
}

.footer-bar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    text-align: right;
    opacity: 1 !important;
}

.footer-bar-links a {
    position: relative;
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    opacity: 1 !important;
    padding: 10px 0;
}

.footer-bar-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: 1px;
    background-color: #fff !important;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    opacity: 1 !important;
}

.footer-bar-links a:hover::after {
    transform: scaleX(1);
    opacity: 1 !important;
}

.footer-social {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    padding-left: 5px;
    padding-right: 5px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    max-width: 29px;
    width: 29px;
    height: 29px;
    margin: 0 4px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    color: #00aaff;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.footer-social a:first-child {
    margin-left: 0;
}

.footer-social a:last-child {
    margin-right: 0;
}

.footer-social a:hover {
    background-color: #007aff;
    border: 1px solid #007aff;
}

.footer-social svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.footer-social-icon {
    font-size: 18px;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.footer-social-icon--linkedin {
    font-family: 'icomoon';
    font-size: 29px;
    font-weight: 400;
}

.footer-social-icon--linkedin::before {
    content: "\e902";
}

.footer-social-icon--twitter {
    font-family: 'icomoon';
    font-size: 29px;
    font-weight: 400;
}

.footer-social-icon--twitter::before {
    content: "\e975";
}

.footer-social-icon--youtube {
    font-family: 'icomoon';
    font-size: 29px;
    font-weight: 400;
}

.footer-social-icon--youtube::before {
    content: "\e905";
}

.footer-social a:first-child,

.footer-social a:nth-child(2),

.footer-social a:nth-child(3) {
    background-color: rgb(0, 178, 255);
    color: #fff;
}

.footer-social a:first-child:hover,

.footer-social a:nth-child(2):hover,

.footer-social a:nth-child(3):hover {
    background-color: rgb(0, 178, 255);
    color: #007aff;
}

.logo-zyxel {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.logo-zyxel img {
    width: 205px !important;
    height: auto !important;
    filter: brightness(0) invert(1);
    vertical-align: middle;
}

.logo-zyxel span {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    opacity: 0.95;
    margin-top: 2px;
}

.scroll-top {
    position: fixed;
    bottom: 36px;
    right: 35px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    color: #00aaff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    z-index: 1000;
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.scroll-top-icon {
    font-family: 'icomoon';
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    transform: rotate(180deg);
}

.scroll-top-icon::before {
    content: "\e907";
}

/* ========== Mobile menu (toggle + backdrop) ========== */
.header-search-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--nav-text);
    transition: color .2s;
}

.header-search-mobile:hover {
    color: var(--zyxel-blue);
}

.header-search-mobile .material-icons-round {
    font-size: 24px;
}

.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--nav-text);
    transition: color .2s;
}

.header-menu-toggle:hover {
    color: var(--zyxel-blue);
}

.header-menu-toggle .header-menu-icon {
    font-size: 24px;
    display: block;
}

/* Two-bar menu open icon (mobile): CSS-only, pill-shaped lines */
.header-menu-toggle .navbar-toggler-icon {
    position: relative;
    width: 20px;
    height: 2px;
    display: block;
}

.header-menu-toggle .navbar-toggler-icon::before,
.header-menu-toggle .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    border-radius: 0;
    transition: all 0.3s ease;
}

.header-menu-toggle .navbar-toggler-icon::before {
    top: -5px;
}

.header-menu-toggle .navbar-toggler-icon::after {
    bottom: -5px;
}

/* When menu is open: transform two bars into X */
.header-menu-toggle[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: translateY(5px) rotate(45deg);
}

.header-menu-toggle[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1001;
    opacity: 0;
    transition: opacity .25s ease;
}

.mobile-menu-backdrop.show {
    display: block;
    opacity: 1;
}

/* ========== IMPORTANT: Mobile breakpoint at 992px – canonical transition to mobile layout ========== */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .header {
        height: 76px !important;
    }

    .header .container {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        height: 76px;
    }

    .header-search-mobile {
        display: flex !important;
        flex: 1;
        justify-content: flex-start;
    }

    .header .logo {
        flex: 0 0 auto;
    }

    .header-menu-toggle {
        display: flex !important;
        flex: 1;
        justify-content: flex-end;
    }

    .header .nav-right-group {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        align-content: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        z-index: 1002;
        transition: right .3s ease;
        overflow-y: auto;
    }

    .header.mobile-menu-open {
        z-index: 1002;
    }

    .header.mobile-menu-open .nav-right-group {
        right: 0;
    }

    .mobile-menu-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        min-height: 56px;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .mobile-menu-drawer-search,
    .mobile-menu-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: none;
        background: none;
        cursor: pointer;
        color: var(--nav-text);
        transition: color .2s;
    }

    .mobile-menu-drawer-search:hover,
    .mobile-menu-drawer-close:hover {
        color: var(--zyxel-blue);
    }

    .mobile-menu-drawer-search .material-icons-round {
        font-size: 24px;
    }

    .mobile-menu-drawer-close .material-icons-round {
        font-size: 38px;
        font-weight: 300;
        -webkit-text-stroke: 0.6px #fff;
        paint-order: stroke fill;
    }

    .mobile-menu-drawer-logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-drawer-logo img {
        width: 125px;
        height: auto;
    }

    .mega-menu {
        display: none !important;
    }

    .overlay {
        display: none !important;
    }

    .header .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        height: auto;
        border-bottom: none;
        align-items: stretch;
        text-align: left;
    }

    .header .nav-item-row {
        border-bottom: 1px solid var(--border-color);
    }

    .header .nav-item {
        height: auto;
        padding: 24px 24px;
        font-size: 16px;
        font-weight: 500;
        color: var(--nav-text);
        border-bottom: none;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
    }

    .header .nav-item:hover {
        color: rgb(0, 178, 255);
    }

    .header .nav-item-row.active .nav-item {
        color: var(--zyxel-blue) !important;
        border-bottom: 1px solid var(--border-color);
    }

    .header .nav-item-row.active .nav-chevron {
        transform: rotate(180deg);
    }

    .header .nav-item::after {
        display: none;
    }

    .header .nav-submenu {
        display: none;
        padding: 0 24px 16px 40px;
        background: #fff;
        width: 100%;
        box-sizing: border-box;
    }

    .header .nav-item-row.active .nav-submenu {
        display: block;
    }

    .header .nav-submenu a {
        display: block;
        padding: 20px 24px 20px 0;
        margin-left: -40px;
        margin-right: -24px;
        padding-left: 40px;
        color: var(--sub-text);
        text-decoration: none;
        font-size: 15px;
        line-height: 1.3;
        border-bottom: 1px solid var(--border-color);
    }

    .header .nav-submenu a:last-child {
        padding-bottom: 8px;
        border-bottom: none;
    }

    .header .nav-submenu a:hover {
        color: var(--zyxel-blue);
    }

    .header .nav-actions {
        flex-direction: column;
        padding: 20px 24px;
        gap: 12px;
        height: auto;
        border-top: 1px solid var(--border-color);
        margin-top: auto;
    }

    .header .nav-actions .search-icon {
        display: none;
    }

    .header .btn-contact {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .header .search-icon {
        width: 100%;
        height: 48px;
        justify-content: flex-start;
        padding-left: 0;
    }

    .header .search-icon .material-icons-round {
        font-size: 24px;
    }

    .mega-menu {
        padding: 16px 0 24px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .mega-menu .container {
        padding: 0 16px;
    }

    .menu-layout {
        grid-template-columns: 1fr;
    }

    .menu-items-grid {
        grid-template-columns: 1fr;
    }

    .menu-card-img {
        width: 100%;
        max-width: 100%;
        height: 200px;
        justify-self: start;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .search-overlay-panel {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        transform: none;
        height: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .search-overlay-input-wrap {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin: 16px;
        padding: 8px 12px;
    }

    .search-overlay-input-wrap:hover,
    .search-overlay-input-wrap:focus-within {
        border-color: rgb(8, 180, 254);
    }

    .search-overlay-input-wrap input::placeholder {
        opacity: 0.55;
    }

    .search-overlay-tip {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .search-overlay-tip-left {
        align-items: flex-end;
    }

    .search-overlay-tip-text,
    .search-overlay-tip-right a {
        opacity: 0.85;
    }

    /* Full-width border under the search row (above tip content) */
    .search-overlay-tip::before {
        content: '';
        display: block;
        height: 1px;
        background: var(--border-color);
        margin: 0 -16px 12px -16px;
        width: calc(100% + 32px);
    }

    /* Full-width border under the Finding model number row */
    .search-overlay-tip::after {
        content: '';
        display: block;
        height: 1px;
        background: var(--border-color);
        margin: 12px -16px 0 -16px;
        width: calc(100% + 32px);
    }

    /* Align "Finding model number" with "Tip:" text (icon width 30px + gap 10px) */
    .search-overlay-tip-right {
        margin-left: 40px;
    }

    .footer-main {
        padding: 48px 20px 32px;
        justify-content: center;
        align-items: center;
    }

    .footer-col {
        flex: 0 0 100%;
        text-align: center;
        position: relative;
        border-bottom: none;
    }

    .footer-col:not(:last-child) {
        padding-bottom: 40px;
    }

    .footer-col::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 1px;
        background: #007aff;
    }

    .footer-col:last-child::after {
        display: none;
    }

    .footer-col .footer-links-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col .footer-btn {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
        justify-content: space-evenly;
    }

    .footer-social a {
        flex: 0 0 auto;
    }

    .footer-bar-inner {
        grid-template-columns: 1fr;
        padding: 16px 40px 40px;
        gap: 16px;
        text-align: center;
        align-items: center;
    }

    .footer-bar-copy {
        text-align: center;
    }

    .footer-bar-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
        justify-content: center;
        justify-items: center;
        text-align: center;
    }

    .scroll-top {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 1100px) {
    .container {
        padding: 0 16px;
    }
}

/* Desktop: 993px and up – enforces desktop layout (mirrors 992px mobile breakpoint) */
@media (min-width: 993px) {
    .header-search-mobile,
    .header-menu-toggle,
    .mobile-menu-drawer-header,
    .mobile-menu-backdrop {
        display: none !important;
    }

    .header .nav-links {
        display: flex !important;
    }

    .header .nav-item-row {
        display: flex;
        align-items: center;
        height: 100%;
    }
}