/* Smart Steps homepage — aligned to Company Profile 2026 */

:root {
  --ss-navy: #0b1733;
  --ss-blue: #1648a0;
  --ss-teal: #0a7a72;
  --ss-green: #21803A;
  --ss-ink: #101828;
  --ss-muted: #344054;
  --ss-line: rgba(21, 32, 51, 0.1);
  --ss-paper: #f5f7fb;
  --ss-sand: #eef3f8;
  --ss-white: #ffffff;
  --ss-font: "Sora", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ss-font-ar: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
}

body.ss-home {
  font-family: var(--ss-font);
  color: var(--ss-ink);
  background: var(--ss-white);
  overflow-x: clip;
}

body.ss-home.lang-ar,
html[lang="ar"] body.ss-home {
  font-family: var(--ss-font-ar);
  line-height: 1.75;
  letter-spacing: 0;
}

html[lang="ar"] body.ss-home .ss4-hero-title,
html[lang="ar"] body.ss-home .ss4-h2,
html[lang="ar"] body.ss-home .ss4-badge,
html[lang="ar"] body.ss-home .ss4-btn,
html[lang="ar"] body.ss-home .ss4-tag,
html[lang="ar"] body.ss-home .ss4-eyebrow,
html[lang="ar"] body.ss-home .ss-nav,
html[lang="ar"] body.ss-home h3,
html[lang="ar"] body.ss-home h4,
body.ss-home.lang-ar .ss4-hero-title,
body.ss-home.lang-ar .ss4-h2,
body.ss-home.lang-ar .ss4-badge,
body.ss-home.lang-ar .ss4-btn,
body.ss-home.lang-ar .ss4-tag,
body.ss-home.lang-ar .ss4-eyebrow,
body.ss-home.lang-ar .ss-nav,
body.ss-home.lang-ar h3,
body.ss-home.lang-ar h4 {
  font-family: var(--ss-font-ar);
  letter-spacing: 0;
}

body.ss-home main,
body.ss-home .ss4-wrap,
body.ss-home .ss4-hero-grid,
body.ss-home .ss4-hero-copy,
body.ss-home .ss4-hero-visual,
body.ss-home .ss4-ai-intro,
body.ss-home .ss4-ai-pillar,
body.ss-home .ss4-ai-pillar-copy,
body.ss-home .ss4-product,
body.ss-home .ss4-consult-panel {
  min-width: 0;
  max-width: 100%;
}

.ss4-wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.ss4-section { padding: clamp(3.25rem, 6vw, 5rem) 0; }

.ss4-eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ss-teal);
}

body.lang-ar .ss4-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.92rem;
}

.ss4-h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ss-navy);
  max-width: 20ch;
}

body.lang-ar .ss4-h2 {
  max-width: 24ch;
  letter-spacing: 0;
  line-height: 1.35;
}

.ss4-text {
  margin: 0;
  max-width: 40rem;
  color: var(--ss-muted);
  font-size: 1.06rem;
  line-height: 1.65;
  font-weight: 500;
}

