/* === Sidebar === */
.sidebar {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  margin-top: 0px;
  margin-left: 20px;
}
.sidebar .card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid #b6ac9d;
}

.sidebar .card-content {
  width: 100%;
  height: 100%;
}

.sidebar .card-content a {
  text-decoration: none;
}

.sidebar .card-content p a {
  display: block;
  font-weight: 400;
  color: #000;
  padding-top: 5px;
}

.card-title-external-links a {
  font-weight: 700;
  color: #fff;
}

.sidebar .card h3, .sidebar .card .card-title {
  margin: 0 0 7px;
  padding: 10px 10px 10px 10px;
  background: var(--color-soft-gray);
  font-weight: 700;
  color: #fff;
  font-size: 0.8em;
}

.sidebar .card p {
  font-size: 0.8em;
  padding: 0;
  margin-bottom: 10px;
}

.sidebar .card-image {
  width: 150px;
  height: 150px;
  margin-right: 8px;
  align-self: flex-start;
  min-width: 150px;
}

.sidebar .card-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc
}

/* === Sidebar Responsive === */
@media (max-width: 1327px) and (min-width: 1055px) {
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0;
  }

  .sidebar .card {
    width: calc(50% - 20px);
    margin: 10px;
    flex-direction: row;
  }

  .sidebar .card-content {
    height: auto;
  }

  .sidebar .card-image,
  .sidebar .card-image img {
    width: 100px;
    height: 100px;
  }
}

/* === Sidebar Responsive === */
@media (min-width: 1340px){
  .sidebar {
    width: 30%;
  }
}
@media (min-width: 600px){
  .sidebar .card {
    margin: 2px 0px 10px 0px;         
  }
  /* Homepage */
  body.home .sidebar {
  margin-top: 0px;
  }
  /* Page template default */
  body.page-template-default .sidebar {
  margin-top: 0px;
  }
  /* All other pages (not home AND not page-template-default) */
  body:not(.home):not(.page-template-default) .sidebar {
  margin-top: 55px;
  }

}
@media (max-width: 600px){
  .sidebar .card {
      margin: 0px 0px 10px 0px;  
    }
}
