/* =========================================================
   Vionix Labs — Services & Case Studies page polish
   Brand: navy #142c65 · accent #16cb8a · ink #06050B
   ========================================================= */

:root {
  --vnx-navy: #142c65;
  --vnx-navy-deep: #0d1f4a;
  --vnx-accent: #16cb8a;
  --vnx-accent-soft: rgba(22, 203, 138, 0.12);
  --vnx-ink: #06050b;
  --vnx-muted: #5a6170;
  --vnx-line: rgba(20, 44, 101, 0.1);
  --vnx-surface: #f3f6fb;
  --vnx-surface-2: #eef3f9;
  --vnx-white: #ffffff;
  --vnx-shadow: 0 18px 50px rgba(13, 31, 74, 0.1);
  --vnx-shadow-hover: 0 28px 60px rgba(13, 31, 74, 0.16);
  --vnx-radius: 22px;
  --vnx-radius-sm: 14px;
}

/* ---------- Shared page atmosphere ---------- */
.breadcumb-wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.breadcumb-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(22, 203, 138, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 70%, rgba(20, 44, 101, 0.45), transparent 60%),
    linear-gradient(135deg, rgba(13, 31, 74, 0.72) 0%, rgba(20, 44, 101, 0.55) 55%, rgba(13, 31, 74, 0.7) 100%);
  z-index: 0;
  pointer-events: none;
}

.breadcumb-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  z-index: 0;
  pointer-events: none;
}

.breadcumb-wrapper .container,
.breadcumb-wrapper .breadcumb-content {
  position: relative;
  z-index: 1;
}

.breadcumb-title {
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.breadcumb-menu {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: inline-block;
  padding: 8px 18px;
  margin-top: 8px;
}

.vnx-page-intro {
  position: relative;
  padding: 72px 0 20px;
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(22, 203, 138, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 50% at 100% 10%, rgba(20, 44, 101, 0.06), transparent 50%),
    linear-gradient(180deg, var(--vnx-surface) 0%, var(--vnx-white) 100%);
}

.vnx-page-intro .title-area {
  margin-bottom: 0;
}

.vnx-page-intro .sec-text {
  color: var(--vnx-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
}

.vnx-page-intro .sub-title {
  color: var(--vnx-navy);
}

.vnx-section-soft {
  background:
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(22, 203, 138, 0.06), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--vnx-surface-2) 100%);
}

.vnx-cta-band {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, rgba(22, 203, 138, 0.18), transparent 55%),
    linear-gradient(120deg, var(--vnx-navy-deep) 0%, var(--vnx-navy) 55%, #1a3a7a 100%);
  color: #fff;
}

.vnx-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.vnx-cta-band .container {
  position: relative;
  z-index: 1;
}

.vnx-cta-band .sec-title,
.vnx-cta-band .sec-text {
  color: #fff;
}

.vnx-cta-band .sec-text {
  opacity: 0.88;
  max-width: 560px;
}

.vnx-cta-band .th-btn.th-border {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.vnx-cta-band .th-btn.th-border:hover {
  background: #fff;
  color: var(--vnx-navy);
  border-color: #fff;
}

.vnx-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--vnx-accent-soft);
  color: #0d7a52;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  border: 1px solid rgba(22, 203, 138, 0.25);
  margin: 10px 0 16px;
  width: fit-content;
  max-width: 100%;
}

.vnx-metric strong {
  color: var(--vnx-navy);
  font-weight: 700;
}

/* ---------- Services cards ---------- */
.service-box2 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid var(--vnx-line);
  border-radius: var(--vnx-radius);
  padding: 36px 32px 32px;
  box-shadow: 0 8px 28px rgba(13, 31, 74, 0.04);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
}

.service-box2:before {
  background-image: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 203, 138, 0.14), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(20, 44, 101, 0.08), transparent 50%);
  opacity: 0;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.service-box2:hover {
  transform: translateY(-8px);
  box-shadow: var(--vnx-shadow-hover);
  border-color: rgba(22, 203, 138, 0.35);
}

.service-box2:hover:before {
  opacity: 1;
  visibility: visible;
}

.service-box2 .box-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--vnx-navy) 0%, #1f4a9e 100%);
  box-shadow: 0 12px 28px rgba(20, 44, 101, 0.28);
  margin-bottom: 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-box2 .box-icon:before {
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 60%);
  border-radius: inherit;
}

