.xdm-section {
  background: #fff;
  position: relative;
  overflow: hidden;
  padding-left: 138px;
    padding-right: 70px;
    padding-top: 130px;
}

.xdm-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .xdm-grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .xdm-grid-container { grid-template-columns: 1fr; }
  .xdm-section { padding: 120px 10px; }
}

.xdm-card {
  position: relative;
  width: 100%;
  height: 390px;
  padding: 30px 20px;
  overflow: visible;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #d8d8d8; /* Əgər xətt lazımdırsa */
}

.xdm-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #f9f9f9;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.xdm-card:hover::before { opacity: 1; }

.xdm-head { height: 92px; margin-bottom: 24px; z-index: 2; }
.xdm-card h3 { margin: 0 0 12px 0; font-weight: 600; color: #111; z-index: 2; 
    font-size: 14px;
    text-transform: uppercase;
    line-height: 130%;
    font-style: italic;
}}
.xdm-count { margin: 0; font-size: 15px; color: #ed1c24; z-index: 2; }

.xdm-img-wrap { width: 100%; height: 150px; overflow: hidden; margin-bottom: 28px; z-index: 2; }
.xdm-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

.xdm-card:hover .xdm-img-wrap img { filter: grayscale(0%); }

.xdm-text {
  width: 100%; height: 82px; margin: 0; font-size: 14px; 
  font-style: italic; font-weight: 300; color: #777; z-index: 2;
}

/* Əgər o əyri xətləri (skew) istəyirsənsə, bura əlavə etmək olar */