/* ========================================
   Parent Layout
======================================== */

.steel-vacancy-layout {
  display: flex;
  align-items: flex-start;
}

.steel-vacancy-layout .steel-vacancy-tabs {
  margin-top: 20px;
}

.steel-vacancy-layout .views-element-container h2 {
  margin-bottom: 20px;
  font-size: 20px;
}


/* ========================================
   Sidebar Tabs
======================================== */

.steel-vacancy-tabs {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 3px solid #005b96;
  margin-right: 20px;
}


/* ========================================
   Individual Tab
======================================== */

.steel-vacancy-tabs__button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 13px 20px;
  border: 1px solid #d7d7d7;
  border-right: none;
  background-color: #f2f2f2;
  color: #333;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  text-align: left;
  width: 100%;
}

.steel-vacancy-tabs__button + .steel-vacancy-tabs__button {
  border-top: none;
}

.steel-vacancy-tabs__button:hover {
  background-color: #e5e5e5;
  color: #005b96;
}

.steel-vacancy-tabs__button.is-active {
  background-color: #005b96;
  border-color: #005b96;
  color: #fff;
}


/* ========================================
   Vacancy Content
======================================== */

.steel-vacancy-block {
  flex: 1;
  display: none !important;
}

.steel-vacancy-block.is-active {
  display: block !important;
}


/* ========================================
   Tablet
   992px and below
======================================== */

@media (max-width: 991px) {

  .steel-vacancy-layout {
    flex-direction: column;
  }

  .steel-vacancy-tabs {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    border-right: none;
    border-bottom: 3px solid #005b96;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .steel-vacancy-tabs__button {
    width: auto;
    min-width: 160px;
    flex: 0 0 auto;
    text-align: center;
    border-right: 1px solid #d7d7d7;
    border-bottom: none;
    white-space: nowrap;
  }

  .steel-vacancy-tabs__button + .steel-vacancy-tabs__button {
    border-top: 1px solid #d7d7d7;
  }

}


/* ========================================
   Mobile
   576px and below
======================================== */

@media (max-width: 576px) {

  .steel-vacancy-layout .steel-vacancy-tabs {
    margin-top: 10px;
  }

  .steel-vacancy-layout .views-element-container h2 {
    margin-bottom: 15px;
    font-size: 18px;
  }

  .steel-vacancy-tabs {
    margin-bottom: 15px;
  }

  .steel-vacancy-tabs__button {
    min-width: 130px;
    padding: 11px 15px;
    font-size: 14px;
  }

}
