/* Monitoring (progress & quality) section — qalam-high.html.
   Depends on shared page tokens (--crimson-600, --text-muted, --radius-2xl,
   --shadow, --shadow-lg, --ease-out, --display). Section padding for .monitoring
   itself is set by a shared cross-section rule in static/css/qalam-high.css. */

.monitoring {
  padding: 120px 0;
  background: #fff;
}
.mon-head {
  text-align: left;
  margin-bottom: 52px;
}
.mon-head h2 {
  margin-bottom: 12px;
}
.mon-head h2 em {
  font-style: normal;
  color: var(--crimson-600);
  font-weight: 800;
}
.mon-head p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}
.mon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mcard {
  position: relative;
  height: 300px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.38s var(--ease-out),
    box-shadow 0.38s;
}
.mcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.mcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.65s var(--ease-out);
}
.mcard:hover img {
  transform: scale(1.08);
}
.mcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 6, 8, 0.94) 0%,
    rgba(10, 6, 8, 0.45) 50%,
    rgba(10, 6, 8, 0.08) 100%
  );
  z-index: 1;
}
.mcard-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  color: #fff;
}
.mcard-body h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.mcard-body p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 900px) {
  .monitoring {
    padding: 96px 0;
  }
  .mon-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .monitoring {
    padding: 64px 0;
  }
  .mon-head {
    margin-bottom: 40px;
  }
  .mcard {
    height: 260px;
  }
  .mcard-body {
    padding: 24px;
  }
  .mcard-body h3 {
    font-size: 1.25rem;
  }
}
