/* ============================================================
   Case Study — Shared Styles
   ============================================================ */

.cs-page {
  background: #eff1f0 !important;
  padding: 160px 0 120px;
}

.cs-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 60px;
  font-family: 'Montserrat', sans-serif;
  color: #0b1437;
  box-sizing: border-box;
}

.cs-wrap * {
  box-sizing: border-box;
}

/* ============================================================
   SECTION 1 — Hero
   ============================================================ */

.cs-s1 {
  position: relative;
  margin-bottom: 80px;
}

.cs-s1-hero-container {
  position: relative;
  width: 100%;
  overflow: visible;
}

.cs-s1-bg-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* --- Top bar --- */
.cs-s1-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 50px;
}

.cs-s1-kaem {
  height: 80px;
  width: auto;
}

.cs-s1-pills {
  display: flex;
  flex-wrap: nowrap;
  padding-top: 10px;
}

.cs-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 0;
  white-space: nowrap;
  letter-spacing: .2px;
}

.cs-pill-purple {
  background: #5a2fe0;
  color: #fff;
  border-radius: 30px 0 0 30px;
}

.cs-pill-dark {
  background: #0b1437;
  color: #fff;
  border-radius: 0 30px 30px 0;
}

.cs-wrap .cs-s1-title {
  position: absolute;
  top: -50px;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(24px, 4vw, 64px) !important;
  max-width: 650px;
  line-height: 1.05 !important;
  letter-spacing: 1.5px !important;
  color: #0b1437 !important;
  margin: 0 !important;
  text-transform: none !important;
  z-index: 3;
  width: 60%;
}

/* --- Brand logo --- */
.cs-s1-brand {
  width: 200px;
  height: auto;
  background: transparent;
  mix-blend-mode: multiply;
}

/* --- Composite image --- */
.cs-s1-composite {
  position: relative;
  margin-top: 0;
  width: 100%;
}

.cs-s1-composite-img {
  width: 100%;
  display: block;
  height: auto;
}

/* Overview text overlay */
.cs-s1-overview-overlay {
  position: absolute;
  left: 0;
  top: 40.5%;
  width: 42%;
  bottom: 2.5%;
  padding: 1.5% 4.5%;
  color: #fff;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.cs-wrap .cs-s1-overview-overlay h2 {
  font-family: 'Mulish', sans-serif !important;
  font-weight: 500 !important;
  /* Cap the font size relative to the container width (approx 7.5% of 1060px) */
  font-size: clamp(28px, 4.8vw, 64px) !important;
  line-height: 1 !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 0.2em !important;
  color: #fff !important;
  text-transform: none !important;
}

.cs-s1-overview-overlay p {
  font-family: 'Mulish', sans-serif;
  /* Cap the font size relative to the container width (approx 1.8% of 1060px) */
  font-size: clamp(11px, 1.05vw, 16px);
  line-height: 1.25;
  font-weight: 500;
  color: #fff;
  margin: 0;
  max-width: 100%;
}

/* --- Accent colors (per brand) --- */
.cs-accent-gj {
  color: #6015e0 !important;
}

.cs-accent-ag {
  color: #c8102e !important;
}

/* ============================================================
   Legacy aliases (gj-* → cs-*)
   ============================================================ */
.gj-page {
  background: #eff1f0 !important;
  padding: 160px 0 120px;
}

.gj-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 60px;
  font-family: 'Montserrat', sans-serif;
  color: #0b1437;
  box-sizing: border-box;
}

.gj-wrap * {
  box-sizing: border-box;
}

.gj-s1 {
  position: relative;
  margin-bottom: 30px;
}

.gj-s1-hero-container {
  position: relative;
  width: 100%;
  overflow: visible;
}

.gj-s1-bg-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.gj-s1-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 50px;
}

.gj-s1-kaem {
  height: 80px;
  width: auto;
}

.gj-s1-pills {
  display: flex;
  flex-wrap: nowrap;
  padding-top: 10px;
}

.gj-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 0;
  white-space: nowrap;
  letter-spacing: .2px;
}

.gj-pill-purple {
  background: #5a2fe0;
  color: #fff;
  border-radius: 30px 0 0 30px;
}

.gj-pill-dark {
  background: #0b1437;
  color: #fff;
  border-radius: 0 30px 30px 0;
}