.ss4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.ss4-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ss4-btn-main { background: var(--ss-blue); color: #fff; box-shadow: 0 10px 24px rgba(22, 72, 160, 0.28); }
.ss4-btn-main:hover { background: #123a84; color: #fff; }
.ss4-btn-line { background: #fff; color: var(--ss-navy); border-color: rgba(16,24,40,.18); }
.ss4-btn-line:hover { background: #f8fafc; color: var(--ss-navy); border-color: rgba(22,72,160,.35); }
.ss4-btn-light { background: #fff; color: var(--ss-navy); }
.ss4-btn-light:hover { background: #f8fafc; color: var(--ss-navy); }
.ss4-btn-teal { background: var(--ss-teal); color: #fff; }
.ss4-btn-teal:hover { background: #0c7a73; color: #fff; }

/* HERO — product-led, stronger presence */
.ss4-hero {
  position: relative;
  overflow: hidden;
  padding: 7.4rem 0 4.2rem;
  background:
    radial-gradient(ellipse 60% 50% at 85% 18%, rgba(22, 72, 160, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 40% at 8% 82%, rgba(10, 122, 114, 0.14), transparent 55%),
    linear-gradient(165deg, #eef4fb 0%, #f8fafc 45%, #e8f0f8 100%);
}

.ss4-hero-glow {
  position: absolute;
  inset: auto -12% -25% 35%;
  height: 55%;
  background: radial-gradient(circle, rgba(22, 72, 160, 0.12), transparent 70%);
  pointer-events: none;
}

.ss4-hero-grid {
  position: relative;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ss4-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 2.75rem; }
}

.ss4-brand-mark {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ss-blue);
}

body.lang-ar .ss4-brand-mark {
  letter-spacing: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.ss4-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 72, 160, 0.22);
  background: linear-gradient(180deg, #fff, #f3f7ff);
  color: var(--ss-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(22, 72, 160, 0.08);
}

body.lang-ar .ss4-badge {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.88rem;
}

.ss4-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 3.05rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ss-navy);
  max-width: 16ch;
  overflow-wrap: anywhere;
  animation: ss4-rise 0.7s ease both;
}

body.lang-ar .ss4-hero-title {
  max-width: 18ch;
  line-height: 1.35;
  letter-spacing: 0;
}

.ss4-hero-lead {
  margin: 0 0 1.35rem;
  max-width: 36rem;
  color: #1f2a3d;
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  line-height: 1.65;
  font-weight: 600;
  overflow-wrap: anywhere;
  animation: ss4-rise 0.7s ease 0.08s both;
}

.ss4-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  animation: ss4-rise 0.7s ease 0.14s both;
}

.ss4-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: ss4-rise 0.7s ease 0.2s both;
}

.ss4-hero-proof li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 24, 40, 0.1);
  color: var(--ss-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.ss4-hero-visual {
  position: relative;
  animation: ss4-rise 0.85s ease 0.12s both;
  width: 100%;
}

.ss4-browser--hero {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  box-shadow:
    0 30px 70px rgba(11, 23, 51, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

@media (max-width: 991.98px) {
  .ss4-browser--hero { transform: none; }
}

.ss4-float-chip {
  position: absolute;
  bottom: 0.85rem;
  inset-inline-start: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--ss-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(11, 23, 51, 0.28);
  animation: ss4-float 3.5s ease-in-out infinite;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes ss4-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes ss4-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Browser frame for real UI (16:9) */
.ss4-browser {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ss-line);
  background: #fff;
  box-shadow: 0 24px 50px rgba(15, 28, 63, 0.12);
}

.ss4-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  background: #eef2f7;
  border-bottom: 1px solid var(--ss-line);
}

.ss4-browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.ss4-browser-bar span:nth-child(1) { background: #f87171; }
.ss4-browser-bar span:nth-child(2) { background: #fbbf24; }
.ss4-browser-bar span:nth-child(3) { background: #34d399; }

.ss4-browser-url {
  margin-inline-start: 0.6rem;
  flex: 1;
  min-width: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ss-line);
  color: var(--ss-muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss4-browser-screen {
  aspect-ratio: 16 / 9;
  background: #f8fafc;
}

.ss4-browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Partners */
.ss4-partners {
  background: #fff;
  border-block: 1px solid var(--ss-line);
  padding: 1.6rem 0;
}

.ss4-partners-head {
  text-align: center;
  margin-bottom: 1.1rem;
}

.ss4-partners-head p {
  margin: 0;
  color: var(--ss-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.ss4-logo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .ss4-logo-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .ss4-logo-row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

.ss4-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--ss-paper);
  border: 1px solid var(--ss-line);
}

.ss4-logo-card img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Specialty */
.ss4-specialty { background: var(--ss-paper); }

.ss4-specialty-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .ss4-specialty-grid { grid-template-columns: repeat(3, 1fr); }
}

.ss4-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ss-line);
}

.ss4-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ss-navy);
}

.ss4-card p {
  margin: 0;
  color: var(--ss-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Smart Hub */
.ss4-hub { background: var(--ss-navy); color: #fff; }

.ss4-hub .ss4-eyebrow { color: #7dd3c8; }
.ss4-hub .ss4-h2 { color: #fff; }
.ss4-hub .ss4-text { color: rgba(255,255,255,.78); }

.ss4-hub-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .ss4-hub-grid { grid-template-columns: repeat(3, 1fr); }
}

.ss4-hub-card {
  padding: 1.3rem;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s ease, background .2s ease;
}

.ss4-hub-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.08);
  color: inherit;
  text-decoration: none;
}

.ss4-hub-card i {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  background: rgba(255,255,255,.1);
}

.ss4-hub-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.ss4-hub-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ss4-hub-card--academic i { color: #5eead4; }
.ss4-hub-card--hire i { color: #c4b5fd; }
.ss4-hub-card--erp i { color: #86efac; }

/* Product blocks */
.ss4-products { background: #fff; }

.ss4-product {
  display: grid;
  gap: 1.6rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 20px;
  border: 1px solid var(--ss-line);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 16px 40px rgba(11, 23, 51, 0.05);
}

.ss4-product > .ss4-browser,
.ss4-product > .ss4-product-copy {
  min-width: 0;
}

@media (min-width: 900px) {
  .ss4-product {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
  .ss4-product--flip {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .ss4-product--flip > .ss4-browser { order: 2; }
  .ss4-product--flip > .ss4-product-copy { order: 1; }
}

.ss4-product .ss4-browser {
  width: 100%;
}

.ss4-product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.ss4-tag {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,143,134,.1);
  color: var(--ss-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.lang-ar .ss4-tag {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
}

.ss4-product-copy h3 {
  margin: 0 0 0.55rem;
  font-size: 1.4rem;
  color: var(--ss-navy);
}

.ss4-product-copy p {
  margin: 0 0 0.9rem;
  color: var(--ss-muted);
  line-height: 1.6;
}

.ss4-product-copy ul {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.ss4-product-copy li {
  position: relative;
  padding-inline-start: 1.1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.ss4-product-copy li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ss-blue);
}

/* AI / process / tech */
.ss4-ai { background: var(--ss-paper); }

.ss4-ai-grid,
.ss4-process-grid,
.ss4-tech-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .ss4-ai-grid { grid-template-columns: 1fr 1.05fr; align-items: center; }
  .ss4-process-grid { grid-template-columns: repeat(5, 1fr); }
  .ss4-tech-grid { grid-template-columns: repeat(4, 1fr); }
}

.ss4-process { background: #fff; }

.ss4-step {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--ss-line);
  background: var(--ss-paper);
}

.ss4-step b {
  display: block;
  color: var(--ss-teal);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.ss4-step strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.ss4-step span {
  color: var(--ss-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ss4-tech { background: var(--ss-navy); color: #fff; }
.ss4-tech .ss4-eyebrow { color: #7dd3c8; }
.ss4-tech .ss4-h2 { color: #fff; }
.ss4-tech .ss4-text { color: rgba(255,255,255,.75); }

.ss4-tech-item {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Consultation — keep visual language, same content */
.ss4-consult { background: var(--ss-sand); }

.ss4-consult-panel {
  display: grid;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ss-line);
  background: #fff;
}

@media (min-width: 900px) {
  .ss4-consult-panel { grid-template-columns: 1.1fr 0.9fr; }
}

.ss4-consult-copy { padding: clamp(1.3rem, 3vw, 2rem); }

.ss4-consult-copy ul {
  margin: 1rem 0 1.3rem;
  padding: 0;
  list-style: none;
}

.ss4-consult-copy li {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ss4-consult-copy li i {
  color: var(--ss-green);
  margin-inline-end: 0.35rem;
}

.ss4-consult-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.ss4-trust { background: #fff; }

.ss4-trust-card {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--ss-line);
  background: var(--ss-paper);
}

@media (min-width: 900px) {
  .ss4-trust-card { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

.ss4-trust-card video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.ss4-quote { margin: 0 0 0.9rem; line-height: 1.7; }
.ss4-quote-meta strong { display: block; }
.ss4-quote-meta span { color: var(--ss-muted); font-size: 0.9rem; }

.ss4-contact { background: var(--ss-paper); }

.ss4-contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .ss4-contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

.ss4-panel {
  background: #fff;
  border: 1px solid var(--ss-line);
  border-radius: 16px;
  padding: 1.3rem;
}

.ss4-panel h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.ss4-panel p { margin: 0 0 1rem; color: var(--ss-muted); line-height: 1.55; }
.ss4-panel a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: var(--ss-blue);
  font-weight: 700;
  text-decoration: none;
}

.ss4-panel .form-control,
.ss4-panel select.form-control {
  border-radius: 0.75rem;
  min-height: 46px;
  border-color: rgba(21,32,51,.12);
}

.ss4-faq { background: #fff; }
.ss4-faq .accordion-item {
  border: 1px solid var(--ss-line) !important;
  border-radius: 12px !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.ss4-faq .accordion-button:not(.collapsed) {
  background: rgba(27,79,156,.05);
  color: var(--ss-blue);
  box-shadow: none;
}

.ss-home .whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37,211,102,.45);
  z-index: 9999;
}
.ss-home .whatsapp-float:hover { color: #fff; transform: scale(1.06); }
[dir="rtl"] .ss-home .whatsapp-float { right: auto; left: 24px; }

/* News */
.ss4-news { background: #fff; }
.ss4-news-head { max-width: 42rem; margin-bottom: 1.5rem; }
.ss4-news-feature {
  display: grid;
  gap: 0;
  border: 1px solid var(--ss-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ss-paper);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}
@media (min-width: 960px) {
  .ss4-news-feature { grid-template-columns: 0.95fr 1.15fr; }
}
.ss4-news-media {
  margin: 0;
  background: #e8eef7;
  min-height: 100%;
}
.ss4-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
}
.ss4-news-body { padding: clamp(1.25rem, 3vw, 2rem); }
.ss4-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.ss4-news-badge {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(27, 79, 156, 0.1);
  color: var(--ss-blue);
  font-size: 0.75rem;
  font-weight: 700;
}
.ss4-news-date {
  color: var(--ss-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.ss4-news-body h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  color: var(--ss-ink);
}
.ss4-news-copy p {
  color: var(--ss-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

/* Services */
.ss4-services { background: var(--ss-paper); }
.ss4-services-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}
@media (min-width: 768px) {
  .ss4-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ss4-services-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .ss4-services-grid { grid-template-columns: repeat(3, 1fr); }
  .ss4-services-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.ss4-service {
  padding: 1.15rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ss-line);
}
.ss4-service i {
  font-size: 1.35rem;
  color: var(--ss-blue);
  margin-bottom: 0.55rem;
  display: inline-block;
}
.ss4-service h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}
.ss4-service p {
  margin: 0;
  color: var(--ss-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.ss4-resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

/* Why points */
.ss4-why-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.35rem 0 1.75rem;
}
@media (min-width: 900px) {
  .ss4-why-grid { grid-template-columns: repeat(4, 1fr); }
}
.ss4-why {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--ss-line);
  background: var(--ss-paper);
}
.ss4-why i {
  color: var(--ss-teal);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  display: block;
}
.ss4-why strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.ss4-why span {
  color: var(--ss-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.ss4-subhead {
  margin: 0.5rem 0 0.55rem;
  font-size: 1.15rem;
  color: var(--ss-ink);
}

/* Consultation videos */
.ss4-videos {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.ss4-videos-head {
  text-align: center;
  margin-bottom: 1.25rem;
}
.ss4-videos-head h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}
.ss4-videos-head p {
  margin: 0;
  color: var(--ss-muted);
}
.ss4-video-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .ss4-video-grid { grid-template-columns: 1fr 1fr; }
}
.ss4-video-card,
.ss4-short-card {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ss-line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.ss4-video-card figcaption,
.ss4-short-card figcaption {
  padding: 0.75rem 1rem;
  margin: 0;
  text-align: center;
  color: var(--ss-muted);
  font-size: 0.9rem;
}
.ss4-short-wrap {
  margin-top: 1.5rem;
  text-align: center;
}
.ss4-short-wrap h4 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}
.ss4-short-card {
  max-width: 320px;
  margin-inline: auto;
}

/* About + leadership */
.ss4-about { background: #fff; }
.ss4-about .ss4-wrap {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .ss4-about .ss4-wrap { grid-template-columns: 1.2fr 0.8fr; }
}
.ss4-leadership {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--ss-line);
  background: var(--ss-paper);
}
.ss4-leadership img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ss4-leadership-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-teal);
  font-weight: 700;
}
.ss4-leadership h3 {
  margin: 0.15rem 0;
  font-size: 1.15rem;
}
.ss4-leadership p:last-child {
  margin: 0;
  color: var(--ss-muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .ss4-btn, .ss4-hub-card { transition: none; transform: none !important; }
  .ss4-hero-title,
  .ss4-hero-lead,
  .ss4-hero-actions,
  .ss4-hero-proof,
  .ss4-hero-visual,
  .ss4-float-chip { animation: none; }
}

/* Website samples preview */
.ss4-sites { background: #fff; }
.ss4-sites-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
}
@media (min-width: 700px) {
  .ss4-sites-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .ss4-sites-grid { grid-template-columns: repeat(4, 1fr); }
}
.ss4-site-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ss-line);
  background: var(--ss-paper);
  box-shadow: 0 12px 28px rgba(11, 23, 51, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ss4-site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 23, 51, 0.12);
  color: inherit;
  text-decoration: none;
}
.ss4-site-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #e8eef7;
}
.ss4-site-card span {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ss-navy);
}

/* Alignment helpers for section heads */
.ss4-partners-head .ss4-eyebrow,
.ss4-news-head .ss4-eyebrow,
.ss4-videos-head .ss4-eyebrow {
  text-align: center;
}
.ss4-partners-head p {
  color: var(--ss-muted);
  font-weight: 600;
}
.ss4-hub .ss4-hub-card h3 { color: #fff; }
.ss4-hub .ss4-hub-card p { color: rgba(255, 255, 255, 0.82); }

/* Nav alignment polish */
.ss-nav .nav-link {
  font-weight: 600;
  color: #1f2937 !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}
.ss-nav .nav-link:hover { color: var(--ss-blue) !important; }
.ss-nav .btn {
  align-items: center;
  min-height: 2.45rem;
  border-radius: 999px;
  font-weight: 700;
}

/* ——— AI hero art ——— */
.ss4-hero--ai .ss4-hero-title {
  max-width: 16ch;
}

body.lang-ar .ss4-hero--ai .ss4-hero-title {
  max-width: 24ch;
  line-height: 1.45;
}

.ss4-hero-art {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 72, 160, 0.14);
  box-shadow: 0 22px 50px rgba(11, 23, 51, 0.14);
  background: #0b1733;
  width: 100%;
}

.ss4-hero-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.ss4-ai-intro-media,
.ss4-ai-pillar-media {
  background: #0f172a;
}

.ss4-ai-intro-media img,
.ss4-ai-pillar-media img {
  object-position: center;
  max-width: 100%;
}

@media (min-width: 992px) {
  .ss4-hero-art {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  }
}

@media (max-width: 991.98px) {
  .ss4-hero {
    padding: 6.2rem 0 2.75rem;
  }
  .ss4-hero-art {
    transform: none;
    border-radius: 14px;
  }
  .ss4-hero-proof li {
    font-size: 0.78rem;
  }
}

/* ——— AI Solutions section ——— */
.ss4-ai {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(22, 72, 160, 0.07), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
}

.ss4-ai-intro {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 992px) {
  .ss4-ai-intro {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
  }
}

.ss4-ai-intro--solo {
  display: block;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.ss4-ai-intro--solo .ss4-h2,
.ss4-ai-intro--solo .ss4-text,
.ss4-ai-intro--solo .ss4-eyebrow {
  margin-inline: auto;
  max-width: none;
}
body.lang-ar .ss4-ai-intro--solo .ss4-h2 {
  max-width: none;
}
.ss4-ai-intro--solo .ss4-text {
  max-width: 42rem;
}

.ss4-ai-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.ss4-ai-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 72, 160, 0.16);
  background: #fff;
  color: var(--ss-navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 28, 63, 0.05);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.ss4-ai-quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 72, 160, 0.35);
  color: var(--ss-blue);
  text-decoration: none;
}
.ss4-ai-quick-link i { color: var(--ss-teal); }

.ss4-ai-pillars {
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
}

body.ss-home .ss-nav .ss-nav-ai-short { display: none; }
body.ss-home .ss-nav .ss-nav-ai-full { display: inline; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.ss-home .ss-nav .ss-nav-ai-full { display: none; }
  body.ss-home .ss-nav .ss-nav-ai-short { display: inline; }
}

.ss4-hero--ai .ss4-badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  text-align: start;
}

.ss4-section-head .ss4-text {
  margin-top: 0.35rem;
}

/* Stronger AI section breathing room */
.ss4-ai.ss4-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.ss4-ai-pillar {
  transition: box-shadow .25s ease, transform .25s ease;
}
.ss4-ai-pillar:hover {
  box-shadow: 0 16px 40px rgba(15, 28, 63, 0.09);
  transform: translateY(-2px);
}

/* Mobile containment — prevent horizontal “cut off” layout */
@media (max-width: 991.98px) {
  .ss4-wrap {
    padding-inline: 1.15rem;
  }
  .ss4-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ss4-hero-actions .ss4-btn {
    width: 100%;
  }
  .ss4-hero-title,
  .ss4-hero--ai .ss4-hero-title,
  body.lang-ar .ss4-hero--ai .ss4-hero-title,
  .ss4-hero-lead,
  .ss4-h2,
  .ss4-text {
    max-width: 100%;
  }
  .ss4-hero--ai .ss4-badge {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  body.lang-ar .ss4-hero--ai .ss4-badge {
    font-size: 0.82rem;
  }
  .ss4-ai-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ss4-ai-cta-actions .ss4-btn {
    width: 100%;
  }
  .ss4-ai-pillar:hover {
    transform: none;
  }
}

body.ss-home img:not(.ss-nav-logo):not(.mega-menu-item-logo-img):not(.program-nav-logo) {
  max-width: 100%;
  height: auto;
}

body.ss-home .ss-nav-logo {
  height: 40px !important;
  width: auto !important;
  max-width: min(180px, 52vw) !important;
  object-fit: contain;
}

body.ss-home .ss4-section,
body.ss-home .ss4-hero,
body.ss-home .ss4-partners,
body.ss-home .ss4-ai {
  overflow-x: clip;
}

.ss4-ai-intro .ss4-text {
  overflow-wrap: anywhere;
}

.ss4-ai-intro-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ss-line);
  box-shadow: 0 16px 36px rgba(15, 28, 63, 0.09);
  background: #0b1733;
  width: 100%;
}

.ss4-ai-intro-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ss4-ai-pillars {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.ss4-ai-pillar {
  display: grid;
  gap: 1.15rem;
  align-items: start;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ss-line);
  box-shadow: 0 10px 28px rgba(15, 28, 63, 0.045);
  width: 100%;
  overflow: hidden;
}

@media (min-width: 992px) {
  .ss4-ai-pillar {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.5rem;
    align-items: center;
  }
  .ss4-ai-pillar--flip > .ss4-ai-pillar-media { order: 2; }
  .ss4-ai-pillar--flip > .ss4-ai-pillar-copy { order: 1; }
}

.ss4-ai-pillar-media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ss-line);
  background: var(--ss-paper);
  width: 100%;
}

.ss4-ai-pillar-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ss4-ai-pillar:hover .ss4-ai-pillar-media img {
  transform: scale(1.02);
}

.ss4-ai-pillar-copy h3 {
  margin: 0.45rem 0 0.55rem;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 800;
  color: var(--ss-navy);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ss4-ai-pillar-copy > p {
  margin: 0 0 0.85rem;
  color: var(--ss-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.ss4-ai-pillar-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

@media (min-width: 1100px) {
  .ss4-ai-pillar-copy ul {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.9rem;
  }
}

.ss4-ai-pillar-copy li {
  position: relative;
  padding-inline-start: 1.05rem;
  color: var(--ss-ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ss4-ai-pillar-copy li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ss-teal);
}

.ss4-ai-why {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.2rem, 2.8vw, 1.85rem);
  border-radius: 16px;
  background: var(--ss-navy);
  color: #fff;
  overflow: hidden;
}

@media (min-width: 992px) {
  .ss4-ai-why {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 1.75rem;
  }
}

.ss4-ai-why .ss4-eyebrow { color: #7dd3c8; }
.ss4-ai-why h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff !important;
}
.ss4-ai-why p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.65;
  font-weight: 500;
  font-size: 0.96rem;
}
.ss4-ai-why-points strong {
  color: #ffffff !important;
  font-size: 0.92rem;
}
.ss4-ai-why-points span {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.8rem;
  font-weight: 500;
}

.ss4-ai-why-points {
  display: grid;
  gap: 0.65rem;
}

.ss4-ai-why-points > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ss4-ai-why-points i {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.2rem;
  color: #7dd3c8;
}

.ss4-ai-cta {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.25rem;
  padding: clamp(1.2rem, 2.8vw, 1.85rem);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(22, 72, 160, 0.07), rgba(10, 122, 114, 0.08)),
    #fff;
  border: 1px solid rgba(22, 72, 160, 0.12);
  align-items: center;
  overflow: hidden;
}

@media (min-width: 900px) {
  .ss4-ai-cta {
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 1.5rem;
  }
}

.ss4-ai-cta h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 800;
  color: var(--ss-navy);
  line-height: 1.3;
}

.ss4-ai-cta p {
  margin: 0;
  color: var(--ss-muted);
  line-height: 1.6;
  font-weight: 500;
  font-size: 0.95rem;
}

.ss4-ai-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Nav density on homepage */
body.ss-home .ss-nav .nav-link {
  font-size: 0.9rem;
  padding-inline: 0.45rem !important;
}
body.ss-home .ss-nav .nav-link-ai {
  color: var(--ss-blue) !important;
  font-weight: 800;
}
body.ss-home .ss-nav .btn {
  min-height: 2.3rem;
  padding-inline: 0.85rem;
  font-size: 0.86rem;
}
@media (max-width: 1199.98px) {
  body.ss-home .ss-nav .ss-nav-wa-text { display: none; }
  body.ss-home .ss-nav .ss-nav-wa { padding-inline: 0.7rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.ss-home .ss-nav .ss-nav-optional { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ss4-hero-art,
  .ss4-float-chip,
  .ss4-ai-pillar-media img {
    animation: none !important;
    transition: none !important;
  }
}
