/* Prevent sideways scrolling without breaking the sticky header */
html, body { overflow-x: clip; }

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* Images never exceed their container */
img { max-width: 100%; height: auto; }

/* Respect users who turn off motion in their device settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===== Header: floating glass bar when scrolling ===== */
#sticky-header.sticky-menu {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
#sticky-header.sticky-menu .menu-area {
  max-width: min(1280px, calc(100% - 32px));
  margin: 12px auto 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .14),
              inset 0 1px 0 rgba(255, 255, 255, .9);
}
#sticky-header .menu-area { transition: all .35s ease; }

/* ===== Animated background (soft drifting colour glow) ===== */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 25%, rgba(58, 92, 245, .16), transparent 70%),
    radial-gradient(35% 35% at 80% 20%, rgba(168, 85, 247, .12), transparent 70%),
    radial-gradient(40% 40% at 70% 80%, rgba(14, 165, 233, .14), transparent 70%);
  animation: ss-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ss-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) rotate(6deg) scale(1.12); }
}

/* ===== Scroll reveal (CSS only, on the column wrappers) ===== */
@keyframes ss-rise {
  from { opacity: 0; transform: translateY(44px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  div:has(> .features-item-three),
  div:has(> .team-item-three) {
    animation: ss-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

/* ===== Feature cards ===== */
.features-item-three {
  transition: transform .4s ease, box-shadow .3s ease, border-color .3s ease;
}
.features-item-three:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  border-color: rgba(58, 92, 245, .4);
}
.features-item-three img { transition: transform .45s ease; }
.features-item-three:hover img { transform: translateY(-4px) scale(1.08); }

/* ===== Team cards ===== */
.team-item-three {
  height: 100%;
  transition: transform .4s ease, box-shadow .3s ease;
}
.team-item-three:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}
.team-thumb-three {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.team-thumb-three img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.team-item-three:hover .team-thumb-three img { transform: scale(1.07); }
.team-thumb-three::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 26, 77, .35));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.team-item-three:hover .team-thumb-three::after { opacity: 1; }

/* ===== Phones ===== */
@media (max-width: 575px) {
  .features-item-three { padding: 24px 22px 26px; }
  #sticky-header.sticky-menu .menu-area { margin-top: 8px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  div:has(> .features-item-three),
  div:has(> .team-item-three) { animation: none; }
}
/* ===== Fix: side panel peeking out beside the scrolled header ===== */
#sticky-header.sticky-menu .extra-info:not(.active) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ===== Header menu: animated underline + blue highlight ===== */
#sticky-header .menu-area ul li > a {
  background-image: linear-gradient(90deg, #3a5cf5, #0ea5e9);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size .35s ease, color .25s ease;
}
#sticky-header .menu-area ul li > a:hover,
#sticky-header .menu-area ul li.active > a {
  background-size: 100% 2px;
  color: #3a5cf5;
}

/* ===== Cards: highlighted border on hover ===== */
.features-item-three:hover,
.team-item-three:hover {
  border-color: #3a5cf5;
  box-shadow: 0 0 0 2px rgba(58, 92, 245, .55),
              0 18px 40px rgba(15, 23, 42, .12);
}
.team-item-three { border: 1px solid transparent; border-radius: 10px; }

/* ===== Buttons: small lift on hover ===== */
.btn, .tg-btn {
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover, .tg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(58, 92, 245, .28);
}
/* ===== Glass moved to a background layer (fixes stray panel + menu) ===== */
#sticky-header .menu-area,
#sticky-header.sticky-menu .menu-area {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#sticky-header.sticky-menu .menu-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(232, 240, 255, .60));
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  pointer-events: none;
}

/* ===== Header: logo hover ===== */
#sticky-header .menu-area .custom-header img {
  transition: transform .35s ease;
}
#sticky-header .menu-area .custom-header img:hover {
  transform: scale(1.07);
}

/* ===== Slide-out menu: glass panel + smooth link hover ===== */
.mobile-menu .menu-box {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.mobile-menu .menu-backdrop {
  transition: opacity .4s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.mobile-menu .menu-outer a {
  transition: color .25s ease, padding-left .25s ease;
}
.mobile-menu .menu-outer a:hover {
  color: #3a5cf5;
  padding-left: 8px;
}
.mobile-menu .close-btn {
  transition: transform .3s ease;
}
.mobile-menu .close-btn:hover {
  transform: rotate(90deg);
}
/* ===== Theme: calm blueprint look ===== */
body { background-color: #f6f7f9; }

/* Replace the colour glow with a faint, slow-moving grid */
body::before {
  inset: 0;
  transform: none;
  will-change: auto;
  background-image:
    linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  animation: ss-grid 80s linear infinite;
}
@keyframes ss-grid {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

/* Header: cleaner glass, tighter corners, hairline border */
#sticky-header.sticky-menu .menu-area {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
}
#sticky-header.sticky-menu .menu-area::before {
  background: rgba(255, 255, 255, .85);
}

/* Cards: single blue border on hover, softer shadow */
.features-item-three:hover,
.team-item-three:hover {
  border-color: #3a5cf5;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
}
.team-thumb-three { border-radius: 8px; }

/* Slide-out menu: smooth, eased opening */
.mobile-menu .menu-box {
  transition: all .6s cubic-bezier(.22, 1, .36, 1) !important;
}
.mobile-menu .menu-backdrop {
  transition: opacity .5s ease, visibility .5s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .mobile-menu .menu-box, .mobile-menu .menu-backdrop { transition: none !important; }
}
/* ===== Palette ===== */
:root {
  --ss-ink: #0b1a3a;
  --ss-accent: #2f5bff;
  --ss-bg: #e9eef7;
  --ss-line: rgba(11, 26, 58, .12);
}
body { background-color: var(--ss-bg) !important; }

/* Stronger blueprint grid */
body::before {
  background-image:
    linear-gradient(rgba(47, 91, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 91, 255, .09) 1px, transparent 1px);
}

/* Header: visible glass with a bright edge */
#sticky-header.sticky-menu .menu-area {
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 0 1px rgba(47, 91, 255, .12),
              0 14px 40px rgba(11, 26, 58, .16);
}
#sticky-header.sticky-menu .menu-area::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45));
  -webkit-backdrop-filter: saturate(200%) blur(22px);
  backdrop-filter: saturate(200%) blur(22px);
}

/* Cards on the tinted page */
.features-item-three,
.team-item-three { border-color: var(--ss-line); }
.features-item-three:hover,
.team-item-three:hover {
  border-color: var(--ss-accent);
  box-shadow: 0 0 0 1px var(--ss-accent), 0 16px 36px rgba(11, 26, 58, .14);
}

/* ===== Desktop hamburger panel (the real classes) ===== */
.extra-info {
  background: rgba(255, 255, 255, .84) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, .8);
  transition-property: right, transform, opacity, visibility !important;
  transition-duration: .6s !important;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
}
.offcanvas-overly {
  background: rgba(11, 26, 58, .45) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity .5s ease, visibility .5s ease !important;
}

/* Items arrive one after another when the panel opens */
@keyframes ss-item {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}
.extra-info.active > div {
  animation: ss-item .6s cubic-bezier(.22, 1, .36, 1) both;
}
.extra-info.active > div:nth-child(1) { animation-delay: .15s; }
.extra-info.active > div:nth-child(2) { animation-delay: .22s; }
.extra-info.active > div:nth-child(3) { animation-delay: .30s; }
.extra-info.active > div:nth-child(4) { animation-delay: .38s; }

.extra-info .close-icon { transition: transform .3s ease; }
.extra-info .close-icon:hover { transform: rotate(90deg); }
.extra-info .side-info a { transition: color .25s ease; }
.extra-info .side-info a:hover { color: var(--ss-accent); }