.gj-wrap .gj-s1-title {
  position: absolute;
  top: -80px;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(24px, 4vw, 64px) !important;
  max-width: 650px;
  line-height: 1.05 !important;
  letter-spacing: 1.5px !important;
  color: #0b1437 !important;
  margin: 0 !important;
  text-transform: none !important;
  z-index: 3;
  width: 60%;
}

.gj-accent {
  color: #6015e0 !important;
}

.gj-s1-brand {
  width: 200px;
  height: auto;
  background: transparent;
  mix-blend-mode: multiply;
}

.gj-s1-composite {
  position: relative;
  margin-top: 0;
  width: 100%;
}

.gj-s1-composite-img {
  width: 100%;
  display: block;
  height: auto;
}

.gj-s1-overview-overlay {
  position: absolute;
  left: 0;
  top: 50.5%;
  width: 42%;
  bottom: 2.5%;
  padding: 2% 4.5%;
  color: #fff;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.gj-wrap .gj-s1-overview-overlay h2 {
  font-family: 'Mulish', sans-serif !important;
  font-weight: 500 !important;
  font-size: clamp(28px, 4.8vw, 64px) !important;
  line-height: 1 !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 0.2em !important;
  color: #fff !important;
  text-transform: none !important;
}

.gj-s1-overview-overlay p {
  font-family: 'Mulish', sans-serif;
  font-size: clamp(12px, 1.25vw, 19px);
  line-height: 1.3;
  font-weight: 500;
  color: #fff;
  margin: 0;
  max-width: 100%;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:960px) {

  .cs-page,
  .gj-page {
    padding: 120px 0 80px;
  }

  .cs-wrap,
  .gj-wrap {
    padding: 0 28px;
  }

  .cs-s1,
  .gj-s1 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cs-s1-top,
  .gj-s1-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-s1-brand,
  .gj-s1-brand {
    position: static;
    width: 110px;
    margin-bottom: 16px;
  }

  .cs-s1-composite,
  .gj-s1-composite {
    margin-top: 0;
  }

  .cs-wrap .cs-s1-title,
  .gj-wrap .gj-s1-title {
    position: static !important;
    width: 100% !important;
    top: auto !important;
    font-size: 40px !important;
    line-height: 1.15 !important;
    margin: 0 0 20px !important;
    letter-spacing: 0 !important;
  }

  /* Convert overlay to a stacked panel below the hero image */
  .cs-s1-overview-overlay,
  .gj-s1-overview-overlay {
    position: static;
    width: 100%;
    background: #0b1437;
    padding: 30px 28px;
    border-radius: 0 0 18px 18px;
    margin-top: -4px;
  }

  .cs-wrap .cs-s1-overview-overlay h2,
  .gj-wrap .gj-s1-overview-overlay h2 {
    font-size: 34px !important;
    margin: 0 0 12px !important;
  }

  .cs-s1-overview-overlay p,
  .gj-s1-overview-overlay p {
    font-size: 14px;
    line-height: 1.5;
  }
}

.gj-s2 {
  position: relative;
  /* padding: 100px 0; */
  overflow: visible;
}

.gj-s2-bg {
  position: absolute;
  right: -160px;
  top: 0;
  bottom: 0;
  /* width: 55%; */
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* border: 1px solid; */
  /* margin-top: 44px; */
}

.gj-s2-bg img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.9;
  margin-top: 60%;
}

.gj-s2-req,
.gj-s2-strategy {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.gj-s2-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(22px, 2.4vw, 34px) !important;
  line-height: 1.15 !important;
  color: #0b1437 !important;
  margin-bottom: 22px !important;
  letter-spacing: -0.01em !important;
}

.gj-s2-p {
  font-family: 'Mulish', sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.55;
  font-weight: 500;
  color: #0b1437;
  margin-bottom: 22px;
  max-width: 780px;
}

.gj-s2-subtitle {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(14px, 1.2vw, 18px) !important;
  color: #0b1437 !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.005em !important;
}

.gj-s2-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gj-s2-list li {
  position: relative;
  padding-left: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 1.1vw, 17px);
  color: #6015e0;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: 0;
}

.gj-s2-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: #6015e0;
  border-radius: 50%;
}

.gj-strategy-card {
  border-radius: 80px;
  overflow: hidden;
  width: 100%;
  /* margin-top: 45px; */
  border: 2px solid #0b1437;
}

.gj-strategy-row {
  display: flex;
  width: 100%;
}

.gj-strategy-item {
  flex: 1;
  padding: 30px 50px;
  display: flex;
  flex-direction: column;
}

