/* Service & technology detail pages — shared modern layout */

.service-detail-page {
  overflow-x: hidden;
}

/* Hero */
.service-detail-page .sd-hero {
  position: relative;
  min-height: 380px;
  height: auto;
  padding-bottom: 0;
}

.service-detail-page .sd-hero .container {
  position: relative;
  z-index: 2;
  min-height: 380px;
  padding-top: 28px;
  padding-bottom: 44px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.service-detail-page .sd-hero .nav-breadcrumb {
  position: relative;
  top: auto;
  left: auto;
  z-index: 3;
  margin: 0 0 28px;
  padding: 0;
  flex-shrink: 0;
  text-align: left;
  line-height: 1.6;
}

.service-detail-page .sd-hero .nav-breadcrumb li:after {
  padding: 0 0 0 6px;
}

.service-detail-page .sd-hero .nav-breadcrumb.list-inline > li {
  padding-left: 0;
  padding-right: 0;
}

.service-detail-page .sd-hero .nav-breadcrumb li {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}

.service-detail-page .sd-hero .nav-breadcrumb li:last-child a {
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  cursor: default;
}

.service-detail-page .sd-hero .inner-quote {
  position: relative;
  top: auto;
  left: auto;
  z-index: 2;
  padding: 0 15px;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.service-detail-page .sd-hero .main-title {
  font-size: 38px;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.service-detail-page .sd-hero .tag-line {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.service-detail-page .sd-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(211, 47, 47, 0.9);
  border-radius: 2px;
}

.service-detail-page .sd-hero-cta {
  margin-top: 8px;
}

/* Stats strip */
.service-detail-page .sd-stats {
  background: #121212;
  color: #fff;
  padding: 36px 0;
  margin-top: -1px;
}

.service-detail-page .sd-stats ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  list-style: none;
}

.service-detail-page .sd-stats li {
  flex: 1 1 200px;
  max-width: 280px;
  text-align: center;
  padding: 12px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.service-detail-page .sd-stats li:last-child {
  border-right: none;
}

.service-detail-page .sd-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  line-height: 1.1;
}

.service-detail-page .sd-stat-value em {
  font-style: normal;
  color: #ef5350;
}

.service-detail-page .sd-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* Section headers */
.service-detail-page .sd-section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.service-detail-page .sd-section-head .section-title {
  margin-bottom: 14px;
}

.service-detail-page .sd-section-head .section-description {
  width: 100%;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.65;
}

/* Lead & highlight */
.service-detail-page .sd-lead-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  align-items: stretch;
}

.service-detail-page .sd-lead-main {
  flex: 1 1 58%;
  min-width: 280px;
  padding: 0 15px;
}

.service-detail-page .sd-lead-aside {
  flex: 1 1 38%;
  min-width: 260px;
  padding: 0 15px;
}

.service-detail-page .sd-lead-main p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.service-detail-page .sd-highlight-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 28px 24px;
  border-radius: 4px;
  border-left: 4px solid #d32f2f;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-detail-page .sd-highlight-box h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
}

.service-detail-page .sd-highlight-box p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
}

.service-detail-page .sd-highlight-box strong {
  color: #ff8a80;
}

.service-detail-page mark.sd-mark {
  background: #fff3e0;
  color: #e65100;
  padding: 2px 6px;
  font-weight: 600;
}

/* Feature cards */
.service-detail-page .sd-feature-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.service-detail-page .sd-feature-card {
  flex: 1 1 22%;
  min-width: 220px;
  padding: 0 12px 24px;
  box-sizing: border-box;
}

.service-detail-page .sd-feature-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  padding: 32px 24px 28px;
  height: 100%;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #d32f2f;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-detail-page .sd-feature-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.service-detail-page .sd-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-detail-page .sd-feature-icon img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0;
}

.service-detail-page .sd-feature-card-inner h3 {
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  color: #121212;
  margin: 0 0 12px;
  line-height: 1.35;
}

.service-detail-page .sd-feature-card-inner p {
  width: 100%;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 0;
  flex: 1;
}

