/* ===== Latest Updates — professional slider ===== */

.latest-updates {
  background: #f1f5f9;
  padding: 72px 0 84px;
  overflow: hidden;
}

/* ---- slider shell ---- */
.updates-slider {
  position: relative;
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 0 56px;
}

/* ---- viewport: clips cards so nothing overflows the screen ---- */
.updates-viewport {
  overflow: hidden;
}

/* ---- track: flex row, transformed to slide ---- */
.updates-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- individual card ---- */
.update-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 35, 64, .05), 0 12px 32px rgba(15, 35, 64, .06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.update-card:hover {
  box-shadow: 0 2px 6px rgba(15, 35, 64, .06), 0 20px 48px rgba(15, 35, 64, .12);
  transform: translateY(-4px);
}

@media (min-width: 560px) {
  .update-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (min-width: 900px) {
  .update-card { flex-basis: calc((100% - 40px) / 3); }
}

/* ---- card image ---- */
.update-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef5;
}
.update-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- card body ---- */
.update-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.update-card-body time {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3efd9;
  color: #8a6d1f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.update-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #172b43;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.update-card-body p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #65758a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- direct action buttons (Call / WhatsApp / Get Quote) ---- */
.update-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.update-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s ease, transform .1s ease;
}
.update-action:hover { text-decoration: none; filter: brightness(.96); }
.update-action:active { transform: scale(.97); }
.update-action svg { flex-shrink: 0; }

.update-action-call {
  background: #e8eef5;
  color: #123b63;
  border: 1px solid #d3dfeb;
}
.update-action-wa {
  background: #e7f7ee;
  color: #0e7a43;
  border: 1px solid #d2efdf;
}
.update-action-quote {
  grid-column: 1 / -1;
  background: #b8872f;
  color: #fff;
  border: 1px solid transparent;
}
.update-action-quote:hover { filter: brightness(.94); }

/* ---- arrows ---- */
.updates-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #123b63;
  box-shadow: 0 2px 8px rgba(15, 35, 64, .12), 0 1px 3px rgba(15, 35, 64, .06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .2s, transform .15s, background .2s;
}
.updates-arrow:hover {
  box-shadow: 0 4px 14px rgba(15, 35, 64, .18);
  background: #123b63;
  color: #fff;
}
.updates-arrow svg { fill: currentColor; }
.updates-arrow.prev { left: 6px; }
.updates-arrow.next { right: 6px; }

/* ---- dots ---- */
.updates-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}
.updates-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #c3d0dd;
  cursor: pointer;
  transition: background .25s, width .25s;
}
.updates-dots button.active {
  width: 26px;
  background: #b8872f;
  cursor: default;
}

/* ---- responsive ---- */
@media (max-width: 720px) {
  .latest-updates { padding: 56px 0 68px; }
  .updates-slider { padding: 0 46px; }
  .update-card-body { padding: 16px 18px 18px; }
  .update-card-body h3 { font-size: 16px; }
  .update-card-body p { font-size: 13.5px; }
  .updates-arrow { width: 38px; height: 38px; top: 36%; }
  .updates-arrow.prev { left: 4px; }
  .updates-arrow.next { right: 4px; }
}
@media (max-width: 559px) {
  .latest-updates { padding: 48px 0 60px; }
  .updates-slider { padding: 0; }
  .updates-arrow { display: none; }
  .updates-dots { margin-top: 22px; }
}
