/* ==========================================================================
   NEGAREH PLATFORM - SECTION 8 (CONVERSION HUB & VALUE PROPOSITION)
   Namespace: .ng-section8, .ng-s8-*
   Aesthetic: Modern SaaS Educational, Minimalist, High-Clarity, Premium
   ========================================================================== */

.ng-section8 {
  position: relative;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 107, 115, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(60, 198, 200, 0.045) 0%, transparent 45%);
  padding-top: 100px;
  padding-bottom: 110px;
  color: #0f172a;
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  border-top: 1px solid #edf2f7;
}

/* Background Ambient Lighting */
.ng-s8-ambient {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.ng-s8-ambient--top {
  top: 5%;
  right: -90px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(0, 107, 115, 0.045) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(90px);
}

.ng-s8-ambient--bottom {
  bottom: 8%;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(60, 198, 200, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

/* Main Container */
.ng-s8-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.ng-s8-header {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ng-s8-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ng-s8-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(0, 107, 115, 0.06);
  border: 1px solid rgba(0, 107, 115, 0.14);
  color: #006B73;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.ng-s8-eyebrow-icon {
  width: 16px;
  height: 16px;
  color: #006B73;
}

.ng-s8-title {
  font-size: 34px;
  font-weight: 800;
  color: #0b1c2d;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.ng-s8-subtitle {
  font-size: 16px;
  line-height: 1.85;
  color: #475569;
  font-weight: 400;
  margin: 0;
}

/* --------------------------------------------------------------------------
   MAIN GRID LAYOUT (2 Columns)
   -------------------------------------------------------------------------- */
.ng-s8-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 56px;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: VALUE PROPOSITIONS (6 Grid Cards)
   -------------------------------------------------------------------------- */
.ng-s8-props-col {
  display: flex;
  flex-direction: column;
}

.ng-s8-props-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ng-s8-prop-card {
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(11, 28, 45, 0.02);
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(16px);
}

.ng-s8-prop-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ng-s8-prop-card:hover {
  border-color: rgba(0, 107, 115, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(0, 107, 115, 0.08);
}

.ng-s8-prop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ng-s8-prop-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 107, 115, 0.06);
  border: 1px solid rgba(0, 107, 115, 0.12);
  color: #006B73;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.ng-s8-prop-card:hover .ng-s8-prop-icon-wrap {
  background: #006B73;
  color: #ffffff;
  border-color: #006B73;
}

.ng-s8-prop-icon {
  width: 22px;
  height: 22px;
}

.ng-s8-prop-badge {
  font-size: 11px;
  font-weight: 700;
  color: #006B73;
  background: #f0fafb;
  border: 1px solid rgba(0, 107, 115, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
}

.ng-s8-prop-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0b1c2d;
  line-height: 1.45;
  margin-bottom: 8px;
}

.ng-s8-prop-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: INTERACTIVE PATHWAY & DECISION HUB
   -------------------------------------------------------------------------- */
.ng-s8-hub-col {
  display: flex;
  flex-direction: column;
}

.ng-s8-hub-card {
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 24px;
  padding: 32px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -2px rgba(11, 28, 45, 0.04);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.ng-s8-hub-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ng-s8-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ng-s8-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #006B73;
  background: #e6f7f8;
  padding: 4px 12px;
  border-radius: 8px;
}

.ng-s8-hub-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3CC6C8;
  box-shadow: 0 0 6px #3CC6C8;
}

.ng-s8-hub-title {
  font-size: 19px;
  font-weight: 800;
  color: #0b1c2d;
  margin: 0 0 8px 0;
}

.ng-s8-hub-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #64748b;
  margin: 0 0 24px 0;
}

/* Pathway Selector Buttons */
.ng-s8-pathway-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.ng-s8-pathway-tab {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ng-s8-pathway-tab:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #006B73;
}

.ng-s8-pathway-tab.is-active {
  background: #006B73;
  border-color: #006B73;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 107, 115, 0.2);
}

