/* =========================================================
   APV FOOTER – GLOBAL
   ========================================================= */

.apv-footer {
  color: #fff;
  padding: 60px 0 30px;
  background: #021b2a url("/sites/default/files/images/Static-Background.png") center / cover no-repeat;
}

.apv-footer a { color: #fff; }

/* =========================================================
   ROW 1: FOOTER TOP (Logo + CTA)
   ========================================================= */

.apv-footer__top .region-footer-top { width: 100%; }

.apv-footer-top-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.apv-footer-top-block__left img {
  display: block;
  max-width: 320px;
  height: auto;
}

.apv-footer-top-block__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.apv-footer-top-block__text {
  font-size: 25px;
  font-style: italic;
  white-space: nowrap;
}

.apv-footer-top-block__button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #e74b4b;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.apv-footer-top-block__button a:hover { text-decoration: none; }

@media (max-width: 768px) {
  .apv-footer-top-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .apv-footer-top-block__right { margin-left: 0; }
  .apv-footer-top-block__text { white-space: normal; }
}

/* =========================================================
   ROW 2: FOOTER MENUS (4 COLUMNS)
   Bootstrap markup: ul.nav.navbar-nav > li.nav-item > a.nav-link
   ========================================================= */

.apv-footer__menus { margin-top: 30px; }

.apv-footer__menus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

/* reset nav list spacing */
.apv-footer__menus .nav.navbar-nav,
.apv-footer__menus .nav.navbar-nav > .nav-item {
  margin: 0;
  padding: 0;
}

/* base links */
.apv-footer__menus .nav.navbar-nav .nav-link {
  color: #fff;
  text-decoration: none;
  padding: 2px 0;
  line-height: 1.25;
  margin: 0;
}

/* active safety */
.apv-footer__menus .nav.navbar-nav .nav-link.active,
.apv-footer__menus .nav.navbar-nav .nav-link.is-active,
.apv-footer__menus .nav.navbar-nav .nav-link.active.is-active {
  color: #fff;
  text-decoration: none;
}

/* first item is heading */
.apv-footer__menus .nav.navbar-nav > .nav-item:first-child > .nav-link {
  font-size: 22px;
  font-weight: 800;
  padding: 0 0 12px 0;
  line-height: 1.1;
  display: inline-block;
}

/* dot bullets for non-heading items */
.apv-footer__menus .nav.navbar-nav > .nav-item:not(:first-child) {
  position: relative;
  padding-left: 18px;
}

.apv-footer__menus .nav.navbar-nav > .nav-item:not(:first-child)::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 18px;
  line-height: 1;
  opacity: 0.95;
}

/* hover underline only for non-heading items */
.apv-footer__menus .nav.navbar-nav > .nav-item:not(:first-child) > .nav-link:hover {
  text-decoration: underline;
}

/* responsive menus grid */
@media (max-width: 991px) {
  .apv-footer__menus-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   ROW 3: LOWER FOOTER (4 COLUMNS)
   ========================================================= */

.apv-footer__lower { margin-top: 40px; }

.apv-footer__lower-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: end;
}

/* remove DXPR separators */
.apv-footer__lower .block-hr { display: none !important; }
.apv-footer__lower .block { margin: 0; padding: 0; }

/* responsive lower grid */
@media (max-width: 991px) {
  .apv-footer__lower-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 575px) {
  .apv-footer__lower-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ORGANIZATION BLOCK
   ========================================================= */

.apv-footer-org__label {
  font-weight: 800;
  margin-bottom: 10px;
}

.apv-footer-org__address {
  line-height: 1.4;
  margin-bottom: 20px;
}

.apv-footer-org__codes {
  display: grid;
  gap: 8px;
}

.apv-footer-org__code {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.apv-footer-org__code span {
  /*font-weight: 700;*/
  opacity: 0.95;
}

/* =========================================================
   CONTACT BLOCK
   ========================================================= */

.apv-footer-contact__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.apv-footer-contact__pfx { opacity: 0.95; }

.apv-footer-contact a { text-decoration: underline; }

.apv-footer-contact__social { margin: 10px 0 14px; }

.apv-footer-contact__career { margin-top: 10px; }

.apv-footer-contact__career-label {
  opacity: 0.95;
  margin-bottom: 4px;
}

/* =========================================================
   DOWNLOAD BLOCK
   ========================================================= */

.apv-footer-download {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.apv-footer-download__text {
  white-space: nowrap;
  opacity: 0.95;
}

/* =========================================================
   ICON BUTTONS (LinkedIn + Download)
   ========================================================= */

.apv-footer-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}

.apv-footer-icon:hover { text-decoration: none; }

.apv-footer-icon .bi {
  font-size: 18px;
  line-height: 1;
}

/* Copyright inside footer lower column 4 */
.apv-footer__copyright{
  margin-top: 16px;
  font-size: 18px;
  opacity: 0.9;
}


/* Career + LinkedIn row */
.apv-footer-career-li{
  display: flex;
  align-items: center;
  gap: 14px;
}

.apv-footer-career-li__label{
  opacity: .95;
  margin-bottom: 4px;
}

.apv-footer-career-li__text a{
  text-decoration: underline;
}


/* Footer certification logos (lower col 4) */
.apv-footer-logos{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Media field often outputs <div class="field__item"> wrappers */
.apv-footer-logos .field__items{
  display: flex;
  align-items: center;
  gap: 16px;
}

.apv-footer-logos .field__item{
  margin: 0; /* remove default spacing */
}

/* Support common media markup: img inside figure/picture */
.apv-footer-logos img{
  display: block;
  height: 60px; 
  width: auto;
}

/* If a logo is inside a link, keep it clean */
.apv-footer-logos a{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

