/* Overrides for the static copy: icon-font files were not in the saved pages,
   so the menu chevrons are drawn with CSS instead. */
#main-menu .navbar-nav .menu-item-has-children > .mobile-dropdown {
  display: block; position: absolute; top: 0; right: 0;
  width: 44px; height: 44px; cursor: pointer; padding: 0; z-index: 99;
}
#main-menu .navbar-nav .menu-item-has-children > .mobile-dropdown::before {
  content: ""; position: absolute; top: 16px; left: 16px;
  width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
#main-menu .navbar-nav .menu-item-has-children.mobile-visible > .mobile-dropdown::before {
  transform: rotate(-135deg); top: 20px;
}
@media (min-width: 992px) {
  #main-menu .navbar-nav .menu-item-has-children > .mobile-dropdown { display: none; }
}
@media (max-width: 991px) {
  #main-menu .navbar-nav li.menu-item-has-children { position: relative; }
}


/* Footer: solid blue, white text, no boxes */
#footer, #footer .upper-footer, #footer .lower-footer { background: #1f3a6e !important; background-image: none !important; }
#footer .footer_widget, #footer .textwidget, #footer .widget_text {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important;
}
#footer .footer_widget { margin-bottom: 22px; }
#footer, #footer p, #footer span, #footer strong, #footer a, #footer .textwidget, #footer .widget-title, #footer .widget-title span { color: #ffffff !important; }
#footer a { text-decoration: underline; text-underline-offset: 2px; }
#footer .widget-title { text-transform: uppercase; letter-spacing: .5px; }
#footer .lower-footer { border-top: 1px solid rgba(255,255,255,.25); }
#footer .map-link { display: inline-block; margin-top: 4px; }

