/*
Theme Name:   Ginger Affordable Solutions
Theme URI:    https://gingeraffordablesolutions.com
Description:  Ginger Affordable Solutions – Astra Child Theme
Author:       Ginger Affordable Solutions
Author URI:   https://gingeraffordablesolutions.com
Template:     astra
Version:      1.1.44
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  ginger-aff
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --color-primary: #24667F;
  --color-secondary: #2B3673;
  --color-dark: #121212;
  --color-body: #3D3D3D;
  --color-muted: rgba(18, 18, 18, 0.20);
  --color-white: #ffffff;
  --color-surface: #F5F5F5;
  --color-border: rgba(61, 61, 61, 0.10);
  --color-white-50: rgba(255, 255, 255, 0.50);
  --color-white-60: rgba(250, 250, 250, 0.60);
  --color-white-70: rgba(255, 255, 255, 0.70);

  --gradient-brand: linear-gradient(180deg, #24667F 0%, #2B3673 100%);
  --gradient-brand-h: linear-gradient(90deg, #24667F 0%, #2B3673 100%);

  --font-main: 'Manrope', sans-serif;

  --radius-sm: 8px;
  --radius-md: 10.78px;
  --radius-pill: 100px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
  --transition: 0.28s cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  line-height: 1.5;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* =========================================================
   REMOVE BROWSER DEFAULT FOCUS OUTLINE (dotted border)
   ========================================================= */
*:focus,
*:focus-visible,
*:active,
a:focus,
a:active,
button:focus,
button:active,
input:focus,
textarea:focus,
select:focus,
[role="button"]:focus,
[tabindex]:focus {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.no-scroll {
  overflow: hidden !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Override Astra defaults */
.ast-container {
  max-width: none !important;
  padding: 0 !important;
}

#page {
  padding: 0 !important;
}

.site-header {
  display: none !important;
}

/* hide Astra header ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â we use our own */
.ast-above-header-bar,
.ast-below-header-bar,
.ast-primary-header-bar {
  display: none !important;
}

.entry-header,
.entry-content,
.ast-article-post {
  padding: 0 !important;
}

/* Global Home Page Container Overrides Ã¢â‚¬â€ To align sections with Header */
.home .ast-container,
.home .site-content,
.home .entry-content,
.home .ast-row {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hentry {
  margin: 0 !important;
}

#content.site-content,
#page,
.ast-container,
.site-content,
.entry-content {
  overflow: visible !important;
}

/* =========================================================
   LAYOUT CONTAINER
   ========================================================= */
.ginger-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

/* =========================================================
   HEADER
   ========================================================= */
.ginger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 60px;
  position: relative;
  z-index: 10001;
  background: var(--color-white);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.ginger-header::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.07);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  z-index: 10;
  pointer-events: none;
}

body.mega-menu-active .ginger-header::after {
  opacity: 1;
  visibility: visible;
}

/* Right-side group: nav links + CTA button sit together */
.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-logo {
  margin-left: -20px;
}

.header-logo img {
  height: 105px;
  width: 275px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 40px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-dark);
  border: 1px solid #1212121c;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  outline: none !important;
  position: relative;
  /* Added for border animation */
}

.header-nav a span:not(.border-animation),
.header-nav a svg {
  position: relative;
  z-index: 2;
}

.header-nav a:hover {
  background: transparent;
  border-color: rgba(18, 18, 18, 0.08);
  color: var(--color-primary);
}

/* Circulating border animation container for header navigation links */
.header-nav a .border-animation {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  padding: 1.8px;
  /* Slightly thicker border revealed */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.header-nav a .border-animation::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin-top: -100px;
  margin-left: -100px;
  background: conic-gradient(from 0deg,
      transparent 0%,
      transparent 40%,
      var(--color-primary) 75%,
      var(--color-secondary) 100%);
  border-radius: 50%;
  transform: rotate(0deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-nav a:hover .border-animation::before {
  opacity: 1;
  animation: rotate-border-glow 1.5s linear infinite;
}

/* Remove dotted focus outline */
.ginger-header a:focus,
.ginger-header button:focus,
.ginger-footer a:focus,
.ginger-footer button:focus,
.mega-dropdown a:focus,
.header-cta:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: none;
}


.header-nav a.is-active,
.nav-item.is-active .nav-mega-trigger {
  background: transparent !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-weight: 600;
}

.header-cta-wrapper {
  display: inline-flex;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}

.header-cta-wrapper:hover {
  transform: translateY(-1px);
  box-shadow: 0 -12px 20px -6px rgba(6, 230, 255, 0.35), 0 12px 20px -6px rgba(43, 54, 115, 0.45) !important;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #fff !important;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all var(--transition);
  outline: none !important;
}

.header-cta::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: conic-gradient(from 0deg,
      transparent 0%,
      transparent 30%,
      #06e6ff 70%,
      #ffffff 85%,
      #06e6ff 90%,
      var(--color-primary) 100%);
  animation: rotate-border-glow 1.8s linear infinite, cta-sparkle-pulse 2s ease-in-out infinite alternate;
  z-index: -2;
  pointer-events: none;
}

.header-cta::after {
  content: '';
  position: absolute;
  inset: 1px;
  /* Thin elegant 1px border revealed */
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0) 70%),
    var(--gradient-brand-h);
  background-size: 200% 100%, 100% 100%;
  background-position: 180% 0, 0 0;
  background-repeat: no-repeat;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  animation: cta-shimmer 3.5s ease-in-out infinite;
}

.header-cta:hover {
  /* No separate translate/shadow here to prevent double hover effects */
}

@keyframes cta-shimmer {
  0% {
    background-position: 180% 0, 0 0;
  }

  35% {
    background-position: -80% 0, 0 0;
  }

  100% {
    background-position: -80% 0, 0 0;
  }
}

@keyframes cta-sparkle-pulse {
  0% {
    opacity: 0.6;
    filter: brightness(1.0);
  }

  50% {
    opacity: 1;
    filter: brightness(1.4);
  }

  100% {
    opacity: 0.6;
    filter: brightness(1.0);
  }
}

/* =========================================================
   SPARKLE Twinkling Star Animations
   ========================================================= */
.sparkle {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute;
  background: #ffffff;
  width: 8px;
  height: 8px;
  /* Perfect 4-pointed star shape using clip-path */
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  pointer-events: none;
  z-index: 1;
  /* Under the text, above background gradient */
}

/* Position and animate 4 distinct sparkles with unique timing and scaling */
.sparkle-1 {
  top: 15%;
  left: 15%;
  width: 10px;
  height: 10px;
  animation: sparkle-twinkle-1 2.8s infinite ease-in-out;
}

.sparkle-2 {
  bottom: 15%;
  right: 18%;
  width: 7px;
  height: 7px;
  animation: sparkle-twinkle-2 3.2s infinite ease-in-out 0.6s;
}

.sparkle-3 {
  top: 25%;
  right: 22%;
  width: 9px;
  height: 9px;
  animation: sparkle-twinkle-3 2.5s infinite ease-in-out 1.2s;
}

.sparkle-4 {
  bottom: 20%;
  left: 20%;
  width: 6px;
  height: 6px;
  animation: sparkle-twinkle-4 3.5s infinite ease-in-out 1.8s;
}

/* Keep the text content layers positioned correctly above the sparkles */
.header-cta>span:not(.sparkle),
.hero-get-started>span:not(.sparkle),
.hero-view-more>span:not(.sparkle) {
  position: relative;
  z-index: 2;
}

/* Twinkle animations that combine scaling, fading, and rotation */
@keyframes sparkle-twinkle-1 {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  30% {
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
    background-color: #ffffff;
    filter: drop-shadow(0 0 4px rgba(6, 230, 255, 0.9)) brightness(1.5);
  }

  60%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(90deg);
  }
}

@keyframes sparkle-twinkle-2 {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  35% {
    opacity: 0.9;
    transform: scale(1) rotate(-30deg);
    background-color: #06e6ff;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(-60deg);
  }
}

@keyframes sparkle-twinkle-3 {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  40% {
    opacity: 1;
    transform: scale(1.4) rotate(90deg);
    background-color: #ffffff;
    filter: drop-shadow(0 0 5px rgba(6, 230, 255, 0.9)) brightness(1.5);
  }

  80%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(180deg);
  }
}

@keyframes sparkle-twinkle-4 {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  25% {
    opacity: 0.85;
    transform: scale(0.95) rotate(-45deg);
    background-color: #0bffe8;
    filter: drop-shadow(0 0 3px rgba(6, 230, 255, 0.8));
  }

  65%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
  }
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-dark);
  outline: none !important;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  padding: 100px 24px 40px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow-y: auto;
}

.mobile-nav.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav item layout */
.mobile-nav-item,
.mobile-nav-subitem {
  width: 100%;
  display: block !important;
}

.mobile-nav button {
  width: 100%;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}

.mobile-nav button svg {
  transition: transform 0.25s ease;
}

/* Open state for toggles */
.mobile-nav-item.is-open .mobile-nav-toggle svg,
.mobile-nav-subitem.is-open .mobile-nav-subtoggle svg {
  transform: rotate(180deg);
}

.mobile-nav-item.is-open .mobile-nav-toggle {
  color: var(--color-primary);
}

/* Hidden dropdowns */
.mobile-nav-dropdown,
.mobile-nav-nested {
  display: none;
  flex-direction: column;
  padding-left: 12px;
  border-left: 1px solid var(--color-border);
  margin-left: 16px;
  margin-bottom: 8px;
}

.mobile-nav-item.is-open>.mobile-nav-dropdown,
.mobile-nav-subitem.is-open>.mobile-nav-nested {
  display: flex;
}

/* Nested links */
.mobile-nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-body);
  text-decoration: none;
  transition: background var(--transition);
}

.mobile-nav a:hover,
.mobile-nav button:hover {
  background: var(--color-surface);
}

.mobile-nav .header-cta-wrapper {
  margin-top: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-nav .header-cta-wrapper .header-cta {
  margin-top: 0;
  width: 100%;
  justify-content: center;
  font-weight: 600;
}

/* =========================================================
   MEGA DROPDOWN MENU
   ========================================================= */

/* Services trigger button */
.nav-item.has-mega {
  position: static;
}

.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-dark);
  border: 1px solid #1212121c;
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
  outline: none !important;
}

.header-nav .nav-mega-trigger:hover {
  box-shadow: none !important;
}

.nav-chevron {
  position: relative;
  top: 2px;
  transition: transform 0.25s ease;
}

.has-mega.mega-open .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel - fixed, full viewport width */
/* Dropdown panel - fixed, full viewport */
#mega-services.mega-dropdown {
  position: fixed;
  top: var(--header-height, 80px);
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
  pointer-events: none;
  overflow: hidden;
}

#mega-services.mega-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Two-column inner layout - edge to edge */
.mega-inner {
  display: flex;
  justify-content: flex-end;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* -- Left: Preview Column (Blue) -- */
.mega-left {
  display: none !important;
}


/* -- Right: Category Column (White) -- */
.mega-right {
  width: 50%;
  height: 100%;
  background: #ffffff;
  padding: 60px 50px;
  border-left: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  will-change: transform, opacity;
  overflow-y: auto;
}

.mega-dropdown.is-open .mega-right {
  transform: translateY(0);
  opacity: 1;
}

.mega-cat {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  text-decoration: none;
  width: 100%;
  display: block;
}

.mega-cat:last-child {
  border-bottom: none;
}

.mega-cat-name {
  display: block;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  color: #5E5E5E;
  text-align: right;
  transition: color 0.24s ease;
}

.mega-cat:hover .mega-cat-name,
.mega-cat.is-active .mega-cat-name {
  color: var(--color-primary);
  font-weight: 500;
}

.mega-cat-children {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.mega-cat:hover .mega-cat-children {
  max-height: 200px;
  margin-top: 12px;
  /* Smooth spacing between parent and child */
}

.mega-child-link {
  font-size: 20px;
  color: #000;
  transition: color 0.24s;
}

.mega-child-link:hover {
  color: var(--color-primary);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 0 60px 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Left Hero Card */
.hero-left {
  background-color: var(--color-primary);
  background-image: url('../../uploads/2026/04/Frame-2-1-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  padding: 56px 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.hero-left::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -200px;
  left: -100px;
  pointer-events: none;
}

.hero-left::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -250px;
  right: -180px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.70);
  color: #fff !important;
  font-size: 12.58px;
  font-weight: 500;
  line-height: 1.43;
  z-index: 1;
}

.hero-title,
.hero-section h1 {
  font-size: 44px !important;
  font-weight: 500;
  line-height: 1.17;
  color: #fff !important;
  max-width: 520px;
  z-index: 1;
}

.hero-desc {
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.63;
  color: rgba(255, 255, 255, 0.90);
  max-width: 480px;
  z-index: 1;
}

.hero-get-started {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 32px;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #24667F 50%, #2B3673 100%);
  background-size: 200% 100%;
  background-position: 0% 0 !important;
  border: 1px solid #2B3673 !important;
  box-sizing: border-box !important;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: #2B3673 !important;
  transition: none !important;
  z-index: 1;
  position: relative;
  overflow: hidden;
}

.hero-get-started:hover {
  background-position: 100% 0 !important;
  color: #ffffff !important;
  border-color: #2B3673 !important;
  transform: none !important;
}

.hero-social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.avatar-row {
  display: flex;
}

.avatar-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  margin-left: -8px;
  object-fit: cover;
}

.avatar-row img:first-child {
  margin-left: 0;
}

.social-proof-label {
  font-size: 12.58px;
  font-weight: 500;
  color: #EBEBEB;
  line-height: 1.43;
}

/* Right Hero Card */
.hero-right {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-right-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-testimonial-card {
  position: relative;
  z-index: 2;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 12px;
  padding-left: 20px;
  margin: 29px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars-row {
  display: flex;
  gap: 3px;
}

.star {
  width: 14px;
  height: 14px;
  background: #FF8A00;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.review-count {
  font-size: 12.58px;
  font-weight: 500;
  color: var(--color-dark);
}

.hero-right .hero-testimonial-card .hero-testimonial-title,
h3.hero-testimonial-title {
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.17;
  color: var(--color-dark);
}

.hero-right .hero-testimonial-card .hero-testimonial-text,
p.hero-testimonial-text {
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.43;
  color: var(--color-dark);
}

.hero-view-more {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 32px;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #24667F 50%, #2B3673 100%);
  background-size: 200% 100%;
  background-position: 0% 0 !important;
  border-radius: var(--radius-pill);
  border: 1px solid #2B3673 !important;
  box-sizing: border-box !important;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  color: #2B3673 !important;
  align-self: flex-start;
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-view-more:hover {
  background-position: 100% 0 !important;
  color: #ffffff !important;
  border-color: #2B3673 !important;
  transform: translateY(-1px);
}

/* =========================================================
   PARTNERS SECTION
   ========================================================= */
.partners-section {
  padding: 60px clamp(20px, 5vw, 60px) 0;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.partners-label {
  display: none;
  text-align: center;
  color: #060606;
  opacity: 0.70;
  font-size: 22px !important;
  font-weight: 400;
  margin-bottom: 20px;
}

.home .partners-label {
  display: block;
}

.partners-ticker-wrap {
  position: relative;
  overflow: hidden;
  height: 150px;
  margin-bottom: 10px;
}

.partners-ticker-wrap::before,
.partners-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.partners-ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, transparent 100%);
}

.partners-ticker-wrap::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, #fff 100%);
}

.partners-ticker {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}


.partners-ticker img {
  height: 140px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s ease;
}

.partners-ticker img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Safari-safe partner ticker rendering for parent service templates */
.ds-digitalsol-template .partners-section,
.ds-technology-template .partners-section,
.ds-cloud-template .ds-partners,
.ds-branding-template .ds-partners {
  display: block !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 5px clamp(20px, 5vw, 60px) 25px !important;
  overflow: visible !important;
}

.ds-cloud-template .ds-partners,
.ds-branding-template .ds-partners {
  background: #fff;
}

.ds-digitalsol-template .partners-ticker-wrap,
.ds-technology-template .partners-ticker-wrap,
.ds-cloud-template .partners-ticker-wrap,
.ds-branding-template .partners-ticker-wrap {
  width: 100% !important;
  height: 150px !important;
  overflow: hidden !important;
  position: relative !important;
}

.ds-digitalsol-template .partners-ticker,
.ds-technology-template .partners-ticker,
.ds-cloud-template .partners-ticker,
.ds-branding-template .partners-ticker {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 60px !important;
  min-width: max-content !important;
  width: auto !important;
  will-change: transform;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-animation: ticker-scroll 30s linear infinite;
  animation: ticker-scroll 30s linear infinite;
}

.ds-digitalsol-template .partners-ticker img,
.ds-technology-template .partners-ticker img,
.ds-cloud-template .partners-ticker img,
.ds-branding-template .partners-ticker img {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 90px !important;
  max-width: 250px !important;
  height: 140px !important;
  object-fit: contain !important;
  filter: grayscale(100%) opacity(0.6) !important;
  -webkit-filter: grayscale(100%) opacity(0.6) !important;
  transition: all 0.4s ease !important;
  visibility: visible !important;
}

.ds-digitalsol-template .partners-ticker img:hover,
.ds-technology-template .partners-ticker img:hover,
.ds-cloud-template .partners-ticker img:hover,
.ds-branding-template .partners-ticker img:hover {
  filter: grayscale(0%) opacity(1) !important;
  -webkit-filter: grayscale(0%) opacity(1) !important;
  transform: scale(1.05) !important;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@-webkit-keyframes ticker-scroll {
  from {
    -webkit-transform: translateX(0);
  }

  to {
    -webkit-transform: translateX(-50%);
  }
}

.mission-text-block {
  max-width: 1236px;
  margin: 100px auto 0;
  text-align: center;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.375;
  color: var(--color-dark);
  padding: 0 20px;
}

.mission-text-block .faded {
  color: rgba(18, 18, 18, 0.18);
  /* fallback if JS not loaded */
}

/* Word spans injected by JS for word-by-word darkening */
.mission-word {
  display: inline;
  color: rgba(18, 18, 18, 0.18);
  transition: color 0.3s ease;
}

/* =========================================================
   SERVICES / DIGITAL SECTION  ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â  scroll-reveal
   ========================================================= */

/* Tall scroll track — gives scroll room for the sticky pin */
.services-scroll-track {
  height: 100vh;
  position: relative;
}

/* Section sticks to viewport while track scrolls */
.services-section {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0 4px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.services-inner {
  width: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Single service slide container */
.service-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: none;
  pointer-events: none;
  will-change: transform, opacity;
}

.service-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Floating decorative photos */
.services-photo {
  position: absolute;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.service-slide .services-photo-tl {
  width: clamp(160px, 15vw, 210px);
  height: clamp(228px, 21.4vw, 300px);
  top: clamp(20px, 3vh, 30px);
  left: clamp(20px, 3vw, 40px);
  transform: translateY(calc((1 - var(--srv-progress, 0)) * 130%)) rotate(12deg);
}

.service-slide .services-photo-bl {
  width: clamp(180px, 18vw, 260px);
  height: clamp(124px, 12.4vw, 180px);
  bottom: clamp(20px, 3vh, 30px);
  left: clamp(40px, 6vw, 100px);
  transform: translateY(calc((1 - var(--srv-progress, 0)) * 115%)) rotate(-12deg);
}

.service-slide .services-photo-tr {
  width: clamp(160px, 15vw, 210px);
  height: clamp(228px, 21.4vw, 300px);
  top: clamp(20px, 3vh, 30px);
  right: clamp(20px, 3vw, 40px);
  transform: translateY(calc((1 - var(--srv-progress, 0)) * 140%)) rotate(-12deg);
}

.service-slide .services-photo-br {
  width: clamp(180px, 16.6vw, 240px);
  height: clamp(135px, 12.5vw, 180px);
  bottom: clamp(20px, 3vh, 30px);
  right: clamp(40px, 6vw, 100px);
  transform: translateY(calc((1 - var(--srv-progress, 0)) * 120%)) rotate(12deg);
}

/* Reveal wrapper: starts fully below, slides up as user scrolls within its segment */
.service-slide .services-reveal-wrap {
  position: absolute;
  inset: 0 6px 0 0 !important;
  /* Float scrollbar inward by 6px to prevent rounded corner clipping */
  display: flex;
  align-items: flex-start;
  /* Fix flex overflow scroll bug */
  justify-content: center;
  /* Reduced offset for mobile to prevent content from being pushed off-screen */
  transform: translateY(calc((1 - var(--srv-progress, 0)) * clamp(30%, 50vw, 110%)));
  z-index: 5;
  will-change: transform;
  -webkit-overflow-scrolling: touch !important;

  /* Firefox scrollbar styling */
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.05) !important;
}

/* Custom scrollbar for services reveal wrap to make scroll visible and premium */
.service-slide .services-reveal-wrap::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

.service-slide .services-reveal-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 3px !important;
}

.service-slide .services-reveal-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 3px !important;
}

.service-slide .services-reveal-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4) !important;
}