.gj-strategy-item h4 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(18px, 1.6vw, 24px) !important;
  line-height: 1.2 !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.01em !important;
}

.gj-strategy-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gj-strategy-item ul li {
  position: relative;
  padding-left: 18px;
  font-family: 'Mulish', sans-serif;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 10px;
}

.gj-strategy-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Light Section */
.gj-light-bg {
  background: #79c6f2;
}

.gj-light-bg h4 {
  color: #0b1437 !important;
}

.gj-light-bg ul li {
  color: #0b1437;
}

.gj-light-bg ul li::before {
  background: #6015e0;
}

/* Dark Section */
.gj-dark-bg {
  background: #0b1437;
}

.gj-dark-bg h4 {
  color: #79c6f2 !important;
}

.gj-dark-bg ul li {
  color: #fff;
}

.gj-dark-bg ul li::before {
  background: #6015e0;
}

/* ============================================================
   SECTION 3 — Highlights, Results & Testimonial
   ============================================================ */
.gj-s3 {
  position: relative;
  margin-bottom: 80px;
}

.gj-s3-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.gj-s3-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  line-height: 1.1 !important;
  color: #0b1437 !important;
  margin: 0 0 22px !important;
  letter-spacing: -0.01em !important;
}

.gj-s3-hl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  /* gap: 18px; */
}

.gj-s3-hl-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  line-height: 1.4;
  color: #0b1437;
  margin-bottom: 10px !important;
}

.gj-s3-hl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c7a8ff 0%, #9b5cf7 45%, #6015e0 100%);
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(96, 21, 224, 0.3);
}

.gj-s3-badges {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 260px;
}

.gj-s3-badge {
  position: relative;
  flex-shrink: 0;
}

.gj-s3-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.gj-s3-badge-small {
  width: 290px;
  /* margin-right: -35px; */
  z-index: 1;
}

.gj-s3-badge-large {
  width: 290px;
  z-index: 2;
}

.gj-s3-badge-inner {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  /* text-align: center; */
  width: 85%;
  /* border: 1px saddlebrown; */
}

.gj-s3-badge-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 900;
  line-height: 1;
  color: #0b1437;
  letter-spacing: -0.03em;
}

.gj-s3-badge-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(9px, 0.8vw, 11px);
  font-weight: 600;
  color: #0b1437;
  margin-top: 8px;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.gj-s3-badge-big {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 900;
  line-height: 0.8;
  color: #0b1437;
  letter-spacing: -0.02em;
  font-size: xx-large;
}

.gj-s3-bottom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: stretch;
}

.gj-s3-results {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.gj-s3-intro {
  font-family: 'Mulish', sans-serif;
  font-size: clamp(27px, 0.95vw, 14px);
  line-height: 1.25;
  font-weight: 200;
  color: #0b1437;
  margin: 0 0 26px;
  max-width: 92%;
}

.gj-s3-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gj-s3-results-list li {
  position: relative;
  padding-left: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(21px, 0.92vw, 14px);
  color: #0b1437;
  line-height: 1.5;
  margin-bottom: 0px;
}

.gj-s3-results-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 10px;
  height: 10px;
  background: #000000;
  border-radius: 50%;
}

.gj-s3-quote {
  position: relative;
  background: linear-gradient(160deg, #c6daff 0%, #a8c2ff 100%);
  border-radius: 28px;
  padding: 44px 40px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(96, 21, 224, 0.08);
  border: 2px solid;
}

.gj-s3-quote-mark {
  position: absolute;
  top: 12px;
  left: 30px;
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 1;
  color: #6015e0;
  font-weight: 900;
  pointer-events: none;
  opacity: 0.9;
}

.gj-s3-quote-text {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 1.05vw, 16px);
  line-height: 1.55;
  color: #0b1437;
  margin: 26px 0 20px;
  letter-spacing: -0.005em;
}

.gj-s3-quote-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #6015e0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gj-s3-quote-meta::before {
  content: '— ';
}

