/* ==========================================================================
   StylingCV V2 — Editorial & RAG Rich Components (RTL + LTR)
   Official Brand Tokens:
     Forest Deep: #244B38 | Teal Accent: #268599 | Warm Coral: #E8885E
     Paper Card:  #FFFEF9 | Sage Tint:   #EDF1E6
     Fonts: "Tajawal" (Headings), "IBM Plex Sans Arabic" (Body)
   ========================================================================== */

/* 1. Balanced Desktop Reading & Layout Proportions (1220px Wrap / 880px Article / 280px TOC) */
#scv-home-v2.pv2,
#scv-home-v2.pg2.pg2-article {
  background: #EDF1E6;
}

#scv-home-v2.pv2 .hv2-wrap,
#scv-home-v2.pg2 .hv2-wrap {
    width: min(1550px, 100% - 2.5rem);
    max-width: 1920px;
}

@media (min-width: 1024px) {
  #scv-home-v2 .pv2-layout {
    grid-template-columns: minmax(0, 1440px) 280px;
    justify-content: space-between;
    gap: 32px;
    margin-top: 30px;
  }
  #scv-home-v2 .pv2-side {
    width: 280px;
    order: 2;
  }
}

#scv-home-v2 .pv2-article {
  background: #FFFEF9;
  border: 1px solid #DCE4D5;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 40px);
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  #scv-home-v2 .pv2-article {
    padding: 40px;
  }
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) {
  max-width: 100%;
  font-family: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.95;
  color: #22372B;
}

#scv-home-v2 .pv2-toc {
  background: #FFFEF9;
  border: 1px solid #D5DFCF;
  border-radius: 20px;
  padding: 10px;
}

#scv-home-v2 .pv2-toc summary {
  font-family: "Tajawal", sans-serif;
  font-size: 1.03rem;
  font-weight: 800;
  color: #244B38;
  padding: 12px 14px;
}

#scv-home-v2 .pv2-toc a {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #334B3D;
  font-weight: 500;
  padding: 9px 12px;
}

/* Defensive fix if any legacy .pv2-inline-cta lacks .pv2-inline-art */
@media (min-width: 640px) {
  #scv-home-v2 .pv2-inline-cta:not(:has(.pv2-inline-art)) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* 2. Editorial Comparison Table (.scv-ed-table-wrap & .scv-ed-table) */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.65rem 0;
  border: 1px solid #CFD9C6;
  border-radius: 18px;
  background: #FFFEF9;
  box-shadow: 0 10px 24px -18px rgba(36, 75, 56, 0.22);
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) table.scv-ed-table {
  width: 100%;
  min-width: 580px;
  display: table;
  border-collapse: collapse;
  border-spacing: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) table.scv-ed-table thead th {
  background: #244B38;
  color: #FFFEF9;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 16px;
  text-align: start;
  white-space: normal;
  vertical-align: middle;
  border-bottom: 2px solid #1B3D2C;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) table.scv-ed-table thead th.is-scv {
  background: #1D5544;
  box-shadow: inset 0 -3px 0 #E8885E;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) table.scv-ed-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid #E2E9DC;
  vertical-align: top;
  color: #253F30;
  white-space: normal;
  background: #FFFEF9;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) table.scv-ed-table tbody tr:nth-child(even) td {
  background: #F9FBF6;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) table.scv-ed-table tbody tr.is-scv td,
#scv-home-v2 :is(.pv2-body, .pg2-showcase) table.scv-ed-table tbody td.is-scv {
  background: #EEF5F0 !important;
  color: #1B3D2C;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) table.scv-ed-table tbody tr.is-scv td:first-child {
  border-inline-start: 4px solid #268599;
}

/* 3. Side-by-Side Before & After Comparison Cards (.scv-ed-ba-grid) */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 1.75rem 0;
  align-items: stretch;
}