@media (prefers-reduced-motion: reduce) {
  .extra-info.active > div { animation: none; }
}
/* ===== Palette: set through the theme's own variables ===== */
html:root {
  --primary-color: #1f5eff;
  --primary-color-rgb: 31, 94, 255;
  --primary-hover-color: #1747d1;
  --secondary-color: #0a1f44;
  --secondary-color-rgb: 10, 31, 68;
  --heading-color: #0a1f44;
  --text-color: #3b4a6b;
  --tg-section-background: #eef3fb;
  --tg-border-color: rgba(10, 31, 68, .12);

  --ss-ink: #0a1f44;
  --ss-accent: #1f5eff;
  --ss-bg: #e9eef7;
  --ss-line: rgba(10, 31, 68, .12);
}

/* ===== Let the page colour and grid show through the sections ===== */
.banner-area-three,
.features-area-three,
.about-area-four,
.overview-area-two {
  background: transparent !important;
}

/* ===== Cookie bar: floating card instead of a black strip ===== */
.js-cookie-consent {
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  width: auto !important;
  max-width: 960px;
  margin: 0 auto !important;
  padding: 14px 24px !important;
  border-radius: 14px;
  background: rgba(10, 31, 68, .94) !important;
  color: #fff !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px rgba(10, 31, 68, .35);
}
.js-cookie-consent a { color: #9db8ff; }
.js-cookie-consent button {
  background: #1f5eff !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px;
  padding: 8px 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.js-cookie-consent button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 94, 255, .45);
}
/* ===== Blueprint grid: more visible, covers the whole page ===== */
body::before {
  background-image:
    linear-gradient(rgba(31, 94, 255, .17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 94, 255, .17) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .55) 100%);
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .55) 100%);
}
@keyframes ss-grid {
  from { background-position: 0 0; }
  to   { background-position: 56px 56px; }
}