/* Section 2 Responsive */
@media (max-width: 960px) {
  .gj-s2-bg {
    display: none;
  }

  .gj-s2-req,
  .gj-s2-strategy {
    max-width: 100%;
    margin-bottom: 60px;
  }

  .gj-strategy-row {
    flex-direction: column;
  }

  .gj-strategy-item {
    padding: 40px 30px;
  }

  .gj-strategy-card {
    border-radius: 40px;
  }

  .gj-s3-top,
  .gj-s3-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gj-s3-quote {
    padding: 40px 30px 28px;
  }

  .gj-s3-quote-mark {
    font-size: 72px;
    left: 22px;
  }

  .gj-s3-quote-text {
    margin-top: 22px;
  }

  .gj-s3-badges {
    justify-content: center;
    min-height: auto;
  }

  .gj-s3-badge-small {
    width: 150px;
    margin-right: -30px;
  }

  .gj-s3-badge-large {
    width: 180px;
  }
}

/* ============================================================
   Extended Responsive Coverage
   ============================================================ */

/* Large tablet / small desktop */
@media (max-width: 1200px) {

  .cs-wrap,
  .gj-wrap {
    padding: 0 40px;
    max-width: 100%;
  }

  .gj-strategy-item {
    padding: 28px 36px;
  }

  .gj-strategy-card {
    border-radius: 60px;
  }

  .cs-wrap .cs-s1-title,
  .gj-wrap .gj-s1-title {
    line-height: 1.1 !important;
  }
}

/* Tablet — refine the existing 960px section coverage */
@media (max-width: 960px) {
  .gj-s2-list li {
    font-size: 14px;
    font-weight: 700;
  }

  /* Override custom "broken" clamps so mobile stays readable */
  .gj-s3-quote-text {
    font-size: 20px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
  }

  .gj-s3-intro {
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    max-width: 100%;
  }

  .gj-s3-results-list li {
    font-size: 15px !important;
  }

  .gj-s3-results-list li::before {
    width: 7px;
    height: 7px;
    top: 8px;
  }

  .gj-strategy-item h4 {
    font-size: 20px !important;
  }
}

