/* ============================================================
   SX Service Pillars
   4 large pillar cards (2x2 grid default). Each card: accent
   color rotation, icon, tagline, title, description, bullet
   capabilities, optional link.
   ============================================================ */

.sx-pillars {
  padding: 90px 0 80px;
  background: #ffffff;
}

@media (max-width: 767px) {
  .sx-pillars { padding: 60px 0; }
}

.sx-pillars__header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

/* Grid — 2 columns desktop / 1 mobile */
.sx-pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .sx-pillars__grid { grid-template-columns: 1fr; }
}

/* Card */
.sx-pillars__card {
  --sx-pillar-accent: #376CB4;
  position: relative;
  padding: 38px 34px 32px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(15, 30, 60, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
}

@media (max-width: 767px) {
  .sx-pillars__card { padding: 28px 22px 24px; border-radius: 14px; }
}

/* Top accent bar */
.sx-pillars__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sx-pillar-accent);
}

.sx-pillars__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 30, 60, 0.10);
  border-color: color-mix(in srgb, var(--sx-pillar-accent) 30%, transparent);
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .sx-pillars__card:hover { border-color: #cfd7e0; }
}

/* Accent color variants */
.sx-pillars__card--green  { --sx-pillar-accent: #62BEAC; }
.sx-pillars__card--yellow { --sx-pillar-accent: #FFD760; }
.sx-pillars__card--red    { --sx-pillar-accent: #E9465C; }
.sx-pillars__card--blue   { --sx-pillar-accent: #376CB4; }

/* Icon */
.sx-pillars__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--sx-pillar-accent) 14%, transparent);
  color: var(--sx-pillar-accent);
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .sx-pillars__icon { width: 52px; height: 52px; margin-bottom: 16px; }
  .sx-pillars__icon svg { width: 26px; height: 26px; }
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .sx-pillars__icon { background: #f0f4f9; }
}

/* Yellow accent: icon needs dark for WCAG on tinted bg */
.sx-pillars__card--yellow .sx-pillars__icon { color: #b48a08; }

.sx-pillars__icon svg {
  width: 30px;
  height: 30px;
}

/* Tagline */
.sx-pillars__tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sx-pillar-accent);
  margin-bottom: 8px;
}

.sx-pillars__card--yellow .sx-pillars__tagline { color: #b48a08; }

/* Title */
.sx-pillars__title {
  font-size: 24px;
  font-weight: 700;
  color: #12314f;
  margin: 0 0 12px;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 767px) {
  .sx-pillars__title { font-size: 20px; }
}

/* Description */
.sx-pillars__description {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}

/* Capabilities */
.sx-pillars__capabilities {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sx-pillars__capabilities li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #374151;
  line-height: 1.5;
  overflow-wrap: break-word;
  min-width: 0;
}

.sx-pillars__capabilities li span {
  min-width: 0;
  flex: 1;
}

.sx-pillars__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--sx-pillar-accent);
}

.sx-pillars__card--yellow .sx-pillars__check { color: #b48a08; }

/* Learn more link */
.sx-pillars__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sx-pillar-accent) !important;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.sx-pillars__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.sx-pillars__link:hover {
  gap: 10px;
  text-decoration: none;
}

.sx-pillars__link:hover svg { transform: translateX(3px); }

.sx-pillars__card--yellow .sx-pillars__link { color: #b48a08 !important; }