.service-box2 .box-icon img {
  filter: brightness(0) invert(1);
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-box2:hover .box-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 32px rgba(22, 203, 138, 0.28);
  background: linear-gradient(145deg, #128f62 0%, var(--vnx-accent) 100%);
}

.service-box2 .box-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.service-box2 .box-title {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.service-box2 .box-title a {
  color: inherit;
  transition: color 0.25s ease;
}

.service-box2:hover .box-title a {
  color: var(--vnx-navy);
}

.service-box2 .box-text {
  color: var(--vnx-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  flex: 1;
}

.service-box2 .th-btn {
  align-self: flex-start;
  margin-top: auto;
}

.service-card {
  height: 100%;
  border-radius: var(--vnx-radius-sm);
  border-color: var(--vnx-line);
  box-shadow: 0 6px 22px rgba(13, 31, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vnx-shadow);
  border-color: rgba(22, 203, 138, 0.3);
}

/* ---------- Services interactive list ---------- */
.service-list-area.style2 {
  margin-top: 48px;
  border-radius: var(--vnx-radius);
  overflow: hidden;
  border: 1px solid var(--vnx-line);
  background: #fff;
  box-shadow: var(--vnx-shadow);
}

.service-list.style2 {
  border-color: var(--vnx-line);
  transition: background 0.3s ease;
}

.service-list.style2:hover,
.service-list.style2.item-active {
  background: linear-gradient(90deg, rgba(22, 203, 138, 0.06), transparent 70%);
}

.service-list.style2 .number {
  color: var(--vnx-navy);
  font-variant-numeric: tabular-nums;
}

.service-list.style2 .box-title {
  letter-spacing: -0.02em;
}

.service-list.style2 .service-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(13, 31, 74, 0.18);
}

.service-list.style2 .service-img img {
  transition: transform 0.55s ease;
}

.service-list.style2:hover .service-img img,
.service-list.style2.item-active .service-img img {
  transform: scale(1.05);
}

/* ---------- Case study cards (grid) ---------- */
.case-study {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-study .box-img {
  border-radius: var(--vnx-radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(13, 31, 74, 0.12);
}

.case-study .box-img img {
  border-radius: var(--vnx-radius);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.case-study:hover .box-img img {
  transform: scale(1.04);
}

.case-study .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  top: 20px;
  left: 20px;
  right: 20px;
}

.case-study .tags span {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--vnx-navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.case-study .box-content {
  -webkit-mask-image: none;
  mask-image: none;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid var(--vnx-line);
  margin-top: -56px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 28px 28px 30px;
  border-radius: 20px;
  box-shadow: var(--vnx-shadow);
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.case-study:hover .box-content {
  transform: translateY(-4px);
  box-shadow: var(--vnx-shadow-hover);
}

.case-study .date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--vnx-muted);
  margin-bottom: 16px;
}

.case-study .date .icon {
  width: 42px;
  height: 42px;
  line-height: 42px;
  font-size: 16px;
  margin-right: 0;
  background: linear-gradient(145deg, var(--vnx-navy), #1f4a9e);
  box-shadow: 0 8px 18px rgba(20, 44, 101, 0.25);
}

.case-study .box-title {
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--vnx-ink);
}

.case-study .box-text {
  color: var(--vnx-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.case-study .btn-group {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ---------- Case study list (style2) ---------- */
.case-study_wrapp {
  margin-bottom: 8px;
}

.case-study.style2 {
  gap: 48px;
  padding: 28px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
  border: 1px solid var(--vnx-line);
  border-radius: calc(var(--vnx-radius) + 6px);
  box-shadow: 0 10px 36px rgba(13, 31, 74, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.case-study.style2:hover {
  transform: translateY(-4px);
  box-shadow: var(--vnx-shadow-hover);
  border-color: rgba(22, 203, 138, 0.28);
}

.case-study.style2 .box-img {
  min-width: 0;
  flex: 0 0 46%;
  max-width: 520px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.case-study.style2 .box-img img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 20px;
}

.case-study.style2 .date .icon {
  background: linear-gradient(145deg, var(--vnx-navy), #1f4a9e);
}

.case-study.style2 .box-content2 {
  max-width: none;
  flex: 1;
  padding-right: 8px;
}

.case-study.style2 .box-title {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.case-study.style2 .box-text {
  color: var(--vnx-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

@media (max-width: 991px) {
  .case-study.style2 {
    gap: 24px;
    padding: 18px;
  }

  .case-study.style2 .box-img {
    max-width: 100%;
    flex-basis: 100%;
  }

  .case-study.style2 .box-img img {
    min-height: 220px;
  }

  .case-study .box-content {
    margin-left: 12px;
    margin-right: 12px;
    margin-top: -40px;
    padding: 22px;
  }
}

/* ---------- Case study details ---------- */
.th-case-wrapper.case-details {
  background:
    radial-gradient(ellipse 40% 40% at 0% 0%, rgba(22, 203, 138, 0.07), transparent 50%),
    linear-gradient(180deg, var(--vnx-surface) 0%, #fff 180px);
}

.case-details .blog-wrapp {
  gap: 32px;
  align-items: flex-end;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--vnx-line);
  border-radius: var(--vnx-radius);
  box-shadow: var(--vnx-shadow);
}

.case-details .blog-wrapp .blog-content {
  flex: 1 1 auto;
  min-width: 0;
}

.case-details .blog-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--vnx-surface);
  border: 1px solid var(--vnx-line);
  color: var(--vnx-navy);
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 6px;
  margin-bottom: 6px;
}

.case-details .case-text {
  max-width: none;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.case-details .blog-desc {
  color: var(--vnx-muted);
  line-height: 1.75;
}

.case-details .right-text {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--vnx-surface) 0%, #fff 100%);
  border: 1px solid var(--vnx-line);
}

.case-details .global-img.th-radius {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(13, 31, 74, 0.14);
}

.case-details .sidebar-area.style2 .widget_info {
  background: #fff;
  border: 1px solid var(--vnx-line);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 12px 32px rgba(13, 31, 74, 0.06);
  position: sticky;
  top: 120px;
}

.case-details .sidebar-area.style2 .widget_title {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vnx-line);
}

.case-details .info-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.case-details .info-list li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  background: var(--vnx-surface);
  color: var(--vnx-ink);
  font-weight: 550;
  transition: background 0.25s ease, transform 0.25s ease;
}

.case-details .info-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--vnx-accent);
  box-shadow: 0 0 0 4px var(--vnx-accent-soft);
}

.case-details .info-list li:hover {
  background: rgba(22, 203, 138, 0.1);
  transform: translateX(3px);
}

.case-details .th-blog.blog-single {
  background: #fff;
  border: 1px solid var(--vnx-line);
  border-radius: var(--vnx-radius);
  padding: 36px 40px;
  box-shadow: 0 12px 36px rgba(13, 31, 74, 0.05);
}

.case-details .blog-title.h4,
.case-details .blog-content > h4 {
  position: relative;
  padding-left: 18px;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.case-details .blog-title.h4::before,
.case-details .blog-content > h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--vnx-accent), var(--vnx-navy));
}

.case-details .blog-content > h4:first-of-type,
.case-details .blog-title.h4:first-of-type {
  margin-top: 0.5rem;
}

.case-details .vnx-result-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}

.case-details .vnx-result-strip .item {
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(22, 203, 138, 0.1), rgba(20, 44, 101, 0.05));
  border: 1px solid rgba(22, 203, 138, 0.2);
  text-align: center;
}

.case-details .vnx-result-strip .num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vnx-navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.case-details .vnx-result-strip .label {
  display: block;
  font-size: 0.85rem;
  color: var(--vnx-muted);
  line-height: 1.35;
}

@media (max-width: 991px) {
  .case-details .blog-wrapp {
    grid-template-columns: 1fr;
  }

  .case-details .sidebar-area.style2 .widget_info {
    position: static;
  }

  .case-details .th-blog.blog-single {
    padding: 24px 20px;
  }

  .case-details .vnx-result-strip {
    grid-template-columns: 1fr;
  }
}

/* ---------- Edge Agent product page ---------- */
body:has(.edge-agent-page) .breadcumb-wrapper,
.edge-agent-page + .breadcumb-wrapper {
  /* fallback handled by shared breadcrumb styles */
}

/* Soft polish for edge agent sections using existing classes */
.img-box1 img,
.space .rounded,
.space img.w-100.rounded {
  border-radius: 22px !important;
  box-shadow: 0 22px 50px rgba(13, 31, 74, 0.14);
}

.bg-smoke {
  background:
    radial-gradient(ellipse 40% 50% at 10% 20%, rgba(22, 203, 138, 0.07), transparent 55%),
    #f3f6fb !important;
}

.checklist.style2 li {
  position: relative;
}

/* ---------- Pagination & marquee polish ---------- */
.th-pagination ul {
  gap: 8px;
}

.th-pagination a {
  border-radius: 12px !important;
  border: 1px solid var(--vnx-line);
  transition: all 0.25s ease;
}

.th-pagination a:hover,
.th-pagination .active a {
  background: var(--vnx-navy) !important;
  border-color: var(--vnx-navy) !important;
  color: #fff !important;
}

.marquee-area2,
.position-relative.space-bottom.overflow-hidden {
  background: linear-gradient(90deg, var(--vnx-navy-deep), var(--vnx-navy));
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .service-box2,
  .service-card,
  .case-study .box-img img,
  .case-study .box-content,
  .case-study.style2,
  .service-list.style2 .service-img img {
    transition: none !important;
    transform: none !important;
  }
}
