/* Case study pages (cs2 layout): work/sanad.html, work/awqaf-agentic-ai.html and their Arabic builds. */
/* Case study layout (cs2): one readable column, light page, numbers shown once. */
.cs2 { background: #FFFFFF; color: #1D1D1F; }
.cs2-wrap { max-width: 880px; margin: 0 auto; padding: 32px 24px 24px; }
.cs2 p, .cs2 li, .cs2 dd { font-size: 17px; line-height: 1.6; color: #3A3A3C; }
.cs2-back { display: inline-flex; gap: 8px; font-size: 15px; color: #6E6E73; }
.cs2-back:hover { color: #1D1D1F; }

.cs2-hero { padding: 48px 0 32px; }
.cs2-eyebrow { font-size: 14px !important; font-weight: 500; color: #6B4FFF !important; margin-bottom: 14px; }
.cs2 h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: #1D1D1F; margin: 0 0 18px; }
.cs2-lead { font-size: 20px !important; line-height: 1.5 !important; color: #515154 !important; max-width: 680px; }
.cs2-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.cs2-kpis div, .cs2-nums div { background: #F5F5F7; border-radius: 18px; padding: 20px; }
.cs2-kpis b, .cs2-nums b { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.02em; color: #1D1D1F; line-height: 1.1; }
.cs2-kpis span, .cs2-nums span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: #6E6E73; }

.cs2-hero-img { margin: 8px 0 0; border-radius: 24px; overflow: hidden; background: #F5F5F7; }
.cs2-hero-img img { display: block; width: 100%; height: auto; }

.cs2-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0 0; padding: 24px 0; border-top: 1px solid #E5E5EA; border-bottom: 1px solid #E5E5EA; }
.cs2-glance dt { font-size: 13px; font-weight: 600; color: #6E6E73; margin-bottom: 4px; }
.cs2-glance dd { margin: 0; font-size: 15px !important; line-height: 1.45 !important; color: #1D1D1F !important; }

.cs2-sec { padding: 64px 0 0; }
.cs2-k { font-size: 14px !important; font-weight: 600; color: #6B4FFF !important; margin-bottom: 8px; }
.cs2 h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: #1D1D1F; margin: 0 0 16px; }
.cs2 h3 { font-size: 20px; font-weight: 600; color: #1D1D1F; margin: 0 0 6px; letter-spacing: -.01em; }
.cs2 h4 { font-size: 17px; font-weight: 600; color: #1D1D1F; margin: 0 0 6px; }
.cs2-sub { margin-top: 48px !important; }
.cs2 ul { list-style: none; padding: 0; margin: 16px 0 0; }
.cs2 ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.cs2-x li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: #C7C7CC; }
.cs2-check li::before { content: "✓"; position: absolute; left: 0; color: #1F9D55; font-weight: 700; }
.cs2-check { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; }

.cs2-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.cs2-card { background: #F5F5F7; border-radius: 20px; padding: 20px; }
.cs2-card img { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 14px; background: #fff; margin-bottom: 16px; }
.cs2-card .who { font-size: 15px !important; color: #6E6E73 !important; margin: 0; }
.cs2-card li { font-size: 15px !important; margin-bottom: 4px; }
.cs2-card li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: #6B4FFF; }

.cs2-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.cs2-feat { border: 1px solid #E5E5EA; border-radius: 20px; padding: 22px; }
.cs2-feat p { font-size: 16px !important; margin: 0; }

.cs2-steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
.cs2-steps li { position: relative; padding: 0 0 24px 56px; counter-increment: s; }
.cs2-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #1D1D1F; color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.cs2-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: #E5E5EA; }
.cs2-steps b { display: block; font-size: 17px; color: #1D1D1F; margin-bottom: 2px; }
.cs2-steps span { display: block; font-size: 16px; line-height: 1.55; color: #515154; }

.cs2-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }

.cs2-quote { margin: 72px 0 0; padding: 40px 0; border-top: 1px solid #E5E5EA; border-bottom: 1px solid #E5E5EA; text-align: center; }
.cs2-quote blockquote { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; color: #1D1D1F; }
.cs2-quote figcaption { margin-top: 14px; font-size: 15px; color: #6E6E73; }

.cs2-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 56px; }
.cs2-next a { position: relative; display: block; background: #F5F5F7; border-radius: 20px; padding: 22px 56px 22px 22px; transition: background .2s; }
.cs2-next a:hover { background: #ECECF0; }
.cs2-next .k { display: block; font-size: 13px; font-weight: 600; color: #6E6E73; }
.cs2-next .t { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; color: #1D1D1F; line-height: 1.3; }
.cs2-next .a { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #1D1D1F; }

.cs2-nums b { font-size: clamp(26px, 3.2vw, 36px); white-space: nowrap; }
/* Unified closing banner (same as the rest of the site) */
.cs2 .cta-title { color: var(--text); }
.cs2 .cta-sub { color: var(--text-muted) !important; font-size: 18px !important; line-height: 1.5 !important; }
.cta-section { padding: 120px 0; position: relative; text-align: center; overflow: hidden; background: var(--bg); color: var(--text); }
.cta-section::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 700px 400px at 50% 80%, rgba(107,79,255,.10), transparent 60%),
              radial-gradient(ellipse 500px 300px at 20% 50%, rgba(235,111,90,.06), transparent 60%),
              radial-gradient(ellipse 500px 300px at 80% 50%, rgba(165,148,249,.06), transparent 60%); }
.cta-inner { position: relative; z-index: 1; }
.cta-title { font-size: clamp(36px, 6vw, 72px); line-height: 1.05; letter-spacing: -.03em; font-weight: 500; margin-bottom: 20px; }
.cta-title em { font-style: normal; font-weight: 700; }
.cta-sub { font-size: 18px; color: var(--text-muted); max-width: 540px; margin: 0 auto 40px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .cs2-wrap { padding: 20px 20px 16px; }
  .cs2-hero { padding: 28px 0 24px; }
  .cs2-lead { font-size: 18px !important; }
  .cs2-kpis { grid-template-columns: 1fr 1fr; }
  .cs2-kpis div:last-child { grid-column: 1 / -1; }
  .cs2-hero-img { border-radius: 18px; margin-inline: -4px; }
  .cs2-glance { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .cs2-sec { padding-top: 52px; }
  .cs2-tiers, .cs2-grid2, .cs2-next, .cs2-check { grid-template-columns: 1fr; }
  .cs2-card { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; }
  .cs2-card img { width: 72px; height: 72px; margin: 0; grid-row: span 2; }
  .cs2-card ul { grid-column: 1 / -1; }
  .cs2-nums { grid-template-columns: 1fr 1fr; }
  .cs2-quote { margin-top: 56px; }
  .cta-section { padding: 88px 0; }
}
/* Right-to-left (Arabic build) */
html[dir="rtl"] .cs2 ul li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .cs2-x li::before, html[dir="rtl"] .cs2-card li::before { left: auto; right: 4px; }
html[dir="rtl"] .cs2-check li::before { left: auto; right: 0; }
html[dir="rtl"] .cs2-steps li { padding: 0 56px 24px 0; }
html[dir="rtl"] .cs2-steps li::before { left: auto; right: 0; }
html[dir="rtl"] .cs2-steps li:not(:last-child)::after { left: auto; right: 17px; }
html[dir="rtl"] .cs2-next a { padding: 22px 22px 22px 56px; }
html[dir="rtl"] .cs2-next .a { right: auto; left: 22px; transform: translateY(-50%) scaleX(-1); }
html[dir="rtl"] .cs2-back span { display: inline-block; transform: scaleX(-1); }

/* ---- Hero visual: a sample conversation on a soft panel (Agentic AI) ---- */
.cs2-chat { margin: 8px 0 0; border-radius: 24px; padding: 36px 28px; background: linear-gradient(135deg, #F3F0FF 0%, #EAF6F1 100%); }
.cs2-chat .logo { display: block; height: 40px; width: auto; margin: 0 auto 28px; }
.cs2-chat .row { display: flex; margin-bottom: 12px; }
.cs2-chat .row.me { justify-content: flex-end; }
.cs2-bub { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.cs2-bub.me { background: #1D1D1F; color: #fff; border-bottom-right-radius: 6px; }
.cs2-bub.ai { background: #fff; color: #1D1D1F; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cs2-bub[dir="rtl"] { font-family: 'IBM Plex Sans Arabic', var(--font-sans); }
.cs2-chat .note { text-align: center; font-size: 13px; color: #6E6E73; margin-top: 16px; }

/* ---- Try it: pick a message, see the steps ---- */
.cs2-demo { margin-top: 28px; border: 1px solid #E5E5EA; border-radius: 24px; padding: 24px; }
.cs2-demo .lbl { font-size: 14px; font-weight: 600; color: #6E6E73; margin-bottom: 12px; }
.cs2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cs2-chip { border: 1px solid #D2D2D7; background: #fff; color: #1D1D1F; border-radius: 999px; padding: 10px 16px; font-size: 15px; line-height: 1.3; cursor: pointer; font-family: inherit; text-align: start; }
.cs2-chip[dir="rtl"] { font-family: 'IBM Plex Sans Arabic', var(--font-sans); }
.cs2-chip[aria-pressed="true"] { background: #1D1D1F; color: #fff; border-color: #1D1D1F; }
.cs2-chip small { display: block; font-size: 12px; opacity: .7; margin-top: 2px; font-family: var(--font-sans); }
.cs2-run { margin-top: 24px; }
.cs2-run .steps { list-style: none; padding: 0; margin: 0; }
.cs2-run .steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #F2F2F7; font-size: 16px; line-height: 1.5; color: #3A3A3C; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.cs2-run .steps li.on { opacity: 1; transform: none; }
.cs2-run .steps li::before { content: none !important; }
.cs2-run .dot { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: #6B4FFF; margin-top: 1px; }
.cs2-run .dot.stop { background: #D9443C; }
.cs2-run .reply { margin-top: 18px; display: none; }
.cs2-run .reply.on { display: block; }
.cs2-run .reply .who { font-size: 13px; font-weight: 600; color: #6E6E73; margin-bottom: 6px; }

/* ---- Before / after table ---- */
.cs2-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
.cs2-table th { text-align: start; font-size: 13px; font-weight: 600; color: #6E6E73; padding: 0 0 10px; border-bottom: 1px solid #E5E5EA; }
.cs2-table td { padding: 14px 0; border-bottom: 1px solid #F2F2F7; color: #1D1D1F; }
.cs2-table td:nth-child(2) { color: #8E8E93; }
.cs2-table td:nth-child(3) { font-weight: 600; }
.cs2-table .num { text-align: end; width: 22%; }
.cs2-more { margin-top: 20px; border: 1px solid #E5E5EA; border-radius: 16px; padding: 16px 20px; }
.cs2-more summary { cursor: pointer; font-size: 16px; font-weight: 600; color: #1D1D1F; }
.cs2-more ul { columns: 2; column-gap: 32px; }
.cs2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.cs2-two .cs2-feat.dark { background: #1D1D1F; border-color: #1D1D1F; }
.cs2-two .cs2-feat.dark h4, .cs2-two .cs2-feat.dark p { color: #fff !important; }
.cs2-two .cs2-feat.dark p { opacity: .8; }
@media (max-width: 760px) {
  .cs2-chat { padding: 28px 18px; border-radius: 18px; }
  .cs2-demo { padding: 18px; border-radius: 18px; }
  .cs2-two { grid-template-columns: 1fr; }
  .cs2-more ul { columns: 1; }
}
html[dir="rtl"] .cs2-bub.me { border-bottom-right-radius: 18px; border-bottom-left-radius: 6px; }
html[dir="rtl"] .cs2-bub.ai { border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
