/* =============================================================================
   FOOTER — all styles scoped to the site footer
   Applied: footer.php — rendered on every page (hidden on some pages via JS/PHP)
   Key selectors: #cs-footer | .footermenu-items | #cs-footer-sidebar
                  #footer-social-icons | .footer-confidence-section | .footermodal
   ============================================================================= */

/* ---- Footer link items ---- */
.footermenu-items li a {
  font-size: 1.125rem;
  font-style: normal;
  color: #73828a;
  font-weight: 500;
  line-height: 150%;
}
footer ul li a {
  font-size: 1.125rem !important;
}

/* ---- Footer column heading spacing ---- */
.footer-heading-cs {
  margin-bottom: 1.5rem;
}

/* ---- Social icons ---- */
#footer-social-icons ul li i:hover {
  color: #64667c;
}
#footer-social-icons ul li i {
  color: #64667c;
  border: 1px solid;
  border-radius: 12px;
  padding: 4px;
  transition-duration: 500ms;
  transition-property: color;
}
#footer-social-icons .footer--social-icon {
  border: 1px solid #ebeef1;
  border-radius: 100px;
  padding: 3px;
  width: 37px;
  height: 37px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}
#footer-social-icons .footer--social-icon:hover {
  opacity: 0.5;
}
#footer-social-icons .footer--social-icon img {
  width: 20px;
}

/* ---- Footer sidebar nav widgets ---- */
#cs-footer-sidebar #nav_menu-3 {
  max-width: 100%;
}
#cs-footer-sidebar #nav_menu-2 {
  max-width: 100%;
}
div#nav_menu-4 {
  padding: 0px 0px;
  margin-top: 2.5rem;
}
#cs-footer-sidebar h4.footertitle {
  font-size: 1.125rem;
  color: #37506e;
  letter-spacing: 1px;
  line-height: normal;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
#cs-footer-sidebar ul li a {
  color: #37506e !important;
  font-size: 1rem;
}
.footerwidget li {
  line-height: 1.2rem !important;
}
.footerwidget ul {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ---- Confidence / trust section divider ---- */
.footer-confidence-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.footer-confidence-section .heading {
  display: inline-block;
  background: #f6f6f6;
  padding: 0 0.5rem;
  z-index: 9;
  position: relative;
}
.footer-confidence-section:after {
  content: "";
  position: absolute;
  height: 2px;
  width: 22%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: #eaecee;
}
.footer-confidence-section:before {
  content: "";
  position: absolute;
  height: 2px;
  width: 22%;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #eaecee;
}
.footer-check-button {
  margin-top: 10px;
}

/* ---- Footer modal ---- */
.footermodal {
  z-index: 999;
}
.footermodal.active {
  display: block;
}
.footermodal.none {
  display: none;
}

/* ---- #cs-footer background + certificate verify ---- */
#cs-footer {
  background: url(https://essentialsafetytraining.org.uk/wp-content/uploads/2025/02/footer-frame.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
}
#certificateVarify {
  height: 60px !important;
  position: relative;
  background: #ffffff !important;
}
#cs-footer .varifyButton {
  position: absolute;
  width: 120px !important;
  height: 46px !important;
  right: 7px;
  top: 50%;
  margin-top: 0px !important;
  padding: 0px 0px !important;
  transform: translateY(-50%);
  background: #37506e !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  transition: 0.3s;
}
#cs-footer .varifyButton:hover {
  background: #f9a31a !important;
}

/* ---- Hide footer on specific pages (single course, cart, login) ---- */
/* Job Ready course singles are marketing pages and keep the shared footer;
   est_job_ready_body_class() in functions.php adds the exemption class. */
.single-course:not(.est-job-ready-course) #cs-footer {
  display: none !important;
}
.woocommerce-cart #cs-footer {
  display: none !important;
}
.page-id-69095 #cs-footer {
  display: none !important;
}

/* ---- Responsive footer ---- */
@media only screen and (max-width: 1023px) {
  #cs-footer {
    padding-bottom: 2rem !important;
  }
  .footer-mobile-two-col {
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-mobile-two-col > div {
    margin: 0px !important;
    width: 50% !important;
    max-width: 50% !important;
  }
}
@media only screen and (max-width: 767px) {
  .footerwidget ul {
    gap: 0.5rem;
  }
  #cs-footer-sidebar h4.footertitle {
    margin-bottom: 1rem;
  }
  .footer-heading-cs {
    margin-bottom: 1rem;
  }
  #cs-footer-sidebar .tw-grid {
    gap: 2rem !important;
  }
  .footer-pay-image {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media only screen and (max-width: 640px) {
  .footer-mobile-two-col {
    flex-wrap: wrap;
  }
  .footer-mobile-two-col > div {
    width: 100% !important;
    max-width: 100% !important;
  }
  #cs-footer-sidebar h4.footertitle {
    margin-bottom: 1rem;
  }
  .footer-mobile-two-col {
    gap: 2rem !important;
  }
  #cs-footer-sidebar .tw-grid {
    gap: 2rem !important;
  }
}