@media (max-width: 760px) {
  #scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-card {
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-card.is-before {
  background: #FDF2F0;
  border: 1px solid #EBC5BD;
  border-inline-start: 6px solid #B4472B;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-card.is-after {
  background: #EEF5F0;
  border: 1px solid #BFD8C7;
  border-inline-start: 6px solid #244B38;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 0.96rem;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-card.is-before .scv-ed-ba-label {
  color: #9A341B;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-card.is-after .scv-ed-ba-label {
  color: #1B3D2C;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-score {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  direction: ltr;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-card.is-before .scv-ed-ba-score {
  background: rgba(180, 71, 43, 0.14);
  color: #9A341B;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-card.is-after .scv-ed-ba-score {
  background: #244B38;
  color: #FFFEF9;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-quote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.8;
  color: #22372B;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-ba-note {
  margin: auto 0 0;
  font-size: 0.85rem;
  color: #4E6153;
  font-weight: 500;
}

/* 4. Inline SVG Chart & Diagnostic Visual Card (.scv-ed-chart-card) */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-card {
  background: #EDF1E6;
  border: 1px solid #CFD9C6;
  border-radius: 24px;
  padding: 26px 28px;
  margin: 1.85rem 0;
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-title {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #244B38;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #526456;
  line-height: 1.65;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-badge {
  background: #FFFEF9;
  border: 1px solid #C6D4BE;
  color: #244B38;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-split {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: #FFFEF9;
  border: 1px solid #DCE5D5;
  border-radius: 18px;
  padding: 20px 22px;
}

@media (max-width: 720px) {
  #scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-split {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-svg-wrap {
  width: 100%;
  background: #FFFEF9;
  border: 1px solid #DCE5D5;
  border-radius: 18px;
  padding: 18px 20px;
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-card svg {
  max-width: 100%;
  height: auto;
  display: block;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-chart-foot {
  margin: 12px 0 0;
  font-size: 0.83rem;
  color: #566759;
}

/* 5. Official Arabic Templates Gallery Shortcode Wrapper (.scv-ed-wpcode-gallery) & Strip */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-wpcode-gallery {
  margin: 3.8rem 0 3rem;
  padding: 30px 32px;
  background: #EDF1E6;
  border: 1px solid #CFD9C6;
  border-radius: 24px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: clip;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-wpcode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-wpcode-head h3 {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
  color: #163325;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-num-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: #244B38;
  color: #FFFFFF;
  font-size: 0.95em;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 16px rgba(36, 75, 56, 0.22);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-wpcode-slot {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-strip {
  margin: 1.9rem 0;
  padding: 24px 26px;
  background: #EDF1E6;
  border: 1px solid #CFD9C6;
  border-radius: 24px;
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-head h3 {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #244B38;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-all {
  font-size: 0.9rem;
  font-weight: 700;
  color: #268599 !important;
  text-decoration: none !important;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-all:hover {
  background: transparent;
  text-decoration: underline !important;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-grid.is-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  #scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-grid,
  #scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-grid.is-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-grid,
  #scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-grid.is-3col {
    grid-template-columns: minmax(0, 1fr);
  }
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-card {
  background: #FFFEF9;
  border: 1px solid #D5DFCF;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-card:hover {
  transform: translateY(-3px);
  border-color: #268599;
  box-shadow: 0 14px 28px -18px rgba(36, 75, 56, 0.35);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E6ECE0;
  background: #FFFFFF;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 424;
  object-fit: cover;
  object-position: top;
  display: block;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 4px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-info strong {
  font-family: "Tajawal", sans-serif;
  font-size: 0.95rem;
  color: #244B38;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EEF5F0;
  color: #244B38;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-tpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #244B38;
  color: #FFFEF9 !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.16s ease;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-tpl-btn:hover {
  background: #268599;
}

/* 6. Three Distinct, 100% RTL-Safe Conversion CTAs */

/* Shared CTA button styles isolated from .pv2-body a underline rules */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-primary,
#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-coral,
#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-secondary,
#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: "Tajawal", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-primary {
  background: #244B38;
  color: #FFFEF9 !important;
  box-shadow: 0 10px 22px -12px rgba(36, 75, 56, 0.55);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-primary:hover {
  background: #1B3D2C;
  transform: translateY(-1px);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-coral {
  background: #E8885E;
  color: #1B2D22 !important;
  box-shadow: 0 10px 22px -12px rgba(232, 136, 94, 0.55);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-coral:hover {
  background: #F09872;
  transform: translateY(-1px);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-secondary {
  background: transparent;
  color: #244B38 !important;
  border: 1.5px solid #244B38;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-secondary:hover {
  background: rgba(36, 75, 56, 0.07);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-light {
  background: rgba(255, 254, 249, 0.12);
  color: #FFFEF9 !important;
  border: 1.5px solid rgba(255, 254, 249, 0.55);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-light:hover {
  background: rgba(255, 254, 249, 0.22);
}

/* CTA Tier 1: Top Horizontal Hero Strip (.scv-cta-hero-strip) */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-hero-strip {
  background: linear-gradient(135deg, #F5F8F0 0%, #E9F2EE 100%);
  border: 1px solid #C5D6C8;
  border-inline-start: 6px solid #268599;
  border-radius: 22px;
  padding: 22px 26px;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-strip-copy {
  width: 100%;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-strip-copy strong {
  display: block;
  font-family: "Tajawal", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #244B38;
  margin-bottom: 4px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-strip-copy p {
  margin: 0;
  font-size: 0.96rem;
  color: #3E5244;
  line-height: 1.75;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-reassure {
  margin: 0;
  font-size: 0.84rem;
  color: #54685A;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* CTA Tier 2: Mid-Article Interactive Tool Widget (.scv-cta-tool-widget) */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-tool-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 215px;
  gap: 24px;
  align-items: center;
  background: #FFFEF9;
  border: 2px solid #268599;
  border-radius: 24px;
  padding: 26px 28px;
  margin: 2rem 0;
  box-shadow: 0 16px 36px -22px rgba(38, 133, 153, 0.34);
  box-sizing: border-box;
}

@media (max-width: 760px) {
  #scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-tool-widget {
    grid-template-columns: minmax(0, 1fr);
  }
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-widget-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-widget-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(38, 133, 153, 0.12);
  color: #1A6475;
  font-size: 0.8rem;
  font-weight: 800;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-widget-copy h3 {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  font-size: 1.26rem;
  font-weight: 800;
  color: #244B38;
  line-height: 1.45;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-widget-copy p {
  margin: 0;
  font-size: 0.95rem;
  color: #425648;
  line-height: 1.8;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-widget-visual {
  background: #EDF1E6;
  border: 1px solid #CFD9C6;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-widget-visual small {
  font-size: 0.8rem;
  font-weight: 700;
  color: #244B38;
}

/* CTA Tier 3: Full-Width Dark Forest Final Banner (.scv-cta-final-banner) */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-final-banner {
  background: linear-gradient(135deg, #244B38 0%, #1B3D2C 60%, #1D525E 100%);
  color: #FFFEF9;
  border-radius: 26px;
  padding: 38px 32px;
  margin: 2.3rem 0 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 22px 44px -26px rgba(27, 61, 44, 0.6);
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-final-banner h3 {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  font-weight: 800;
  color: #FFFEF9 !important;
  line-height: 1.45;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-final-banner p {
  margin: 0;
  max-width: 620px;
  font-size: 0.98rem;
  color: #E5EFE8 !important;
  line-height: 1.8;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-cta-final-note {
  font-size: 0.82rem !important;
  color: #BFD2C5 !important;
}

/* ==========================================================================
   7. English & International LTR Overrides (#scv-home-v2[dir="ltr"])
   Typography: "Playfair Display" / "Fraunces" (Editorial Display),
               "Poppins" / "Manrope" (Clean UI & Body Copy)
   ========================================================================== */

#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) {
  font-family: "Poppins", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.74;
  letter-spacing: -0.004em;
  color: #22372B;
}

#scv-home-v2[dir="ltr"] .pv2-title,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) h2,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-cta-final-banner h3 {
  font-family: "Playfair Display", "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.24;
}

#scv-home-v2[dir="ltr"] .pv2-toc summary,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) h3,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) table.scv-ed-table thead th,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-ed-ba-label,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-ed-chart-title,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-ed-wpcode-head h3,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-head h3,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-ed-tpl-info strong,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-primary,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-coral,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-secondary,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-light,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-cta-strip-copy strong,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-widget-copy h3 {
  font-family: "Poppins", "Manrope", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-primary,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-coral,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-secondary,
#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) a.scv-ed-btn-light {
  font-size: 0.94rem;
  font-weight: 600;
}

#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) table.scv-ed-table {
  font-size: 0.92rem;
  line-height: 1.6;
}

#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-ed-ba-quote {
  line-height: 1.68;
}

#scv-home-v2[dir="ltr"] :is(.pv2-body, .pg2-showcase) .scv-ed-chart-card svg text {
  font-family: "Poppins", "Manrope", system-ui, -apple-system, sans-serif;
}

#scv-home-v2[dir="ltr"] .pv2-toc a {
  font-family: "Poppins", "Manrope", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.48;
}

/* ==========================================================================
 * FULL-WIDTH SAAS LANDING PAGE SHELL (.scv-lp-shell — Pillar Pages)
 * ========================================================================== */
#scv-home-v2:has(.scv-lp-shell) .hv2-wrap,
#scv-home-v2 .pg2-landing .hv2-wrap {
  width: 100% !important;
  max-width: var(--container, 1600px) !important;
  padding-inline: 24px !important;
  margin-inline: auto !important;
  box-sizing: border-box;
}

.scv-lp-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.scv-lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #FFFEF9 0%, #EDF1E6 100%);
  border: 1px solid #D5E0D0;
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: 0 18px 44px rgba(36, 75, 56, 0.08);
}

.scv-lp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #244B38;
  background: #DCE8D8;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.scv-lp-hero h2 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem) !important;
  line-height: 1.18 !important;
  color: #163325;
}

.scv-lp-proof-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 22px !important;
  display: grid;
  gap: 8px;
}

.scv-lp-proof-list li {
  position: relative;
  padding-inline-start: 24px;
  font-size: 0.95rem;
  color: #22372B;
  font-weight: 500;
}

.scv-lp-proof-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: #244B38;
  font-weight: 800;
}

.scv-lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.scv-lp-browser-frame {
  background: #FFFFFF;
  border: 1px solid #D0DCCB;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(22, 51, 37, 0.12);
}

.scv-lp-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F3F6F1;
  border-bottom: 1px solid #E1E8DD;
}

.scv-lp-browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C7D4C2;
}

.scv-lp-browser-url {
  margin-left: 8px;
  font-size: 0.74rem;
  color: #556B5E;
  font-family: "Poppins", "Manrope", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scv-lp-browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.scv-lp-browser-link {
  display: block;
  text-decoration: none !important;
}

.scv-lp-browser-frame:hover img {
  transform: scale(1.012);
}

.scv-lp-frame-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.scv-lp-frame-caption {
  font-size: 0.86rem;
  color: #496053;
  font-weight: 500;
}

.scv-lp-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 36px;
}

.scv-lp-showcase-card {
  background: #FFFEF9;
  border: 1px solid #DCE5D8;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scv-lp-showcase-card h3 {
  margin: 0 !important;
  font-size: 1.15rem !important;
  color: #163325;
}

.scv-lp-showcase-card p {
  margin: 0 !important;
  font-size: 0.94rem;
  color: #354D3F;
  line-height: 1.6;
}

.scv-lp-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 34px;
}

.scv-lp-agent-card {
  background: #FFFFFF;
  border: 1px solid #DCE5D8;
  border-radius: 14px;
  padding: 20px;
}

.scv-lp-agent-card strong {
  display: block;
  color: #244B38;
  font-size: 1rem;
  margin-bottom: 6px;
}

.scv-lp-agent-card p {
  margin: 0 !important;
  font-size: 0.9rem;
  color: #354D3F;
  line-height: 1.55;
}

.scv-lp-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
}

.scv-lp-eco-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FFFEF9;
  border: 1px solid #DCE5D8;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.scv-lp-eco-card:hover {
  border-color: #244B38;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 42, 30, 0.08);
}

.scv-lp-eco-card strong {
  color: #163325;
  font-size: 0.98rem;
  font-weight: 700;
}

.scv-lp-eco-card span {
  color: #354D3F;
  font-size: 0.88rem;
  line-height: 1.5;
}

.scv-lp-eco-card em {
  margin-top: auto;
  padding-top: 6px;
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 700;
  color: #244B38;
}

.scv-lp-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 34px;
}

.scv-lp-entry-grid .scv-cta-hero-strip {
  margin: 0 !important;
  height: 100%;
}

.scv-lp-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #FFFEF9;
  border: 1px solid #DCE5D8;
  border-radius: 14px;
  padding: 20px 22px;
}

.scv-lp-entry-card.is-upload {
  background: #F4F9F6;
  border-color: #B7CEC0;
}

.scv-lp-entry-copy strong {
  display: block;
  color: #163325;
  font-size: 1rem;
  margin-bottom: 4px;
}

.scv-lp-entry-copy span {
  display: block;
  color: #354D3F;
  font-size: 0.88rem;
  line-height: 1.5;
}

.scv-lp-roles-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 34px;
}

.scv-lp-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FFFEF9;
  border: 1px solid #DCE5D8;
  border-radius: 999px;
  color: #163325 !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.scv-lp-role-pill:hover {
  border-color: #244B38;
  background: #EAF3EC;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .scv-lp-hero,
  .scv-lp-showcase-grid,
  .scv-lp-agents-grid,
  .scv-lp-ecosystem-grid,
  .scv-lp-entry-grid {
    grid-template-columns: 1fr;
  }
  .scv-lp-entry-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .scv-lp-hero {
    padding: 22px;
  }
}

/* Quick-Start Role Input Widget (.scv-lp-role-box) */
.scv-lp-role-box {
  background: #ffffff;
  border: 1.5px solid #c8dfe5;
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 18px;
  box-shadow: 0 8px 22px rgba(22, 52, 76, 0.05);
}

.scv-lp-role-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #16344C;
  margin-bottom: 8px;
}

.scv-lp-role-input {
  width: 100%;
  border: 1.5px solid #dbe6ea;
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #13232c;
  background: #f9fcfd;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.scv-lp-role-input:focus {
  border-color: #268599;
  background: #ffffff;
}

.scv-lp-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.scv-lp-chip {
  background: #eef6f8;
  border: 1px solid #c8e0e6;
  color: #16344C;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scv-lp-chip:hover,
.scv-lp-chip.is-active {
  background: #268599;
  color: #ffffff;
  border-color: #268599;
}

/* Above-the-Fold Quick-Start Tool Box (.scv-quick-start-box) for High-Bounce Blog Posts */
#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-quick-start-box,
.scv-quick-start-box {
  background: linear-gradient(135deg, #16344C 0%, #1F4B66 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-inline-start: 6px solid #E8885E;
  border-radius: 20px;
  padding: 22px 26px;
  margin: 1.35rem 0 1.85rem;
  box-shadow: 0 16px 36px -18px rgba(22, 52, 76, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-quick-start-box__title,
.scv-quick-start-box__title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff !important;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-quick-start-box__actions,
.scv-quick-start-box__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-quick-start-box__primary,
.scv-quick-start-box__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E8885E;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(232, 136, 94, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-quick-start-box__primary:hover,
.scv-quick-start-box__primary:hover {
  background: #d56f44;
  transform: translateY(-1px);
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-quick-start-box__secondary,
.scv-quick-start-box__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 11px 18px;
  border-radius: 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-quick-start-box__secondary:hover,
.scv-quick-start-box__secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

#scv-home-v2 :is(.pv2-body, .pg2-showcase) .scv-quick-start-box__trust,
.scv-quick-start-box__trust {
  margin: 0 !important;
  font-size: 0.84rem !important;
  color: rgba(255, 255, 255, 0.86) !important;
  line-height: 1.5 !important;
}
