.service-detail-section {
  padding: 80px 0 120px;
  background:
    radial-gradient(900px 600px at 80% 0%, rgba(62, 199, 108, 0.08), rgba(255, 255, 255, 0) 60%),
    radial-gradient(700px 500px at 10% 10%, rgba(18, 24, 20, 0.04), rgba(255, 255, 255, 0) 60%),
    #ffffff;
}

.service-detail-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.service-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.3s ease;
}

.service-back-link:hover {
  color: var(--color-primary);
}

.service-hero {
  margin-bottom: 32px;
}

.service-hero-media {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1411;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
  position: relative;
}

.service-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.service-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-header {
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 18px;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-title-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 199, 108, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(62, 199, 108, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.service-title-icon svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark--100);
  margin: 0;
  letter-spacing: -0.8px;
}

.service-title-subtitle {
  margin: 10px 0 0;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  max-width: 560px;
}

.service-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0 30px;
}

.service-cta-group--below-overview {
  margin: 10px 0 36px;
}

.service-cta-group--below-overview .service-cta-primary,
.service-cta-group--below-overview .service-cta-secondary {
  padding: 10px 18px;
  font-size: 13px;
}

.service-cta-primary,
.service-cta-secondary,
.service-cta-link {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.service-cta-primary {
  background: #a2c84f;
  color: #111827;
  box-shadow: 0 12px 24px rgba(162, 200, 79, 0.25);
  border: 1px solid rgba(162, 200, 79, 0.6);
}

.service-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(162, 200, 79, 0.32);
}

.service-cta-secondary {
  border: 1px solid #393b3d;
  color: #393b3d;
  background: transparent;
}

.service-cta-secondary:hover {
  transform: translateY(-2px);
}

.service-cta-link {
  padding: 0;
  border-radius: 0;
  color: #393b3d;
  font-weight: 600;
}

.service-cta-link:hover {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.service-cta-primary:focus-visible,
.service-cta-secondary:focus-visible,
.service-cta-link:focus-visible {
  outline: 2px solid rgba(162, 200, 79, 0.85);
  outline-offset: 3px;
}

.service-cta-primary--sm {
  padding: 10px 18px;
  font-size: 13px;
}

.service-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(62, 199, 108, 0.0), rgba(62, 199, 108, 0.95));
}

.service-highlight {
  margin: 18px 0 34px;
}

.service-highlight-inner {
  border-radius: 14px;
  padding: 28px 26px;
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(62, 199, 108, 0.18), rgba(62, 199, 108, 0.06) 55%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(62, 199, 108, 0.08), rgba(62, 199, 108, 0.03));
  border: 1px solid rgba(62, 199, 108, 0.20);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
}

.service-highlight-inner::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, rgba(62, 199, 108, 0.95), rgba(62, 199, 108, 0.25));
}

.service-highlight-title {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: rgba(20, 24, 26, 0.92);
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.service-highlight-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(62, 199, 108, 0.9);
  box-shadow: 0 0 0 6px rgba(62, 199, 108, 0.12);
}

.service-highlight-text {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 2.15;
  color: rgba(18, 24, 20, 0.96);
}

.service-overview {
  margin: 0 0 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-section-title {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-right: 14px;
  color: var(--dark--100);
}

.service-section-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-primary);
}

.service-section-title--divider::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 10px;
  background: rgba(162, 200, 79, 0.85);
  border-radius: 999px;
}

.service-section-title--block {
  margin-top: 10px;
}

.service-section-subtitle {
  margin: -6px 0 24px;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
}

.service-section-body {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 16px;
  line-height: 2.0;
  color: #5b6166;
}

.service-section-list {
  margin: 12px 0 0;
  padding-right: 18px;
  list-style: disc;
  display: grid;
  gap: 6px;
}

.service-feature {
  display: list-item;
  padding: 4px 0;
  font-weight: 600;
  color: #1f2a1f;
}

.service-feature::before {
  content: none;
}

.service-feature::after {
  content: none;
}

.service-feature-lead {
  color: #1f2a1f;
}

.service-feature-desc {
  color: inherit;
  line-height: 1.9;
  font-weight: inherit;
}

.service-feature-group {
  font-weight: 700;
  color: #1f2937;
  padding: 10px 0 4px;
  margin-top: 4px;
}

.service-sections {
  margin-top: 32px;
}

.service-section-entries {
  display: grid;
  gap: 36px;
}

.service-section-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.service-section-text {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-section-entry--full {
  grid-template-columns: 1fr;
}

.service-section-entry--full .service-section-text {
  width: 100%;
}

.service-section-entry:nth-child(even) .service-section-text {
  order: 0;
}

.service-section-entry:nth-child(even) .service-section-media {
  order: 0;
}

.service-section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.service-section-heading {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--dark--100);
  position: relative;
  padding-right: 14px;
}

.service-section-heading::before {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  width: 6px;
  height: 16px;
  border-radius: 999px;
  background: var(--color-primary);
}

.service-section-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f7f5;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.service-section-media img {
  width: 50%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.service-section-caption {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

.service-related-section {
  margin-top: 40px;
}

.service-related-intro {
  margin: 0 0 18px;
  font-size: 15px;
  color: #4b5563;
}

.service-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-related-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  aspect-ratio: 4 / 3;
  background: #0e1411;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease;
  cursor: pointer;
}

.service-related-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.service-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.service-related-image {
  position: absolute;
  inset: 0;
}

.service-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
}

.service-related-card:hover .service-related-image img {
  transform: scale(1.04);
}

.service-related-card:hover .service-related-title,
.service-related-card:focus-visible .service-related-title {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.service-related-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.service-related-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 26px;
  z-index: 2;
}

.service-related-title {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-related-outcome {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.service-related-outcome span {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.service-mid-cta {
  margin: 40px 0;
  padding: 28px 0;
  background: rgba(162, 200, 79, 0.12);
}

.service-mid-cta--framed {
  border-radius: 18px;
}

.service-mid-cta--framed .service-mid-cta-inner {
  background: #f6faea;
  border-radius: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(162, 200, 79, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.service-mid-cta-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-mid-cta-text h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--dark--100);
}

.service-mid-cta-text p {
  margin: 0;
  color: #4b5563;
}

.service-sticky-cta {
  position: fixed;
  z-index: 30;
  text-decoration: none;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.service-sticky-cta--desktop {
  top: 20px;
  right: 24px;
}

.service-sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .service-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .service-detail-container {
    padding: 0 24px;
  }

  .service-mid-cta-inner {
    padding: 0 24px;
  }
}

@media (max-width: 900px) {
  .service-section-entry {
    grid-template-columns: 1fr;
  }

  .service-section-entry:nth-child(even) .service-section-text,
  .service-section-entry:nth-child(even) .service-section-media {
    order: initial;
  }

  .service-hero-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .service-detail-section {
    padding: 40px 0 80px;
  }

  .service-title {
    font-size: 34px;
  }

  .service-section-title {
    font-size: 24px;
  }

  .service-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .service-cta-primary,
  .service-cta-secondary {
    width: 100%;
  }

  .service-mid-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-sticky-cta--desktop {
    display: none;
  }

  .service-sticky-cta-bar {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .service-detail-container {
    padding: 0 16px;
  }

  .service-title {
    font-size: 28px;
  }
}
