/* 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, #ffffff, #fafbfc);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.1);
  transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 102, 214, 0.08);
}

.step-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 102, 214, 0.18), 0 0 1px rgba(15, 23, 42, 0.15);
  z-index: 10;
  border-color: rgba(0, 180, 255, 0.3);
}

.step-media { 
  width: 100%; 
  height: 200px; 
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0066d6 0%, #00b4ff 100%);
  position: relative;
}

.step-media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.step-media i { 
  font-size: 72px;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.step-card:hover .step-media {
  background: linear-gradient(135deg, #00b4ff 0%, #0066d6 100%);
}

.step-card:hover .step-media i {
  transform: scale(1.2) translateY(-8px);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.step-body { 
  padding: 28px 28px 32px; 
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
}

.step-title { 
  font-size: 20px; 
  font-weight: 700; 
  color: #0b1220;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.step-desc { 
  margin: 0; 
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.step-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0066d6;
  font-weight: 800;
  font-size: 24px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 102, 214, 0.25);
  z-index: 6;
  border: 3px solid rgba(0, 180, 255, 0.3);
  transition: all 0.3s ease;
}

.step-card:hover .step-badge {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 102, 214, 0.35);
  border-color: rgba(0, 180, 255, 0.5);
}

/* 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: 180px; } .step-media i { font-size: 64px; } }
@media (max-width: 768px){ .list4 { grid-template-columns: 1fr; gap: 20px; } .step-media { height: 160px; } .step-media i { font-size: 56px; } .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 container follows the card border radius */
.step-media { 
  border-top-left-radius: var(--radius); 
  border-top-right-radius: var(--radius); 
}

/* Optional: make captions slightly separated */
.caption_list4 { padding: 0; }

/* tidy footer spacing when container present */
.auto-body-page footer .footer-main { padding-top: 40px; }
