/* Service detail pages: full-width content, new Sub Services + Case Study */
.branding-layout { display: block; padding: 5rem 0 6rem; }
.branding-content { max-width: 100%; }
.branding-content > p { max-width: 980px; }

.sv-h {
  position: relative;
  margin: 0 0 28px;
  padding-left: 18px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #0a1428;
  line-height: 1.2;
}
.sv-h::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0f4c92, #f5a623);
}

/* ---------- Sub Services ---------- */
.sv-sub { margin-top: 56px; }
.sv-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sv-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px 22px;
  background: #fff;
  border: 1px solid #e3ebf6;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 76, 146, .06);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.sv-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f4c92, #f5a623);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .35s ease;
}
.sv-item__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 17px;
  color: #0f4c92;
  background: linear-gradient(135deg, #eef4fc, #d9e6f8);
  transition: background .3s ease, color .3s ease;
}
.sv-item__text {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #0a1428;
  transition: color .3s ease;
}
.sv-item:hover {
  transform: translateY(-6px);
  background: linear-gradient(160deg, #0f4c92, #0a2a5c);
  border-color: #0f4c92;
  box-shadow: 0 20px 40px rgba(15, 76, 146, .28);
}
.sv-item:hover::after { transform: scaleX(1); }
.sv-item:hover .sv-item__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.sv-item:hover .sv-item__text { color: #fff; }

/* ---------- Case Study ---------- */
.sv-cases { margin-top: 72px; }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3ebf6;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(15, 76, 146, .07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cs-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15, 76, 146, .18); }
.cs-card__img { aspect-ratio: 413 / 514; overflow: hidden; background: #eef4fc; }
.cs-card__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .5s ease;
}
.cs-card:hover .cs-card__img img { transform: scale(1.05); }
.cs-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cs-card__tag { font-size: 12px; font-weight: 700; color: #0f4c92; }
.cs-card__body h4 { margin: 0; font-size: 16px; font-weight: 800; color: #0a1428; line-height: 1.3; }
.cs-card__body p { margin: 0; font-size: 13px; color: #4a5a70; }

@media (max-width: 1100px) {
  .sv-list { grid-template-columns: repeat(3, 1fr); }
  .cs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .sv-list { grid-template-columns: repeat(2, 1fr); }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .branding-layout { padding: 3rem 0 4rem; }
  .sv-list { grid-template-columns: 1fr; }
  .cs-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .sv-item { flex-direction: row; align-items: center; padding: 18px; }
  .sv-cases { margin-top: 52px; }
}

/* ---------- Case Study lightbox ---------- */
.cs-card { cursor: zoom-in; }
.cs-lb {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 14, 28, .88); padding: 24px;
}
.cs-lb.open { display: flex; }
.cs-lb img {
  max-width: min(92vw, 900px); max-height: 90vh;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff;
}
.cs-lb button {
  position: absolute; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; line-height: 1;
}
.cs-lb button:hover { background: rgba(255, 255, 255, .3); }
.cs-lb__close { top: 18px; right: 18px; }
.cs-lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.cs-lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
