/* Additions on top of the purchased template CSS (kept separate so template files stay untouched). */

/* Menu / footer links jump to these sections; keep them clear of the sticky header. */
#about, #chairman, #services, #job-categories {
    scroll-margin-top: 110px;
}

.contact-map {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 6px;
}

/* Paragraph HTML from the RMS editor arrives wrapped in <p>; keep the template's original spacing. */
.testimonial-content blockquote p,
.chairman-message p:last-child {
    margin-bottom: 0;
}
.chairman-message p {
    text-align: justify;
}

/* The menu is now edited by staff and can have more items than the template's original: keep it on ONE line.
   (Below 1200px the template switches to its mobile menu, so only the desktop widths need this.)
   !important because the template's header rules are very specific (including the sticky-header variant). */
@media (min-width: 1200px) {
    #menu > ul.menu > li > a { padding-left: 10px !important; padding-right: 10px !important; }
}
/* The header content is only 1200px wide on EVERY desktop width (1440, 1920, ...), so the compact type applies to all of them:
   at 14px the 7 default items need 840px and only 825px are available, which dropped "Contact" onto a second line. */
@media (min-width: 1200px) {
    #menu > ul.menu > li > a { font-size: 13px !important; letter-spacing: 0 !important; }
}

/* ---- Login button (top bar) + its drop-down; editable in the RMS: Web Content > Site Settings > Identity ---- */
.top_bar .top-login {
    padding-left: 14px;
    padding-right: 0;
    border-right: 0;
    z-index: 1002;
}
.top_bar .top-login-toggle {
    display: inline-block;
    height: 34px;
    line-height: 32px;
    padding: 0 16px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
}
.top_bar .top-login-toggle .fa { font-size: 14px; }
.top_bar .top-login-toggle .fa-angle-down { margin-left: 4px; }
.top_bar .top-login:hover .top-login-toggle,
.top_bar .top-login:focus-within .top-login-toggle {
    background-color: #f9a700;
    border-color: #f9a700;
    color: #223645;
}
.top_bar .top-login-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-top: 3px solid #f9a700;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    line-height: normal;
}
.top_bar .top-login:hover .top-login-menu,
.top_bar .top-login:focus-within .top-login-menu { display: block; }
.top_bar .top-login-menu li { display: block; margin: 0; }
.top_bar .top-login-menu a {
    display: block;
    padding: 10px 20px;
    color: #223645;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.top_bar .top-login-menu a:hover { background: #f4f6f8; color: #f9a700; }

/* below 1200px the top bar is hidden by the template: the same links live at the end of the mobile menu */
.login-mobile-item { display: none !important; }
@media (max-width: 1199px) {
    .login-mobile-item { display: block !important; }
}