/* ===== Search overlay: solid frosted panel ===== */
.search-popup-wrap {
  background: rgba(233, 238, 247, .96) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: opacity .4s ease, visibility .4s ease !important;
}
.search-popup-wrap input {
  background: transparent !important;
}
/* ===== Header: larger text ===== */
#sticky-header .menu-wrap a,
header .menu-wrap a {
  font-size: 18px;
  font-weight: 600;
}
/* ===== Search: compact card instead of a full-width input ===== */
.search-popup-wrap {
  background: rgba(10, 31, 68, .55) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.search-popup-wrap .search-wrap {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  height: auto !important;
  max-width: 640px;
  width: calc(100% - 32px);
  margin: 14vh auto 0 !important;
  padding: 28px 28px 24px !important;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(10, 31, 68, .35);
}
.search-popup-wrap .search-wrap .container {
  max-width: 100%;
  padding: 0;
}
.search-popup-wrap .search-wrap .title {
  font-size: 22px;
  margin-bottom: 14px;
}
.search-popup-wrap .search-form { position: relative; }
.search-popup-wrap .search-form input {
  width: 100%;
  font-size: 18px !important;
  padding: 12px 52px 12px 16px !important;
  height: auto !important;
  text-align: left;
  background: #f3f6fc !important;
  border: 1px solid rgba(10, 31, 68, .15) !important;
  border-radius: 10px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.search-popup-wrap .search-form input:focus {
  outline: none;
  border-color: #1f5eff !important;
  box-shadow: 0 0 0 3px rgba(31, 94, 255, .18);
}
.search-popup-wrap .search-btn {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}
/* ===== Search: Spotlight style ===== */
.search-popup-wrap {
  background: rgba(10, 31, 68, .28) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.search-popup-wrap .search-wrap {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  height: auto !important;
  width: calc(100% - 32px);
  max-width: 680px;
  margin: 18vh auto 0 !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(10, 31, 68, .30),
              0 0 0 1px rgba(10, 31, 68, .06);
  animation: ss-spot .35s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes ss-spot {
  from { opacity: 0; transform: translateY(-14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.search-popup-wrap .search-wrap .container {
  max-width: 100%;
  padding: 0;
}
.search-popup-wrap .search-wrap .title { display: none; }
.search-popup-wrap .search-form { position: relative; }
.search-popup-wrap .search-form input {
  width: 100%;
  height: auto !important;
  font-size: 22px !important;
  font-weight: 500;
  text-align: left;
  padding: 20px 24px 20px 62px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 22px;
  box-shadow: none;
  outline: none;
  color: #0a1f44;
}
.search-popup-wrap .search-form input::placeholder {
  color: rgba(10, 31, 68, .45);
}
.search-popup-wrap .search-btn {
  left: 22px !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%);
  font-size: 20px;
  color: rgba(10, 31, 68, .55);
  background: transparent;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .search-popup-wrap .search-wrap { animation: none; }
}
/* ===== Who We Are + What We Do: images, borders, glow, reveal ===== */
.about-area-four img,
.overview-area-two img {
  border: 2px solid rgba(31, 94, 255, .35);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 31, 68, .12);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1),
              box-shadow .4s ease, border-color .4s ease;
}
.about-area-four img:hover,
.overview-area-two img:hover {
  transform: translateY(-6px);
  border-color: #1f5eff;
  box-shadow: 0 0 0 4px rgba(31, 94, 255, .12),
              0 0 36px rgba(31, 94, 255, .45),
              0 20px 44px rgba(10, 31, 68, .18);
}

/* Columns rise in as they scroll into view (assumes Bootstrap columns) */
@supports (animation-timeline: view()) {
  .about-area-four .row > [class*="col-"],
  .overview-area-two .row > [class*="col-"] {
    animation: ss-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-area-four .row > [class*="col-"],
  .overview-area-two .row > [class*="col-"] { animation: none; }
  .about-area-four img:hover,
  .overview-area-two img:hover { transform: none; }
}
/* ===== Remove the pink presentation circle ===== */
.about-img-wrap-four .icon { display: none !important; }

/* ===== Images in BOTH sections: frame, glow, hover ===== */
.about-img-wrap-four img,
.overview-area-two img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 2px solid rgba(31, 94, 255, .35);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(10, 31, 68, .14);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1),
              box-shadow .4s ease, border-color .4s ease;
}
.about-img-wrap-four img { max-height: 640px; }
.overview-area-two img { aspect-ratio: 4 / 3; }

.about-img-wrap-four img:hover,
.overview-area-two img:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: #1f5eff;
  box-shadow: 0 0 0 4px rgba(31, 94, 255, .14),
              0 0 40px rgba(31, 94, 255, .45),
              0 24px 50px rgba(10, 31, 68, .20);
}

/* ===== Text columns become cards ===== */
.about-area-four .row > .col-lg-5,
.overview-area-two .row > [class*="col-"]:not(:has(img)) {
  position: relative;
  isolation: isolate;
  padding: 28px 24px;
}
@media (min-width: 992px) {
  .about-area-four .row > .col-lg-5,
  .overview-area-two .row > [class*="col-"]:not(:has(img)) {
    padding: 44px 48px;
  }
}

/* Card surface (a layer behind the content, so the column's own animation is untouched) */
.about-area-four .row > .col-lg-5::before,
.overview-area-two .row > [class*="col-"]:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 0 12px;
  z-index: -1;
  border-radius: 18px;
  border: 1px solid rgba(10, 31, 68, .10);
  box-shadow: 0 10px 30px rgba(10, 31, 68, .08);
  transition: box-shadow .4s ease, border-color .4s ease, background .4s ease;
}
/* Who We Are: white card */
.about-area-four .row > .col-lg-5::before {
  background: linear-gradient(145deg, #ffffff, #f1f5ff);
}
/* What We Do: soft blue card */
.overview-area-two .row > [class*="col-"]:not(:has(img))::before {
  background: linear-gradient(145deg, #e3ecff, #f4f8ff);
}

/* Accent line that grows across the top on hover */
.about-area-four .row > .col-lg-5::after,
.overview-area-two .row > [class*="col-"]:not(:has(img))::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1f5eff, #0ea5e9);
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}
.about-area-four .row > .col-lg-5:hover::after,
.overview-area-two .row > [class*="col-"]:not(:has(img)):hover::after {
  width: calc(100% - 24px);
}

/* Glow on hover */
.about-area-four .row > .col-lg-5:hover::before,
.overview-area-two .row > [class*="col-"]:not(:has(img)):hover::before {
  border-color: #1f5eff;
  box-shadow: 0 0 0 1px #1f5eff,
              0 0 36px rgba(31, 94, 255, .30),
              0 20px 44px rgba(10, 31, 68, .14);
}

@media (prefers-reduced-motion: reduce) {
  .about-img-wrap-four img:hover,
  .overview-area-two img:hover { transform: none; }
  .about-area-four .row > .col-lg-5::after,
  .overview-area-two .row > [class*="col-"]:not(:has(img))::after { transition: none; }
}
/* ===== Hide the theme's decorative shapes ===== */
.about-shape-wrap-three,
.overview-shape-wrap { display: none !important; }

/* ===== Photos: show the whole image, no cropping ===== */
.about-img-wrap-four img,
.overview-area-two img {
  aspect-ratio: auto;
  max-height: none;
  height: auto;
  object-fit: contain;
}

/* ===== Who We Are card: warm sand ===== */
.about-area-four .row > .col-lg-5::before {
  background: linear-gradient(145deg, #fbf3e4, #f3e2c3);
  border-color: rgba(176, 120, 30, .25);
}
.about-area-four .row > .col-lg-5::after {
  background: linear-gradient(90deg, #d98a1e, #f2b24c);
}
.about-area-four .row > .col-lg-5:hover::before {
  border-color: #d98a1e;
  box-shadow: 0 0 0 1px #d98a1e,
              0 0 36px rgba(217, 138, 30, .32),
              0 20px 44px rgba(10, 31, 68, .14);
}

/* ===== What We Do card: soft sage ===== */
.overview-area-two .row > [class*="col-"]:not(:has(img))::before {
  background: linear-gradient(145deg, #e4f1ea, #cfe5da);
  border-color: rgba(20, 120, 90, .25);
}
.overview-area-two .row > [class*="col-"]:not(:has(img))::after {
  background: linear-gradient(90deg, #0f8f6b, #38c79a);
}
.overview-area-two .row > [class*="col-"]:not(:has(img)):hover::before {
  border-color: #0f8f6b;
  box-shadow: 0 0 0 1px #0f8f6b,
              0 0 36px rgba(15, 143, 107, .30),
              0 20px 44px rgba(10, 31, 68, .14);
}
/* ===== Hero: text + photo in one card ===== */
.banner-area-three .container > .row {
  position: relative;
  isolation: isolate;
  margin: 0 !important;
  padding: 32px 22px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(222, 232, 252, .80));
  border: 1px solid rgba(31, 94, 255, .18);
  box-shadow: 0 24px 60px rgba(10, 31, 68, .14);
  animation: ss-rise .9s cubic-bezier(.22, 1, .36, 1) both;
  transition: box-shadow .5s ease, border-color .5s ease;
}
.banner-area-three .container > .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #1f5eff, #0ea5e9, #1f5eff);
}
.banner-area-three .container > .row:hover {
  border-color: rgba(31, 94, 255, .45);
  box-shadow: 0 0 0 1px rgba(31, 94, 255, .35),
              0 0 44px rgba(31, 94, 255, .20),
              0 28px 64px rgba(10, 31, 68, .18);
}

/* Wider text column (desktop), so the headline stops wrapping 5 times */
@media (min-width: 992px) {
  .banner-area-three .container > .row { padding: 56px 52px; }
  .banner-area-three .row > .col-lg-5 { flex: 0 0 auto; width: 50%; }
  .banner-area-three .row > .col-lg-7 { flex: 0 0 auto; width: 50%; }
}

/* Headline size and spacing (class names guessed, see notes) */
.banner-area-three h1,
.banner-area-three .title {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

/* Photo: soft shadow and slow zoom on hover */
.banner-area-three .col-lg-7 img {
  filter: drop-shadow(0 18px 30px rgba(10, 31, 68, .25));
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.banner-area-three .col-lg-7:hover img { transform: scale(1.03); }

/* Phones: text first, photo second */
@media (max-width: 991px) {
  .banner-area-three .row > .col-lg-7 { order: 2; margin-top: 24px; }
  .banner-area-three .row > .col-lg-5 { order: 1; }
}

/* ===== Header: bigger logo and text ===== */
#sticky-header .logo img,
#sticky-header .logo a img {
  height: 58px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  transition: transform .35s ease;
}
#sticky-header .menu-wrap ul li a {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  padding-top: 8px;
  padding-bottom: 8px;
}
#sticky-header .menu-wrap ul li a:hover { color: #1f5eff; }

@media (max-width: 575px) {
  #sticky-header .logo img { height: 46px !important; }
  .banner-area-three .container > .row { padding: 26px 16px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-area-three .container > .row { animation: none; }
  .banner-area-three .col-lg-7:hover img { transform: none; }
}
/* Phones and tablets: text first, photo second (beats Bootstrap's !important) */
@media (max-width: 991px) {
  .banner-area-three .row > .col-lg-5 { order: 1 !important; }
  .banner-area-three .row > .col-lg-7 { order: 2 !important; margin-top: 24px; }
}
/* Logo: lift any height cap, hide the JPG's white background where possible */
#sticky-header .logo img {
  max-height: none !important;
  min-height: 0 !important;
  mix-blend-mode: multiply;
}

/* Mobile: put the text column first by reversing the row */
@media (max-width: 991px) {
  .banner-area-three .container > .row {
    flex-direction: column-reverse !important;
    align-items: center;
  }
  .banner-area-three .row > .col-lg-5,
  .banner-area-three .row > .col-lg-7 {
    order: 0 !important;
    width: 100%;
    max-width: 100%;
  }
  .banner-area-three .row > .col-lg-7 { margin-top: 24px; }
}
/* Phones/tablets: text first, photo second (hero + Who We Are) */
@media (max-width: 991px) {
  .banner-area-three .container > .row,
  .about-area-four .container > .row {
    flex-direction: column-reverse !important;
    align-items: center !important;
  }
  .banner-area-three .container > .row > [class*="col-"],
  .about-area-four .container > .row > [class*="col-"] {
    order: 0 !important;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
  }
  .banner-area-three .container > .row > .col-lg-7,
  .about-area-four .container > .row > .col-lg-7 {
    margin-top: 24px;
  }

  /* Header: nearly solid so page text can't show through */
  #sticky-header.sticky-menu .menu-area::before {
    background: rgba(255, 255, 255, .97) !important;
  }
}
/* Phones/tablets: What We Do, text first, photo second */
@media (max-width: 991px) {
  .overview-area-two .container > .row {
    flex-direction: column-reverse !important;
    align-items: center !important;
  }
  .overview-area-two .container > .row > [class*="col-"] {
    order: 0 !important;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
  }
  .overview-area-two .container > .row > :first-child {
    margin-top: 24px;
  }
}
/* ===== What We Do: bars fill as they scroll into view ===== */
.progress-wrap .progress-bar {
  background: linear-gradient(90deg, #0f8f6b, #38c79a) !important;
  border-radius: 8px;
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(15, 143, 107, .35);
}
@keyframes ss-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@supports (animation-timeline: view()) {
  .progress-wrap .progress-bar {
    animation: ss-fill linear both !important;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

/* ===== Each row: soft card with hover glow ===== */
.progress-wrap .progress-item {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease,
              box-shadow .3s ease, transform .3s ease;
}
.progress-wrap .progress-item:hover {
  background: rgba(255, 255, 255, .75);
  border-color: #0f8f6b;
  box-shadow: 0 0 0 1px #0f8f6b, 0 0 24px rgba(15, 143, 107, .25);
  transform: translateX(6px);
}
.progress-wrap .progress-item .title { transition: color .3s ease; }
.progress-wrap .progress-item:hover .title { color: #0f8f6b; }

@media (prefers-reduced-motion: reduce) {
  .progress-wrap .progress-bar { animation: none !important; }
  .progress-wrap .progress-item:hover { transform: none; }
}
/* ===== Who We Are: list items become cards ===== */
.about-list-three .list-wrap {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.about-list-three .list-wrap > li {
  align-items: center;
  gap: 18px;
  margin: 0 !important;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(176, 120, 30, .22);
  border-radius: 14px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.about-list-three .list-wrap > li:hover {
  transform: translateX(8px);
  background: #fff;
  border-color: #d98a1e;
  box-shadow: 0 0 0 1px #d98a1e,
              0 0 28px rgba(217, 138, 30, .30),
              0 12px 28px rgba(10, 31, 68, .10);
}

/* Icon: soft tile that turns solid on hover */
.about-list-three .list-wrap .icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: rgba(217, 138, 30, .12);
  transition: background .3s ease, transform .4s ease;
}
.about-list-three .list-wrap .icon i {
  display: block;
  font-size: 34px;
  line-height: 1;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), color .3s ease;
}
.about-list-three .list-wrap > li:hover .icon {
  background: #d98a1e;
}
.about-list-three .list-wrap > li:hover .icon i {
  color: #fff;
  transform: scale(1.12) rotate(-6deg);
}

/* Title colour on hover */
.about-list-three .list-wrap .content .title { transition: color .3s ease; }
.about-list-three .list-wrap > li:hover .content .title { color: #b86f0f; }

/* Items rise in one after another */
@supports (animation-timeline: view()) {
  .about-list-three .list-wrap > li {
    animation: ss-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-list-three .list-wrap > li { animation: none; }
  .about-list-three .list-wrap > li:hover,
  .about-list-three .list-wrap > li:hover .icon i { transform: none; }
}
/* ===== Feature cards: muted navy highlight, richer motion ===== */
.features-item-three {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid rgba(20, 41, 79, .12);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(20, 41, 79, .06);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1),
              background .45s ease, border-color .45s ease,
              box-shadow .45s ease;
}

/* Hover: deep slate-navy instead of the theme's bright blue */
.features-item-three:hover {
  transform: translateY(-10px);
  background: linear-gradient(150deg, #1a2e56 0%, #274677 100%) !important;
  border-color: #4a6aa3 !important;
  box-shadow: 0 0 0 1px rgba(143, 176, 232, .45),
              0 0 34px rgba(110, 150, 220, .28),
              0 26px 48px rgba(20, 41, 79, .30) !important;
}

/* Light sweep across the card on hover */
.features-item-three::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.features-item-three:hover::after {
  left: 130%;
  transition: left .9s ease;
}

/* Text colours */
.features-item-three .title,
.features-item-three h2,
.features-item-three h3 { transition: color .35s ease; }
.features-item-three p { transition: color .35s ease; }
.features-item-three:hover .title,
.features-item-three:hover h2,
.features-item-three:hover h3 { color: #ffffff !important; }
.features-item-three:hover p { color: rgba(255, 255, 255, .82) !important; }

/* Icon: soft idle float, tile pops on hover */
@keyframes ss-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.features-icon-three { animation: ss-float 4.5s ease-in-out infinite; }
.features-item-wrap-two .col-xl-3:nth-child(2) .features-icon-three { animation-delay: .6s; }
.features-item-wrap-two .col-xl-3:nth-child(3) .features-icon-three { animation-delay: 1.2s; }
.features-item-three:hover .features-icon-three {
  animation: none;
  transform: translateY(-4px) scale(1.08) rotate(-4deg);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.features-item-three:hover .features-icon-three img,
.features-item-three:hover .features-icon-three i {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
}

@media (prefers-reduced-motion: reduce) {
  .features-icon-three { animation: none; }
  .features-item-three::after { display: none; }
  .features-item-three:hover { transform: none; }
}
/* ===== Feature cards: bigger ===== */
@media (min-width: 992px) {
  /* Wider container for this section so three cards can grow */
  .features-area-three .container { max-width: 1320px; }
}

.features-item-three {
  padding: 46px 40px 50px !important;
  min-height: 400px;
  border-radius: 20px;
}

/* Icon tile: larger */
.features-icon-three { margin-bottom: 26px; }
.features-icon-three img,
.features-icon-three i {
  width: 84px;
  height: 84px;
  object-fit: contain;
  font-size: 72px;
}

/* Text: larger */
.features-item-three .title,
.features-item-three h2,
.features-item-three h3 {
  font-size: 30px !important;
  line-height: 1.2;
  margin-bottom: 16px;
}
.features-item-three p {
  font-size: 18px !important;
  line-height: 1.65;
}

/* Tablets and phones: keep them comfortable, not huge */
@media (max-width: 991px) {
  .features-item-three { min-height: 0; padding: 34px 28px 38px !important; }
  .features-item-three .title,
  .features-item-three h2,
  .features-item-three h3 { font-size: 26px !important; }
  .features-item-three p { font-size: 17px !important; }
}
/* ===== Blue banner: overlaps the dark section below ===== */
.cta-area-two {
  position: relative;
  z-index: 5;
  padding-top: 60px !important;
  padding-bottom: 0 !important;
  margin-bottom: -60px;          /* change this number to adjust the overlap */
  background: transparent !important;
}
.cta-area-two .cta-inner-wrap-two {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(10, 31, 68, .30),
              0 0 0 1px rgba(255, 255, 255, .25) inset;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
}
.cta-area-two .cta-inner-wrap-two:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 70px rgba(10, 31, 68, .38),
              0 0 40px rgba(31, 94, 255, .35);
}

/* Keep the dark section's content clear of the overlap */
.request-area-two {
  position: relative;
  z-index: 1;
  padding-top: 130px !important;
}

/* Slow light sweep across the banner */
.cta-area-two .cta-inner-wrap-two::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: skewX(-18deg);
  animation: ss-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ss-sweep {
  0%, 55% { left: -60%; }
  100%    { left: 140%; }
}

/* Phone number gently pulses */
.cta-area-two a[href^="tel"] { transition: transform .3s ease, color .3s ease; }
.cta-area-two a[href^="tel"]:hover { transform: scale(1.05); }

/* Button: lift and glow */
.cta-area-two .btn,
.cta-area-two a.btn {
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.cta-area-two .btn:hover,
.cta-area-two a.btn:hover {
  transform: translateY(-3px);
  background: #fff !important;
  color: #1f5eff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

@media (max-width: 767px) {
  .cta-area-two { margin-bottom: -40px; padding-top: 40px !important; }
  .request-area-two { padding-top: 100px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-area-two .cta-inner-wrap-two::after { animation: none; }
  .cta-area-two .cta-inner-wrap-two:hover { transform: none; }
}
.cta-area-two { margin-bottom: 60px; }
.request-area-two { padding-top: 70px !important; }
@media (max-width: 767px) {
  .cta-area-two { margin-bottom: 40px; }
  .request-area-two { padding-top: 60px !important; }
}
/* 1. Push main content down so it never overlaps with the floating header */
main, 
.site-main, 
#primary, 
.services-area,
.inner-services-area {
  padding-top: 140px !important;
}

/* 2. Format the Service Shortcode into a clean side-by-side card */
.services-list-item,
.services-item,
.service-block {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  max-width: 1200px !important;
  margin: 30px auto !important;
  background: #ffffff !important;
  border: 1px solid rgba(10, 31, 68, 0.12) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(10, 31, 68, 0.08) !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

/* Hover Effect: Card Lift & Blue Glow */
.services-list-item:hover,
.services-item:hover,
.service-block:hover {
  transform: translateY(-6px) !important;
  border-color: #1f5eff !important;
  box-shadow: 0 0 0 1px #1f5eff, 0 0 36px rgba(31, 94, 255, .28), 0 20px 44px rgba(10, 31, 68, .14) !important;
}

/* Left Picture Side (40% width) */
.services-list-item .service-thumb,
.services-list-item .services-thumb,
.service-block .image-box {
  flex: 0 0 40% !important;
  width: 40% !important;
  min-height: 320px !important;
  position: relative !important;
  background-color: #0a1f44 !important;
  overflow: hidden !important;
}

.services-list-item .service-thumb img,
.services-list-item .services-thumb img,
.service-block .image-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.55 !important;
  filter: brightness(0.75) grayscale(25%) !important;
  transition: transform 0.6s ease, filter 0.4s ease, opacity 0.4s ease !important;
}

/* Picture Hover Highlight */
.services-list-item:hover .service-thumb img,
.services-list-item:hover .services-thumb img,
.service-block:hover .image-box img {
  opacity: 1 !important;
  filter: brightness(1) grayscale(0%) !important;
  transform: scale(1.05) !important;
}

/* Right Text Side (60% width) */
.services-list-item .service-content,
.services-list-item .services-content,
.service-block .content-box {
  flex: 0 0 60% !important;
  width: 60% !important;
  padding: 40px 36px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Mobile responsive collapse for phones/tablets */
@media (max-width: 991px) {
  main, .site-main, #primary { padding-top: 100px !important; }
  .services-list-item, .services-item, .service-block { flex-direction: column-reverse !important; }
  .services-list-item .service-thumb, .services-list-item .services-thumb, .service-block .image-box {
    flex: none !important;
    width: 100% !important;
    min-height: 220px !important;
  }
  .services-list-item .service-content, .services-list-item .services-content, .service-block .content-box {
    flex: none !important;
    width: 100% !important;
  }
}
/* ===== Services Route Container & Layout ===== */
.ss-services-wrapper {
  max-width: 1240px;
  margin: 140px auto 80px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Page Header Title */
.ss-services-header {
  text-align: center;
  margin-bottom: 48px;
}

.ss-services-header .ss-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(31, 94, 255, 0.12);
  color: #1f5eff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(31, 94, 255, 0.25);
  box-shadow: 0 2px 10px rgba(31, 94, 255, 0.12);
  margin-bottom: 14px;
}

.ss-services-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #0a1f44;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.ss-services-header p {
  font-size: 1.05rem;
  color: #3b4a6b;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Primary Service Card ===== */
.ss-card-primary {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 251, 0.88));
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(10, 31, 68, 0.08);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.ss-card-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #1f5eff, #0ea5e9, #1f5eff);
  z-index: 2;
}

.ss-card-primary:hover {
  transform: translateY(-6px);
  border-color: #1f5eff;
  box-shadow: 0 0 0 1px #1f5eff, 0 0 38px rgba(31, 94, 255, 0.28), 0 22px 48px rgba(10, 31, 68, 0.14);
}

/* Left Image Section */
.ss-card-media {
  flex: 0 0 42%;
  width: 42%;
  min-height: 380px;
  position: relative;
  background-color: #0a1f44;
  overflow: hidden;
}

.ss-card-cover {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-image: url('https://www.sensorsyncinnovation.com/storage/strilab.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  filter: brightness(0.75) contrast(0.9) grayscale(20%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease, opacity 0.4s ease;
}

.ss-card-primary:hover .ss-card-cover {
  opacity: 1;
  filter: brightness(1) contrast(1) grayscale(0%);
  transform: scale(1.05);
}

/* Right Text Section */
.ss-card-content {
  flex: 0 0 58%;
  width: 58%;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 12px;
  line-height: 1.25;
}

.ss-card-tagline {
  font-size: 1.02rem;
  color: #3b4a6b;
  line-height: 1.65;
  margin-bottom: 22px;
}

.ss-card-meta {
  background: rgba(31, 94, 255, 0.06);
  border-left: 3px solid #1f5eff;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin-bottom: 28px;
}

.ss-card-meta p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #0a1f44;
}

/* Button Group */
.ss-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ss-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background-color: #1f5eff;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.ss-btn-primary:hover {
  background-color: #1747d1;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(31, 94, 255, 0.38);
}

.ss-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(31, 94, 255, 0.08);
  color: #1f5eff !important;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(31, 94, 255, 0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.ss-btn-secondary:hover {
  background: rgba(31, 94, 255, 0.16);
  border-color: #1f5eff;
  transform: translateY(-2px);
}

/* ===== Responsive Adaptations ===== */
@media (max-width: 991px) {
  .ss-services-wrapper {
    margin-top: 100px;
    padding: 0 16px;
  }
  .ss-card-primary {
    flex-direction: column-reverse;
  }
  .ss-card-media, .ss-card-content {
    flex: none;
    width: 100%;
  }
  .ss-card-media, .ss-card-cover {
    min-height: 240px;
  }
  .ss-card-content {
    padding: 30px 22px;
  }
}

/* ===== Remove page breadcrumb / blue title banner ===== */
section.breadcrumb-area,
.breadcrumb-area,
.breadcrumb__area,
.breadcrumb-area-two,
.breadcrumb-area-three,
div.breadcrumb-shape-wrap {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ===== Team Subtitle Badge Size & Styling ===== */
.team-area-four .section-title-two span.sub-title.tg-element-title,
.team-area-four span.sub-title,
span.sub-title.tg-element-title {
  display: inline-block !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  padding: 10px 28px !important;
  line-height: 1.4 !important;
  color: #1f5eff !important;
  background: rgba(31, 94, 255, 0.12) !important;
  border: 1.5px solid rgba(31, 94, 255, 0.35) !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 14px rgba(31, 94, 255, 0.18) !important;
  margin-bottom: 18px !important;
  text-transform: uppercase !important;
}

/* ===== Team Members: Image Proportion & Hover Highlight ===== */
.team-area-four .team-item-four,
.team-area-four .team-thumb-four,
.team-item-three,
.team-thumb-three {
  position: relative;
  overflow: hidden;
  border-radius: 14px !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.team-area-four .team-item-four img,
.team-area-four .team-thumb-four img,
.team-item-three img,
.team-thumb-three img {
  width: 100% !important;
  aspect-ratio: 288 / 316;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 14px !important;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease !important;
}

.team-area-four .team-item-four:hover,
.team-item-three:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 16px 36px rgba(31, 94, 255, 0.22), 0 0 0 2px #1f5eff !important;
}

.team-area-four .team-item-four:hover img,
.team-item-three:hover img {
  transform: scale(1.08) !important;
  filter: contrast(104%) saturate(108%) !important;
}
/* ===== About page only: Who We Are, horizontal navy panel ===== */
/* (applies only where the section contains .mask-img-wrap; Home is untouched) */

/* Remove the people photo, the 98% card and the icon completely */
body:has(.about-area-four .mask-img-wrap) .about-area-four .row > .col-lg-7 { display: none !important; }

body:has(.about-area-four .mask-img-wrap) .about-area-four {
  position: relative;
  overflow: hidden;
  padding: 90px 0 !important;
  background:
    radial-gradient(40% 50% at 85% 0%, rgba(56, 189, 248, .22), transparent 70%),
    radial-gradient(35% 45% at 5% 100%, rgba(31, 94, 255, .30), transparent 70%),
    linear-gradient(135deg, #0a1f44 0%, #12306b 60%, #0e3a7a 100%) !important;
}
body:has(.about-area-four .mask-img-wrap) .about-area-four .container > .row { display: block; }
body:has(.about-area-four .mask-img-wrap) .about-area-four .container > .row > .col-lg-5 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto;
  padding: 0 12px !important;
  animation: none;
}
body:has(.about-area-four .mask-img-wrap) .about-area-four .row > .col-lg-5::before,
body:has(.about-area-four .mask-img-wrap) .about-area-four .row > .col-lg-5::after { display: none !important; }

/* Title left, paragraph right, items below */
body:has(.about-area-four .mask-img-wrap) .about-content-four {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px 56px;
  align-items: end;
}
body:has(.about-area-four .mask-img-wrap) .about-content-four > .about-list-three {
  grid-column: 1 / -1;
  margin-top: 12px;
}
body:has(.about-area-four .mask-img-wrap) .about-content-four .section-title-two { margin-bottom: 0 !important; }
body:has(.about-area-four .mask-img-wrap) .about-content-four h2,
body:has(.about-area-four .mask-img-wrap) .about-content-four .title {
  color: #fff !important;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}
body:has(.about-area-four .mask-img-wrap) .about-content-four > p {
  color: rgba(255, 255, 255, .80) !important;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}
body:has(.about-area-four .mask-img-wrap) .about-area-four span.sub-title.tg-element-title {
  color: #7dd3fc !important;
  background: rgba(125, 211, 252, .12) !important;
  border-color: rgba(125, 211, 252, .40) !important;
  box-shadow: none !important;
}

/* Four items in one row */
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: none;
}
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, .12);
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8, 0 0 30px rgba(56, 189, 248, .28), 0 16px 34px rgba(0, 0, 0, .30);
}
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap .icon { background: rgba(56, 189, 248, .15); }
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap .icon i { color: #7dd3fc; }
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:hover .icon { background: #38bdf8; }
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:hover .icon i { color: #0a1f44; }
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap .content .title {
  color: #fff !important;
  font-size: 24px;
  line-height: 1.25;
}
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:hover .content .title { color: #7dd3fc !important; }
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap .content p {
  color: rgba(255, 255, 255, .75) !important;
  font-size: 16px;
  margin: 0;
}

@media (max-width: 1199px) {
  body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  body:has(.about-area-four .mask-img-wrap) .about-content-four { grid-template-columns: 1fr; align-items: start; }
  body:has(.about-area-four .mask-img-wrap) .about-area-four { padding: 70px 0 !important; }
}
@media (max-width: 575px) {
  body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap { grid-template-columns: 1fr; }
}
/* ===== About page only: varied motion for Who We Are ===== */
@property --ss-x1 { syntax: ''; inherits: false; initial-value: 85%; }
@property --ss-x2 { syntax: ''; inherits: false; initial-value: 5%; }
@property --ss-a  { syntax: '';      inherits: false; initial-value: 0deg; }

/* 1. Panel: slow aurora drift (the light patches slide across the navy) */
body:has(.about-area-four .mask-img-wrap) .about-area-four {
  background:
    radial-gradient(40% 50% at var(--ss-x1) 0%, rgba(56, 189, 248, .26), transparent 70%),
    radial-gradient(35% 45% at var(--ss-x2) 100%, rgba(31, 94, 255, .34), transparent 70%),
    linear-gradient(135deg, #0a1f44 0%, #12306b 60%, #0e3a7a 100%) !important;
  animation: ss-aurora 16s ease-in-out infinite alternate;
}
@keyframes ss-aurora {
  from { --ss-x1: 85%; --ss-x2: 5%; }
  to   { --ss-x1: 15%; --ss-x2: 95%; }
}

/* 2. Title: light sweeps across the text */
body:has(.about-area-four .mask-img-wrap) .about-content-four .section-title-two .title {
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 35%, #7dd3fc 50%, #ffffff 65%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ss-shine 6s ease-in-out infinite;
}
@keyframes ss-shine {
  0%, 30% { background-position: 120% 0; }
  70%, 100% { background-position: -20% 0; }
}

/* 3. Badge: soft ping */
body:has(.about-area-four .mask-img-wrap) .about-area-four span.sub-title.tg-element-title {
  animation: ss-badge 3s ease-out infinite;
}
@keyframes ss-badge {
  0%   { box-shadow: 0 0 0 0 rgba(125, 211, 252, .45); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(125, 211, 252, 0); }
}

/* 4. Cards: 3D flip-up on scroll, one after another (no end hold, so hover still works) */
@supports (animation-timeline: view()) {
  body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li {
    animation: ss-flip linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
  body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:nth-child(2) { animation-range: entry 8% entry 53%; }
  body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:nth-child(3) { animation-range: entry 16% entry 61%; }
  body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:nth-child(4) { animation-range: entry 24% entry 69%; }
}
@keyframes ss-flip {
  from { opacity: 0; transform: perspective(900px) rotateX(-40deg) translateY(50px); }
  to   { opacity: 1; transform: none; }
}

/* 5. Cards: a bright border that circles the card on hover */
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#10295a, #10295a) padding-box,
    conic-gradient(from var(--ss-a), rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) border-box;
}
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:hover {
  background:
    linear-gradient(#133068, #133068) padding-box,
    conic-gradient(from var(--ss-a), #38bdf8, rgba(56, 189, 248, 0) 35%, rgba(56, 189, 248, 0) 65%, #38bdf8) border-box;
  animation: ss-spin 2.4s linear infinite;
}
@keyframes ss-spin { to { --ss-a: 360deg; } }

/* 6. Icon tile: sensor ping ring */
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap .icon { position: relative; }
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap .icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  animation: ss-ring 3.2s ease-out infinite;
}
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:nth-child(2) .icon::after { animation-delay: .5s; }
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:nth-child(3) .icon::after { animation-delay: 1s; }
body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap > li:nth-child(4) .icon::after { animation-delay: 1.5s; }
@keyframes ss-ring {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, .5); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.about-area-four .mask-img-wrap) .about-area-four,
  body:has(.about-area-four .mask-img-wrap) .about-content-four .section-title-two .title,
  body:has(.about-area-four .mask-img-wrap) .about-area-four span.sub-title,
  body:has(.about-area-four .mask-img-wrap) .about-list-three .list-wrap .icon::after { animation: none; }
}
/* ===== About page: Who We Are as a rounded card (same background) ===== */
body:has(.about-area-four .mask-img-wrap) .about-area-four {
  background: transparent !important;
  animation: none !important;
  padding: 60px 0 !important;
  overflow: visible;
}
body:has(.about-area-four .mask-img-wrap) .about-area-four > .container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1260px;
  padding: 64px 40px;
  border-radius: 32px;
  border: 1px solid rgba(125, 211, 252, .22);
  box-shadow: 0 30px 70px rgba(10, 31, 68, .35);
  background:
    radial-gradient(40% 50% at var(--ss-x1) 0%, rgba(56, 189, 248, .26), transparent 70%),
    radial-gradient(35% 45% at var(--ss-x2) 100%, rgba(31, 94, 255, .34), transparent 70%),
    linear-gradient(135deg, #0a1f44 0%, #12306b 60%, #0e3a7a 100%);
  animation: ss-aurora 16s ease-in-out infinite alternate;
}
@media (max-width: 991px) {
  body:has(.about-area-four .mask-img-wrap) .about-area-four { padding: 36px 0 !important; }
  body:has(.about-area-four .mask-img-wrap) .about-area-four > .container {
    max-width: calc(100% - 24px);
    padding: 40px 18px;
    border-radius: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.about-area-four .mask-img-wrap) .about-area-four > .container { animation: none; }
}

/* ===== About page: remove the bottom blue banner ===== */
.cta-area-five { display: none !important; }
/* ===== About page: tighter gap above Who We Are ===== */
body:has(.about-area-four .mask-img-wrap) .about-area-four {
  padding-top: 30px !important;   /* was 60px, halved */
  padding-bottom: 40px !important;
}
body:has(.about-area-four .mask-img-wrap) .about-area-four > .container {
  margin-left: auto;
  margin-right: auto;
}

/* ===== About page: Top Features no longer pulled up under the card ===== */
body:has(.about-area-four .mask-img-wrap) .counter-area-four {
  margin-top: 0 !important;
  padding-top: 90px !important;
  position: relative;
  z-index: 1;
}
body:has(.about-area-four .mask-img-wrap) .about-area-four {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  body:has(.about-area-four .mask-img-wrap) .about-area-four { padding-top: 20px !important; }
  body:has(.about-area-four .mask-img-wrap) .counter-area-four { padding-top: 60px !important; }
}
/* ===== About page: remove empty editor paragraphs above the sections ===== */
body#page-8 .ck-content > p:empty,
body#page-8 .ck-content > p:has(> br:only-child) {
  display: none !important;
}
body#page-8 .ck-content > p:first-child {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}
body#page-8 .about-area-four {
  margin-top: 0 !important;
  padding-top: 20px !important;
}
/* ===== Hide Theme Sidebar & Empty Footer Widgets on Lab Page ===== */
.service-details-sidebar,
.widget_quote,
.get-quote-box,
.partner-area,
.brand-area {
  display: none !important;
}

/* Force full width for main content column */
.service-details-wrap,
.service-details-content,
.col-lg-8 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* ===== Lab Page Container ===== */
.ss-lab-container {
  max-width: 1240px;
  margin: 140px auto 80px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== Lab Hero Header ===== */
.ss-lab-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 251, 0.88));
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 24px;
  padding: 44px 40px;
  margin-bottom: 40px;
  box-shadow: 0 12px 35px rgba(10, 31, 68, 0.08);
  position: relative;
  overflow: hidden;
}

.ss-lab-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #1f5eff, #0ea5e9, #1f5eff);
}

.ss-lab-hero .ss-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(31, 94, 255, 0.12);
  color: #1f5eff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(31, 94, 255, 0.25);
  margin-bottom: 16px;
}

.ss-lab-hero h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: #0a1f44;
  margin-bottom: 14px;
  line-height: 1.25;
}

.ss-lab-hero .ss-hero-tagline {
  font-size: 1.1rem;
  color: #3b4a6b;
  line-height: 1.65;
  margin-bottom: 24px;
}

.ss-hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ss-hero-meta-card {
  background: rgba(31, 94, 255, 0.06);
  border-left: 3px solid #1f5eff;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
}

.ss-hero-meta-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #0a1f44;
}

/* ===== Section Titles ===== */
.ss-section-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #0a1f44;
  margin: 48px 0 28px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ss-section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(10, 31, 68, 0.12);
}

/* ===== Projects Grid ===== */
.ss-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
  gap: 28px;
}

/* Individual Project Glass Card */
.ss-project-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 251, 0.88));
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.ss-project-card:hover {
  transform: translateY(-6px);
  border-color: #1f5eff;
  box-shadow: 0 0 0 1px #1f5eff, 0 0 32px rgba(31, 94, 255, 0.22), 0 18px 40px rgba(10, 31, 68, 0.12);
}

.ss-project-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1f5eff;
  margin-bottom: 8px;
}

