.padding {
    padding: 60px 100px;
}

.button{
    background: #EE8922;
  border-radius: 15px 0px 15px 0px;
  padding: 10px 25px;
  font-family: 'Brandon Grotesque';
  font-size: 15px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.button:hover{
    background-color: #E02928;
}

h2 {
    margin: 0;
    font-family: 'Brandon Grotesque Black';
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.white {
    color: white !important;
}

.button-contain{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

h2 span {
    font-family: 'Brandon Grotesque Black';
    color: #EE8922;
}
p strong{
    font-size: 22px;
}
/* Hero section */
#hero_section {
    position: relative;
    z-index: 2;
    padding: 130px 100px 130px 100px;
    margin-bottom: 0;
    overflow: hidden;
    background-image: var(--hero-bg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    border-bottom-right-radius: 150px;
}

/* Safety Connection section */
.safety-connection {
    position: relative;
    z-index: 1;

    /*
      Pull the blue section up behind the hero
      so it appears behind the rounded white edge.
    */
    margin-top: -150px;
    padding: 260px 100px 270px;

    min-height: 500px;

    background-image:
        url("../../uploads/safety-operations/safety-connection.jpg");

    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    overflow: hidden;
}
@media screen and (max-width: 767px) {
  .safety-connection{
    background-position: top center;
  }
}

@media screen and (max-width: 1024px) {
  .safety-connection{
    padding-bottom: 320px;
  }
}

@media screen and (max-width: 1024px) {
  .safety-connection{
    padding: 260px 20px 480px;
  }
}

.safety-connection p{
    font-size: 18px;
}

.safety-connection .container {
    position: relative;
    z-index: 3;
}



h2 span {
    color: #EE8922;
}

.safety-connection-subsection {
    background-color: rgba(37, 49, 58, 0.85);
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    padding: 35px 100px;
    z-index: 4;
}

@media screen and (max-width: 1024px) {
  .safety-connection-subsection {
    padding: 35px 20px;
  }
}


@media screen and (max-width: 1024px) {
  .padding {
    padding: 60px 20px;
  }
}

.safety-operations {
    background-image:
        url("../../uploads/safety-operations/safety-operations.jpg");
    background-size: cover;
    background-position: top center;
}
.safety-resources {
    background-image:
        url("../../uploads/safety-operations/STN-080-section-4-BGdesktop-v1c2.webp");
    background-size: cover;
    background-position: top center;
}

@media screen and (max-width: 767px) {
  .safety-resources {
    background-image: none;
  }
}

.training-resources {
    background-color: #EE8922;
    border-bottom-right-radius: 100px;
    overflow: hidden;
}

.training-resources a{
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Brandon Grotesque Black';
}

.resources{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.resources a{
    position: relative;
}
.resources a:nth-child(odd)::after {
    content: "|";
    display: inline-block;
    margin-left: 1rem;
    color: #fff;
}

@media screen and (max-width: 767px) {
    .resources {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .resources a:after {
        display: none !important;
    }
}

.subnav{
    background-color: #E7E7E8F2;
    padding: 20px 100px;
    overflow-y: scroll;
}

@media screen and (max-width: 1024px) {
    .subnav{
        padding: 20px;
    }
}


.nav-items {
    display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 760px;
}

.nav-items p {
  margin-bottom: 0;
  color: #25313A
}

.nav-items a{
    position: relative;
    color: #25313A;
    font-family: 'Brandon Grotesque Black';
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.06em;
    padding-right: 18px;
}

.nav-items a:hover{
    color: #EE8922;
}

.nav-items a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #EE8922;
    font-family: 'Brandon Grotesque';
    font-weight: 400;
}

@media screen and (max-width: 767px) {
    .hero_text,p {
      width: inherit !important;
      font-size: inherit !important;
    }
}

html {
    scroll-behavior: smooth;
}

#hero_section,
#consulting,
#resources {
    scroll-margin-top: 305px;
}

#safety-connections {
    scroll-margin-top: 145px;
}

.page-template-safetyresources header{
    padding-bottom: 0;
}
.subnav{
    margin-top: 1rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Hover underline */
.resources a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #25313A;

    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.resources a:hover::before,
.resources a:focus::before {
    transform: scaleX(1);
}

@media screen and (min-width: 767px) {
    .resources a:nth-child(odd)::before {
        width: calc(100% - 1rem);
    }

}

@media screen and (min-width: 767px) {
  h2 {
    font-size: 40px !important;
    width: 100% !important;
    letter-spacing: 3px !important;
  }
}
.safety-training-mobile{
    display: none;
}

@media screen and (max-width: 767px) {
    .medium-8{
        width: 100% !important;
    }
    .medium-7{
        width: 100% !important;
    }
    .safety-operations{
        background-image: none;
    }
    .medium-offset-4.medium-8{
        width: 100%;
        margin-left: 0;
    }
    #hero_section {
        background-image: url("../../uploads/safety-operations/01-STN-DEV-Hero.webp");
        min-height: 800px;
        background-position: bottom;
    }
    .safety-connection{
        background-color: #25313A;
        background-image: none;
        padding: 260px 0px 0;
    }
    .safety-connection-main{
        padding: 20px;
    }
    .mobile-safety-connection-subsection{
        background-image: url("../../uploads/safety-operations/02-STN-DEV-Safety-Connection.webp");
        background-size: cover;
        padding-top: 20rem;
        background-repeat: no-repeat;

    }
    .safety-training-mobile{
        display: block;
    }
    .safety-connection-subsection {
        background-color: rgba(37, 49, 58, 0.85);
        position: relative;
        bottom: 0;
        left: 0;
        width: 100vw;
        transform: none;
        padding: 20px;
    }
    #hero_section .button {
        font-size: 12px !important;
    }
}