.main-container {
  display: flex;
}

.workshop-detail-container {
  margin-bottom: 5em;
}

.sidebar {
  width: 30%;
  padding: 1em;
}

.nav-top {
  width: 100%;
}

.nav-top a {
  text-decoration: none;
}

#nav-container {
  background-color: white;
  height: 100%;
  background-color: #361f47;
  color: white;
}

#nav-container a {
  color: white;
}

.navbar-toggler {
  border-color: #fff;
}

.navbar-toggler svg {
  fill: #fff;
}

.main-content {
  margin-top: 1em;
  margin-left: auto;
}

.btn-primary {
  background-color: #361f47;
  border-color: #361f47;
}

.btn-primary:hover, .btn-primary:focus, btn-primary:active {
  background-color: #502767;
  border-color: #502767;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
    background-color: #502767;
    border-color: #502767
}

.content {
  width: 70%;
}

.layout-toggle {
  width: 100%;
  height: 2.5em;
  align-self: center;
}

.sidebar-buttons {
  display: flex;
}

.sidebar-nav {
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.nav-pills {
  width: 100%;
}

.nav-pills a.active {
  background-color: white !important;
  color: #361f47 !important;
  font-weight: bold;
}

.navigation {
  margin-top: 1em;
}

.category-link {
  padding: 0.5em !important;
  border: 1px solid white;
  margin: 0.3em 0;
}

.workshop-counter-container {
  width: 4em;
  height: 4em;
  border: 5px solid #361f47;
  border-radius: 0.5em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background-image: url("images/backpack_material_navy.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.workshop-counter {
  border-radius: 100%;
  background-color: #361f47;
  color: white;
  text-align: center;
}

.order-by-buttons {
  display: flex;
  flex-direction: column;
}

.order-by-buttons > a {
  box-sizing: border-box;
  width: 100%;
  padding: 1em;
  cursor: pointer;
  color: black;
  text-decoration: none;
}

.order-by-buttons > a:hover, .active{
  color: white !important;
  background-color: #e30613;
}

.filter-form {
  margin-bottom: 2em;
  background-color: #eef6fd;
  padding: 2em;
}

.filter-form .col, .filter-form .col-md {
  margin-bottom: 1em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1em;
}

.filter {
  width: 10em;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
}

.filter-collapse-button {
  width: 100%;
  height: 2.5em;
  color: white;
  background-color: #361f47;
  padding: 0.5em;
  border-radius: 0.25em;
  border: none;
}

.filter-select {
  width: 100%;
  padding: 0.5em;
  background-color: #f8f9fa;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.tag-filter {
  padding: 0.4rem 0.9rem;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background: white;
  color: #495057;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-filter:hover {
  border-color: #6c757d;
  background: #f1f3f5;
}

.tag-filter.active {
  background: #228be6;
  border-color: #228be6;
  color: white;
}

.category-header {
    color: white;
    padding: 0.5em;
    background-color: #d8434c;
    border-radius: 0.25em;
}

.workshop-category {
  display: block;
  margin-bottom: 2.5em;
  padding: 1em;
  background-color: aliceblue;
}

.workshop {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 2em;
  padding: 1.25rem;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease;
}

.workshop:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.workshop h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #212529;
}

.workshop-info {
  width: 70%;
}

.workshop-info a {
  text-decoration: none;
}

.workshop .category {
  margin: 0 0 0.75rem 0;
  color: #868e96;
  font-size: 0.9rem;
}

.workshop .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.workshop .tag {
  padding: 0.2rem 0.55rem;
  background: #e9ecef;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #495057;
}

.workshop-buttons {
  display: grid;
  margin-bottom: 1em;
  grid-auto-rows: max-content;

}

.workshop-buttons a, .workshop-buttons button {
  height: 3em;
  width: 14em;
  margin-top: 1em;
  padding: 0.5em;
  text-align: center;
  align-content: center;
  text-decoration: none;
  border-radius: 0.25em;
  border: none;
  bottom: 0;
  left: 0;
}

.backpack-button {
  background-color: #e30613;
  color: white;
  padding: 0.5em;
  border-radius: 0.25em;
  border: none;
  bottom: 0;
  left: 0;
}

.registration-info {
  width: 14em;
  min-height: 3em;
  text-align: center;
  align-content: center;
  border: 1px solid #361f47;
  border-radius: 0.25em;
}

.registration-info p {
  margin-bottom: 0;
}

.modal-button {
  background-color: #ede4f4;
  color: black;
}

.booked {
  background-color: grey;
  text-align: center;
  cursor: default;
}

.workshop-description {
  width: 100%;
}

@media (max-width: 1000px) {
  .main-content {margin-top: 5em;}
  .workshop-info {width: 100%;}
  #nav-container {height:auto; border-bottom: 1px solid #361f46;}
  .nav-top {display: contents;}
  .nav-top h3 {width: 85%; text-align: right; margin-bottom: 0;}
}