.hn5 {
    position: relative;
    z-index: 1025;
    background: #4035bd;
    color: #fff;
    box-shadow: 0 4px 14px rgba(31,24,94,.12);
}

.hn5 * {
    box-sizing: border-box;
}

.hn5 [hidden] {
    display: none !important;
}

.hn5-container {
    position: relative;
    max-width: 1320px;
    margin: auto;
    padding: 0 20px;
}

.hn5-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
}

.hn5-trigger,
.hn5-mobile {
    border: 0;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 15px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 7px;
    white-space: nowrap;
    transition: background .18s;
}

.hn5-trigger:hover,
.hn5-trigger[aria-expanded="true"] {
    background: rgba(255,255,255,.15);
}

.hn5-trigger:focus-visible,
.hn5-mobile:focus-visible {
    outline: 2px solid white;
    outline-offset: -3px;
}

.hn5-arrow {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform .18s;
}

.hn5-trigger[aria-expanded="true"] .hn5-arrow,
.hn5-mobile[aria-expanded="true"] .hn5-arrow {
    transform: rotate(225deg);
}

.hn5-panel {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    padding: 26px 30px;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e7e7f1;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 50px rgba(25,22,75,.18);
    max-height: 65vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: hn5-reveal .18s ease-out;
}

@keyframes hn5-reveal {
    from {opacity: 0; transform: translateY(-5px);}
    to {opacity: 1; transform: translateY(0);}
}

.hn5-heading {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
}

.hn5-heading strong {
    font-size: 23px;
    font-weight: 750;
    color: #17213a;
}

.hn5-heading p {
    font-size: 13px;
    color: #64748b;
    margin: 6px 0 0;
}

.hn5-provinces {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px 30px;
}

.hn5-countries {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 5px 20px;
}

.hn5-group h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .65px;
    font-weight: 750;
    color: #5145e5;
    margin: 0 0 10px;
}

.hn5-panel a {
    display: block;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 7px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hn5-panel a:hover,
.hn5-panel a:focus-visible {
    color: #5145e5;
    background: #f0efff;
}

.hn5-footer {
    border-top: 1px solid #edf0f5;
    margin-top: 22px;
    padding-top: 12px;
}

.hn5-footer a {
    color: #5145e5;
    font-weight: 700;
}

.hn5-mobile {
    display: none;
}

@media(max-width:1199px) {
    .hn5-trigger {
        font-size: 12px;
        padding: 14px 5px;
        gap: 5px;
    }
}

@media(max-width:991px) {
    .hn5-container {
        padding: 0 14px;
    }

    .hn5-mobile {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .hn5-items {
        display: none;
        max-height: 65vh;
        overflow-y: auto;
        padding-bottom: 10px;
    }

    .hn5-items.hn5-open {
        display: block;
    }

    .hn5-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 13px;
        font-size: 14px;
    }

    .hn5-panel {
        position: static;
        max-height: none;
        padding: 18px;
        border-radius: 10px;
        box-shadow: none;
        margin-bottom: 8px;
    }

    .hn5-provinces,
    .hn5-countries {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 15px;
    }

    .hn5-heading strong {
        font-size: 19px;
    }

    .hn5-panel a {
        font-size: 13px;
        padding: 7px 4px;
    }
}

@media(max-width:360px) {
    .hn5-provinces,
    .hn5-countries {
        grid-template-columns: 1fr;
    }
}

@media(prefers-reduced-motion:reduce) {
    .hn5 * {
        animation: none !important;
        transition: none !important;
    }
}
