/* ===========================================================
   AutoSPC - THE CONG CU TRANG CHU (v2 - moi the mot mau)
   Nap SAU style.css va fix-responsive.css de ghi de rule cu.
   Bien dung cho tung the:
     --accent      : dai mau tren dinh the + vien khi hover
     --accent-soft : nen o icon
     --accent-ink  : mau chu "Mo cong cu" (dam hon de de doc)
   =========================================================== */

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:18px;
  margin-bottom:28px;
  align-items:stretch;
}

.tool-card{
  --accent:#1f4488;
  --accent-soft:#e9effa;
  --accent-ink:#1f4488;
  position:relative;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px 20px 18px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:0;
  overflow:hidden;
  text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

/* dai mau mong tren dinh the */
.tool-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:var(--accent);
}

.tool-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(15,27,45,.14);
  border-color:var(--accent);
}

/* o icon vuong, cung kich thuoc cho moi the */
.tool-ico{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:13px;
  background:var(--accent-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  line-height:1;
  margin:6px 0 12px;
}
.tool-ico img{
  width:26px;
  height:26px;
  display:block;
}

/* tieu de chua san 2 dong -> tieu de & mo ta cac the thang hang */
.tool-card h3{
  margin:0 0 6px;
  font-size:17px;
  line-height:1.3;
  color:var(--navy-900);
  min-height:calc(2 * 1.3em);
  display:flex;
  align-items:flex-start;
}

.tool-card p{
  margin:0;
  color:var(--ink-600);
  font-size:13.5px;
  line-height:1.55;
  flex:1;
}

.tool-cta{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--accent-ink);
  font-weight:700;
  font-size:13.5px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:gap .18s ease;
}
.tool-card:hover .tool-cta{ gap:10px; }

/* ---- mau rieng cho tung the ---- */
.tool-card[data-target="myss"]{
  --accent:#df0a0c; --accent-soft:#fdecec; --accent-ink:#c00709;
}
.tool-card[data-target="om"]{
  --accent:#e06a00; --accent-soft:#fff2e2; --accent-ink:#b04f00;
}
.tool-card[data-target="day-mcb"]{
  --accent:#1f4488; --accent-soft:#e9effa; --accent-ink:#1f4488;
}
.tool-card[data-target="solar"]{
  --accent:#c9920a; --accent-soft:#fdf4dd; --accent-ink:#8a6508;
}
.tool-card[data-target="mba"]{
  --accent:#6d3fb5; --accent-soft:#f1ebfd; --accent-ink:#5b31a0;
}
.tool-card[data-target="vpp"]{
  --accent:#0d7a5f; --accent-soft:#e6f5f0; --accent-ink:#0a6450;
}

@media (max-width:640px){
  .card-grid{ grid-template-columns:1fr; gap:14px; }
  .tool-card{ padding:18px 16px 16px; }
  .tool-card h3{ min-height:0; }
  .tool-ico{ width:44px; height:44px; flex-basis:44px; font-size:22px; margin:4px 0 10px; }
}