/* Detail cards (two-column) */
.service-detail-page .sd-detail-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.service-detail-page .sd-detail-card {
  flex: 1 1 46%;
  min-width: 280px;
  padding: 0 12px 24px;
  box-sizing: border-box;
}

.service-detail-page .sd-detail-inner {
  background: #fff;
  padding: 24px 22px;
  border-radius: 4px;
  height: 100%;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #43445c;
}

.service-detail-page .sd-detail-inner h3 {
  font-size: 18px;
  font-weight: 700;
  color: #d32f2f;
  margin: 0 0 10px;
}

.service-detail-page .sd-detail-inner > p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.service-detail-page .sd-detail-inner .common-list {
  margin: 0;
  padding-left: 18px;
}

.service-detail-page .sd-detail-inner .common-list li {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 6px;
}

/* Tech stack showcase */
.service-detail-page .sd-tech-showcase {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

.service-detail-page .sd-tech-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  background: #fff;
  padding: 40px 44px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #d32f2f;
}

.service-detail-page .sd-tech-logo {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  background: #f8f9fa;
  border-radius: 4px;
  padding: 24px;
  box-sizing: border-box;
}

.service-detail-page .sd-tech-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.service-detail-page .sd-tech-content {
  flex: 1 1 280px;
  min-width: 0;
  text-align: left;
}

.service-detail-page .sd-tech-content p {
  font-size: 17px;
  line-height: 1.75;
  color: #444;
  margin: 0 0 16px;
  text-align: left;
}

.service-detail-page .sd-tech-content .common-list {
  margin: 0;
  padding-left: 20px;
}

.service-detail-page .sd-tech-content .common-list li {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 8px;
}

/* Tech stack pills */
.service-detail-page .sd-stack-wrap {
  text-align: center;
  max-width: 900px;
  margin: 48px auto 0;
  padding: 0 15px;
}

.service-detail-page .sd-stack-wrap > p {
  font-size: 17px;
  margin-bottom: 24px;
}

.service-detail-page .sd-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail-page .sd-pills li {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.service-detail-page .sd-pills li:hover {
  border-color: #d32f2f;
  color: #d32f2f;
}

.service-detail-page .sd-pills li.sd-pill--primary {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #fff;
}

/* Use cases / advantages grid */
.service-detail-page .sd-use-grid .ad-blcoks {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 32px 24px 28px;
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  min-height: 220px;
  text-align: center;
  transition: box-shadow 0.25s ease;
}

.service-detail-page .sd-use-grid .ad-blcoks:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-detail-page .sd-use-grid .ad-blcoks img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 0 20px;
  flex-shrink: 0;
}

.service-detail-page .sd-use-grid .ad-title {
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  color: #121212;
  margin: 0 0 10px;
  text-transform: none;
}

.service-detail-page .sd-use-grid .ad-blcoks p,
.service-detail-page .sd-use-grid .ad-blcoks .ad-desc {
  width: 100%;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 0;
  flex: 1;
}

/* Why + CTA */
.service-detail-page .sd-why-section {
  background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
}

.service-detail-page .sd-why-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  align-items: center;
}

.service-detail-page .sd-why-content {
  flex: 1 1 55%;
  min-width: 280px;
  padding: 0 15px;
}

.service-detail-page .sd-why-content .section-description {
  width: 100%;
  max-width: 100%;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.service-detail-page .sd-why-cta-box {
  flex: 1 1 40%;
  min-width: 260px;
  padding: 0 15px;
}

.service-detail-page .sd-why-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.service-detail-page .sd-why-list li {
  position: relative;
  padding: 12px 0 12px 36px;
  font-size: 16px;
  line-height: 1.55;
  border-bottom: 1px solid #eee;
}

.service-detail-page .sd-why-list li:before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 14px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: #d32f2f;
  border-radius: 50%;
}

.service-detail-page .sd-cta-panel {
  background: #121212;
  color: #fff;
  padding: 36px 28px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.service-detail-page .sd-cta-panel h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
}

.service-detail-page .sd-cta-panel p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.service-detail-page .sd-cta-panel .link-btn {
  display: inline-block;
  margin-top: 4px;
}

.service-detail-page .common-sections.sd-tight-top {
  padding-top: 70px;
}

