/* SAIFI identity tokens. Original layout, fonts and breakpoints are retained. */
:root {
  --brand-primary: #1E3E89;
  --brand-primary-rgb: 30, 62, 137;
  --brand-hover: #193572;
  --brand-dark: #172448;
  --brand-accent: #314984;
  --brand-tint: #EDF1FC;
  --color-primary: var(--brand-primary);
  --brand-logo-fit: contain;
}
.hover\:text-brand\!:hover,
.group-hover\:text-brand\!:is(:where(.group):hover *) { color: var(--brand-primary) !important; }
.hover\:bg-brand-dark:hover { background-color: var(--brand-hover); }
.focus\:ring-brand:focus { --tw-ring-color: rgb(var(--brand-primary-rgb) / 35%); }
.saifi-company-lockup { display: flex; align-items: center; gap: 10px; max-width: 190px; padding-bottom: 28px; }
.saifi-company-lockup span { font-size: 13px; line-height: 1.5; color: #d2d5df; }
@media (min-width: 768px) { .saifi-company-lockup { padding-bottom: 0; } }
/* Keep the download card's existing badge layout, using the SAIFI app mark. */
[aria-label="Download app section"] .saifi-download-brand-logo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
}
/* Change only red/gray brand illustrations. Screenshots and third-party marks
   remain untouched until approved SAIFI app media is supplied. */
img[src*="0194f0adde61"], img[src*="1d115dc9b6bc"],
img[src*="1ed20e0437d9"], img[src*="2015717f3bbb"],
img[src*="5f85ba473a65"], img[src*="9786febb7a8c"],
img[src*="d182872bfcbc"], img[src*="01bb3a5f1108"],
img[src*="0a4de6e010ea"], img[src*="2efecd888fdb"],
img[src*="364bd5e36ae0"], img[src*="433b456590cf"],
img[src*="665d31eb9c29"], img[src*="945ba84133ff"],
img[src*="cdc393866ab4"], img[src*="dd57520886c6"],
img[src*="Answers%20and%20solutions"],
img[src*="Answers and solutions"], video[src*="help%20and%20support"],
video[src*="help and support"], video:has(source[src*="help%20and%20support"]),
video:has(source[src*="help and support"]) {
  filter: url("/assets/brand/saifi-color-filter.svg#brand-navy");
}

/* Keep the original moving service carousel with the corrected Alsaifi cards. */
[aria-label="Services section"] .relative.w-full.py-12 {
  padding: 8px !important;
  border-radius: 20px !important;
  background: #edf1fc !important;
}
[aria-label="Services section"] .saifi-service-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(3px, 1vw, 10px) !important;
  min-height: clamp(60px, 19.5vw, 176px) !important;
  padding: clamp(5px, 1.5vw, 14px) 4px !important;
  border: 0 !important;
  border-radius: clamp(12px, 2.2vw, 22px) !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #14162a !important;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}
[aria-label="Services section"] .saifi-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(30, 62, 137, 0.12) !important;
}
[aria-label="Services section"] .saifi-service-card .mb-6 {
  margin: 0 !important;
  line-height: 0 !important;
}
[aria-label="Services section"] .saifi-service-icon {
  display: block !important;
  width: clamp(26px, 9vw, 82px) !important;
  height: clamp(26px, 9vw, 82px) !important;
  object-fit: contain !important;
  filter: none !important;
}
[aria-label="Services section"] .saifi-service-card > div:last-child {
  gap: 0 !important;
}
[aria-label="Services section"] .saifi-service-label {
  margin: 0 !important;
  color: #14162a !important;
  font-size: clamp(10px, 2.2vw, 21px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
  -webkit-text-fill-color: #14162a !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}

/* Recolor only the service listing cards; the homepage carousel is untouched. */
.saifi-services-page-card {
  background-color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08) !important;
}
.saifi-services-page-card > .group {
  background-color: #FFFFFF !important;
}
.saifi-services-page-card :not(svg):not(img) {
  background-color: #FFFFFF !important;
}
.saifi-services-page-label {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
.saifi-services-page-arrow,
.saifi-services-page-arrow path,
.saifi-services-page-arrow line,
.saifi-services-page-arrow polyline {
  color: #1E3E89 !important;
  stroke: #1E3E89 !important;
}
.saifi-services-page-card:hover .saifi-services-page-arrow-control,
.saifi-services-page-card:focus-within .saifi-services-page-arrow-control {
  background-color: #EDF1FC !important;
}


