/* Modern redesign for Auto Body Repair Process page */
:root{
  --bg: #f6f7fb;
  --card-bg: #ffffff;
  --muted: #6b7280;
  --heading: #0b1220;
  --accent-1: #0066d6;
  --accent-2: #00b4ff;
  --radius: 14px;
}

body.auto-body-page { background: var(--bg); }

.auto-body-container { max-width: 1180px; margin: 0 auto; padding: 48px 20px; }

h1.page-title { font-size: 36px; font-weight: 800; color: var(--heading); margin: 0 0 14px; }
.page-intro { color: var(--muted); font-size: 16px; margin-bottom: 28px; }

.list4 {
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Override legacy list component which sets overflow:hidden and clips shadows */
body.auto-body-page .list4 { overflow: visible !important; }
body.auto-body-page .list4 > li { overflow: visible !important; }

.list4 > li { position: relative; overflow: visible; }

.step-card {
  background: linear-gradient(180deg, var(--card-bg), #fbfdff);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 60px rgba(15,23,42,0.12);
  z-index: 10; /* lift above siblings so shadow isn't clipped */
  border-radius: var(--radius); /* keep rounded corners on hover */
}

.step-media { width: 100%; height: 300px; overflow: hidden; }
.step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.step-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.step-title { font-size: 18px; font-weight: 700; color: var(--heading); margin: 0; }
.step-desc { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.step-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg,var(--accent-1),var(--accent-2));
  box-shadow: 0 8px 24px rgba(0,111,204,0.16);
  z-index: 6;
}

/* make anchored links inside cards subtle */
.step-body a { color: var(--accent-1); text-decoration: none; font-weight:600; }

/* ensure bootstrap column classes don't interfere */
.list4 > li[class*="col-"] { width: auto !important; float: none !important; display: block !important; }

@media (max-width: 1024px){ .step-media { height: 220px; } }
@media (max-width: 768px){ .list4 { grid-template-columns: 1fr; gap: 18px; } .step-media { height: 160px; } .auto-body-container{padding:28px 16px;} h1.page-title{font-size:28px;} }

/* Focus states (keyboard) — subtle ring */
.step-card:focus-within { outline: none; box-shadow: 0 24px 64px rgba(15,23,42,0.14); z-index: 12; border-radius: var(--radius); }

/* Defensive: ensure card children don't overflow the rounded corners on transforms */
.step-card, .step-card * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* make sure the media image follows the card border radius */
.step-media { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.step-media img { border-top-left-radius: inherit; border-top-right-radius: inherit; }

/* Optional: make captions slightly separated */
.caption_list4 { padding: 0; }

/* tidy footer spacing when container present */
.auto-body-page footer .footer-main { padding-top: 40px; }