/* Selected Pathway Info Box */
.ng-s8-pathway-content {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.ng-s8-pathway-title-box {
  margin-bottom: 14px;
}

.ng-s8-pathway-target-title {
  font-size: 16px;
  font-weight: 800;
  color: #0b1c2d;
  margin: 0 0 4px 0;
}

.ng-s8-pathway-target-sub {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.ng-s8-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ng-s8-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 600;
}

.ng-s8-feature-icon {
  width: 18px;
  height: 18px;
  color: #006B73;
  flex-shrink: 0;
}

/* Key Metrics Chips */
.ng-s8-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.ng-s8-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.ng-s8-chip-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.ng-s8-chip-val {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #0b1c2d;
}

/* Fast Action Box */
.ng-s8-hub-action {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ng-s8-btn-counseling {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #006B73;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 107, 115, 0.25);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.ng-s8-btn-counseling:hover {
  background: #004d53;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 107, 115, 0.32);
}

.ng-s8-btn-counseling svg {
  width: 18px;
  height: 18px;
}

.ng-s8-action-subnote {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

/* --------------------------------------------------------------------------
   BOTTOM TRUST METRICS BAR & FINAL CTA
   -------------------------------------------------------------------------- */
.ng-s8-trust-banner {
  background: linear-gradient(135deg, #0b1c2d 0%, #002d31 100%);
  border-radius: 26px;
  padding: 40px;
  color: #ffffff;
  box-shadow: 0 16px 36px -10px rgba(11, 28, 45, 0.25);
  display: flex;
  flex-direction: column;
  gap: 36px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.ng-s8-trust-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Trust Metrics 4 Columns */
.ng-s8-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ng-s8-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.ng-s8-metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.ng-s8-metric-number {
  font-size: 36px;
  font-weight: 900;
  color: #3CC6C8;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.ng-s8-metric-label {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.ng-s8-metric-desc {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Bottom Action Row */
.ng-s8-trust-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 24px;
}

.ng-s8-footer-info {
  display: flex;
  flex-direction: column;
}

.ng-s8-footer-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.ng-s8-footer-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
}

.ng-s8-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ng-s8-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3CC6C8;
  color: #0b1c2d;
  font-size: 14.5px;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(60, 198, 200, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.ng-s8-btn-primary:hover {
  background: #ffffff;
  color: #006B73;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.25);
}

.ng-s8-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.ng-s8-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(60, 198, 200, 0.5);
  color: #3CC6C8;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .ng-s8-main-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ng-s8-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .ng-s8-metric-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .ng-section8 {
    padding-top: 68px;
    padding-bottom: 76px;
  }

  .ng-s8-title {
    font-size: 26px;
  }

  .ng-s8-subtitle {
    font-size: 14.5px;
  }

  .ng-s8-props-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ng-s8-prop-card {
    padding: 18px;
    border-radius: 16px;
  }

  .ng-s8-hub-card {
    padding: 22px;
    border-radius: 18px;
  }

  .ng-s8-pathway-tabs {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ng-s8-chips-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ng-s8-trust-banner {
    padding: 26px;
    border-radius: 20px;
    gap: 28px;
  }

  .ng-s8-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .ng-s8-metric-number {
    font-size: 28px;
  }

  .ng-s8-trust-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 18px;
  }

  .ng-s8-footer-actions {
    flex-direction: column;
  }

  .ng-s8-btn-primary,
  .ng-s8-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   PREFERS REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ng-s8-header,
  .ng-s8-prop-card,
  .ng-s8-hub-card,
  .ng-s8-trust-banner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .ng-s8-prop-card:hover,
  .ng-s8-btn-counseling:hover,
  .ng-s8-btn-primary:hover,
  .ng-s8-btn-secondary:hover {
    transform: none !important;
  }
}


/* Section 8 WordPress additions */
.ng-s8-hub-caption {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.ng-s8-pathway-content[hidden] {
  display: none !important;
}

.ng-s8-pathway-content.is-active {
  display: block;
}

.ng-s8-btn-counseling.is-submitted {
  background: #004d53;
}

.ng-s8-btn-counseling:focus-visible,
.ng-s8-pathway-tab:focus-visible,
.ng-s8-btn-primary:focus-visible,
.ng-s8-btn-secondary:focus-visible {
  outline: 3px solid rgba(60, 198, 200, 0.45);
  outline-offset: 3px;
}

.ng-s8-btn-counseling,
.ng-s8-pathway-tab,
.ng-s8-btn-primary,
.ng-s8-btn-secondary {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .ng-s8-hub-caption {
    font-size: 11px;
  }
}