/* Homepage */
.hp-hero { position: relative; overflow: hidden; color: #fff; padding: 64px 20px 72px;
  background: linear-gradient(135deg, #0b2a5b 0%, #12478f 55%, #1f6fd1 100%); }
.hp-hero svg { position: absolute; right: -40px; bottom: -10px; width: 420px; max-width: 80%; opacity: .22; pointer-events: none; }
.hp-hero .inner { position: relative; max-width: 1100px; margin: 0 auto; }
.hp-hero .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; opacity: .85; margin: 0 0 12px; }
.hp-hero h1 { color: #fff; font-size: 32px; line-height: 1.2; margin: 0 0 14px; max-width: 640px; }
.hp-hero p.lead { font-size: 16px; line-height: 1.6; max-width: 620px; margin: 0 0 26px; color: #eaf2ff; }
.hp-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-btn { display: inline-block; padding: 12px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px; border: 2px solid #fff; }
.hp-btn.solid { background: #fff; color: #12478f; }
.hp-btn.ghost { background: transparent; color: #fff; }
.hp-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); font-size: 13px; }
.hp-stats b { display: block; font-size: 20px; }
.hp-sec { max-width: 1100px; margin: 0 auto; padding: 44px 20px 10px; }
.hp-sec h2 { color: #1f3a6e; font-size: 26px; margin: 0 0 8px; }
.hp-sec .sub { color: #5c6b82; margin: 0 0 22px; }
.hp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hp-card { display: block; text-decoration: none; background: #fff; border: 1px solid #dde5f2; border-top: 4px solid #2a7fff; border-radius: 4px; padding: 20px; color: #333; transition: box-shadow .2s, transform .2s; }
.hp-card:hover { box-shadow: 0 6px 18px rgba(31,58,110,.15); transform: translateY(-2px); }
.hp-card h3 { color: #1f3a6e; font-size: 18px; margin: 0 0 8px; }
.hp-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #555; }
.hp-card .more { color: #2a7fff; font-weight: 600; font-size: 14px; }
.hp-about { background: #f4f7fc; margin-top: 34px; }
.hp-about .hp-sec p { line-height: 1.7; color: #444; text-align: left; }
.hp-cta { background: #1f3a6e; color: #fff; text-align: center; padding: 40px 20px; margin-top: 44px; }
.hp-cta h2 { color: #fff; margin: 0 0 8px; }
.hp-cta a.plain { color: #fff; }
@media (min-width: 700px) { .hp-grid { grid-template-columns: repeat(2, 1fr); } .hp-hero h1 { font-size: 42px; } .hp-hero { padding: 90px 30px 96px; } }
@media (min-width: 1000px) { .hp-grid.four { grid-template-columns: repeat(4, 1fr); } .hp-grid.three { grid-template-columns: repeat(3, 1fr); } }
.hp-hero .inner, .hp-hero .inner p, .hp-hero h1 { text-align: left; }

/* Logo text after the logo image */
#logo .logo { display: flex !important; align-items: center; float: left; }
#logo .logo-text { font-family: Arial, Helvetica, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #1f3a6e; font-size: 20px; line-height: 1; margin-left: 8px; white-space: nowrap; }
@media (max-width: 380px) { #logo .logo-text { font-size: 16px; letter-spacing: 1px; } }

/* Membership form */
.mb-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1000px; margin: 30px auto; }
.mb-wrap .mb-img img { width: 100%; height: auto; border-radius: 4px; display: block; }
.mb-form h2 { color: #1f3a6e; margin: 0 0 16px; font-size: 26px; }
.mb-form .mb-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mb-form input[type=text], .mb-form input[type=email], .mb-form input[type=tel] { width: 100%; padding: 12px 14px; border: 1px solid #c9d4e6; border-radius: 4px; font-size: 15px; background: #fff; box-sizing: border-box; }
.mb-form input:focus { outline: 2px solid #2a7fff; border-color: #2a7fff; }
.mb-form button[type=submit] { margin-top: 14px; background: #2a7fff; color: #fff; border: 0; border-radius: 4px; padding: 13px 28px; font-size: 15px; font-weight: 600; cursor: pointer; }
.mb-form button[disabled] { opacity: .6; cursor: default; }
.mb-status { margin: 12px 0 0; font-size: 14px; min-height: 20px; }
.mb-status.ok { color: #1a7f37; } .mb-status.err { color: #b42318; }
@media (min-width: 800px) { .mb-wrap { grid-template-columns: 1fr 1fr; } .mb-form .mb-grid { grid-template-columns: 1fr 1fr; } .mb-form .full { grid-column: 1 / -1; } }

/* Blog */
.blog-list { max-width: 900px; margin: 30px auto; display: grid; gap: 24px; }
.blog-card { display: grid; grid-template-columns: 1fr; border: 1px solid #dde5f2; border-radius: 4px; overflow: hidden; background: #fff; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 180px; }
.blog-card .body { padding: 20px; }
.blog-card h3 { margin: 6px 0 10px; font-size: 22px; } .blog-card h3 a { color: #1f3a6e; text-decoration: none; }
.blog-card .meta, .post .meta { color: #6b7a90; font-size: 13px; margin: 0; }
.blog-card .more { color: #2a7fff; font-weight: 600; text-decoration: none; }
@media (min-width: 720px) { .blog-card { grid-template-columns: 300px 1fr; } }
.post { max-width: 760px; margin: 30px auto; line-height: 1.75; color: #444; font-size: 16px; }
.post h2.title { color: #1f3a6e; font-size: 30px; line-height: 1.25; margin: 6px 0 14px; }
.post h3 { color: #1f3a6e; margin: 28px 0 8px; font-size: 21px; }
.post img.feature { width: 100%; height: auto; border-radius: 4px; margin: 14px 0 20px; display: block; }
.post ul { padding-left: 20px; } .post li { margin-bottom: 8px; }
.post .back { display: inline-block; margin-top: 24px; color: #2a7fff; font-weight: 600; text-decoration: none; }
.post a { color: #2a7fff; }
.team-member img, .team-member-img img, .vc_single_image-img { object-fit: cover; }

/* Desktop fixes */
/* Footer: the theme pinned it to the bottom of the screen (needs its JS); let it flow normally */
#footer, #footer.fixed { position: static !important; bottom: auto !important; z-index: auto !important; }
#wrapper { margin-bottom: 0 !important; }
/* Dropdown arrows next to menu items (icon font was not available) */
@media (min-width: 992px) {
  #main-menu .navbar-nav .menu-item-has-children > a::after {
    font-family: inherit !important; content: "" !important; display: inline-block; width: 6px; height: 6px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); margin: 0 0 3px 9px; vertical-align: middle;
  }
  #main-menu .navbar-nav .dropdown-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin: 0 0 0 8px; float: right; margin-top: 8px; }
}
@media (max-width: 991px) { #main-menu .navbar-nav .menu-item-has-children > a::after { display: none !important; } }
/* LinkedIn icon in the top bar */
.topbar-socials .bpc-in { display: inline-block; vertical-align: middle; }
/* Back-to-top arrow without the icon font */
.back-to-top i.fa-angle-up::before { content: "" !important; display: block; width: 10px; height: 10px; margin: 9px auto 0; border-left: 3px solid currentColor; border-top: 3px solid currentColor; transform: rotate(45deg); }

/* Hero offset: the header is fixed, so push the homepage banner below it (desktop) */
@media (min-width: 992px) {
  .hp-hero { padding-top: calc(var(--hdr, 117px) + 72px); }
}
/* Keep the menu on one line on small laptops */
@media (min-width: 992px) and (max-width: 1279px) {
  #main-menu .navbar-nav > li > a { font-size: 14px !important; padding-left: 7px !important; padding-right: 7px !important; }
  #logo .logo-text { font-size: 17px; letter-spacing: 1px; }
}
