/* ========================================================
   DELTEK-STYLE ZIG-ZAG FEATURE MEDIA BLOCKS
   Features of Easy Automobile ERP & DMS
   ======================================================== */

.deltek-features-section {
  padding: 100px 0;
  background-color: #ffffff;
  position: relative;
  z-index: 2;
}

.deltek-features-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header */
.deltek-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 80px auto;
}

.deltek-section-header .section-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Individual Media Block */
.media-block {
  margin-bottom: 90px;
  position: relative;
}

.media-block:last-child {
  margin-bottom: 0;
}

.media-block__wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

/* Alternating Zig-Zag: media-right reverses flex row on desktop */
.media-block--media-right .media-block__wrap {
  flex-direction: row-reverse;
}

/* Media (Image) Container */
.media-block__media {
  flex: 1 1 52%;
  max-width: 580px;
  width: 100%;
}

.media-block__media-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-block__media-card:hover {
  transform: translateY(-5px);
  box-shadow: none !important;
}

.media-block__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 24px;
}

/* Summary (Content) Container */
.media-block__summary {
  flex: 1 1 48%;
  max-width: 540px;
}

.media-block__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.media-block__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin-bottom: 16px;
}

.media-block__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 22px;
}

/* Feature Checkpoints List */
.media-block__checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.media-block__checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 5px;
}

.media-block__checklist-item:last-child {
  margin-bottom: 0;
}

.media-block__checklist-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #2563eb;
}

.media-block__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: #ffffff;
  transition: all 0.25s ease;
}

.media-block__action:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateX(3px);
}

/* Responsive Media Queries */
@media screen and (max-width: 992px) {
  .deltek-features-section {
    padding: 70px 0;
  }

  .deltek-section-header {
    margin-bottom: 50px;
  }

  .media-block {
    margin-bottom: 60px;
  }

  .media-block__wrap,
  .media-block--media-right .media-block__wrap {
    flex-direction: column !important;
    gap: 36px;
  }

  .media-block__media,
  .media-block__summary {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .media-block__title {
    font-size: 26px;
    line-height: 1.3;
  }
}

@media screen and (max-width: 576px) {
  .media-block__media-card {
    border-radius: 16px;
  }

  .media-block__image {
    border-radius: 16px;
  }

  .media-block__title {
    font-size: 22px;
  }

  .media-block__desc {
    font-size: 15px;
  }
}