/*
 Theme Name: BPC Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: BPC Child Theme
 Author: De Design Factory
 Author URI: https://www.dedesignfactory.nl/
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

/** Grid **/

.df-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.df-case-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.df-case-card:hover {
  transform: translateY(-5px);
}

.df-case-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px 12px 0 0;
  margin: 0;
}

.df-case-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.df-case-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.df-case-cat {
  display: inline-block;
  background: #f2f4f8;
  color: #333;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.df-case-intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.df-case-link {
  color: #e63946;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}

.df-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.df-case-tag {
  display: inline-block;
  background: #f2f4f8;
  color: #555;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 9999px; /* volledig afgerond */
  line-height: 1.3;
}

/* Responsive breakpoints */
@media (max-width: 980px) {
  .df-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .df-cases-grid {
    grid-template-columns: 1fr;
    margin-left: 0px!important;
  }
}

/* Desktop */
.df-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Tablet (ook iPad landscape) */
@media (max-width: 1100px) {
  .df-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-left: 0px;
    gap: 40px!important;
  }
}

/* Mobiel */
@media (max-width: 767px) {
  .df-cases-grid {
    grid-template-columns: 1fr;
      gap: 40px;
  }
}