@media screen and (max-width: 991px) {
  .service-detail-page .sd-hero .main-title {
    font-size: 28px;
  }

  .service-detail-page .sd-stats li {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    max-width: none;
  }

  .service-detail-page .sd-feature-card {
    flex: 1 1 48%;
  }

  .service-detail-page .sd-detail-card {
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 767px) {
  .service-detail-page .sd-hero,
  .service-detail-page .sd-hero .container {
    min-height: 420px;
  }

  .service-detail-page .sd-hero .nav-breadcrumb {
    margin-bottom: 20px;
    padding-right: 0;
  }

  .service-detail-page .sd-hero .nav-breadcrumb a {
    font-size: 13px;
    margin-right: 0;
  }

  .service-detail-page .sd-hero .main-title {
    font-size: 24px;
  }

  .service-detail-page .sd-hero .tag-line {
    font-size: 16px;
  }

  .service-detail-page .sd-lead-main,
  .service-detail-page .sd-lead-aside {
    flex: 1 1 100%;
  }

  .service-detail-page .sd-lead-aside {
    margin-top: 20px;
  }

  .service-detail-page .sd-feature-card {
    flex: 1 1 100%;
  }

  .service-detail-page .sd-stat-value {
    font-size: 26px;
  }

  .service-detail-page .sd-tech-panel {
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    text-align: center;
  }

  .service-detail-page .sd-tech-logo {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
  }

  .service-detail-page .sd-tech-content {
    flex: 1 1 100%;
    text-align: center;
  }

  .service-detail-page .sd-tech-content p {
    text-align: center;
  }

  .service-detail-page .sd-tech-content .common-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
  }
}

/* --- Services hub page (compact grid) --- */
.services-hub-page .sd-hero--compact,
.services-hub-page .sd-hero--compact .container {
  min-height: 280px;
}

.services-hub-page .sd-hero--compact .inner-quote {
  max-width: 720px;
}

.services-hub-page .sd-hero-cta .link-btn {
  margin-top: 20px;
}

.services-hub {
  padding-top: 48px;
  padding-bottom: 48px;
}

.services-hub__intro {
  margin-bottom: 28px;
}

.services-hub__intro .section-description {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.services-hub__category {
  margin-bottom: 22px;
}

.services-hub__category:last-child {
  margin-bottom: 0;
}

.services-hub__cat-title {
  margin: 0 0 10px;
  padding: 0 4px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f6185c;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.services-hub__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.services-hub__item {
  margin: 0;
  padding: 0;
  float: none;
  width: auto;
}

.services-hub__item > a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 12px 8px 10px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.services-hub__item > a:hover,
.services-hub__item > a:focus {
  transform: translateY(-2px);
  border-color: rgba(235, 71, 73, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.services-hub__item--trending > a {
  border-color: rgba(246, 24, 92, 0.18);
  background: linear-gradient(180deg, #fff 0%, #fff9fa 100%);
}

.services-hub__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f6185c 0%, #eb4749 100%);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(235, 71, 73, 0.35);
}

.services-hub__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.services-hub__icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.services-hub__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #444;
}

.services-hub__item > a:hover .services-hub__label,
.services-hub__item > a:focus .services-hub__label {
  color: #eb4749;
}

@media screen and (max-width: 1199px) {
  .services-hub__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media screen and (max-width: 991px) {
  .services-hub__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .services-hub-page .sd-hero--compact,
  .services-hub-page .sd-hero--compact .container {
    min-height: 260px;
  }
}

@media screen and (max-width: 767px) {
  .services-hub {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .services-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .services-hub__item > a {
    min-height: 88px;
    padding: 10px 6px 8px;
  }

  .services-hub__icon {
    width: 36px;
    height: 36px;
  }

  .services-hub__icon img {
    max-width: 36px;
    max-height: 36px;
  }

  .services-hub__label {
    font-size: 11px;
  }

  .services-hub-page .sd-hero--compact,
  .services-hub-page .sd-hero--compact .container {
    min-height: 240px;
  }
}

@media screen and (max-width: 479px) {
  .services-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-hub__badge {
    top: 4px;
    right: 4px;
    font-size: 8px;
    padding: 2px 5px;
  }
}
