/* Keep the original transparent wordmark centered without a white backing plate. */
.header-logo img,
.mobile-logo img,
.footer-logo2 img,
.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90px;
    margin: auto;
    object-fit: contain;
    object-position: center;
}

.mobile-logo > a,
.footer-logo2 img,
.footer-logo img {
    width: min(340px, 100%);
}

.mobile-logo,
.footer-logo2,
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-logo > a,
.footer-logo2 > a,
.footer-logo > a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0;
    background: transparent;
}

.header-layout2 {
    --logo-panel-width: clamp(360px, 26vw, 460px);
}

.header-layout2 .menu-area > .container-fluid {
    padding: 0 24px 0 0;
}

.header-layout2 .menu-area > .container-fluid > .row {
    display: grid;
    grid-template-columns: var(--logo-panel-width) minmax(0, 1fr) auto;
    gap: 20px;
    margin: 0;
    min-height: 112px;
}

.header-layout2 .menu-area > .container-fluid > .row > .col-auto {
    width: auto;
    min-width: 0;
    padding: 0;
}

.header-layout2 .menu-area .logo-bg-shape {
    width: var(--logo-panel-width);
    pointer-events: none;
}

.header-layout2 .header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 20px 26px;
}

.header-layout2 .header-logo > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
}

.header-layout2 .main-menu {
    position: relative;
    z-index: 3;
    width: 100%;
}

.header-layout2 .main-menu > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, .9vw, 20px);
}

.header-layout2 .main-menu > ul > li {
    margin: 0;
}

.header-layout2 .main-menu > ul > li > a {
    font-size: clamp(14px, .9vw, 16px);
    white-space: nowrap;
}

/* Reduce the desktop menu panel by 15%, without resizing the wordmark.
   Account for the logo's aspect ratio when it makes the row taller than 112px. */
@media (min-width: 1400px) {
    .header-layout2 .menu-area > .container-fluid > .row {
        min-height: 95.2px;
    }

    .header-layout2 .header-logo {
        padding-block: calc(17px - (var(--logo-panel-width) - 52px) * 0.015166667);
    }

    .header-layout2 .main-menu > ul > li > a {
        padding-block: 29.5px;
    }
}

@media (max-width: 1799px) {
    .header-layout2 .header-button .as-btn {
        display: none !important;
    }
}

/* Switch to the existing drawer before eight desktop links can crowd the logo. */
@media (max-width: 1399px) {
    .header-layout2 .main-menu {
        display: none !important;
    }

    .header-layout2 .as-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .header-layout2 .menu-area > .container-fluid > .row > .col-auto:nth-child(2) {
        justify-self: end;
    }

    .header-layout2 .header-logo {
        padding: 18px 24px;
    }
}

@media (max-width: 991px) {
    .header-layout2 {
        --logo-panel-width: clamp(290px, 48vw, 360px);
    }

    .header-layout2 .menu-area > .container-fluid > .row {
        min-height: 96px;
    }
}

@media (max-width: 575px) {
    .header-layout2 {
        --logo-panel-width: calc(100% - 80px);
    }

    .header-layout2 .menu-area > .container-fluid {
        padding: 0 14px 0 0;
    }

    .header-layout2 .menu-area > .container-fluid > .row {
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 14px;
        min-height: 94px;
    }

    .header-layout2 .header-logo {
        padding: 16px 18px;
    }

    .header-layout2 .header-button {
        display: none;
    }

    .header-layout2 .header-logo img {
        width: 100%;
        max-height: 72px;
    }
}