/* ==============================================
   MDM SECTION — css/mdm.css
   ============================================== */

.mdm-section {
  background: linear-gradient(160deg, #0a0c14 0%, #111320 60%, #0d0f1c 100%);
  position: relative;
}
.mdm-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232,25,44,0.3), transparent);
}

/* ── Problems & Solutions Grid ── */
.mdm-ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.mdm-block {
  border-radius: 18px;
  padding: 2rem;
}
.mdm-problems  { background: rgba(245,158,11,0.04); border: 1px solid rgba(245,158,11,0.15); }
.mdm-solutions { background: rgba(16,185,129,0.04);  border: 1px solid rgba(16,185,129,0.15);  }

.mdm-block-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mdm-problems  .mdm-block-title { color: #f59e0b; }
.mdm-solutions .mdm-block-title { color: #10b981; }
.mdm-title-icon { font-size: 1.2rem; }

/* Problem Items */
.mdm-item-list { display: flex; flex-direction: column; gap: 1.25rem; }
.mdm-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.mdm-item-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mdm-problems  .mdm-item-icon { background: rgba(245,158,11,0.12); }
.mdm-solutions .mdm-item-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-main);
  margin-top: 2px;
}
.mdm-item-text strong {
  display: block;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.mdm-item-text p {
  font-size: 0.81rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

/* ── Services ── */
.mdm-services-header {
  text-align: center;
  margin-bottom: 2rem;
}
.mdm-services-header h3 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 0.5rem;
}
.mdm-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.mdm-service-card {
  background: #111320;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.5rem;
  transition: var(--transition);
}
.mdm-service-card:hover {
  border-color: rgba(232,25,44,0.3);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(232,25,44,0.09);
}
.mdm-service-icon { font-size: 2.2rem; margin-bottom: 0.85rem; }
.mdm-service-card h4 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.mdm-service-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.mdm-service-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(232,25,44,0.1);
  border: 1px solid rgba(232,25,44,0.25);
  color: var(--red-light);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  font-family: var(--font-main);
}

/* ── Why MDM ── */
.mdm-why-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.mdm-why-header {
  text-align: center;
  margin-bottom: 2rem;
}
.mdm-why-header h3 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 0.5rem;
}
.mdm-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.mdm-why-card { text-align: center; padding: 1.25rem; }
.why-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.mdm-why-card h4 {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.mdm-why-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.6; }

/* ── MDM CTA ── */
.mdm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  background: var(--gradient-red);
  border-radius: 16px;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.mdm-cta h3 { font-family: var(--font-main); font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 0.3rem; }
.mdm-cta p  { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin: 0; }
.mdm-cta .btn-primary { background: white; color: var(--red); flex-shrink: 0; }
.mdm-cta .btn-primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .mdm-services-grid { grid-template-columns: repeat(2, 1fr); }
  .mdm-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .mdm-ps-grid { grid-template-columns: 1fr; }
  .mdm-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .mdm-services-grid { grid-template-columns: 1fr; }
  .mdm-why-grid { grid-template-columns: 1fr 1fr; }
  .mdm-cta { flex-direction: column; text-align: center; }
}
