.am-lang .am-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #232323;
    padding: 6px 4px;
}
.am-lang .am-lang-toggle img,
.am-lang .dropdown-item img {
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.am-lang .am-lang-toggle i {
    font-size: 12px;
}
.am-lang .dropdown-menu {
    min-width: 200px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px 0;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.am-lang .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    font-size: 14px;
    color: #232323;
}
.am-lang .dropdown-item.active,
.am-lang .dropdown-item:hover {
    background: #efefef;
    color: #174c81;
}

/* Keep language selection at the upper right on desktop and mobile. */
header .header-top-bar { display: block !important; height: auto; overflow: visible; z-index: 100000; }
header .header-top-bar + .navbar { top: 45px; }
.header-top-bar .tel_mail { display: flex; align-items: center; }
.header-top-bar .am-top-actions { margin-left: auto; gap: 20px; padding-right: 0; }
.header-top-bar .am-lang { position: relative; flex-shrink: 0; }
.am-lang .am-lang-toggle { background: transparent; border: 0; cursor: pointer; min-height: 44px; }
.am-lang .udem-header-top__lang-flag { width: 28px; height: 20px; flex-shrink: 0; border-radius: 2px; object-fit: contain; }
.am-lang .am-lang-toggle:focus-visible { outline: 2px solid #174c81; outline-offset: 2px; }
.header-top-bar .am-lang .dropdown-menu { z-index: 1050; right: 0; left: auto; }
@media (max-width: 575px) {
    .header-top-bar .tel_mail { min-width: 0; padding-left: 0; flex-wrap: wrap; gap: 0 10px; }
    .header-top-bar .tel_mail > span { font-size: 11px; line-height: 20px; margin-right: 0 !important; }
    .header-top-bar .tel_mail i { display: none; }
    .header-top-bar .am-top-actions { gap: 0; padding-left: 6px; }
    .am-lang .am-lang-toggle { font-size: 13px; gap: 5px; }
}

/* Preserve the banner typography when its title is an H1. */
.banner_ .page-title-extra-small .banner_title { font-size: 30px; line-height: 40px; }
@media (max-width: 992px) {
    .banner_ .page-title-extra-small .banner_title { font-size: 36px; line-height: 44px; }
}

/* Certificate lookup follows the reference: generous spacing and a two-column table. */
.am-certificate-query .am-certificate-intro { margin-bottom: 44px; color: #707070; }
.am-certificate-query form { width: 100%; max-width: 720px; margin: 0 auto 42px; }
.am-certificate-input-row { display: flex; gap: 12px; }
.am-certificate-input-row .form-control { flex: 1; min-width: 0; margin: 0; }
.am-certificate-input-row .btn { flex-shrink: 0; border-radius: 4px; }
.am-certificate-message { max-width: 930px; margin: 24px auto; padding: 15px 20px; background: #f4f4f4; text-align: center; color: #333; }
.am-certificate-result { max-width: 930px; margin: 0 auto; }
.am-certificate-table { width: 100%; border-collapse: collapse; color: #707070; font-size: 18px; line-height: 30px; table-layout: fixed; }
.am-certificate-table th, .am-certificate-table td { border: 1px solid #777; padding: 10px 14px; text-align: center; vertical-align: middle; overflow-wrap: anywhere; white-space: pre-line; font-weight: 400; }
.am-certificate-table th { width: 24%; background: #efefef; }
.am-certificate-image-wrap { text-align: center; margin-top: 30px; }
.am-certificate-image-wrap img { width: auto; max-width: 100%; max-height: 900px; }
@media (max-width: 575px) {
    .am-certificate-query .fnp_title { font-size: 32px; line-height: 1.25; }
    .am-certificate-input-row { flex-direction: column; }
    .am-certificate-table { font-size: 14px; line-height: 22px; }
    .am-certificate-table th { width: 37%; }
    .am-certificate-table th, .am-certificate-table td { padding: 10px 8px; }
}

/* Compact banners without fixed-height utility rows. */
.banner_.am-page-banner { position: relative; height: auto !important; min-height: 0; padding: 24px 0; background-color: #174c81; }
.am-page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.am-page-banner > .container { position: relative; z-index: 1; }
.am-page-banner .row { height: auto !important; min-height: 0; }
.am-page-banner .page-title-extra-small .banner_title { font-size: 30px; line-height: 1.25; letter-spacing: -.5px; text-align: left; }
.home_slider.am-home-slider { height: clamp(320px, 42vw, 520px); min-height: 0; }
.am-home-slider .slider_title { font-size: clamp(30px, 4vw, 56px); line-height: 1.12; }
.am-home-breadcrumb { padding: 12px 0; background: #f7f7f7; }
.am-breadcrumb { margin-top: 10px; color: #fff; font-size: 14px; line-height: 1.6; }
.am-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; list-style: none; }
.am-breadcrumb li { display: inline-flex; align-items: baseline; max-width: 100%; overflow-wrap: anywhere; }
.am-breadcrumb a { color: inherit; text-decoration: none; }
.am-breadcrumb a:hover, .am-breadcrumb a:focus-visible { color: inherit; text-decoration: underline; }
.am-breadcrumb [aria-current="page"] { font-weight: 600; }
.am-breadcrumb-separator { margin: 0 10px; opacity: .7; }
.am-home-breadcrumb .am-breadcrumb { margin: 0; color: #525252; }
@media (max-width: 575px) {
    .banner_.am-page-banner { padding: 18px 0; }
    .am-page-banner .page-title-extra-small .banner_title { font-size: 24px; }
    .am-breadcrumb { font-size: 12px; }
    .am-breadcrumb-separator { margin: 0 7px; }
}