/* Phones */
@media (max-width: 768px) {

  .cs-page,
  .gj-page {
    padding: 100px 0 60px;
  }

  .cs-wrap,
  .gj-wrap {
    padding: 0 22px;
  }

  /* Hero */
  .cs-s1,
  .gj-s1 {
    margin-bottom: 50px;
  }

  .cs-s1-top,
  .gj-s1-top {
    margin-bottom: 28px;
    gap: 14px;
  }

  .cs-s1-kaem,
  .gj-s1-kaem {
    height: 50px;
  }

  .cs-pill,
  .gj-pill {
    font-size: 10px;
    padding: 6px 14px;
  }

  .cs-wrap .cs-s1-title,
  .gj-wrap .gj-s1-title {
    font-size: 28px !important;
  }

  .cs-s1-brand,
  .gj-s1-brand {
    width: 90px;
    margin-bottom: 12px;
  }

  /* Override padding for smaller phones */
  .cs-s1-overview-overlay,
  .gj-s1-overview-overlay {
    padding: 26px 22px;
  }

  .cs-wrap .cs-s1-overview-overlay h2,
  .gj-wrap .gj-s1-overview-overlay h2 {
    font-size: 28px !important;
    margin: 0 0 10px !important;
  }

  .cs-s1-overview-overlay p,
  .gj-s1-overview-overlay p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Section 2 */
  .gj-s2-title {
    font-size: 22px !important;
    margin-bottom: 16px !important;
  }

  .gj-s2-p {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .gj-s2-subtitle {
    font-size: 14px !important;
  }

  .gj-s2-list li {
    font-size: 13px;
    padding-left: 18px;
  }

  .gj-s2-list li::before {
    width: 6px;
    height: 6px;
    top: 6px;
  }

  .gj-strategy-card {
    border-radius: 30px;
  }

  .gj-strategy-item {
    padding: 30px 24px;
  }

  .gj-strategy-item h4 {
    font-size: 18px !important;
    margin-bottom: 14px !important;
  }

  .gj-strategy-item ul li {
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* Section 3 */
  .gj-s3 {
    margin-bottom: 60px;
  }

  .gj-s3-top {
    margin-bottom: 40px;
  }

  .gj-s3-title {
    font-size: 22px !important;
    margin-bottom: 16px !important;
  }

  .gj-s3-hl-list li {
    font-size: 13px;
    margin-bottom: 8px !important;
  }

  .gj-s3-hl-icon {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .gj-s3-badges {
    gap: 0;
    margin-top: 10px;
  }

  .gj-s3-badge-small {
    width: 130px;
  }

  .gj-s3-badge-large {
    width: 160px;
  }

  .gj-s3-badge-num {
    font-size: 38px;
  }

  .gj-s3-badge-big {
    font-size: 18px !important;
  }

  .gj-s3-badge-sub {
    font-size: 9px;
    margin-top: 4px;
  }

  .gj-s3-quote {
    padding: 36px 24px 24px;
    border-radius: 22px;
  }

  .gj-s3-quote-mark {
    font-size: 60px;
    left: 18px;
    top: 8px;
  }

  .gj-s3-quote-text {
    font-size: 16px !important;
    margin: 18px 0 16px !important;
    line-height: 1.45 !important;
  }

  .gj-s3-intro {
    font-size: 14px !important;
  }

  .gj-s3-results-list li {
    font-size: 14px !important;
    padding-left: 18px;
  }

  .gj-s3-results-list li::before {
    width: 7px;
    height: 7px;
    left: 0;
    top: 7px;
  }
}

/* Small phones */
@media (max-width: 480px) {

  .cs-wrap,
  .gj-wrap {
    padding: 0 16px;
  }

  .cs-s1,
  .gj-s1 {
    margin-bottom: 40px;
  }

  .cs-s1-top,
  .gj-s1-top {
    margin-bottom: 20px;
  }

  .cs-s1-kaem,
  .gj-s1-kaem {
    height: 40px;
  }

  .cs-s1-pills,
  .gj-s1-pills {
    flex-wrap: wrap;
    gap: 6px;
  }

  .cs-pill,
  .gj-pill {
    font-size: 9px;
    padding: 5px 11px;
  }

  .cs-wrap .cs-s1-title,
  .gj-wrap .gj-s1-title {
    font-size: 22px !important;
  }

  .cs-wrap .cs-s1-overview-overlay h2,
  .gj-wrap .gj-s1-overview-overlay h2 {
    font-size: 22px !important;
  }

  .cs-s1-overview-overlay p,
  .gj-s1-overview-overlay p {
    font-size: 12px;
  }

  .gj-s2-req,
  .gj-s2-strategy {
    margin-bottom: 40px;
  }

  .gj-strategy-card {
    border-radius: 24px;
  }

  .gj-strategy-item {
    padding: 24px 20px;
  }

  .gj-strategy-item h4 {
    font-size: 17px !important;
  }

  .gj-strategy-item ul li {
    font-size: 12px;
  }

  .gj-s3-bottom {
    gap: 24px;
  }

  .gj-s3-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  .gj-s3-badge-small,
  .gj-s3-badge-large {
    width: 140px;
  }

  .gj-s3-quote {
    padding: 32px 20px 22px;
  }

  .gj-s3-quote-text {
    font-size: 15px !important;
  }

  .gj-s3-results-list li {
    font-size: 13px !important;
  }
}

/* ============================================================
   Navbar safety net — ensure menu items remain visible
   regardless of theme (light/dark menucolor)
   ============================================================ */

/* Dark menu wrapper (data-menucolor set to a dark color) — force light text */
.fullscreen-menu[data-menucolor="#0c0c0c"] .flexnav li a,
.fullscreen-menu[data-menucolor="#000"] .flexnav li a,
.fullscreen-menu[data-menucolor="#000000"] .flexnav li a,
.fullscreen-menu[data-menucolor="#111"] .flexnav li a,
.fullscreen-menu[data-menucolor="#1a1a1a"] .flexnav li a {
  color: #fff;
}

/* Submenu items inherit color from parent so they never collide with bg */
.fullscreen-menu .flexnav li ul li a {
  color: inherit;
}

/* Ensure submenu trigger (Media dropdown toggle) is always reachable on touch */
.fullscreen-menu .flexnav li .touch-button {
  pointer-events: auto;
  opacity: 1;
}

/* ============================================================
   ARABIC RTL SUPPORT (.lang-ar)
   ============================================================ */

/* Hero Top Bar - DO NOT FLIP (Stay LTR) */
body.lang-ar .cs-s1-top,
body.lang-ar .gj-s1-top {
  direction: ltr !important;
  flex-direction: row !important;
}

body.lang-ar .cs-s1-top *,
body.lang-ar .gj-s1-top * {
  direction: ltr !important;
}

/* Force pills to stay in order even in Arabic */
body.lang-ar .cs-s1-pills,
body.lang-ar .gj-s1-pills {
  flex-direction: row !important;
}

body.lang-ar .cs-wrap,
body.lang-ar .gj-wrap {
  direction: rtl;
}

/* Hero Title - Force to Left (English Alignment) + User Specific Style */
body.lang-ar .cs-wrap .cs-s1-title,
body.lang-ar .gj-wrap .gj-s1-title {
  position: absolute;
  top: -80px;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(24px, 4vw, 64px) !important;
  line-height: 0.9 !important;
  letter-spacing: 0 !important;
  color: #0b1437 !important;
  margin: 0 !important;
  text-transform: none !important;
  z-index: 3;
  width: 55%;
  left: 0;
  right: auto;
  text-align: left !important;
}



/* Hero Overview Overlay - Force to Left (English Alignment) */
body.lang-ar .cs-s1-overview-overlay,
body.lang-ar .gj-s1-overview-overlay {
  left: 0;
  right: auto;
  text-align: left !important;
  align-items: flex-start;
}

body.lang-ar .cs-s1-overview-overlay *,
body.lang-ar .gj-s1-overview-overlay * {
  text-align: left !important;
}

@media (max-width: 768px) {

  body.lang-ar .cs-s1-overview-overlay,
  body.lang-ar .gj-s1-overview-overlay {
    text-align: left !important;
    align-items: flex-start;
  }
}



/* Section 2 List (Challenges) */
body.lang-ar .gj-s2-list li {
  padding-left: 0;
  padding-right: 22px;
  text-align: right;
}

body.lang-ar .gj-s2-list li::before {
  left: auto;
  right: 0;
}

/* Strategy Items */
body.lang-ar .gj-strategy-item {
  text-align: right;
}

body.lang-ar .gj-strategy-item ul li {
  padding-left: 0;
  padding-right: 18px;
  text-align: right;
}

body.lang-ar .gj-strategy-item ul li::before {
  left: auto;
  right: 0;
}

/* Section 3 Highlights */
body.lang-ar .gj-s3-hl-list li {
  text-align: right;
  /* direction: rtl is inherited from .gj-wrap */
}

body.lang-ar .gj-s3-hl-icon {
  transform: scaleX(-1);
  /* Flip the arrow icon to point correctly in RTL */
}

/* Section 3 Results */
body.lang-ar .gj-s3-results {
  text-align: right;
}

body.lang-ar .gj-s3-results-list li {
  padding-left: 0;
  padding-right: 22px;
  text-align: right;
}

body.lang-ar .gj-s3-results-list li::before {
  left: auto;
  right: 2px;
}

/* Testimonial Quote */
body.lang-ar .gj-s3-quote {
  text-align: right;
}

body.lang-ar .gj-s3-quote-mark {
  left: auto;
  right: 30px;
}

body.lang-ar .gj-s3-quote-meta {
  text-align: left;
  /* Keep signature on the opposite side or right? Usually Arabic signatures are right-aligned too. */
}

body.lang-ar .gj-s3-quote-meta::before {
  content: none;
}

body.lang-ar .gj-s3-quote-meta::after {
  content: ' —';
}

/* Badges Alignment */
body.lang-ar .gj-s3-badge-inner {
  left: auto;
  right: 75%;
  transform: translate(50%, -50%);
}

/* Page-Specific Overrides - Shwaiat Alkhalij */
#shw-hero-title {
  letter-spacing: -1.5px !important;
}

#shw-overview-title {
  margin-top: 50px !important;
}

/* Page-Specific Overrides - Taya (Arabic only — title sits too high in Arabic) */
body.lang-ar #taya-hero-title {
  top: 20px !important;
}

/* Keep each case-study title within its hero image's white cutout on phones. */
@media (max-width: 768px) {
  .cs-s1-hero-container,
  .gj-s1-hero-container {
    position: relative;
  }

  .cs-wrap .cs-s1-title,
  .gj-wrap .gj-s1-title,
  body.lang-ar .cs-wrap .cs-s1-title,
  body.lang-ar .gj-wrap .gj-s1-title {
    position: absolute !important;
    top: 3% !important;
    left: 4% !important;
    right: auto !important;
    z-index: 4;
    width: 55% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: clamp(16px, 4.2vw, 17px) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
  }

  /* This page previously had a separate Arabic top offset. */
  body.lang-ar #taya-hero-title {
    top: 3% !important;
  }

  #taya-hero-title {
    font-size: clamp(17px, 4.5vw, 18px) !important;
  }

  /* Nice Bun: start the Cloud POS phrase on its own line. */
  .gj-s1-title span[data-i18n="cs.inma.hero.lead"] {
    display: block;
  }

}