.ss-project-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 10px;
  line-height: 1.3;
}

.ss-project-desc {
  font-size: 0.98rem;
  color: #3b4a6b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.ss-project-features-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0a1f44;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.ss-project-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ss-project-features li {
  font-size: 0.93rem;
  color: #3b4a6b;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.ss-project-features li::before {
  content: "•";
  color: #1f5eff;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* ===== Summary & Vision Card ===== */
.ss-vision-card {
  background: linear-gradient(150deg, #0a1f44 0%, #1a2e56 100%);
  border-radius: 24px;
  padding: 44px 40px;
  color: #ffffff;
  margin-top: 48px;
  box-shadow: 0 20px 50px rgba(10, 31, 68, 0.25);
  position: relative;
  overflow: hidden;
}

.ss-vision-card h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ss-vision-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.ss-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.ss-domain-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #ffffff;
}

.ss-domain-pill strong {
  color: #60a5fa;
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.ss-vision-box {
  background: rgba(31, 94, 255, 0.2);
  border: 1px solid rgba(31, 94, 255, 0.4);
  border-radius: 14px;
  padding: 18px 22px;
}

.ss-vision-box h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.ss-vision-box p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .ss-lab-container { margin-top: 100px; padding: 0 16px; }
  .ss-projects-grid { grid-template-columns: 1fr; }
  .ss-lab-hero, .ss-vision-card { padding: 30px 22px; }
}
/* =========================================================
   1. HIDE SIDEBAR, QUOTE FORMS & BOTTOM BRAND BOXES ONLY
   ========================================================= */
.service-details-sidebar,
.services-sidebar,
.service-sidebar,
.widget_quote,
.get-quote-box,
.sidebar-widget,
.brand-area,
.partner-area,
.brand-active,
.services-brand-wrap,
.related-services-wrap,
.related-services {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Remove default theme bottom margins */
.service-details-area,
.services-details-area,
.service-details-wrap,
.service-details-content,
#primary,
main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   2. FORCE 100% HORIZONTAL CENTERING (OVERRIDE BOOTSTRAP OFFSETS)
   ========================================================= */
.service-details-area,
.services-details-area,
.service-details-wrap,
.service-details-content,
.service-details-area .container,
.service-details-area .row,
.service-details-area [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Ensure the custom wrapper is visible & centered */
.ss-spicy-wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 1140px !important;
  margin: 130px auto 40px auto !important;
  padding: 0 20px !important;
  position: relative !important;
  z-index: 10 !important;
  clear: both !important;
}

/* =========================================================
   3. HERO FLAGSHIP CARD (MAIN ATTRACTION)
   ========================================================= */
.ss-hero-flagship {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #0b1a3a 0%, #162c5b 50%, #1f5eff 100%);
  border-radius: 28px;
  padding: 56px 44px;
  margin: 0 auto 50px auto !important;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 25px 65px rgba(10, 31, 68, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ss-hero-flagship::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
  opacity: 0.6;
}

.ss-hero-flagship:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px rgba(31, 94, 255, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.ss-hero-flagship::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #38c79a, #1f5eff, #0ea5e9);
  background-size: 200% 100%;
  animation: ss-glow-line 4s linear infinite;
}

@keyframes ss-glow-line {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.ss-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #60a5fa;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
}

.ss-hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ss-hero-subtitle {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 820px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}

.ss-hero-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ss-hero-info-box {
  flex: 1 1 340px;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}

.ss-hero-info-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.ss-hero-info-box strong {
  color: #38c79a;
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.ss-hero-info-box p {
  margin: 0;
  font-size: 0.98rem;
  color: #ffffff;
  line-height: 1.5;
}

/* =========================================================
   4. SECTION HEADING
   ========================================================= */
.ss-spicy-heading {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0a1f44;
  margin: 40px 0 32px 0;
}

.ss-spicy-heading span {
  background: linear-gradient(90deg, #1f5eff, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   5. PROJECT CARDS GRID
   ========================================================= */
.ss-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 30px;
  text-align: left;
}

.ss-project-card {
  background: linear-gradient(145deg, #ffffff 0%, #f3f7fd 100%);
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 24px;
  padding: 38px 32px;
  position: relative;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ss-project-card:hover {
  transform: translateY(-8px);
  border-color: #1f5eff;
  box-shadow: 0 0 0 1px #1f5eff, 0 20px 45px rgba(31, 94, 255, 0.2);
}

.ss-project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1f5eff, #0ea5e9);
}

.ss-project-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1f5eff;
  background: rgba(31, 94, 255, 0.1);
  border: 1px solid rgba(31, 94, 255, 0.2);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.ss-project-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0a1f44;
  margin-bottom: 12px;
  line-height: 1.28;
}

.ss-project-desc {
  font-size: 1rem;
  color: #3b4a6b;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* =========================================================
   6. CLEAN BULLETS & PER-ITEM HOVER HIGHLIGHT
   ========================================================= */
.ss-project-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-project-features li {
  list-style-type: none !important;
  font-size: 0.95rem;
  color: #3b4a6b;
  padding: 12px 16px 12px 34px !important;
  margin: 0 !important;
  position: relative;
  line-height: 1.55;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 31, 68, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ss-project-features li::before {
  content: "•";
  font-size: 1.5rem;
  color: #1f5eff;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}

.ss-project-features li:hover {
  background: #ffffff;
  border-color: #1f5eff;
  color: #0a1f44;
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(31, 94, 255, 0.15);
}

.ss-project-features li:hover::before {
  transform: translateY(-50%) scale(1.3);
  color: #1f5eff;
}

.ss-project-card.full-width {
  grid-column: 1 / -1;
}

/* =========================================================
   7. SUMMARY / VISION CARD
   ========================================================= */
.ss-vision-card {
  background: linear-gradient(135deg, #0b1a3a 0%, #162c5b 100%);
  border-radius: 28px;
  padding: 52px 40px;
  color: #ffffff;
  margin-top: 50px;
  box-shadow: 0 25px 60px rgba(10, 31, 68, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ss-vision-card h2 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.ss-vision-card p.ss-vision-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 36px auto;
}

.ss-domains-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.ss-domain-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 0.95rem;
  color: #ffffff;
  transition: all 0.3s ease;
}

.ss-domain-pill:hover {
  background: rgba(31, 94, 255, 0.3);
  border-color: #60a5fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(31, 94, 255, 0.25);
}

.ss-domain-pill strong {
  color: #38c79a;
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.ss-vision-box {
  background: linear-gradient(90deg, rgba(31, 94, 255, 0.2), rgba(14, 165, 233, 0.2));
  border: 1px solid rgba(31, 94, 255, 0.4);
  border-radius: 18px;
  padding: 24px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.ss-vision-box h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.ss-vision-box p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991px) {
  .ss-spicy-wrapper { margin-top: 90px; padding: 0 12px; }
  .ss-projects-grid { grid-template-columns: 1fr; }
  .ss-hero-flagship, .ss-vision-card { padding: 36px 20px; }
  .ss-hero-info-box { max-width: 100%; }
}
/* ===== FORCE PERFECT CENTER ALIGNMENT ===== */
.service-details-area .row,
.services-details-area .row,
.service-details-wrap .row,
.entry-content .row,
main .row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.service-details-area [class*="col-"],
.services-details-area [class*="col-"],
.service-details-wrap [class*="col-"],
.entry-content [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
}

.ss-spicy-wrapper {
  margin: 130px auto 40px auto !important;
  width: 100% !important;
  max-width: 1140px !important;
}
/* ===== Enhanced Lab Project Card Hover & Text Animations ===== */
.ss-project-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s ease,
              background 0.45s ease !important;
}

.ss-project-card:hover {
  transform: translateY(-10px) scale(1.01) !important;
  border-color: #1f5eff !important;
  box-shadow: 0 0 0 1px #1f5eff, 
              0 0 35px rgba(31, 94, 255, 0.25), 
              0 24px 50px rgba(10, 31, 68, 0.18) !important;
  background: linear-gradient(145deg, #ffffff 0%, #edf4ff 100%) !important;
}

/* Smooth title letter-expansion & gradient reveal on hover */
.ss-project-title {
  transition: letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s ease,
              transform 0.4s ease !important;
}

.ss-project-card:hover .ss-project-title {
  letter-spacing: 0.035em;
  color: #1f5eff !important;
  transform: translateX(2px);
}

/* Tag pop animation on card hover */
.ss-project-tag {
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease !important;
}

.ss-project-card:hover .ss-project-tag {
  transform: scale(1.05);
  background: rgba(31, 94, 255, 0.18) !important;
  border-color: #1f5eff !important;
}
/* =========================================================
   INCIDENTS ON ROAD PAGE - COMPLETE CUSTOM CSS
   ========================================================= */

/* ===== 1. Main Page Container & Header ===== */
.ss-map-wrapper {
  max-width: 1200px;
  margin: 130px auto 70px auto;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.ss-map-header {
  text-align: center;
  margin-bottom: 36px;
}

.ss-map-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(31, 94, 255, 0.12);
  color: #1f5eff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(31, 94, 255, 0.3);
  margin-bottom: 16px;
}

.ss-map-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: #0a1f44;
  margin-bottom: 14px;
  line-height: 1.2;
}

.ss-map-subtitle {
  font-size: 1.1rem;
  color: #3b4a6b;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== 2. National Metric Stat Cards ===== */
.ss-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ss-stat-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 251, 0.9));
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ss-stat-card:hover {
  transform: translateY(-4px);
  border-color: #1f5eff;
}

.ss-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1f5eff;
  line-height: 1.1;
}

.ss-stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a1f44;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
}

/* ===== 3. Google Map Frame Container ===== */
.ss-map-card {
  background: #e5e3df;
  border: 1px solid rgba(10, 31, 68, 0.14);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(10, 31, 68, 0.12);
  position: relative;
  overflow: hidden;
}

#ss-gmap-container {
  width: 100%;
  height: 640px;
  border-radius: 16px;
  z-index: 1;
}

/* ===== 4. Custom State Marker Pills ===== */
.ss-gmap-pin {
  background: #1f5eff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 20px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.35);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.ss-gmap-pin:hover {
  transform: scale(1.15);
  background: #ef4444;
}

/* ===== 5. Dark Glassmorphic Info Popup ===== */
.leaflet-popup-content-wrapper {
  background: rgba(10, 31, 68, 0.95) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35) !important;
}

.leaflet-popup-tip {
  background: rgba(10, 31, 68, 0.95) !important;
}

.ss-popup-city {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.ss-popup-stat {
  font-size: 0.95rem;
  color: #f87171;
  font-weight: 700;
  margin-bottom: 6px;
}

.ss-popup-detail {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin-bottom: 3px;
}

/* ===== 6. Mobile Responsiveness ===== */
@media (max-width: 767px) {
  .ss-map-wrapper { 
    margin-top: 90px; 
    padding: 0 12px; 
  }
  #ss-gmap-container { 
    height: 460px; 
  }
}

/* =========================================
   SENSOR SYNC — ROAD INCIDENT MAP
   Scoped styles; preserve existing page theme
   ========================================= */

/* Map container */
.ss-map-wrapper #ss-gmap-container {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(380px, 60vh, 650px);
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  background: #eef2f7;
  isolation: isolate;
  z-index: 1;
}

/* Map loading and error messages */
.ss-map-wrapper .ss-map-loading,
.ss-map-wrapper .ss-map-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  color: #1f5eff;
  background: #f8faff;
  font-size: 15px;
  text-align: center;
  box-sizing: border-box;
}

.ss-map-wrapper .ss-map-error {
  color: #b91c1c;
}

/* Custom state marker */
.ss-map-wrapper .custom-gmap-marker {
  background: transparent !important;
  border: 0 !important;
}

.ss-map-wrapper .ss-gmap-pin {
  display: inline-block;
  width: max-content;
  max-width: 220px;
  padding: 5px 8px;
  border: 1px solid #1f5eff;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #163b91;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  pointer-events: auto;
  box-sizing: border-box;
}

/* Popup content */
.ss-map-wrapper .ss-popup-city {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.ss-map-wrapper .ss-popup-stat {
  margin-bottom: 8px;
  color: #1f5eff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.ss-map-wrapper .ss-popup-detail {
  margin-top: 5px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

/* Keep Leaflet controls and popups above map content */
.ss-map-wrapper .leaflet-top,
.ss-map-wrapper .leaflet-bottom {
  z-index: 500;
}

.ss-map-wrapper .leaflet-popup {
  z-index: 600;
}

.ss-map-wrapper .leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.ss-map-wrapper .leaflet-popup-content {
  margin: 14px 16px;
  min-width: 150px;
  max-width: 260px;
  overflow-wrap: anywhere;
}

/* Map attribution */
.ss-map-wrapper .leaflet-control-attribution {
  font-size: 10px;
}

/* Map note below the map */
.ss-map-wrapper .ss-map-footnote {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

/* Tablet */
@media screen and (max-width: 768px) {
  .ss-map-wrapper #ss-gmap-container {
    height: 460px;
    min-height: 360px;
    border-radius: 12px;
  }

  .ss-map-wrapper .ss-gmap-pin {
    padding: 4px 6px;
    font-size: 10px;
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  .ss-map-wrapper #ss-gmap-container {
    height: 440px;
    min-height: 360px;
    border-radius: 10px;
  }

  .ss-map-wrapper .ss-gmap-pin {
    max-width: 180px;
    padding: 3px 5px;
    font-size: 9px;
  }

  .ss-map-wrapper .leaflet-popup-content {
    margin: 12px;
    min-width: 130px;
  }
}