.services-section {
  background: linear-gradient(180deg, #fffaf3 0%, #f4eee6 100%);
}

.services-section .services-intro-copy {
  max-width: 760px;
  margin: 10px auto 0;
  color: #4f5d70;
  line-height: 1.7;
  text-align: center;
}

.services-section .services-intro-copy p:last-child {
  margin-bottom: 0;
}

html[dir="rtl"] .services-section .services-intro-copy {
  direction: rtl;
  text-align: center;
}

.service-showcase {
  max-width: 1080px;
  margin: 30px auto 0;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 46px rgba(36, 42, 52, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.service-showcase-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.service-showcase-tabs button {
  min-width: 138px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2e3442;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(36, 42, 52, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateZ(0);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
  will-change: auto;
}

.service-showcase-tabs button.is-active {
  background: linear-gradient(135deg, #2f6fff, #164bd7);
  color: #fff;
  border-color: rgba(47, 111, 255, 0.34);
  box-shadow: 0 12px 24px rgba(31, 90, 224, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .service-showcase-tabs button:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(47, 111, 255, 0.22);
    color: #164bd7;
    box-shadow: 0 10px 22px rgba(36, 42, 52, 0.09);
  }
}

.service-showcase-panel {
  display: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: stretch;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.service-showcase-panel.is-active {
  display: grid;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: servicePanelIn 180ms cubic-bezier(0.2, 0, 0.2, 1) both;
}

@keyframes servicePanelIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.service-showcase-feature {
  padding: 10px 26px 8px 18px;
  border-right: 1px solid rgba(23, 45, 75, 0.12);
}

.service-showcase-feature-media {
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 24px rgba(33, 50, 78, 0.1);
}

.service-showcase-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-showcase-feature-media.is-icon-only,
.service-showcase-card-visual.is-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #245be0;
}

.service-showcase-feature-media.is-icon-only {
  background: #eef4ff;
  font-size: 2.1rem;
}

.service-showcase-kicker {
  display: block;
  margin-bottom: 10px;
  color: #c48748;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.service-showcase-feature h3 {
  margin: 0 0 14px;
  color: #0e2748;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.service-showcase-feature p {
  max-width: 420px;
  margin-bottom: 22px;
  color: #354050;
  font-size: 1rem;
  line-height: 1.8;
}

.service-showcase-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.service-showcase-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.service-showcase-chips i {
  color: #245be0;
}

.service-showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f6fff, #164bd7);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(31, 90, 224, 0.28);
}

.service-showcase-cta:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.04);
}

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

.service-showcase-card,
.service-showcase-image-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(36, 42, 52, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.service-showcase-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
}

.service-showcase-card-toggle,
.service-showcase-card-prompt {
  display: none;
}

.service-showcase-card-visual {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  background: #eef4ff;
  color: #245be0;
  font-size: 1.55rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.service-showcase-card h4 {
  margin: 4px 0 8px;
  color: #142a4b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.service-showcase-card p {
  margin: 0;
  color: #5d6878;
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-showcase-list.is-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-showcase-image-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
}

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

.service-showcase-image-card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #173052;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.services-page-shell .services-section {
  padding-top: 90px;
}

@media (max-width: 991px) {
  .service-showcase {
    padding: 22px;
    border-radius: 28px;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 34px rgba(36, 42, 52, 0.1);
  }

  .service-showcase-panel,
  .service-showcase-panel.is-active {
    display: block;
  }

  .service-showcase-panel:not(.is-active) {
    display: none;
  }

  .service-showcase-feature {
    margin-bottom: 24px;
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 45, 75, 0.12);
  }

  .service-showcase-image-card figcaption {
    backdrop-filter: none;
  }
}

@media (max-width: 640px) {
  .service-showcase {
    padding: 18px;
    border-radius: 24px;
  }

  .service-showcase-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 -18px 24px;
    padding: 0 18px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .service-showcase-tabs::-webkit-scrollbar {
    display: none;
  }

  .service-showcase-tabs button {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 44px;
    padding: 9px 18px;
    scroll-snap-align: center;
  }

  .service-showcase-list,
  .service-showcase-list.is-gallery {
    grid-template-columns: 1fr;
  }

  .service-showcase-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-showcase-panel.is-active {
    animation: none;
  }

  .service-showcase-tabs button {
    transition: none;
  }
}