.services-center {
  text-align: center;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 5;
  margin: auto !important;
  /* Perfect vertical & horizontal centering with auto fallback */
}

.services-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.70);
  color: #fff !important;
  font-size: 12.58px;
  font-weight: 500;
}

.services-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff !important;
}

.services-desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: rgb(255, 255, 255);
  max-width: 440px;
}

.services-cta {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 36px;
  background: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  color: #24667F !important;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.services-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   STATS / ABOUT SECTION
   ========================================================= */
.stats-section {
  padding-top: 80px;
  padding-bottom: 60px;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

/* Homepage only — extra top spacing for stats section */
.home .stats-section {
  margin-top: 0 !important;
}

.stats-intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  width: 100%;
}

.stats-intro[data-reveal] {
  transition: opacity 1.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.stats-about-badge {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 28px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* added subtle border for visibility */
  border-radius: var(--radius-pill);
  color: var(--color-primary) !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.stats-about-text {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.22;
  color: var(--color-dark);
  text-align: right;
  flex: 1;
  min-width: 0;
}

.stats-about-text .muted {
  color: var(--color-muted);
}

.ds-about-intro-text {
  font-size: 32px !important;
  font-weight: 500;
  line-height: 1.22;
  color: var(--color-dark);
}

/* Stats grid Ã¢â‚¬â€  2 rows Ãƒâ€” 4 cols */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 48px;
  aspect-ratio: 1 / 1.1;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-card:hover {
  transform: scale(1.02);
}

.stat-card-light {
  background: var(--color-surface);
  border: 1px solid rgba(235, 235, 235, 0.21);
}

.stat-card-gradient {
  background: var(--gradient-brand);
  border: 1px solid rgba(235, 235, 235, 0.21);
}

.stat-card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1.1;
}

.stat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-card-empty {
  border-radius: var(--radius-md);
  background-color: transparent;
  aspect-ratio: 1 / 1.1;
}

.stat-num {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.stat-card-light .stat-num {
  color: var(--color-dark);
}

.stat-card-light .stat-num span {
  color: var(--color-primary);
}

.stat-card-gradient .stat-num {
  color: #fff !important;
}

@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card-gradient .stat-num.weight-500 {
  font-weight: 500;
}

.stat-info {}

.stat-title {
  font-size: 24px !important;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
  word-wrap: break-word;
}

.stat-card-light .stat-title {
  color: var(--color-dark);
}

.stat-card-gradient .stat-title {
  color: #fff !important;
}

.stat-desc {
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.5;
}

.stat-card-light .stat-desc {
  color: var(--color-body);
}

.stat-card-gradient .stat-desc {
  color: var(--color-white-50);
}

/* =========================================================
   BLOG SECTION
   ========================================================= */
.blog-section {
  padding: 80px 60px 0;
  max-width: 1440px;
  margin: 0 auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-heading {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.17;
  color: var(--color-dark);
  margin-bottom: 16px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.blog-sub {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-body);
  max-width: 820px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.blog-card {}

.blog-card-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 302px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-image-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-author-name {
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
}

.blog-date {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
}

.blog-card-body {
  padding: 20px 0;
}

.blog-card-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 20px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  transition: all var(--transition);
}

.blog-read-more:hover {
  gap: 14px;
  color: var(--color-primary);
}

.blog-read-more-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  margin-left: 0px;
}

/* =========================================================
   TESTIMONIALS SECTION
   ========================================================= */
.testimonials-section {
  padding: 60px 60px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-heading {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.17;
  color: var(--color-dark);
  max-width: 520px;
  margin: 0 auto 16px;
}

.testimonials-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-body);
  max-width: 700px;
  margin: 0 auto;
}

/* Grid: both columns equal height via stretch */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ── Left column: video ── */
.testimonial-img-col {
  position: relative;
}

.testimonial-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.testimonial-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frosted-glass blur band */
.testimonial-video-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.20) 80%,
      transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 1;
  pointer-events: none;
}

/* Bottom bar: name + play button */
.testimonial-video-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 16px;
  z-index: 2;
}

.testimonial-video-info {}

.testimonial-video-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.testimonial-video-role {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.80);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Play button */
.testimonial-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  padding: 9px 18px 9px 13px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
  /* Added for border animation */
}

.testimonial-play-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  /* Fades native border on hover */
  transform: scale(1.04);
}

.testimonial-play-btn svg {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.testimonial-play-btn span:not(.border-animation) {
  position: relative;
  z-index: 2;
}

/* Circulating border animation container */
.testimonial-play-btn .border-animation {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  padding: 1.5px;
  /* Border thickness */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.testimonial-play-btn .border-animation::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  margin-top: -125px;
  margin-left: -125px;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      transparent 180deg,
      var(--color-primary) 270deg,
      #fff 360deg);
  border-radius: 50%;
  transform: rotate(0deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-play-btn:hover .border-animation::before {
  opacity: 1;
  animation: rotate-border-glow 1.5s linear infinite;
}

@keyframes rotate-border-glow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── Right column: cards ── */
.testimonial-cards-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Large top card grows to fill available space */
.testimonial-cards-col>.t-card {
  flex: 1;
}

.t-card {
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 1.5s ease;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Pseudo element for gradient background so it can be animated smoothly */
.t-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  /* Expands to cover the 1px transparent border space, eliminating any border leak! */
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: -1;
}

.t-card:hover::before,
.t-card-light:hover::before,
.t-card-dark:hover::before {
  opacity: 1;
}

.t-card:hover,
.t-card-light:hover,
.t-card-dark:hover {
  border-color: transparent !important;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(36, 102, 127, 0.2);
}

.t-card-light,
.t-card-dark {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
}

/* Small cards row: 2 columns */
.t-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.t-card-row .t-card {
  flex: unset;
}

.quote-mark {
  display: block;
  margin-bottom: 12px;
}

.quote-mark img {
  width: 30px;
  height: auto;
  display: block;
  transform: rotate(180deg);
}

.t-card .quote-mark img {
  filter: brightness(0) saturate(100%) invert(22%) sepia(97%) saturate(1536%) hue-rotate(163deg) brightness(92%) contrast(101%);
  transition: filter 0.3s ease;
}

.t-card:hover .quote-mark img {
  filter: brightness(0) invert(1) !important;
}

.t-quote {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.t-card .t-quote {
  color: var(--color-body) !important;
  transition: color 0.3s ease;
}

.t-card:hover .t-quote {
  color: #fff !important;
}

.t-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: auto !important;
  padding-top: 15px !important;
}

.t-user-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

.t-user img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.t-card:hover .t-user img {
  border-color: rgba(255, 255, 255, 0.3);
}

.t-user-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.t-card .t-user-name {
  color: var(--color-dark) !important;
  transition: color 0.3s ease;
}

.t-card:hover .t-user-name {
  color: #fff !important;
}

.t-user-role {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  opacity: 0.7;
}

.t-card .t-user-role {
  color: var(--color-body) !important;
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.t-card:hover .t-user-role {
  color: #fff !important;
  opacity: 0.9 !important;
}

/* =========================================================
   PRE-FOOTER CTA
   ========================================================= */
.prefooter-cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(225deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.95) 100%),
    var(--gradient-brand);
  padding: 80px 60px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0 !important;
}

.prefooter-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background: url('../../uploads/2026/04/Ginger-Affordable-Solutions-logo-Final-02-4-1.png') center/contain no-repeat;
  opacity: 0.2;
  pointer-events: none;
  filter: brightness(0) invert(1);
  z-index: 1;
}

.prefooter-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.prefooter-heading {
  font-size: 64px !important;
  font-weight: 600 !important;
  line-height: 1.1;
  color: #fff !important;
  letter-spacing: 1px !important;
  margin: 0;
}

.prefooter-sub {
  font-size: 16px !important;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.prefooter-arrow-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  color: rgba(255, 255, 255, 0.8);
}

.prefooter-arrow-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prefooter-arrow-btn svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5px;
}

.prefooter-arrow-btn:hover svg {
  transform: translateX(2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.ginger-footer {
  background-color: #030303;
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer-divider-top {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #000;
  z-index: 5;
}

.ginger-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Ensuring the image covers the entire footer area and aligns to the bottom */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 1.0)),
    url('../../uploads/2026/05/cfe8a7735860b7402ff1dace625222e6dab39d81-1-scaled.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 150px;
  padding: 20px 22px 60px;
}

.footer-col-label {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  font-size: 20px;
  font-weight: 300;
  color: #fff !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-newsletter-section {
  padding-top: 80px;
}

.footer-newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-newsletter-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Center horizontally */
  gap: 40px;
}

.newsletter-content {
  flex: 1;
}

.newsletter-heading {
  font-size: 20px;
  font-weight: 500;
  color: #fff !important;
  margin-bottom: 12px;
}

.newsletter-text {
  font-size: 12px !important;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
}

.newsletter-main {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  height: 50px;
  box-sizing: border-box;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 6px;
  color: #fff !important;
  font-size: 14px;
  outline: none;
}

.newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.newsletter-join {
  height: 40px;
  box-sizing: border-box;
  padding: 0 24px;
  background: #324B80 !important;
  border: none;
  border-radius: 6px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.newsletter-join:hover {
  background: #2B406E !important;
}

.newsletter-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-consent input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

/* -- Noptin Form Integration (Desktop Horizontal) -- */
.noptin-label:not(.noptin-checkbox-label) {
  display: none !important;
}

.noptin-form-fields {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  /* Force single line on desktop/tablet */
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.noptin-form-field-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.noptin-form-field-email {
  flex: 1 1 200px !important;
}

.noptin-form-field-submit {
  flex: 0 0 auto !important;
}

.noptin-form-fields br {
  display: none !important;
}

.noptin-form input[type="email"],
.noptin-form-field__email {
  height: 44px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.noptin-form input[type="submit"],
.noptin-form-submit {
  height: 44px !important;
  padding: 0 32px !important;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #24667F 50%, #2B3673 100%) !important;
  background-size: 200% 100% !important;
  background-position: 0% 0 !important;
  border-radius: 8px !important;
  color: #2B3673 !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  border: 1px solid #2B3673 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.noptin-form input[type="submit"]:hover,
.noptin-form-submit:hover {
  background-position: 100% 0 !important;
  color: #ffffff !important;
  border-color: #2B3673 !important;
}

/* Checkbox area - remove margin to align in same line */
.noptin-optin-field-wrapper:last-child:not(.noptin-form-field-submit) {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 0 !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12px !important;
  flex: 0 1 auto !important;
  /* Allow it to stay on same line if space exists */
}

.noptin-checkbox-label {
  margin: 0 !important;
}

.form-feedback {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  display: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: transparent !important;
}

.footer-copyright {
  font-size: 12px !important;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-copyright span {
  color: #fff !important;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 60px;
}

.footer-policy-links {
  display: flex;
  gap: 24px;
}

.footer-policy-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-policy-links a:hover {
  color: #fff !important;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
  overflow: hidden;
  /* Mask the rotating border */
  z-index: 1;
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent,
      transparent,
      #ffffff,
      transparent,
      transparent);
  animation: borderRotate 1.5s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
}

.footer-social a::after {
  content: '';
  position: absolute;
  inset: 1px;
  /* 1px gap forms the border */
  background: #030303;
  /* Matches the dark background of the footer */
  border-radius: 3px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-social a:hover::before,
.footer-social a:hover::after {
  opacity: 1;
}

.footer-social a:hover {
  color: #fff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â TABLET (ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .ginger-header {
    padding: 18px 40px;
  }

  .header-right,
  .mega-dropdown {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 40px 40px 0;
    gap: 40px;
  }

  .hero-left {
    min-height: auto;
    padding: 60px 40px;
  }

  .hero-right {
    min-height: 450px;
  }

  .ds-hero {
    padding: 80px 0 60px;
  }

  .ds-hero-inner {
    flex-direction: column !important;
    text-align: center;
    gap: 40px;
  }

  .ds-hero-content {
    max-width: 100% !important;
  }

  .ds-hero-visual {
    width: 100% !important;
  }

  .partners-section {
    padding: 48px 40px 0;
  }

  .mission-text-block {
    margin-top: 60px;
    font-size: 28px;
    padding: 0 40px;
  }

  .services-section {
    position: sticky !important;
    top: 0 !important;
    height: 100dvh !important;
    padding: 0 !important;
    max-width: 100% !important;
    z-index: 10 !important;
  }

  .services-inner {
    border-radius: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
  }

  .services-center {
    max-width: clamp(320px, 58%, 520px) !important;
    z-index: 5 !important;
    margin: auto !important;
    /* Perfect vertical & horizontal centering with auto fallback */
  }

  .services-scroll-track {
    height: 150vh !important;
  }

  .stats-section {
    padding: 20px 40px 0 !important;
  }

  .stats-about-text {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ds-feature-grid,
  .ds-pm-feature-grid,
  .ds-growth-grid,
  .ds-success-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  .ds-pm-image-grid {
    grid-template-columns: 1fr !important;
  }

  .ds-split-grid {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 40px !important;
  }

  .blog-section {
    padding: 64px 40px 0;
  }

  .testimonials-section {
    padding: 64px 40px 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  .testimonial-img-col {
    display: none;
  }

  .prefooter-cta {
    padding: 80px 40px 60px;
  }

  .ginger-footer {
    padding: 56px 40px 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .services-photo-tl,
  .services-photo-bl,
  .services-photo-tr,
  .services-photo-br {
    display: block !important;
    opacity: 0.65 !important;
    z-index: 1 !important;
    /* Slightly fade on tablet to keep text readable */
  }

  .service-slide .services-photo-tl {
    left: 20px !important;
    width: 140px !important;
    height: 200px !important;
  }

  .service-slide .services-photo-tr {
    right: 20px !important;
    width: 140px !important;
    height: 200px !important;
  }

  .service-slide .services-photo-bl {
    left: 30px !important;
    width: 160px !important;
    height: 110px !important;
  }

  .service-slide .services-photo-br {
    right: 30px !important;
    width: 160px !important;
    height: 110px !important;
  }
}

/* =========================================================
   RESPONSIVE ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â MOBILE (ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤768px)
   ========================================================= */
@media (max-width: 768px) {
  .ginger-header {
    padding: 4px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
  }

  .header-logo img {
    height: 65px !important;
    width: auto !important;
    max-width: 240px !important;
    object-fit: contain !important;
    margin-left: 0 !important;
  }

  .header-nav,
  .header-cta-wrapper,
  .header-cta,
  .mega-dropdown,
  .header-right {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
    margin-left: auto;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 20px 24px 0;
  }

  .hero-right {
    min-height: 380px;
    display: none;
  }

  .hero-left {
    min-height: auto;
    padding: 40px 24px 36px;
  }

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

  h2 {
    font-size: 28px !important;
  }

  .hero-desc,
  .ds-hero-desc,
  .ds-section-desc {
    font-size: 16px !important;
  }

  .partners-section {
    padding: 40px 24px 0;
  }

  .mission-text-block {
    margin-top: 40px;
    font-size: 20px;
    padding: 0 24px;
  }

  /* Consolidated services sticky logic is now in the 1024px media query above */

  .services-inner {
    border-radius: 0 !important;
    height: 100% !important;
  }

  .service-slide {
    padding: 60px 24px !important;
    /* Added more vertical padding */
    min-height: auto !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Show decorative floating photos on mobile but scaled down and with soft opacity */
  .services-photo {
    display: block !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0.75 !important;
  }

  .service-slide .services-photo-tl {
    width: 80px !important;
    height: 110px !important;
    top: 20px !important;
    left: 10px !important;
  }

  .service-slide .services-photo-bl {
    width: 100px !important;
    height: 70px !important;
    bottom: 20px !important;
    left: 20px !important;
  }

  .service-slide .services-photo-tr {
    width: 80px !important;
    height: 110px !important;
    top: 20px !important;
    right: 10px !important;
  }

  .service-slide .services-photo-br {
    width: 90px !important;
    height: 70px !important;
    bottom: 20px !important;
    right: 20px !important;
  }

  /* Services content */
  .services-center {
    max-width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    height: auto !important;
    margin: auto !important;
    /* Perfect vertical & horizontal centering with auto fallback */
  }

  .services-title {
    font-size: 22px !important;
    /* Slightly smaller to fit better */
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
  }

  .services-desc {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
    opacity: 0.9;
    max-width: 100% !important;
  }

  .services-cta {
    margin-top: 8px !important;
  }

  .ds-feature-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  .ds-feature-card,
  .ds-card-simple,
  .stat-card,
  .ds-feature-header-box {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
  }

  .stats-section {
    padding: 20px 4px 0 !important;
    margin-top: 0 !important;
  }

  .home .stats-section {
    margin-top: 0 !important;
  }

  .stats-intro {
    flex-direction: column;
    gap: 24px;
  }

  .stats-about-text {
    font-size: 18px;
    text-align: left;
  }

  .stats-about-text .muted {
    font-size: 24px;
    font-weight: 500;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-card,
  .stat-card-img,
  .stat-card-empty {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 250px;
    gap: 24px !important;
    overflow: visible !important;
  }

  .blog-section {
    padding: 48px 24px 0;
  }

  .blog-heading,
  .ds-hero-title {
    font-size: 28px !important;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-author-name,
  .blog-date {
    font-size: 14px;
  }

  .testimonials-section {
    padding: 48px 24px 0;
  }

  .testimonials-heading {
    font-size: 32px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-img-col {
    display: none;
  }

  .t-card-row {
    grid-template-columns: 1fr;
  }

  .prefooter-cta {
    padding: 64px 24px 48px;
  }

  .prefooter-heading {
    font-size: 32px;
  }

  .ginger-footer {
    padding: 48px 24px 20px;
  }

  .footer-grid {
    display: flex !important;
    /* Avoid grid structure as requested */
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    /* Fallback if too wide */
    gap: 16px;
  }

  .footer-col {
    flex: 1;
    min-width: 80px;
    /* Ensure 3 can fit */
  }

  .footer-links a {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .footer-col-label {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .footer-copyright,
  .footer-bottom-right p,
  .footer-copyright span {
    font-size: 12px !important;
  }

  .ds-accordion-toggle {
    font-size: 20px !important;
  }

  .ds-accordion-content p {
    font-size: 18px !important;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }

  .newsletter-input,
  .newsletter-join {
    width: 100%;
  }

  .newsletter-join {
    justify-content: center;
  }

  .ds-form .form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
  }

  .ds-btn {
    width: auto;
    min-width: 200px;
    justify-content: center;
  }

  .phone-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .branding-actions {
    flex-wrap: wrap;
  }
}

.ds-template {
  background: #fff;
  color: var(--color-dark);
}

.ds-container {
  max-width: 1240px;
  margin: 0 auto !important;
  padding: 0 20px;
}

.ds-container-sm {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.centered {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.ds-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  width: fit-content;
  white-space: nowrap;
  color: #1C3856;
}

.ds-badge.centered {
  margin-left: auto;
  margin-right: auto;
}

.ds-badge::before {
  /* Gradient Border */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  /* Reduced border thickness */
  border-radius: 100px;
  background: linear-gradient(90deg, #24667F 0%, #2B3673 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.ds-badge::after {
  /* Solid White Background */
  content: "";
  position: absolute;
  inset: 1px;
  /* Matches the new border thickness */
  background: #ffffff;
  border-radius: 100px;
  z-index: -2;
  pointer-events: none;
}

.ds-section-title {
  font-size: 40px;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 20px;
  font-weight: 500;
}

.ds-section-desc {
  font-size: 20px !important;
  color: #2a2a2a;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ds-section-desc.centered {
  max-width: 1000px !important;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* 1. Hero Group */
.ds-hero {
  padding: 10px 0;
  background: #fff;
}

.ds-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  align-items: center;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.ds-hero-title {
  font-size: 48px !important;
  line-height: 1.05;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ds-hero-title.centered {
  font-weight: 600 !important;
}

.ds-hero-desc {
  font-size: 20px !important;
  line-height: 1.5;
  color: var(--color-body);
  margin-bottom: 32px;
}

/* Collage */
.ds-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 300px 150px 300px;
  gap: 24px;
  align-items: stretch;
}

.ds-collage-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #F5F5F5;
  color: #000;
}

.ds-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ds-img-main {
  grid-row: 1 / 3;
  grid-column: 1;
}

.ds-stat-card {
  padding: 35px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--gradient-brand);
  color: #fff;
  box-sizing: border-box !important;
}

.ds-stat-blue {
  grid-row: 1 / 2;
  grid-column: 2;
  background: #F8F9FA;
  color: var(--color-dark);
}

.ds-stat-blue .ds-stat-plus {
  color: var(--color-primary);
}

.ds-stat-blue .ds-stat-val,
.ds-stat-dark .ds-stat-val {
  margin-bottom: 55px !important;
  /* Increased gap between number and content */
}

.ds-stat-dark {
  grid-row: 3 / 4;
  grid-column: 1;
  background: var(--gradient-brand);
  color: #fff;
}

.ds-stat-val {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1;
}

.ds-stat-lab {
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.ds-stat-sub {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.7;
}

.ds-img-sub {
  grid-row: 2 / 4;
  grid-column: 2;
}

/* 2. Intro */
.ds-intro {
  padding: 10px 0 00px 0 !important;
}

/* 3. Split Feature */
.ds-split-feature {
  padding-bottom: 120px;
}

.ds-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ds-split-text {
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
}

.ds-split-title {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-size: 40px !important;
  font-weight: 600 !important;
  max-width: 400px;
  line-height: 1.3;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

/* font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-primary);
} */



.ds-split-desc {
  font-size: 20px !important;
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 32px;
  max-width: 600px;
}

.ds-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.ds-feature-grid.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s, transform 0.5s;
}

.ds-feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ds-feature-card.full-width {
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
}

.ds-feature-card.full-width .ds-icon-circle {
  width: 60px !important;
  height: 60px !important;
}

.ds-feature-card.full-width h3 {
  font-size: 28px;
  margin-bottom: 12px;
}



/* Unified Brand Icon Style: Dark Blue Background + White Icons */
.ds-icon-circle,
.ds-card-icon,
.info-icon {
  width: 40px;
  height: 40px;
  font-size: 24px !important;
  background: #24667F !important;
  /* Brand Blue */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Ensure circular ones remain circular if needed, but standardizing to rounded-square for modern feel */
.ds-icon-circle {
  border-radius: 8px !important;
}

.ds-icon-circle img,
.ds-card-icon img,
.info-icon img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) !important;
  /* Force White Icon */
}



/* Recolor ALL icons to brand blue (#24667F) to maintain theme consistency. 
   Branding logos will be swapped to monochromatic versions in templates. */
.about-sol-icon img,
.info-icon img,
.quote-icon img,
.ds-feature-card h3,
.ds-feature-card h5,
.ds-growth-grid h3 {
  font-size: 22px !important;
  font-weight: 600 !important;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--color-dark);
}

.ds-feature-card p,
.ds-growth-grid p {
  font-size: 16px !important;
  color: var(--color-body);
  line-height: 1.6;
}

.ds-pm-feature-box h3 {
  font-size: 20px !important;
  font-weight: 500 !important;
  margin-bottom: 16px;
  line-height: 1.4;
  color: var(--color-dark);
}

.ds-pm-feature-box p {
  font-size: 18px !important;
  color: var(--color-body);
  line-height: 1.6;
}

/* 4. Growth Grid */
.ds-growth {
  padding: 80px 0;
  background-color: #fff;
  background-image: none;
  position: relative;
}

.ds-growth-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.ds-growth-title {
  font-size: 40px !important;
  font-weight: 500;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 16px;
}

.ds-growth-desc {
  font-size: 20px !important;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 32px;
}

.ds-growth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.ds-card-simple {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Scope override only for MERN and Laravel cards in Technology Solutions */
.ds-tech-web-apps-grid .ds-card-simple {
  text-align: center !important;
  align-items: center !important;
}



.ds-card-simple h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-dark);
}

.ds-card-simple p {
  font-size: 16px !important;
  color: var(--color-body);
  line-height: 1.6;
}

/* 5. Industries */
.ds-industries {
  padding: 80px 0;
}

/* --- Widen Industry Container & Section Header --- */
@media (min-width: 769px) {
  .ds-industries .ds-container {
    max-width: 1600px !important;
    width: 95% !important;
  }

  .ds-industries .ds-section-header {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.ds-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 100% !important;
  margin: 0 auto;
}

.ds-industry-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ds-industry-card img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.ds-industry-card:hover img {
  transform: scale(1.06) !important;
}

.ds-industry-body {
  padding: 16px 12px;
}

.ds-industry-body h3 {
  font-size: 22px !important;
  margin-bottom: 12px;
  font-weight: 700;
}

.ds-industry-body p {
  font-size: 16px !important;
}

/* 6. Success Cards */
.ds-success {
  padding: 100px 0 120px;
}

.ds-success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ds-success-card {
  text-align: left;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Default/Website Success Card (Full-Bleed, Original look) --- */
.ds-success-card .ds-success-img {
  position: relative;
  border-radius: 20px;
  margin-bottom: 24px;
  background: #fafbfc;
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ds-success-card .ds-success-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ds-success-card:hover .ds-success-img {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.ds-success-card:hover .ds-success-img img {
  transform: scale(1.05);
}



.ds-success-card-btn {
  position: absolute;
  bottom: -25px;
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #24667F, #2B3673);
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-success-card-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ds-success-card-btn img {
  width: 22px !important;
  height: 22px !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.ds-success-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-category {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 500;
  display: block;
}

.ds-success-card h3 {
  font-size: 22px !important;
  /* Standardization */
  color: var(--color-dark);
  margin: 0;
}

.ds-success-card p {
  font-size: 16px !important;
  /* Standardization */
  color: var(--color-body);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}

.ds-link:hover {
  text-decoration: none;
  gap: 8px;
}

/* 7. FAQ Accordion */
.ds-faq {
  padding: 80px 0;
  background: #fff;
}

.ds-accordion-wrap {
  margin-top: 40px;
}

.ds-accordion-item {
  border-bottom: none;
  margin-bottom: 16px;
  background: transparent !important;
}

.ds-accordion-item:hover,
.ds-accordion-item:focus,
.ds-accordion-item:active {
  background: transparent !important;
}

.ds-accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  text-align: left;
  color: var(--color-dark);
  position: relative;
}

.ds-accordion-toggle:hover,
.ds-accordion-toggle:focus,
.ds-accordion-toggle:active {
  background: transparent !important;
  color: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.ds-toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #000000;
  flex-shrink: 0;
}

.ds-toggle-icon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 4px;
}

/* Interaction: Rotate chevron to point up when active */
.ds-accordion-item.active .ds-toggle-icon::before {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.ds-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.ds-accordion-content p {
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.ds-accordion-item.active .ds-accordion-content {
  max-height: 1000px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 8. Contact Split Block */
.ds-contact-block {
  position: relative;
  padding: 140px 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.ds-contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.ds-contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(39, 79, 121, 0.9) 0%, rgba(22, 44, 68, 0.95) 100%);
  z-index: 1;
}

.ds-contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}

.ds-contact-title {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

.ds-contact-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 48px;
  max-width: 580px;
}

.ds-contact-info a {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

.ds-card-glass {
  background: #ffffff !important;
  padding: 48px 40px !important;
  border-radius: 16px !important;
  color: #333 !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
}

.ds-form {
  display: flex;
  flex-direction: column;
}

.ds-form input,
.ds-form textarea {
  width: 100% !important;
  padding: 16px 20px !important;
  border-radius: 10px !important;
  border: 1px solid #f0f0f0 !important;
  background: #ffffff !important;
  font-family: inherit !important;
  font-size: 16px !important;
  color: #333 !important;
  margin-bottom: 0 !important;
  /* Managed by form group spacing */
  box-shadow: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.ds-form input::placeholder,
.ds-form textarea::placeholder {
  color: #a0a0a0 !important;
  opacity: 1 !important;
}

.ds-form input:focus,
.ds-form textarea:focus {
  border-color: #1b365d !important;
  outline: none !important;
  box-shadow: 0 0 0 1px #1b365d !important;
}

.ds-form textarea {
  min-height: 100px;
  resize: vertical;
}

.ds-form .form-footer,
.contact-form .form-footer {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 24px !important;
  text-align: center !important;
  gap: 12px;
}

.ds-form-group {
  margin-bottom: 20px !important;
  text-align: left;
}

.ds-contact-block .ds-form-group label {
  display: none !important;
}

/* --- Contact Us Page Form Colors --- */
.contact-template .ds-form label,
.contact-template .ds-form legend,
.contact-form-card .ds-form label,
.contact-form-card .ds-form legend {
  color: #000000 !important;
  font-weight: 600 !important;
}


.ds-phone-input-wrap {
  display: flex;
  width: 100%;
  margin-bottom: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible;
}

/* --- PHONE INPUT (WITH COUNTRY DROP-DOWN FOR CONTACT US PAGE) --- */
.ds-form .iti {
  width: 100% !important;
  display: block;
}

.ds-form .iti input {
  width: 100% !important;
  height: 56px !important;
  padding: 16px 20px 16px 125px !important;
  /* Wide padding to accommodate flag */
  border: 1px solid #f0f0f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  margin-bottom: 0 !important;
  font-size: 16px !important;
}

.ds-form .iti__selected-country {
  background: #ffffff !important;
  width: 115px !important;
  border-radius: 9px 0 0 9px !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 10px !important;
}

.ds-form .iti__selected-dial-code {
  color: #746e6e !important;
  font-weight: 600;
  margin-right: 5px !important;
}

.ds-country-selector {
  display: flex !important;
  align-items: center;
  padding: 0 12px;
  background: #f5f5f5;
  border-right: 1px solid #f0f0f0;
  border-radius: 10px 0 0 10px;
}

.ds-country-selector img {
  width: 24px;
  border-radius: 2px;
}

.ds-phone-input-wrap input {
  border: none !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* --- OVERRIDES ONLY ON SERVICES PAGE CONTACT SPLIT BLOCK FORM (TO HIDE FLAGS) --- */
.ds-contact-block .ds-form .iti__flag-container,
.ds-contact-block .ds-form .iti__selected-country {
  display: none !important;
}

.ds-contact-block .ds-form .iti input {
  height: auto !important;
  padding: 16px 20px !important;
  /* Standard padding without flags */
  border: 1px solid #f0f0f0 !important;
  border-radius: 10px !important;
}

.ds-contact-block .ds-form .form-note {
  display: none !important;
}

.ds-contact-block .ds-form .ds-btn.ds-btn-primary {
  display: inline-block !important;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #24667F 50%, #2B3673 100%) !important;
  background-size: 200% 100% !important;
  background-position: 0% 0 !important;
  color: #2B3673 !important;
  border-radius: 30px !important;
  padding: 14px 48px !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  border: 1px solid #2B3673 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  text-align: center !important;
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  text-transform: none !important;
  width: auto !important;
}

.ds-contact-block .ds-form .ds-btn.ds-btn-primary:hover {
  background-position: 100% 0 !important;
  color: #ffffff !important;
  border-color: #2B3673 !important;
  transform: none !important;
  box-shadow: none !important;
}

.form-note {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

.form-note {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.form-feedback {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  display: none;
}

.form-success-msg {
  color: #2D6A4F;
  background: #D8F3DC;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #B7E4C7;
}

.form-error-msg {
  color: #A4133C;
  background: #FFB3C1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #FF8FA3;
}

/* Contact Form Button Padding Override */
.ds-form .ds-btn.ds-btn-primary,
.ajax-form .ds-btn.ds-btn-primary,
.contact-form-card .ds-btn.ds-btn-primary,
#cdCareerForm .ds-btn.ds-btn-primary,
#cdCareerForm .app-submit-btn,
.app-modal-content .ds-btn.ds-btn-primary {
  padding: 15px 24px !important;
}

.ds-btn {
  display: inline-flex;
  padding: 14px 32px;
  border-radius: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
  text-transform: capitalize;
}

.ds-btn-primary {
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #24667F 50%, #2B3673 100%) !important;
  background-size: 200% 100% !important;
  background-position: 0% 0 !important;
  color: #2B3673 !important;
  border-radius: 40px;
  padding: 7px 24px;
  border: 1px solid #2B3673 !important;
  box-sizing: border-box !important;
  font-weight: 500;
  font-size: 16px;
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  box-shadow: none;
  text-decoration: none !important;
}

.ds-btn-primary:hover {
  background-position: 100% 0 !important;
  color: #ffffff !important;
  border-color: #2B3673 !important;
  transform: none;
  box-shadow: none;
}

.ds-btn-outline {
  background: var(--gradient-brand);
  color: #fff;
  border: none !important;
}

.ds-btn-outline:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* 9. Responsiveness */
@media (max-width: 1200px) {

  .ds-hero-inner,
  .ds-split-grid,
  .ds-contact-inner {
    gap: 40px;
  }

  .ds-hero-title {
    font-size: 52px;
  }
}

@media (max-width: 1024px) {
  .ds-industry-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ds-hero-inner,
  .ds-split-grid,
  .ds-contact-inner {
    grid-template-columns: 1fr;
  }

  .ds-hero-content {
    text-align: center;
  }

  .ds-collage {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  .ds-growth-grid,
  .ds-success-grid {
    grid-template-columns: 1fr;
  }

  .ds-hero {
    padding: 60px 0;
  }

  .ds-hero-title {
    font-size: 40px;
  }

  .ds-breadcrumbs {
    gap: 6px;
    font-size: 13px;
    line-height: 1.8;
  }

  .ds-breadcrumbs a,
  .ds-breadcrumbs span {
    white-space: nowrap;
  }

  .ds-section-title,
  .ds-split-title,
  .ds-contact-title {
    font-size: 32px !important;
    text-align: center;
  }

  .ds-split-text {
    align-items: center !important;
    text-align: center !important;
    padding-top: 20px;
  }

  .ds-split-desc {
    font-size: 18px !important;
    text-align: center !important;
  }

  .ds-growth-title {
    font-size: 32px !important;
  }

  .ds-growth-desc {
    font-size: 18px !important;
  }

  .ds-card-glass {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .ds-contact-inner {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 40px !important;
  }

  .ds-contact-text {
    max-width: 100% !important;
  }

  .ds-contact-info a {
    font-size: 18px !important;
    margin-bottom: 12px;
  }

  .ds-form-group {
    width: 100%;
  }

  .ds-btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Phone input dropdown mobile fix */
  .iti__country-list {
    width: calc(100vw - 40px) !important;
    max-width: 320px !important;
  }
}

/* =========================================================
   PERFORMANCE MARKETING TEMPLATE (.ds-pm-)
   ========================================================= */
.ds-pm-template {
  background-color: #fff;
}

.ds-pm-hero {
  padding: 10px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* Background is handled by global hero rules at the end of this file */

.ds-pm-hero-content,
.careers-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.ds-pm-hero .ds-section-desc {
  font-size: 16px;
}

.max-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.max-900 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.mb-60 {
  margin-bottom: 60px;
}

.mb-30 {
  margin-bottom: 30px;
}

.text-center.mb-60 {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.mt-24 {
  margin-top: 24px;
}

.ds-breadcrumbs {
  margin-top: 40px;
  font-size: 14px;
  color: var(--color-body);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.ds-breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color var(--transition);
}

.ds-breadcrumbs a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.ds-breadcrumbs span.sep,
.ds-breadcrumbs span.ds-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0.4;
  margin: 0 4px;
}

.ds-breadcrumbs span.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* PM Images */
.ds-pm-images {
  padding-bottom: 10px;
}

.ds-pm-image-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.ds-pm-img-item {
  overflow: hidden;
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
  transition: transform 0.5s var(--transition);
}

.tilted-left {
  z-index: 2;
}

.tilted-right {
  opacity: 1;
}

.ds-pm-img-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}



/* PM Intro */
.ds-pm-intro {
  padding: 80px 0;
  background: #fcfcfc;
}

/* PM Feature Grids */
.ds-pm-feature-grid {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.ds-pm-feature-grid.top-row {
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 20px;
}

.ds-pm-feature-grid.bottom-row {
  grid-template-columns: repeat(3, 1fr);
}

.ds-pm-feature-grid .ds-icon-circle {
  margin: 0 0 24px 0;
}

/* Parent Service Pages Icon Style: Light Blue Circle + Brand Blue Icons */
.ds-feature-grid .ds-icon-circle,
.ds-growth-grid .ds-card-icon,
.ds-feature-card .ds-icon-circle,
.ds-card-icon {
  background: #EBF6FA !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0;
}

/* Performance Marketing Icon Style: Square Shaped */
.ds-pm-feature-box .ds-icon-circle {
  background: #EBF6FA !important;
  border-radius: 12px !important;
  /* Square shaped with slight rounding */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0;
}

.ds-feature-grid .ds-icon-circle img,
.ds-growth-grid .ds-card-icon img,
.ds-feature-card .ds-icon-circle img,
.ds-card-icon img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(14%) saturate(2311%) hue-rotate(155deg) brightness(96%) contrast(86%) !important;
  /* Brand Blue #24667F */
  width: 24px !important;
  height: 24px !important;
}

.ds-pm-feature-box .ds-icon-circle img {
  filter: brightness(0) invert(1) !important;
  width: 24px !important;
  height: 24px !important;
}

/* Color Cycle for Inner Pages (applied only to specific inner page classes) */
.ds-pm-feature-grid .ds-pm-feature-box:nth-of-type(6n+1) .ds-icon-circle {
  background: #C6B7A1 !important;
}

.ds-pm-feature-grid .ds-pm-feature-box:nth-of-type(6n+2) .ds-icon-circle {
  background: #002522 !important;
}

.ds-pm-feature-grid .ds-pm-feature-box:nth-of-type(6n+3) .ds-icon-circle {
  background: #F57C3C !important;
}

.ds-pm-feature-grid .ds-pm-feature-box:nth-of-type(6n+4) .ds-icon-circle {
  background: #18D7C5 !important;
}

.ds-pm-feature-grid .ds-pm-feature-box:nth-of-type(6n+5) .ds-icon-circle {
  background: #FFC62B !important;
}

.ds-pm-feature-grid .ds-pm-feature-box:nth-of-type(6n+6) .ds-icon-circle {
  background: #11B3F0 !important;
}

/* Performance Marketing Template Scoped Icon Background Color Overrides */
.ds-pm-template .ds-pm-google-ads .top-row .ds-pm-feature-box:nth-child(1) .ds-icon-circle {
  background: #FFC62B !important;
}

.ds-pm-template .ds-pm-google-ads .top-row .ds-pm-feature-box:nth-child(2) .ds-icon-circle {
  background: #18D7C5 !important;
}

.ds-pm-template .ds-pm-google-ads .bottom-row .ds-pm-feature-box:nth-child(1) .ds-icon-circle {
  background: #11B3F0 !important;
}

.ds-pm-template .ds-pm-google-ads .bottom-row .ds-pm-feature-box:nth-child(2) .ds-icon-circle {
  background: #F57C3C !important;
}

.ds-pm-template .ds-pm-google-ads .bottom-row .ds-pm-feature-box:nth-child(3) .ds-icon-circle {
  background: #C6B7A1 !important;
}

.ds-pm-template .ds-pm-social-ads .ds-pm-feature-grid .ds-pm-feature-box:nth-child(1) .ds-icon-circle {
  background: #C6B7A1 !important;
}

.ds-pm-template .ds-pm-social-ads .ds-pm-feature-grid .ds-pm-feature-box:nth-child(2) .ds-icon-circle {
  background: #002522 !important;
}

.ds-pm-template .ds-pm-social-ads .ds-pm-feature-grid .ds-pm-feature-box:nth-child(3) .ds-icon-circle {
  background: #F57C3C !important;
}

.ds-pm-template .ds-pm-social-ads .ds-pm-feature-grid .ds-pm-feature-box:nth-child(4) .ds-icon-circle {
  background: #18D7C5 !important;
}

.ds-pm-template .ds-pm-social-ads .ds-pm-feature-grid .ds-pm-feature-box:nth-child(5) .ds-icon-circle {
  background: #FFC62B !important;
}

.ds-pm-template .ds-pm-social-ads .ds-pm-feature-grid .ds-pm-feature-box:nth-child(6) .ds-icon-circle {
  background: #C6B7A1 !important;
}


/* End of Service Icon Styling */



.ds-pm-feature-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.ds-pm-feature-box {
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
}



.ds-pm-feature-box h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.ds-pm-feature-box p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
}

/* Unified Service Detail Icon Backgrounds */
.ds-icon-circle {
  transition: all 0.3s ease;
}

/* Performance Marketing & Growth */
.ds-pm-template .ds-icon-google {
  background: #ffc400 !important;
}

/* Soft Yellow */
.ds-pm-template .ds-icon-display {
  background: #EBF6FA !important;
}

/* Soft Blue */
.ds-growth-template .ds-icon-meta {
  background: #E7F3FF !important;
}

/* Meta Blue */
.ds-growth-template .ds-icon-snapchat {
  background: #FFF9E6 !important;
}

/* Snapchat Yellow */

/* Development Pages */
.ds-ed-template .ds-icon-shopify {
  background: #EEF7ED !important;
}

/* Shopify Green */
.ds-ed-template .ds-icon-plugins {
  background: #F4F4F4 !important;
}

/* Neutral Gray */
.ds-cwa-template .ds-icon-react {
  background: #F0F9FF !important;
}

/* React Light Blue */
.ds-cwa-template .ds-icon-node {
  background: #F7FFF5 !important;
}

/* Node Light Green */
.ds-mad-template .ds-icon-swift {
  background: #FFF4ED !important;
}



.ds-icon-circle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mb-20 {
  margin-bottom: 20px;
}

/* YouTube Ads Cards */
.ds-pm-youtube-ads {
  padding: 80px 0;
  background: #fff;
}

.ds-pm-youtube-ads .ds-container {
  max-width: 100%;
  padding: 0 60px;
}

.ds-pm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  align-items: stretch;
  /* Make heights uniform */
  max-width: 1200px;
  margin: 0 auto;
}

.ds-pm-card {
  padding: 50px 40px;
  background: #ffffff;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  height: 100%;
  /* Ensure card fills grid cell height */
}

.ds-pm-card .ds-card-icon {
  display: none !important;
}

.ds-pm-card.active {
  background: linear-gradient(135deg, #24667F 0%, #2B3673 100%);
  color: #fff;
  padding: 50px 40px;
  transform: none;
  /* Removed lift effect as per user request */
}

.ds-pm-card.active h3 {
  color: #fff;
}

.ds-pm-card.active p {
  color: rgba(255, 255, 255, 0.85);
}

.ds-pm-card h3 {
  font-size: 20px !important;
  margin-bottom: 20px;
  color: var(--color-dark);
  font-weight: 500;
}

.ds-pm-card p {
  font-size: 18px !important;
  line-height: 1.6;
  color: var(--color-body);
}



.ds-pm-social-ads {
  padding: 10px 0;
  background: #ffffff;
}

/* Media Queries for PM */
@media (max-width: 1024px) {

  .ds-pm-image-grid {
    grid-template-columns: 1fr !important;
  }

  .ds-pm-feature-grid.top-row,
  .ds-pm-feature-grid.bottom-row,
  .ds-pm-feature-grid.three-cols,
  .ds-pm-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .ds-pm-image-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .ds-pm-feature-grid.top-row,
  .ds-pm-feature-grid.bottom-row,
  .ds-pm-feature-grid.three-cols,
  .ds-pm-card-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  .ds-pm-img-item img {
    height: 300px;
  }

  .ds-pm-hero {
    padding: 80px 0 40px;
  }

  .ds-pm-feature-box,
  .ds-pm-card {
    padding: 50px;
  }
}


/* =========================================================
   ABOUT US TEMPLATE (.about-)
   ========================================================= */

/* ── 1. Hero ── */
.about-hero {
  padding: 10px 0 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.about-hero-grid-area {
  position: relative;
  overflow: hidden;
}

/* Perspective Grid Overlay for Hero - Vertical Only */
.about-hero-grid-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 40px 40px;
  transform: perspective(600px) rotateX(55deg) scale(2);
  transform-origin: top;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}


.about-hero-content,
.about-hero-visual {
  position: relative;
  z-index: 1;
}

.about-main-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 0;
  margin-top: 0;
}

/* ── 2. Intro & Stats Collage ── */
.about-stats {
  padding: 80px 0;
  background-color: #fff;
}

.about-stats-inner {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.about-stats-text {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: flex-start;
  gap: 40px;
}

.ds-about-intro-text {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 500;
  color: #121212;
  margin: 0;
  display: block !important;
  text-align: right;
  width: 100%;
}

.ds-about-intro-text .mission-word,
.mission-text-block .mission-word {
  transition: color 0.5s ease;
  display: inline !important;
}

/* Using global .stats-grid styles from homepage */

/* ── 3. Word-Reveal Statement ── */
.about-statement {
  padding: 80px 0;
  background: #fff;
}

.statement-badge-wrap {
  margin-bottom: 40px;
}

.mission-text-block {
  font-size: 36px;
  line-height: 1.4;
  font-weight: 500;
  color: #121212;
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
}

.mission-text-block.revealed {
  padding-bottom: 60px;
}

.mission-word {
  transition: color 0.4s ease;
}

/* ── 4. Solutions Grid ── */
.about-solutions {
  padding: 80px 0;
  background: #fff;
}

.about-solutions .ds-container {
  max-width: 1400px !important;
}

.about-solutions-layout {
  display: grid;
  grid-template-columns: 1fr 500px 1fr;
  gap: 60px;
  align-items: stretch;
}

.about-sol-center {
  display: flex;
}

.about-sol-col {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about-sol-card {
  background: #f7f7f7;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.about-sol-icon {
  margin-bottom: 16px;
  display: block;
}

.about-sol-icon img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.about-template .about-sol-card h3 {
  font-size: 24px !important;
  margin-bottom: 16px;
  font-weight: 600;
  color: #121212;
}

.about-template .about-sol-card p {
  font-size: 18px !important;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.about-sol-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ── 5. People Behind Success ── */
.about-people-overlay {
  height: 70vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-people-overlay .ds-contact-overlay {
  background: rgb(20 46 86 / 83%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.about-people-inner {
  position: relative;
  z-index: 5;
  color: #fff;
}

.visit-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 8px;
  transition: opacity 0.3s;
}

.visit-link:hover {
  opacity: 0.8;
}

/* ── 6. Client Success (Testimonials) ── */
.about-client-stories {
  padding: 80px 0;
  background: #fff;
}

.about-client-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: flex-start;
}

.about-profile-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.about-profile-card .profile-img {
  width: 100%;
  height: 750px;
  object-fit: cover;
}

.about-profile-card .profile-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.about-profile-card h4 {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 700;
}

.about-profile-card p {
  font-size: 16px;
  opacity: 0.9;
}

.about-testimonials-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testigo-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  position: relative;
}

.quote-icon img {
  width: 44px;
  margin-bottom: 16px;
}

.testigo-card p {
  font-size: 20px;
  line-height: 1.5;
  color: #121212;
  margin-bottom: 32px;
}

.testigo-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testigo-meta img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.testigo-meta h5 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.testigo-meta p {
  font-size: 15px;
  color: #666;
  margin: 4px 0 0;
}

.testigo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.testigo-card.small {
  padding: 32px;
}

.testigo-card.small p {
  font-size: 16px;
  margin-bottom: 16px;
}

.testigo-card.blue {
  background: #24667f;
  border-color: #24667f;
  color: #fff;
}

.testigo-card.blue p {
  color: #fff;
}

.testigo-card.blue .testigo-meta p {
  color: rgba(255, 255, 255, 0.75);
}



/* Responsiveness */
@media (max-width: 1200px) {

  .about-solutions-layout {
    grid-template-columns: 1fr;
  }

  .about-sol-center {
    order: -1;
  }

  .about-sol-img {
    height: 400px;
  }
}

@media (max-width: 991px) {
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-client-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-title {
    font-size: 48px;
  }

  /* About Page - Stats Text Responsive Fix */
  .about-stats-text {
    display: block !important;
    text-align: left !important;
  }

  .ds-about-intro-text {
    text-align: left !important;
    font-size: 26px !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

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

  .about-hero-title {
    font-size: 36px;
  }

  .testigo-row {
    grid-template-columns: 1fr;
  }
}


/* ===================== Reveal Animations ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   CONTACT US TEMPLATE (.contact-)
   ========================================================= */
.contact-hero {
  padding: 10px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 120px;
}

.contact-branding-card {
  background-color: var(--color-primary);
  background-image: url('../../uploads/2026/04/Frame-2-1-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 80px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.branding-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.branding-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.badge-centered-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.badge-outline {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.branding-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #fff;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.branding-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.branding-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.branding-btn {
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  background: transparent;
  color: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  outline: none !important;
}

.branding-btn.active,
.branding-btn:hover {
  background: #ffffff !important;
  color: #24667F !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.branding-btn.btn-outline:hover {
  border-color: #fff;
}

.contact-form-card {
  background: #fff;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid #EBEBEB;
  font-family: inherit;
  font-size: 15px;
  background: #FCFCFC;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
}

.phone-input-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}

.country-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #F5F7F8;
  border-radius: 10px;
  border: 1px solid #EBEBEB;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.country-select img {
  width: 20px;
}

.form-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 16px;
  display: none;
}

/* Info Section Cards */
.contact-inquiry {
  padding: 80px 0;
  background: #ffffff;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 80px;
}

.info-card {
  background: #fff;
  padding: 48px 24px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}



.info-icon {
  margin: 0 auto 24px;
}

.info-icon img {
  width: 28px;
  height: 28px;
}

.info-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.info-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  word-wrap: normal;
  overflow-wrap: normal;
}

.info-card a {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
  transition: color 0.3s ease;
}

.info-card:hover a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Map Section */
.contact-map-section {
  padding-top: 120px;
  padding-bottom: 120px;
  /* Balanced bottom padding for padded map layout */
}

.contact-map-section .text-center {
  text-align: left !important;
}

.contact-map-section .text-center.mb-60 {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.contact-map-section .centered {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

.map-visual {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.map-visual iframe {
  display: block;
  width: 100%;
}

/* Mobile Fixes */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-cards {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .contact-info-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 10px;
  }

  .info-card {
    padding: 40px 24px !important;
  }

  .contact-hero-title {
    font-size: 32px;
  }

  .contact-form-card {
    padding: 40px 24px;
  }
}



/* =========================================================
   BLOGS TEMPLATE (.blog-)
   ========================================================= */


.blog-hero {
  padding: 120px 0 80px;
  background: #fff;
}



.blog-featured-intro {
  padding: 60px 0;
  background: #FBFBFB;
}

.featured-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.featured-row-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.featured-row-actions {
  max-width: 400px;
}

.featured-row-actions p {
  font-size: 14px;
  color: var(--color-body);
  margin-bottom: 16px;
}

.view-more-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* Main Highlight Post */
.blog-highlight {
  padding: 80px 0;
}

.highlight-post-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.highlight-post-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.highlight-post-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 32px;
}

.post-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.post-meta .author {
  font-weight: 700;
  color: var(--color-dark);
}

.read-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
}

.highlight-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Standard Grid */
.blog-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 60px 0 100px;
}

.blog-grid-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.05);
  transition: transform 0.3s ease;
  position: relative;
}

.grid-card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.blog-grid-card:hover {
  transform: translateY(-5px);
}

.grid-card-visual {
  position: relative;
  overflow: hidden;
}

.grid-card-visual img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.grid-card-content {
  padding: 24px;
}

.grid-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #121212;
}

.grid-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #5E5E5E;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #5E5E5E;
}

.post-meta .meta-sep {
  opacity: 0.3;
}

/* Trending List */
.blog-trending {
  padding: 100px 0;
  background: #FBFBFB;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.trending-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-cat {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #EBEBEB;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.trending-item-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.trending-item-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 32px;
}

.trending-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trending-item-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

.trending-arrow img {
  width: 24px;
  height: 24px;
}

/* Pagination */
.dot-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #EBEBEB;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: var(--color-primary);
}

/* Mobile Fixes */
@media (max-width: 1024px) {
  .highlight-post-card {
    grid-template-columns: 1fr;
  }

  .blog-main-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trending-item {
    grid-template-columns: 1fr;
  }

  .trending-item-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .featured-row-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-main-grid {
    grid-template-columns: 1fr;
  }

  .trending-item {
    padding: 24px;
  }

  .trending-item-title {
    font-size: 20px;
  }
}



/* =========================================================
   BLOG DETAIL PAGE (.blog-detail-)
   ========================================================= */
.blog-detail-template {
  background: #fff;
}

.blog-detail-header {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

.blog-detail-header::before {
  z-index: -1 !important;
}

.blog-detail-header .ds-container {
  position: relative;
  z-index: 2;
}

.blog-detail-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  color: #121212;
}

.blog-breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}

.blog-breadcrumbs a {
  color: #000000;
  font-weight: 500;
}

.blog-breadcrumbs .sep {
  color: #121212;
  opacity: 0.2;
}

.blog-breadcrumbs .current {
  color: #24667F;
  opacity: 0.8;
}

.blog-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #5E5E5E;
}

.blog-detail-meta .meta-item {
  color: var(--color-dark);
  font-weight: 500;
}

.blog-detail-meta .meta-sep {
  opacity: 0.3;
}

/* ── Case Study – Full-Width Hero Banner ──────────────────────── */
.cs-hero-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 0;
}

.cs-hero-banner-inner {
  width: 100%;
  height: clamp(280px, 42vw, 600px);
  overflow: hidden;
}

.cs-hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 6s ease;
}

.cs-hero-banner:hover .cs-hero-banner-img {
  transform: scale(1.03);
}

/* When hero banner is present, reduce top padding of the featured image section */
.blog-detail-hero.has-hero-banner {
  padding-top: 48px;
}

.blog-detail-hero {
  padding-bottom: 130px;
  /* Generous gap between hero image and description */
}

@media (max-width: 768px) {
  .blog-detail-hero {
    padding-bottom: 70px;
    /* Responsive compact gap for mobile */
  }
}

.blog-hero-wrap.revealed {
  padding-bottom: 40px;
}

.blog-hero-wrap .blog-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
}

/* --- Premium Case Study Detail Image Fixes --- */
.case-study-detail-template .blog-hero-wrap {
  background: #fafbfc;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  overflow: hidden;
}

.case-study-detail-template .blog-hero-wrap .blog-main-img {
  object-fit: contain;
  height: 480px;
  border-radius: 20px;
}

@media (max-width: 991px) {
  .case-study-detail-template .blog-hero-wrap .blog-main-img {
    height: 380px;
  }
}

@media (max-width: 576px) {
  .case-study-detail-template .blog-hero-wrap .blog-main-img {
    height: 280px;
  }
}

/* Article Content Body */
.blog-detail-content {
  padding-bottom: 120px;
}

.entry-content {
  font-size: 18px;
  line-height: 1.6;
  color: #3D3D3D;
}

.entry-content h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 50px 0 20px;
  color: #121212;
  line-height: 1.3;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content ul {
  margin: 32px 0;
  padding-left: 20px;
  list-style: disc;
}

.entry-content li {
  margin-bottom: 12px;
  padding-left: 8px;
  color: #3D3D3D;
}

.entry-content li strong {
  color: var(--color-dark);
}

/* Related Articles Section */
.related-posts-section {
  padding: 100px 0 120px;
  background: #fff;
}

.related-posts-grid-wrap {
  position: relative;
  margin-top: 40px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-nav-btn {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #2B3673;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(43, 54, 115, 0.2);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.related-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: #24667F;
}

.related-nav-btn img {
  width: 20px;
  height: 20px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .blog-detail-title {
    font-size: 32px;
  }

  .blog-hero-wrap .blog-main-img {
    height: 400px;
  }

  .related-posts-grid-wrap {
    overflow: visible !important;
  }

  .related-posts-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 20px !important;
    scrollbar-width: none !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 -20px !important;
    padding: 10px 20px 30px !important;
  }

  .related-posts-grid::-webkit-scrollbar {
    display: none !important;
  }

  .related-posts-grid .blog-grid-card {
    flex: 0 0 85% !important;
    /* Shows a peek of the next card on tablets to invite swiping */
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    margin: 0 !important;
  }

  .related-nav-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .blog-detail-title {
    font-size: 28px;
  }

  .related-posts-grid .blog-grid-card {
    flex: 0 0 100% !important;
    /* Exactly 1 slide per screen on mobile phones */
  }

  .blog-detail-meta {
    gap: 8px;
  }

  .blog-detail-meta .meta-sep {
    display: none;
  }
}



/* =========================================================
   SUCCESS STORIES TEMPLATE (.ss-)
   ========================================================= */
.ss-hero {
  padding: 10px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.ss-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Original background image with subtle scaling */
  background-image: url('../../uploads/2026/05/cfe8a7735860b7402ff1dace625222e6dab39d81-1-scaled.png');
  background-size: 1200px auto;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.ss-hero-content {
  position: relative;
  z-index: 1;
}

.ss-featured-showcase {
  padding-bottom: 120px;
}

.ss-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.ss-video-card {
  position: relative;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  height: 600px;
}

.ss-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 40%);
  color: #fff;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.play-btn img {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  padding: 20px;
}

.play-btn span {
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.video-author h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.video-author p {
  font-size: 15px;
  opacity: 0.8;
}

/* Quotes Column */
.ss-quotes-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ss-quote-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ss-quote-card.primary {
  flex: 1.2;
}

.quote-icon {
  margin-bottom: 16px;
}

.quote-icon img {
  width: 32px;
  height: 32px;
}

.quote-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 40px;
}

.ss-quote-card.mini .quote-text {
  font-size: 15px;
  margin-bottom: 32px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-info p {
  font-size: 13px;
  color: var(--color-muted);
}

.ss-mini-quotes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ss-quote-card.mini.dark {
  background: #244161;
  color: #fff;
}

.ss-quote-card.mini.dark .quote-text {
  color: #fff;
}

.ss-quote-card.mini.dark .author-info h4 {
  color: #fff;
}

.ss-quote-card.mini.dark .author-info p {
  color: rgba(255, 255, 255, 0.7);
}

/* Testimonial Grid */
.ss-grid-section {
  padding: 100px 0;
  background: #FBFBFB;
}

.ss-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ss-grid-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 32px;
  flex: 1;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .ss-showcase-row {
    grid-template-columns: 1fr;
  }

  .ss-testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .ss-mini-quotes-row {
    grid-template-columns: 1fr;
  }

  .ss-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .ss-video-card {
    height: 400px;
  }

  .play-btn img {
    width: 60px;
    height: 60px;
    padding: 15px;
  }
}



/* =========================================================
   SUCCESS DETAIL TEMPLATE (.sd-)
   ========================================================= */
.success-detail-template {
  background: #fff;
}

.sd-header {
  padding: 100px 0 60px;
}

.sd-header-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.sd-breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-muted);
}

.sd-breadcrumbs a {
  color: var(--color-primary);
  font-weight: 600;
}

.sd-breadcrumbs .sep {
  opacity: 0.5;
}

.sd-breadcrumbs .current {
  color: var(--color-dark);
}

.sd-hero-media {
  padding-bottom: 80px;
}

.sd-media-wrap {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.sd-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sd-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.sd-play-btn img {
  width: 32px;
  height: 32px;
}

/* Expert Spotlight */
.sd-expert-spotlight {
  padding: 60px 0;
}

.sd-expert-content {
  max-width: 900px;
  margin: 0 auto;
}

.expert-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.expert-role {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.expert-quote {
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  color: var(--color-body);
  position: relative;
}

/* About Content */
.sd-about-content {
  padding: 100px 0;
}

.sd-article-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--color-dark);
}

.sd-article-text {
  font-size: 17px;
  line-height: 1.8;
  color: #4A4A4A;
}

.sd-article-text p {
  margin-bottom: 16px;
}

/* Lead Gen Section */
.sd-lead-gen {
  padding: 80px 0;
  background: #244161;
  color: #fff;
  position: relative;
}

.sd-lead-gen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sd-lead-gen-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.sd-lead-gen-desc {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 40px;
}

.sd-contact-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sd-contact-meta .contact-link {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
}

.sd-form-card {
  background: #fff;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.sd-mini-form input,
.sd-mini-form textarea {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid #EBEBEB;
  background: #F9F9F9;
  font-family: inherit;
}

/* Mobile Fixes */
@media (max-width: 1024px) {
  .sd-lead-gen-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .sd-header-title {
    font-size: 32px;
  }

  .sd-media-wrap {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .sd-article-title {
    font-size: 28px;
  }

  .sd-form-card {
    padding: 40px 24px;
  }
}



/* =========================================================
   CASE STUDIES TEMPLATE (.cs-)
   ========================================================= */
.case-studies-template {
  background: #fff;
}

.cs-hero {
  padding: 120px 0 80px;
}

.cs-hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
}

.cs-filter-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid #EBEBEB;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(36, 102, 127, 0.1);
}

.filter-item.active {
  background: var(--gradient-brand-h);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(36, 102, 127, 0.25);
}

.filter-item img {
  width: 16px;
  opacity: 0.5;
}

/* Case Study Grid */
.cs-grid-section {
  padding-bottom: 120px;
}

.cs-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.cs-project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Default/Website Visual Style (Full-Bleed, Original look) --- */
.project-visual {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: #fafbfc;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cs-project-card:hover .project-visual {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.cs-project-card:hover .project-visual img {
  transform: scale(1.05);
}



.project-cat {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.project-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 16px;
}

.project-content {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.explore-link {
  margin-top: auto !important;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.explore-link:hover {
  text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .cs-project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cs-hero-title {
    font-size: 32px;
  }
}

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

  .cs-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-item {
    justify-content: center;
  }
}



/* =========================================================
   FAQ TEMPLATE (.faq-)
   ========================================================= */
.faq-template {
  background: #fff;
  padding-bottom: 120px;
}

.faq-hero {
  padding: 10px 0;
}

.faq-nav-section .ds-section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}

.faq-category-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.faq-tab {
  padding: 12px 40px;
  border-radius: 100px;
  border: 1px solid #EBEBEB;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-tab.active {
  background: #244161;
  color: #fff;
  border-color: #244161;
  box-shadow: 0 10px 20px rgba(36, 65, 97, 0.2);
}

.faq-list-section {
  max-width: 900px;
  margin: 0 auto;
}

.faq-group {
  display: none;
}

.faq-group.active {
  display: block;
}

.faq-template .ds-accordion-item {
  border: none;
  border-bottom: none;
  background: transparent;
  padding: 0;
}

.faq-template .ds-accordion-toggle {
  padding: 20px 0;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-dark);
}

.faq-template .ds-toggle-icon {
  margin-left: 20px;
  flex-shrink: 0;
}

.faq-template .ds-accordion-content {
  padding: 0;
}

.faq-template .ds-accordion-item.active .ds-accordion-content {
  max-height: 2000px !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding-bottom: 0px;
}

@media (max-width: 768px) {
  .faq-tab {
    padding: 10px 24px;
    flex: 1;
  }

  .ds-accordion-toggle {
    font-size: 20px !important;
  }

  .ds-accordion-content p {
    font-size: 18px !important;
  }
}



/* =========================================================
   CAREERS TEMPLATE (.careers-)
   ========================================================= */
.careers-template {
  background: #fff;
  padding-bottom: 0px;
}

.careers-hero {
  padding: 10px 0;
}

.careers-team-visual {
  margin-top: 40px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.team-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.careers-roles-section {
  padding: 80px 0;
  background: #FBFBFB;
}

.careers-job-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-card {
  background: #fff;
  padding: 48px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
}

.job-card-info {
  max-width: 700px;
}

.job-badge {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-primary);
  border-radius: 100px;
}

.job-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.job-meta {
  font-size: 14px;
  color: rgb(0 0 0 / 62%);
  margin-bottom: 16px;
}

.job-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
}

@media (max-width: 1024px) {
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .job-card {
    padding: 32px;
  }

  .job-title {
    font-size: 20px;
  }

  .team-img {
    height: 400px;
  }
}

/* =========================================================
   GLOBAL TYPOGRAPHY STANDARDIZATION
   ========================================================= */

/* Desktop / Base (screens larger than 768px) */
h1,
.hero-title,
.about-hero-title,
.contact-hero-title,
.faq-hero-title,
.ds-hero-title,
.service-hero-title,
.blog-hero-title,
.cs-hero-title {
  font-size: 48px !important;
}

h2,
.section-header h2,
.about-section-heading,
.ds-section-title,
.featured-row-title,
.mission-text-block h2,
.blog-heading,
.testimonials-heading {
  font-size: clamp(32px, 4vw, 48px) !important;
  font-weight: 500 !important;
  line-height: 1.25;
}

.services-title {
  font-size: 40px !important;
  font-weight: 500 !important;
  line-height: 1.2;
}

h3,
.ds-card-title,
.hero-testimonial-title,
.stats-about-text {
  font-size: clamp(22px, 2.5vw, 28px) !important;
}

h4,
.ds-accordion-title,
.faq-question h4 {
  font-size: clamp(20px, 2vw, 24px) !important;
}

h5 {
  font-size: 22px !important;
}

h6 {
  font-size: 18px !important;
}

p,
.blog-sub,
.testimonials-sub,
.prefooter-sub,
.blog-card-excerpt,
.faq-answer p,
.t-quote {
  font-size: 18px !important;
}

/* =========================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES
   ========================================================= */

@media (max-width: 1024px) {

  .ginger-wrap,
  .ds-container {
    padding: 0 24px !important;
  }

  .hero-section {
    grid-template-columns: 1fr !important;
    padding: 40px 20px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* About Page - Stats Text Responsive Fix */
  .about-stats-text {
    display: block !important;
    text-align: left !important;
  }

  .ds-about-intro-text {
    text-align: left !important;
    font-size: 26px !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {

  /* Prevent horizontal overflow strictly */
  html,
  body,
  #page {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
  }

  /* Unified Mobile Typography Scale (768px and below) */
  h1,
  .hero-title,
  .ds-hero-title,
  .about-hero-title,
  .contact-hero-title {
    font-size: 28px !important;
  }

  h2,
  .ds-section-title,
  .services-title,
  .blog-heading,
  .testimonials-heading,
  .prefooter-heading {
    font-size: 28px !important;
  }

  h3,
  .ds-card-title,
  .hero-testimonial-title,
  .stats-about-text {
    font-size: 20px !important;
  }

  h4,
  .ds-accordion-title,
  .faq-question h4 {
    font-size: 18px !important;
  }

  p,
  .ds-section-desc,
  .ds-hero-desc,
  .services-desc,
  .stat-desc,
  .blog-sub,
  .testimonials-sub,
  .t-quote,
  .prefooter-sub {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  /* Sections & Spacing - RESOLVING THE HUGE GAP */
  section,
  .ds-hero,
  .about-section,
  .contact-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .about-statement {
    padding-top: 10px !important;
    padding-bottom: 80px !important;
  }

  /* Fix for the Services -> About transition - MOBILE STICKY ANIMATION */
  .services-scroll-track {
    height: 100dvh !important;
    /* Perfect fit to eliminate gaps */
    position: relative !important;
    margin-bottom: 0 !important;
  }

  .services-section {
    position: sticky !important;
    top: 0 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

  .services-inner {
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .service-slide {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .service-slide .services-reveal-wrap {
    position: absolute !important;
    inset: 0 6px 0 0 !important;
    /* Float scrollbar inward by 6px to prevent rounded corner clipping */
    display: flex !important;
    align-items: flex-start !important;
    /* Fix flex overflow scroll bug */
    justify-content: center !important;
    transform: translateY(calc((1 - var(--srv-progress, 0)) * 15%)) !important;
    width: calc(100% - 6px) !important;
    /* Account for the 6px right inset */
    padding: 20px !important;
    z-index: 5 !important;
    overflow-y: scroll !important;
    /* Force persistent scrollbar track visibility for visual affordance */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .services-center {
    max-width: clamp(72%, 2vw + 74%, 78%) !important;
    padding: 0 !important;
    gap: clamp(6px, 2vh, 10px) !important;
    position: relative !important;
    z-index: 5 !important;
    margin: auto !important;
    /* Perfect vertical & horizontal centering with auto fallback */
  }

  .services-badge {
    font-size: clamp(9px, 2.2vw, 10.5px) !important;
    padding: clamp(3px, 1vw, 5px) clamp(8px, 2vw, 12px) !important;
    margin-bottom: 0 !important;
  }

  .services-title {
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    /* Soft text shadow for maximum readability over images */
  }

  .services-desc {
    font-size: clamp(11px, 2.8vw, 12.5px) !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 290px !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
  }

  .services-cta {
    font-size: clamp(11px, 2.8vw, 12.5px) !important;
    padding: clamp(6px, 1.8vw, 8px) clamp(14px, 3.5vw, 20px) !important;
    height: auto !important;
    margin-top: 2px !important;
  }

  /* Show corner images on mobile with reduced scale and opacity to prevent text overlap */
  .service-slide .services-photo {
    display: block !important;
    opacity: 0.75 !important;
    z-index: 1 !important;
    filter: none !important;
    border: 0px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    position: absolute !important;
  }

  .service-slide .services-photo-tl {
    top: 15px !important;
    left: 8px !important;
    width: clamp(75px, 20vw, 95px) !important;
    height: clamp(110px, 28vw, 135px) !important;
    transform: rotate(6deg) !important;
    bottom: auto !important;
    right: auto !important;
    margin-left: 0 !important;
  }

  .service-slide .services-photo-tr {
    top: 15px !important;
    right: 8px !important;
    width: clamp(75px, 20vw, 95px) !important;
    height: clamp(110px, 28vw, 135px) !important;
    transform: rotate(-6deg) !important;
    bottom: auto !important;
    left: auto !important;
    margin-left: 0 !important;
  }

  .service-slide .services-photo-bl {
    bottom: 15px !important;
    left: 8px !important;
    width: clamp(90px, 24vw, 115px) !important;
    height: clamp(60px, 16vw, 80px) !important;
    transform: rotate(-6deg) !important;
    top: auto !important;
    right: auto !important;
    margin-left: 0 !important;
  }

  .service-slide .services-photo-br {
    bottom: 15px !important;
    right: 8px !important;
    width: clamp(90px, 24vw, 115px) !important;
    height: clamp(60px, 16vw, 80px) !important;
    transform: rotate(6deg) !important;
    top: auto !important;
    left: auto !important;
    margin-left: 0 !important;
  }

  .home .stats-section {
    margin-top: 20px !important;
  }

  .stat-card-empty {
    display: none !important;
  }

  .hero-left {
    padding: 40px 20px !important;
    min-height: auto !important;
  }

  /* About Page - Stats Text */
  .about-stats-text {
    display: block !important;
    text-align: left !important;
  }

  .ds-about-intro-text {
    text-align: left !important;
    font-size: 24px !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  /* Front Page - Stats Intro */
  .stats-intro {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .stats-about-text {
    width: 100% !important;
    text-align: left !important;
    font-size: 24px !important;
  }

  .hero-right {
    display: none !important;
  }

  /* Partners Ticker Mobile Optimization */
  .partners-section {
    padding: 20px 0 !important;
  }

  .partners-ticker img {
    height: 85px !important;
  }

  .partners-ticker-wrap {
    height: 65px !important;
    margin-bottom: 20px !important;
  }

  .partners-ticker {
    gap: 30px !important;
  }

  .mission-text-block {
    font-size: 24px !important;
    padding: 0 15px !important;
    margin-top: 30px !important;
    line-height: 1.5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Grids & Container Layouts */
  .stats-grid,
  .ds-services-grid,
  .ds-industry-grid,
  .footer-grid,
  .ds-feature-grid,
  .ds-pm-feature-grid,
  .ds-growth-grid,
  .ds-success-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    text-align: left !important;
    gap: 40px !important;
    padding: 0 20px !important;
  }

  .footer-col {
    width: 100% !important;
  }

  .footer-links a {
    display: block !important;
    font-size: 18px !important;
    margin-bottom: 12px !important;
    white-space: normal !important;
    /* Allow normal wrapping if needed, but 1-col prevents it */
  }

  .footer-col-label {
    font-size: 14px !important;
    margin-bottom: 20px !important;
    opacity: 0.6;
  }

  .footer-newsletter-wrap {
    flex-direction: column !important;
    gap: 30px !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .ginger-footer::before {
    background-image: none !important;
  }

  .newsletter-content,
  .newsletter-main {
    width: 100% !important;
  }

  /* Noptin Mobile Single Line & Icon */
  .noptin-form-fields {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .noptin-form-field-email {
    flex: 1 !important;
  }

  .noptin-form-field-submit {
    flex: 0 0 60px !important;
    /* Increased width slightly */
  }

  .noptin-form input[type="email"],
  .noptin-form-field__email,
  .noptin-form input[type="submit"],
  .noptin-form-submit {
    height: 38px !important;
    /* Reduced height from 44px */
    border-radius: 6px !important;
  }

  .noptin-form input[type="submit"],
  .noptin-form-submit {
    width: 100% !important;
    padding: 0 !important;
    font-size: 0 !important;
    /* Hide "Sign Up" text */
    background-color: #2B3673 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M2.01 21L23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  .noptin-optin-field-wrapper {
    margin-top: 10px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 30px !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  /* Digital Solutions Collage Mobile Fix */
  .ds-collage {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 24px !important;
  }

  .ds-collage-item {
    grid-row: auto !important;
    grid-column: auto !important;
    height: auto !important;
    min-height: 200px !important;
  }

  .ds-img-main,
  .ds-img-sub {
    height: 400px !important;
  }

  .ds-stat-val {
    font-size: 54px !important;
  }

  .ds-stat-card {
    padding: 30px !important;
  }

  /* Slider Photos fade and scale */
  .services-photo {
    width: 200px !important;
    height: 250px !important;
    opacity: 0.3 !important;
  }
}

@media (max-width: 480px) {

  h1,
  .hero-title {
    font-size: 28px !important;
  }

  h2 {
    font-size: 24px !important;
  }

  .header-cta-wrapper {
    width: 100% !important;
  }

  .header-cta {
    width: 100% !important;
    justify-content: center;
  }
}

/* ===================== FINAL THEME REFINEMENTS ===================== */

.ds-accordion-item,
.ds-accordion-toggle,
.ds-accordion-content {
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

.ds-accordion-wrap,
.faq-group {
  max-width: 900px;
  margin: 0 auto !important;
}

.ds-accordion-item:first-child {
  border-top: none !important;
}

.ds-accordion-toggle {
  line-height: 1.5 !important;
  padding: 12px 0 !important;
  border-bottom: none !important;
  font-size: 24px !important;
}

.ds-accordion-content p {
  line-height: 1.7 !important;
  font-size: 20px !important;
  color: var(--color-body);
}

@media (max-width: 768px) {
  .ds-accordion-toggle {
    font-size: 20px !important;
  }

  .ds-accordion-content p {
    font-size: 18px !important;
  }
}

.iti {
  width: 100%;
}

.iti__country-list {
  z-index: 10000 !important;
}

/* Custom Hero Backgrounds Global Logic */
/* Custom Hero Backgrounds Global Logic */
.has-custom-hero-bg::before,
.careers-hero::before,
.contact-hero::before,
.ds-pm-hero::before,
.about-hero::before,
.blog-detail-header::before,
.blog-hero::before {
  content: '';
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  bottom: 0;
  /* Switched back to original image but with corrected non-zoomed scaling */
  background-image: url('../../uploads/2026/05/cfe8a7735860b7402ff1dace625222e6dab39d81-1-scaled.png') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center top;
  opacity: 0.35 !important;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Explicitly hide hero background for specific Digital Solutions main templates */
.ds-digitalsol-template .ds-hero::before,
.ds-technology-template .ds-hero::before,
.ds-cloud-template .ds-hero::before,
.ds-branding-template .ds-hero::before {
  display: none !important;
  background-image: none !important;
}

/* Removed the desktop background-image: none override for service pages */

.ginger-header {
  z-index: 10001 !important;
}

.mobile-nav.open {
  z-index: 10000 !important;
}

#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
}

.ginger-footer {
  margin-top: auto !important;
}

.site-footer,
.ast-small-footer,
.ast-footer-copyright,
#colophon {
  display: none !important;
}

/* Contact Info Icons Refinement */
.info-icon {
  background: transparent !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 24px !important;
}

.info-icon img {
  width: 100% !important;
  height: 100% !important;
  filter: none !important;
  /* Keep original PNG colors */
  object-fit: contain !important;
}

/* -- Scroll Lock Standardized -- */
html.no-scroll,
body.no-scroll,
html.mega-menu-active,
body.mega-menu-active {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed !important;
  width: 100% !important;
}

/* Final Specific Cleanup Overrides */
.partners-section {
  padding-top: 5px !important;
  padding-bottom: 25px !important;
}

.blog-section {
  padding-top: 40px !important;
  padding-bottom: 20px !important;
}

.testimonials-section {
  padding-top: 20px !important;
  padding-bottom: 40px !important;
}

.ginger-footer {
  padding-top: 60px !important;
  padding-bottom: 40px !important;
}

section {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.ds-hero,
.careers-hero,
.faq-hero {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.careers-template {
  background: #fff;
}

.careers-hero {
  padding: 10px 0;
}

.careers-team-visual {
  margin-top: 40px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.team-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.careers-roles-section {
  padding: 80px 0;
  background: #FBFBFB;
}

.careers-job-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-card {
  background: #fff;
  padding: 48px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
}

.job-card-info {
  max-width: 700px;
}

.job-badge {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 2px;
  border: px solid var(--color-primary);
  border-radius: 100px;
}

.job-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.job-meta {
  font-size: 14px;
  color: rgb(0 0 0 / 62%);
  margin-bottom: 16px;
}

.job-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .filter-item {
    justify-content: center;
  }
}

/* ===============================================================
   HIDE LOGOS SLIDER FROM SPECIFIC INNER SERVICE TEMPLATES
=============================================================== */
.ds-pm-template .partners-section,
.ds-pm-template .ds-partners,
.ds-growth-template .partners-section,
.ds-growth-template .ds-partners,
.ds-wd-template .partners-section,
.ds-wd-template .ds-partners,
.ds-ed-template .partners-section,
.ds-ed-template .ds-partners,
.ds-cwa-template .partners-section,
.ds-cwa-template .ds-partners,
.ds-mad-template .partners-section,
.ds-mad-template .ds-partners,
.ds-dh-template .partners-section,
.ds-dh-template .ds-partners,
.ds-bep-template .partners-section,
.ds-bep-template .ds-partners,
.ds-ws-template .partners-section,
.ds-ws-template .ds-partners {
  display: none !important;
}

/* ===============================================================
   INDUSTRY GRID SLIDER (MOBILE)
============================================================== */
.ds-industry-nav {
  display: none !important;
}

@media (max-width: 768px) {
  .ds-industry-grid-wrap {
    position: relative;
    padding-bottom: 20px;
    /* Full-bleed: expand wrap to 100vw regardless of parent container padding */
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    overflow: hidden;
  }

  .ds-industry-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 30px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    scroll-behavior: smooth !important;
  }

  .ds-industry-grid::-webkit-scrollbar {
    display: none !important;
  }

  .ds-industry-card {
    flex: 0 0 100vw !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    height: auto !important;
    border-radius: 0 !important;
  }

  .ds-industry-card img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .ds-industry-body {
    padding: 14px 24px !important;
  }

  /* Nav button overlaid at bottom-right corner of the image */
  .ds-industry-nav {
    display: flex !important;
    position: absolute !important;
    top: calc(240px - 30px) !important;
    right: 16px !important;
    z-index: 100 !important;
    margin: 0 !important;
  }

  .ds-industry-nav-btn {
    width: 44px !important;
    height: 44px !important;
    background: var(--gradient-brand-h) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  .ds-industry-nav-btn img {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ===============================================================
   SUCCESS GRID SLIDER (MOBILE)
============================================================== */
.ds-success-nav {
  display: flex !important;
  position: absolute;
  right: 20px;
  top: 290px;
  transform: translateY(-50%);
  z-index: 100;
}

.ds-success-nav-btn {
  width: 44px !important;
  height: 44px !important;
  background: linear-gradient(135deg, #24667F, #2B3673) !important;
  /* border: 5px solid #2B3673 !important; */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: transform 0.3s ease !important;
}

.ds-success-nav-btn:hover {
  transform: scale(1.1) !important;
}

.ds-success-nav-btn img {
  width: 24px;
  height: 24px;
}

.ds-success-grid-wrap {
  position: relative;
  margin: 0 -15px;
  padding: 0 15px;
}

.ds-success-grid {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  gap: 30px !important;
  padding: 20px 0 60px !important;
  scrollbar-width: none !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

.ds-success-grid::-webkit-scrollbar {
  display: none !important;
}

.ds-success-card {
  flex: 0 0 calc(33.333% - 20px) !important;
  scroll-snap-align: start !important;
  transition: opacity 0.4s ease;
}

@media (max-width: 1024px) {
  .ds-success-card {
    flex: 0 0 calc(50% - 15px) !important;
  }
}

@media (max-width: 768px) {
  .ds-success {
    padding: 60px 0 !important;
  }

  .ds-success-card {
    flex: 0 0 100% !important;
    text-align: left !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
  }

  .ds-success-body {
    align-items: flex-start !important;
    padding: 0 5px;
  }

  .ds-success-grid {
    gap: 20px !important;
    margin: 0 !important;
    padding: 20px 0 !important;
  }
}


/* Hide all badges on specific service templates except for the hero badge */
.ds-digitalsol-template .ds-badge,
.ds-technology-template .ds-badge,
.ds-cloud-template .ds-badge,
.ds-branding-template .ds-badge {
  display: none !important;
}

.ds-digitalsol-template .ds-hero .ds-badge,
.ds-technology-template .ds-hero .ds-badge,
.ds-cloud-template .ds-hero .ds-badge,
.ds-branding-template .ds-hero .ds-badge {
  display: inline-block !important;
}

/* Reduce gap between logo and hero section on Mobile Homepage */
@media (max-width: 768px) {
  .home .hero-section {
    padding-top: 5px !important;
  }
}

/* Specific override for Blog Heading */
.featured-row-title {
  font-size: 40px !important;
  font-weight: 500 !important;
}

.ds-section-title {
  font-size: 48px !important;
  font-weight: 500 !important;
}

/* =========================================================
   DYNAMIC CAREERS DETAIL PAGE & APPLICATION MODAL STYLES
   ========================================================= */

/* --- Page & Hero --- */
.cd-page {
  background: var(--color-white);
  font-family: var(--font-main);
  padding-bottom: 0 !important;
}

.cd-hero {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 120px 0 100px;
  position: relative;
  text-align: left;
}

.cd-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  max-width: 800px;
}

.cd-hero-title {
  color: var(--color-white);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
}

/* --- Breadcrumbs --- */
.cd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white-70);
  font-size: 14px;
}

.cd-breadcrumb a {
  color: var(--color-white-60);
  transition: var(--transition);
}

.cd-breadcrumb a:hover {
  color: var(--color-white);
}

.cd-bc-sep {
  color: var(--color-white-50);
}

.cd-bc-current {
  color: var(--color-white);
  font-weight: 600;
}

/* --- Intro Header Section --- */
.cd-intro-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 50px 0;
  display: none;
}

.cd-intro-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cd-intro-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cd-cat-badge {
  background: rgba(36, 102, 79, 0.08);
  color: #24667F;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.cd-job-title {
  color: var(--color-secondary);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
}

.cd-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cd-meta-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-body);
  font-size: 15px;
  font-weight: 500;
}

.cd-meta-chip i {
  color: var(--color-primary);
  font-size: 16px;
}

/* --- Content Layout --- */
.cd-content-section {
  padding: 80px 0 120px;
}

.cd-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.cd-section-heading {
  color: var(--color-secondary);
  font-size: 24px;
  font-weight: 800;
  margin-top: 50px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(36, 102, 127, 0.08);
}

.cd-job-description p {
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Custom bullet lists */
.cd-list-content ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.cd-list-content li {
  position: relative;
  padding-left: 28px;
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.6;
}

.cd-list-content li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(36, 102, 127, 0.15);
}

/* Bottom CTA block */
.cd-bottom-cta {

  border-radius: var(--radius-md);
  padding: 50px;
  text-align: center;
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cd-bottom-cta-title {
  color: var(--color-secondary);
  font-size: 26px;
  font-weight: 800;
}

.cd-bottom-cta-desc {
  color: var(--color-body);
  font-size: 16px;
  max-width: 550px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* --- Premium Apply Button --- */
.cd-apply-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  transition: var(--transition) !important;
}

.cd-apply-trigger-btn .btn-arrow {
  font-size: 18px;
  transition: transform var(--transition);
}

.cd-apply-trigger-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* =========================================================
   APPLICATION MODAL POPUP (Backdrop Blur & Slide-up)
   ========================================================= */
.app-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.app-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.app-modal-content {
  background: var(--color-white);
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 50px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(40px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal.is-visible .app-modal-content {
  transform: translateY(0) scale(1);
}

/* Close Modal Button */
.close-modal {
  position: absolute;
  right: 30px;
  top: 30px;
  font-size: 32px;
  color: var(--color-dark);
  opacity: 0.35;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.close-modal:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
  text-align: left;
  margin-bottom: 40px;
}

.modal-header h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.modal-header .primary-text {
  color: var(--color-primary);
}

.modal-header p {
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.5;
}

/* Form Styles */
#cdCareerForm {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
}

.form-group label .required {
  color: #cf2e2e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--color-dark);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(36, 102, 127, 0.15);
}

.form-group input[readonly] {
  background: rgba(18, 18, 18, 0.05);
  cursor: not-allowed;
  color: var(--color-body);
}

/* Force all text in the career application form to be black */
#cdCareerForm input,
#cdCareerForm textarea,
#cdCareerForm select {
  color: #121212 !important;
}

#cdCareerForm label,
.app-modal label,
.app-modal-content label,
.form-group label,
.app-modal-content .form-group label,
#cdCareerForm .form-group label {
  color: #121212 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#cdCareerForm input::placeholder,
#cdCareerForm textarea::placeholder {
  color: rgba(18, 18, 18, 0.5) !important;
}

/* Drag & Drop File Upload */
.file-upload-wrapper {
  border: 2px dashed rgba(36, 102, 127, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(36, 102, 127, 0.02);
  padding: 30px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-wrapper:hover,
.file-upload-wrapper.dragover {
  border-color: var(--color-primary);
  background: rgba(36, 102, 127, 0.05);
}

.file-upload-wrapper.has-file {
  border-style: solid;
  border-color: var(--color-primary);
  background: rgba(36, 102, 127, 0.03);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.file-upload-info .upload-icon {
  font-size: 32px;
  color: var(--color-primary);
  opacity: 0.7;
  transition: var(--transition);
}

.file-upload-wrapper:hover .upload-icon {
  transform: translateY(-2px);
  opacity: 1;
}

.file-upload-info .upload-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-body);
}

.file-upload-info .upload-text.is-active {
  color: var(--color-secondary);
}

.file-upload-info .success-icon {
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Submit Button & Status */
.app-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.app-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-spinner {
  font-size: 18px;
}

.form-status {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-status.status-success {
  padding: 15px;
  background: rgba(36, 102, 79, 0.08);
  color: #24664F;
  border: 1px solid rgba(36, 102, 79, 0.15);
}

.form-status.status-error {
  padding: 15px;
  background: rgba(207, 46, 46, 0.08);
  color: #cf2e2e;
  border: 1px solid rgba(207, 46, 46, 0.15);
}

/* Phone input validation */
.form-group input[type="tel"].invalid {
  border-color: #cf2e2e;
  box-shadow: 0 0 0 4px rgba(207, 46, 46, 0.15);
}

/* =========================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================= */
@media (max-width: 991px) {
  .cd-hero-title {
    font-size: 40px;
  }

  .cd-intro-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .cd-intro-right {
    width: 100%;
  }

  .cd-apply-trigger-btn {
    width: 100%;
    justify-content: center;
  }

  .app-modal-content {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .cd-hero {
    padding: 90px 0 70px;
  }

  .cd-hero-title {
    font-size: 32px;
  }

  .cd-intro-section {
    padding: 40px 0;
  }

  .cd-job-title {
    font-size: 26px;
  }

  .cd-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cd-content-section {
    padding: 50px 0 80px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cd-bottom-cta {
    padding: 30px;
  }

  .app-modal-content {
    padding: 30px 20px;
  }
}

.blog-detail-header {
  padding: 20px 0 80px;
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

.blog-detail-header::before {
  z-index: -1 !important;
  height: 480px !important;
  bottom: auto !important;
}

.blog-detail-header .ds-container {
  position: relative;
  z-index: 2;
}

/* =========================================================
   CASE STUDY DETAIL PAGE (.case-study-detail-)
   ========================================================= */
.case-study-detail-template {
  background: #fff;
}

.case-study-detail-template .blog-detail-content {
  padding-bottom: 120px;
}

.cs-detail-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.cs-detail-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #FBFBFB;
  border: 1px solid rgba(18, 18, 18, 0.05);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.widget-title {
  font-size: 20px;
  font-weight: 600;
  color: #121212;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.sidebar-blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-blog-item {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-blog-item:hover {
  transform: translateX(4px);
}

.sidebar-blog-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-blog-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-blog-title {
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.sidebar-blog-item:hover .sidebar-blog-title {
  color: var(--color-primary);
}

.sidebar-blog-date {
  font-size: 12px;
  color: #8E8E8E;
}

/* Custom Case Study Layout Sections */
.case-study-section {
  margin-bottom: 48px;
}

.case-study-section:last-child {
  margin-bottom: 0;
}

.case-study-section h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #121212;
  line-height: 1.3;
  position: relative;
}

.case-study-section p {
  font-size: 17px;
  line-height: 1.7;
  color: #3D3D3D;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .cs-detail-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .cs-detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .case-study-section h2 {
    font-size: 24px;
  }

  .case-study-section p {
    font-size: 16px;
  }

  .sidebar-widget {
    padding: 24px;
  }
}

/* =========================================================
   PARTNERS SCROLL TRACK & DYNAMIC PINNING (HOMEPAGE)
   ========================================================= */
.partners-scroll-track {
  position: relative;
  height: 100vh;
  /* Set to 100vh to remove the scrolling gap entirely */
  background-color: #fff;
  z-index: 5;
  margin: 0 !important;
  padding: 0 !important;
}

.partners-scroll-track .partners-section {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 100%;
  padding: 0 clamp(20px, 5vw, 60px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #fff;
  z-index: 10;
}

.partners-scroll-track .partners-ticker-wrap {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.partners-scroll-track .mission-text-block {
  margin: 40px auto 0;
  max-width: 1200px;
  line-height: 1.5;
  font-size: 38px;
}

.services-scroll-track {
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 991px) {
  .partners-scroll-track {
    height: 100vh;
    /* Keep 100vh on mobile as well to prevent any gaps */
  }

  .partners-scroll-track .mission-text-block {
    font-size: 26px;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .partners-scroll-track {
    height: auto !important;
    min-height: auto !important;
  }

  .partners-scroll-track .partners-section {
    height: auto !important;
    min-height: auto !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .partners-scroll-track .partners-ticker-wrap {
    margin-bottom: 15px !important;
  }

  .partners-scroll-track .mission-text-block {
    margin-top: 27px !important;
    font-size: 28px !important;
    line-height: 1.4 !important;
    margin-bottom: 60px;
  }

  .partners-label {
    margin-bottom: 15px !important;
  }
}

/* Short viewports — prevent services content from cropping */
@media (max-height: 750px) {
  .services-section {
    padding: 10px 4px !important;
  }

  .services-center {
    gap: 12px !important;
  }

  .services-title {
    font-size: 40px !important;
  }

  .services-desc {
    font-size: 20px !important;
    max-width: 400px !important;
    line-height: 1.5 !important;
  }

  .services-cta {
    height: 38px !important;
    padding: 0 28px !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   ASTRA SCROLL TO TOP — CUSTOM STYLE
   ========================================================= */

/* Base button: transparent bg, white circle border - Hidden by default */
#ast-scroll-top,
.ast-scroll-top {
  background: transparent !important;
  background-color: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 50% !important;
  width: 54px !important;
  height: 54px !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  /* No hover transition — only click animation */
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.3s ease, visibility 0.3s ease !important;
  overflow: visible !important;
}

/* Force visible ONLY when body has footer-in-view class */
body.footer-in-view #ast-scroll-top,
body.footer-in-view .ast-scroll-top {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hide the theme's default SVG / icon / font icon */
#ast-scroll-top svg,
.ast-scroll-top svg,
#ast-scroll-top .ast-icon,
.ast-scroll-top .ast-icon,
#ast-scroll-top i,
.ast-scroll-top i,
#ast-scroll-top span,
.ast-scroll-top span {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Inject ↑ as a pure CSS pseudo-element */
#ast-scroll-top::after,
.ast-scroll-top::after {
  content: '↑' !important;
  display: block !important;
  color: #9fa0a1 !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  font-family: system-ui, sans-serif !important;
  pointer-events: none !important;
}

/* Click-only animation — scale press & release */
#ast-scroll-top:active,
.ast-scroll-top:active {
  transform: scale(0.88) !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15) !important;
  border-color: #242525 !important;
}

/* =========================================================
   H1 FONT-SIZE OVERRIDE — SPECIFIC TEMPLATES ONLY
   Applies 64px ONLY to: Digital Solutions, Technology Solutions,
   Cloud & Infrastructure, Branding & Creative
   Does NOT affect any other template.
   ========================================================= */
.ds-digitalsol-template .ds-hero-title,
.ds-technology-template .ds-hero-title,
.ds-cloud-template .ds-hero-title,
.ds-branding-template .ds-hero-title {
  font-size: 64px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Disable card hover transformation & shadow expansion exclusively on case study detail page and blog detail page */
.case-study-detail-template .blog-grid-card:hover,
.blog-detail-template .blog-grid-card:hover {
  transform: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

/* Enable image hover scaling exclusively inside case study detail and blog detail page related cards */
.case-study-detail-template .blog-grid-card:hover .grid-card-visual img,
.blog-detail-template .blog-grid-card:hover .grid-card-visual img {
  transform: scale(1.06) !important;
}

/* Force all headings inside case study detail and blog detail content areas to be exactly 32px */
.case-study-detail-template .entry-content h1,
.case-study-detail-template .entry-content h2,
.case-study-detail-template .entry-content h3,
.case-study-detail-template .entry-content h4,
.case-study-detail-template .entry-content h5,
.case-study-detail-template .entry-content h6,
.blog-detail-template .entry-content h1,
.blog-detail-template .entry-content h2,
.blog-detail-template .entry-content h3,
.blog-detail-template .entry-content h4,
.blog-detail-template .entry-content h5,
.blog-detail-template .entry-content h6 {
  font-size: 32px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
  color: #121212 !important;
}

/* =========================================================
   CLIENTS LOGO GRID & INTERACTIVE FAQ ACCORDION STYLES
   ========================================================= */
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  border-left: 1px solid rgba(18, 18, 18, 0.08);
  width: 100%;
}

.clients-template .client-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  background: #fff;
  border-right: 1px solid rgba(18, 18, 18, 0.08);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  aspect-ratio: 1.6 / 1;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.clients-template .client-grid-item img {
  max-width: 90%;
  max-height: 110px;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}





@media (max-width: 991px) {
  .clients-template .clients-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .clients-template .clients-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-template .client-grid-item {
    padding: 24px 15px;
  }
}

/* =========================================================
   RESPONSIVE HEADINGS OVERRIDES (GLOBAL & HIGH SPECIFICITY)
   ========================================================= */

@media (max-width: 991px) {

  .ds-digitalsol-template .ds-hero-title,
  .ds-technology-template .ds-hero-title,
  .ds-cloud-template .ds-hero-title,
  .ds-branding-template .ds-hero-title,
  .ds-hero-title {
    font-size: 44px !important;
    line-height: 1.25 !important;
  }

  .ds-section-title {
    font-size: 36px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 768px) {

  .ds-digitalsol-template .ds-hero-title,
  .ds-technology-template .ds-hero-title,
  .ds-cloud-template .ds-hero-title,
  .ds-branding-template .ds-hero-title,
  .ds-hero-title {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }

  .ds-section-title {
    font-size: 28px !important;
    line-height: 1.35 !important;
  }

  .ds-hero-desc,
  .ds-section-desc {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .ds-success-body h3 {
    font-size: 20px !important;
  }

  .ds-accordion-header button {
    font-size: 18px !important;
  }
}

/* ==========================================================================
   Clients Template Premium Responsive Grid Styling (4 Columns & Dynamic Clipping)
   ========================================================================== */
.clients-template .clients-logo-grid-wrapper {
  overflow: hidden !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.clients-template .clients-logo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  /* 4 logos per row by default! */
  gap: 0 !important;
  /* No grid gap; we use clean item borders instead */
  background: transparent !important;
  /* Transparent parent background ensures no visual bugs in empty cells */
  border: none !important;
  padding: 0 !important;
  margin: 30px -1px -1px 0 !important;
  /* Negative right & bottom margins shift outer borders out of the wrapper */
  width: calc(100% + 1px) !important;
  /* Expands parent to offset the right negative margin */
}

.clients-template .client-grid-item {
  background: #ffffff !important;
  border: none !important;
  /* Disable raw borders to prevent browser subpixel rendering bugs */
  border-radius: 0 !important;
  height: 220px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  /* Elegant padding gives clean breathing room for partner logos */
  box-shadow: none !important;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

/* Perfect Caching-Proof & Subpixel-Proof Grid Lines via High-Priority Pseudo Elements */
.clients-template .client-grid-item::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 1px !important;
  background: rgba(18, 18, 18, 0.08) !important;
  /* Inner horizontal separators */
  z-index: 3 !important;
  /* Positioned on top of adjacent cell backgrounds to prevent overlap */
  pointer-events: none;
}

.clients-template .client-grid-item::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 1px !important;
  background: rgba(18, 18, 18, 0.08) !important;
  /* Inner vertical separators */
  z-index: 3 !important;
  /* Positioned on top of adjacent cell backgrounds to prevent overlap */
  pointer-events: none;
}

.clients-template .client-grid-item img {
  max-width: 100% !important;
  /* Clean, premium look prevents overcrowding */
  max-height: 150% !important;
  object-fit: contain !important;
  z-index: 2;
  transition: all 0.3s ease !important;
  display: block !important;
  margin: 0 auto !important;
  /* Ensure centered layout in all viewports */
}





/* Responsive Grid Adjustments */

/* Laptop View (Up to 1024px) */
@media (max-width: 1024px) {
  .clients-template .clients-logo-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .clients-template .client-grid-item {
    height: 180px !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Tablet View (Up to 768px) */
@media (max-width: 768px) {
  .clients-template .clients-logo-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .clients-template .client-grid-item {
    height: 150px !important;
    padding: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    /* Borders are inherited from base styles to keep inner lines intact */
  }

  .clients-template .client-grid-item img {
    margin: 0 auto !important;
    display: block !important;
  }
}

/* Mobile View (Up to 480px) */
@media (max-width: 480px) {
  .clients-template .clients-logo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .clients-template .client-grid-item {
    height: 130px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    /* Borders are inherited from base styles to keep inner lines intact */
  }

  .clients-template .client-grid-item img {
    margin: 0 auto !important;
    display: block !important;
  }
}

/* =========================================================
   HOMEPAGE SCROLL TRACKS (PARTNERS & SERVICES) RESPONSIVE FIXES (480PX & BELOW)
   ========================================================= */
@media (max-width: 480px) {

  /* 1. Partners / Logos Scroll Track fixes */
  .home .partners-scroll-track {
    height: auto !important;
    min-height: auto !important;
  }

  .home .partners-scroll-track .partners-section {
    height: auto !important;
    min-height: auto !important;
    padding: 30px 15px !important;
  }

  .home .partners-label {
    font-size: 13px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    opacity: 0.6 !important;
  }

  .home .partners-ticker-wrap {
    height: 70px !important;
    /* Balanced wrapper height to fit logos beautifully without cropping */
    margin-bottom: 15px !important;
  }

  .home .partners-ticker {
    gap: 20px !important;
  }

  .home .partners-ticker img {
    height: 90px !important;
    /* Balanced logo height (reduced slightly from 60px) for cleaner mobile layout */
    max-width: 120px !important;
  }

  .home .partners-scroll-track .mission-text-block {
    margin-top: 15px !important;
    margin-bottom: 30px !important;
    font-size: 19px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    padding: 0 10px !important;
  }

  /* 2. Services Scroll Track fixes */
  .home .services-scroll-track {
    height: 100dvh !important;
    position: relative !important;
  }

  .home .services-section {
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
  }

  .home .services-inner {
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
  }

  .home .service-slide .services-reveal-wrap {
    inset: 0 6px 0 0 !important;
    /* Float scrollbar inward by 6px to prevent rounded corner clipping */
    width: calc(100% - 6px) !important;
    /* Account for the 6px right inset */
    align-items: flex-start !important;
    /* Fix flex overflow scroll bug */
    justify-content: center !important;
    overflow-y: scroll !important;
    /* Force persistent scrollbar track visibility for visual affordance */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Compact spacing for services center to avoid overlap */
  .home .services-center {
    max-width: 86% !important;
    gap: 12px !important;
    margin: auto !important;
    /* Perfect vertical & horizontal centering with auto fallback */
    padding: 10px !important;
  }

  .home .services-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  .home .services-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    max-width: 290px !important;
    margin: 0 auto !important;
  }

  .home .services-cta {
    font-size: 11.5px !important;
    padding: 8px 18px !important;
    margin-top: 8px !important;
  }

  /* Corner Floating Accent Photos: larger mobile visuals, inset from the hard screen edges */
  .home .service-slide .services-photo {
    opacity: 1 !important;
    filter: none !important;
  }

  .home .service-slide .services-photo-tl {
    top: clamp(12px, 4vw, 18px) !important;
    left: clamp(12px, 4vw, 20px) !important;
    width: clamp(85px, 25vw, 105px) !important;
    height: clamp(120px, 35vw, 147px) !important;
    transform: rotate(6deg) !important;
  }

  .home .service-slide .services-photo-tr {
    top: clamp(12px, 4vw, 18px) !important;
    right: clamp(12px, 4vw, 20px) !important;
    width: clamp(85px, 25vw, 105px) !important;
    height: clamp(120px, 35vw, 147px) !important;
    transform: rotate(-6deg) !important;
  }

  .home .service-slide .services-photo-bl {
    bottom: clamp(12px, 4vw, 20px) !important;
    left: clamp(12px, 4vw, 20px) !important;
    width: clamp(105px, 29vw, 125px) !important;
    height: clamp(70px, 19.5vw, 84px) !important;
    transform: rotate(-6deg) !important;
  }

  .home .service-slide .services-photo-br {
    bottom: clamp(12px, 4vw, 20px) !important;
    right: clamp(12px, 4vw, 20px) !important;
    width: clamp(105px, 29vw, 125px) !important;
    height: clamp(70px, 19.5vw, 84px) !important;
    transform: rotate(6deg) !important;
  }
}

/* Homepage services tracker: phones and small tablets above the tiny-phone layout */
@media (min-width: 461px) and (max-width: 768px) {
  .home .services-scroll-track {
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    position: relative !important;
  }

  .home .services-section {
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .home .services-inner {
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .home .service-slide {
    padding: 0 22px !important;
    overflow: hidden !important;
  }

  .home .service-slide .services-reveal-wrap {
    inset: 0 6px 0 0 !important;
    /* Float scrollbar inward by 6px to prevent rounded corner clipping */
    width: calc(100% - 6px) !important;
    /* Account for the 6px right inset */
    transform: translateY(calc((1 - var(--srv-progress, 0)) * 10%)) !important;
    padding: clamp(24px, 5vw, 40px) !important;
    align-items: flex-start !important;
    /* Fix flex overflow scroll bug */
    justify-content: center !important;
    overflow-y: scroll !important;
    /* Force persistent scrollbar track visibility for visual affordance */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .home .services-center {
    max-width: min(82%, 460px) !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: auto !important;
    /* Perfect vertical & horizontal centering with auto fallback */
  }

  .home .services-badge {
    font-size: 10px !important;
    padding: 4px 12px !important;
  }

  .home .services-title {
    font-size: 28px !important;
    /* Title font size adjusted to 28px per user request */
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .home .services-desc {
    font-size: clamp(12.5px, 2.2vw, 14.5px) !important;
    line-height: 1.45 !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  .home .services-cta {
    height: auto !important;
    min-height: 38px !important;
    padding: 8px 22px !important;
    font-size: 11.5px !important;
    margin-top: 6px !important;
  }

  .home .service-slide .services-photo {
    opacity: 1 !important;
    filter: none !important;
    z-index: 1 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24) !important;
  }

  .home .service-slide .services-photo-tl {
    top: clamp(16px, 3.5vw, 32px) !important;
    left: clamp(16px, 3.5vw, 32px) !important;
    width: clamp(110px, 20vw, 150px) !important;
    height: clamp(155px, 28vw, 210px) !important;
    transform: rotate(6deg) !important;
  }

  .home .service-slide .services-photo-tr {
    top: clamp(16px, 3.5vw, 32px) !important;
    right: clamp(16px, 3.5vw, 32px) !important;
    width: clamp(110px, 20vw, 150px) !important;
    height: clamp(155px, 28vw, 210px) !important;
    transform: rotate(-6deg) !important;
  }

  .home .service-slide .services-photo-bl {
    bottom: clamp(16px, 3.5vw, 32px) !important;
    left: clamp(16px, 3.5vw, 32px) !important;
    width: clamp(130px, 24vw, 175px) !important;
    height: clamp(87px, 16vw, 117px) !important;
    transform: rotate(-6deg) !important;
  }

  .home .service-slide .services-photo-br {
    bottom: clamp(16px, 3.5vw, 32px) !important;
    right: clamp(16px, 3.5vw, 32px) !important;
    width: clamp(130px, 24vw, 175px) !important;
    height: clamp(87px, 16vw, 117px) !important;
    transform: rotate(6deg) !important;
  }
}

/* Homepage services tracker: move images inward on compact phones */
@media (min-width: 300px) and (max-width: 460px) {
  .home .service-slide .services-reveal-wrap {
    inset: 0 6px 0 0 !important;
    /* Float scrollbar inward by 6px to prevent rounded corner clipping */
    width: calc(100% - 6px) !important;
    /* Account for the 6px right inset */
    padding: 14px 0 !important;
    align-items: flex-start !important;
    /* Fix flex overflow scroll bug */
    justify-content: center !important;
    overflow-y: scroll !important;
    /* Force persistent scrollbar track visibility for visual affordance */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .home .services-center {
    max-width: min(85%, 290px) !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: auto !important;
    /* Perfect vertical & horizontal centering with auto fallback */
  }

  .home .services-badge {
    font-size: 10px !important;
    padding: 4px 10px !important;
  }

  .home .services-title {
    font-size: clamp(20px, 5.5vw, 24px) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .home .services-desc {
    font-size: clamp(11.5px, 3vw, 12.5px) !important;
    line-height: 1.4 !important;
    max-width: 250px !important;
    margin: 0 auto !important;
  }

  .home .services-cta {
    min-height: 34px !important;
    padding: 7px 16px !important;
    font-size: 11px !important;
    margin-top: 6px !important;
  }

  .home .service-slide .services-photo-tl {
    top: clamp(10px, 3.5vw, 16px) !important;
    left: clamp(10px, 3.5vw, 16px) !important;
    width: clamp(80px, 24vw, 95px) !important;
    height: clamp(112px, 34vw, 133px) !important;
    transform: rotate(6deg) !important;
  }

  .home .service-slide .services-photo-tr {
    top: clamp(10px, 3.5vw, 16px) !important;
    right: clamp(10px, 3.5vw, 16px) !important;
    width: clamp(80px, 24vw, 95px) !important;
    height: clamp(112px, 34vw, 133px) !important;
    transform: rotate(-6deg) !important;
  }

  .home .service-slide .services-photo-bl {
    bottom: clamp(12px, 4vw, 18px) !important;
    left: clamp(10px, 3.5vw, 16px) !important;
    width: clamp(100px, 28vw, 115px) !important;
    height: clamp(67px, 18.5vw, 77px) !important;
    transform: rotate(-6deg) !important;
  }

  .home .service-slide .services-photo-br {
    bottom: clamp(12px, 4vw, 18px) !important;
    right: clamp(10px, 3.5vw, 16px) !important;
    width: clamp(100px, 28vw, 115px) !important;
    height: clamp(67px, 18.5vw, 77px) !important;
    transform: rotate(6deg) !important;
  }
}