/* Algemene stijl voor teaching-box */
.teaching-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 100%;
   height: 80%; 
  padding: 20px;
  background: #FFF;
  border: 1px solid #E2E2E2;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
/*  margin: 0 0 30px 0;  */
  border-radius: 12px;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.teaching-box:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.teaching-box h4 {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  margin: 20px 0;
  color: #333;
  transition: color 0.3s ease;
  min-height: 60px;
}

.teaching-box:hover h4 {
  color: #00454F;
}

.teaching-box .ico {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 15px;
}

.teaching-box .ico img {
/*   max-height: 80%; */
  max-width: 50%;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.teaching-box:hover .ico img {
  transform: scale(1.05);
}

/* Search bar */
form.example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}

form.example input[type="text"] {
  flex: 1 1 auto;
  padding: 15px 20px 15px 45px;
  font-size: 1rem;
  border: 2px solid #E2E2E2;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  transition: border-color 0.3s ease;
}

form.example input[type="text"]:focus {
  outline: 2px solid #00454F;
  border-color: #00454F;
}

form.example button {
  padding: 15px 25px;
  background-color: #00454F;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

form.example button:hover {
  background-color: #00292F;
}

form.example button:focus {
  outline: 3px solid #00454F;
}

.form-group {
  min-width: 50%;
}

/* Container voor gelijke hoogte boxen */
.box-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Basis instellingen voor de kolommen */
.col-lg-6-box {
  flex: 1 0 33%;
  width: 100%;
  padding: 0 15px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
  display: flex;
}

/* Responsieve aanpassingen */
@media (max-width: 1024px) {
  .col-lg-6-box {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }

  .teaching-box h4 {
    font-size: 18px;
  }

  .teaching-box .ico {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .col-lg-6-box {
    flex: 1 1 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .teaching-box {
    padding: 20px;
  }

  .teaching-box h4 {
    font-size: 16px;
  }

  .teaching-box .ico {
    height: 180px;
  }
}

@media (min-width: 1920px) {
  .col-lg-6-box {
    flex: 1 1 calc(25% - 40px);
    max-width: calc(25% - 40px);
  }

  .teaching-box h4 {
    font-size: 22px;
  }

  .teaching-box .ico {
    height: 100%;
  }
}

@media (min-width: 2560px) {
  .col-lg-6-box {
    flex: 1 1 calc(25% - 60px);
    max-width: calc(25% - 60px);
  }

  .teaching-box h4 {
    font-size: 24px;
  }

  .teaching-box .ico {
    height: 100%;
  }
}


@media (min-width: 1920px) {
  .d-flex {
    display: -ms-flexbox !important;
    display: flex !important;
    max-width: 15%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .d-flex {
    display: -ms-flexbox !important;
    display: flex !important;
    text-align: center;
  }
}

@media (min-width: 1920px) {
  .d-flex-1 {
    display: -ms-flexbox !important;
    display: flex !important;
    max-width: 15%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .d-flex-1 {
    display: -ms-flexbox !important;
    display: flex !important;
    text-align: center;
  }
}