/* ============================================================
   DENTAIX — Header Fix + Robot Animation  (FINAL OVERRIDE)
   ============================================================ */

/* ── LOGO VISIBILITY ─────────────────────────────────────── */
img.dx-logo {
  display: block !important;
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}
.footer-logo img.dx-logo,
.footer-logo img.dx-logo-footer {
  height: 76px !important;
  max-height: 76px !important;
  width: auto !important;
}

/* Light mode = black text logo | Dark mode = white text logo */
html:not([data-theme]) .dx-logo-dark,
html[data-theme='light'] .dx-logo-dark { display: none !important; }
html:not([data-theme]) .dx-logo-light,
html[data-theme='light'] .dx-logo-light { display: block !important; }
html[data-theme='dark'] .dx-logo-light  { display: none !important; }
html[data-theme='dark'] .dx-logo-dark   { display: block !important; }

/* Dark sidebar + footer always use white logo */
.th-menu-wrapper.dx-mobile-sidebar .dx-logo-light,
.footer-logo .dx-logo-light { display: none !important; }
.th-menu-wrapper.dx-mobile-sidebar .dx-logo-dark,
.footer-logo .dx-logo-dark,
.footer-logo .dx-logo-footer { display: block !important; }

/* ── HEADER WRAPPER ─────────────────────────────────────── */
.th-header.header-layout2 {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  width: 100%;
}

.th-header.header-layout2 .sticky-wrapper {
  width: 100%;
}

/* Transparent by default */
.th-header.header-layout2 .menu-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100%;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Glass on scroll */
.th-header.header-layout2 .sticky-wrapper.sticky .menu-area {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(20px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
  box-shadow: 0 2px 20px rgba(0,40,120,0.10) !important;
}
html[data-theme='dark'] .th-header.header-layout2 .sticky-wrapper.sticky .menu-area {
  background: rgba(4,8,20,0.94) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.40) !important;
}

/* ── INNER CONTAINER — standard Bootstrap width ─────────── */
.th-header.header-layout2 .menu-area > .container,
.th-header.header-layout2 .menu-area > .container-fluid {
  max-width: 1280px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* ── ROW — proper 3-column layout ───────────────────────── */
.th-header.header-layout2 .menu-area .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 70px !important;
  margin: 0 !important;
}

/* ── COL: LOGO (left) ───────────────────────────────────── */
.th-header.header-layout2 .header-logo {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.th-header.header-layout2 .header-logo a,
a.dx-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
}

/* ── COL: NAV (center, desktop only) ───────────────────── */
@media (min-width: 992px) {
  .th-header.header-layout2 .col-auto.d-none.d-lg-block {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0 16px !important;
  }
}

@media (max-width: 991.98px) {
  .th-header.header-layout2 .col-auto.d-none.d-lg-block,
  .th-header.header-layout2 .main-menu.style2 {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 0 !important;
    pointer-events: none !important;
  }

  .th-header.header-layout2 .menu-area .row {
    justify-content: space-between !important;
  }

  .th-header.header-layout2 .header-button .th-btn2 {
    display: none !important;
  }

  .th-header.header-layout2 .header-button {
    gap: 8px !important;
    margin-left: auto !important;
  }

  .th-header.header-layout2 .header-button .dx-theme-toggle {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
  }
}

/* Kill theme's large vertical padding on nav links */
.th-header.header-layout2 .main-menu > ul > li > a,
.th-header.header-layout2 .main-menu.style2 > ul > li > a,
.th-header.header-layout2 .main-menu ul li a {
  padding: 8px 14px !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  color: var(--title-color, #0b1b33) !important;
  border-radius: 8px !important;
  line-height: 1.4 !important;
  display: inline-block !important;
  transition: color 0.2s ease, background 0.2s ease !important;
}

.th-header.header-layout2 .main-menu > ul > li {
  margin: 0 2px !important;
  padding: 0 !important;
}

.th-header.header-layout2 .main-menu > ul {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Nav link hover */
.th-header.header-layout2 .main-menu ul li a:hover {
  color: #0088ff !important;
  background: rgba(0,136,255,0.07) !important;
}

/* Dark mode nav */
html[data-theme='dark'] .th-header.header-layout2 .main-menu ul li a {
  color: rgba(235,242,255,0.92) !important;
}
html[data-theme='dark'] .th-header.header-layout2 .main-menu ul li a:hover {
  color: #52b4ff !important;
  background: rgba(82,180,255,0.10) !important;
}

/* ── COL: RIGHT BUTTONS ─────────────────────────────────── */
.th-header.header-layout2 .header-button {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
}

/* Theme toggle */
.th-header .dx-theme-toggle {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(0,136,255,0.22) !important;
  background: rgba(255,255,255,0.55) !important;
  color: #0088ff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background 0.25s, transform 0.25s !important;
}
.th-header .dx-theme-toggle:hover {
  transform: scale(1.08) !important;
  background: #e8f4ff !important;
}
html[data-theme='dark'] .th-header .dx-theme-toggle {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(100,150,220,0.28) !important;
  color: #52b4ff !important;
}
.th-header .dx-theme-toggle .fa-sun,
.th-header .dx-theme-toggle .fa-moon { font-size: 16px !important; }
html:not([data-theme]) .dx-theme-toggle .fa-sun,
html[data-theme='light'] .dx-theme-toggle .fa-sun  { display: none !important; }
html:not([data-theme]) .dx-theme-toggle .fa-moon,
html[data-theme='light'] .dx-theme-toggle .fa-moon { display: inline-block !important; }
html[data-theme='dark'] .dx-theme-toggle .fa-moon  { display: none !important; }
html[data-theme='dark'] .dx-theme-toggle .fa-sun   { display: inline-block !important; }

/* Start Free Trial button */
.th-header .th-btn2 {
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  border-radius: 50px !important;
  line-height: 1.4 !important;
}

/* Hero top padding — below fixed header */
@media (min-width: 1200px) {
  .th-hero-wrapper.hero-2 {
    padding-top: 72px !important;
    padding-bottom: 40px !important;
    min-height: auto !important;
  }
}
@media (max-width: 1199px) {
  .th-hero-wrapper.hero-2 { padding-top: 82px !important; }
  .th-header.header-layout2 .main-menu ul li a {
    padding: 8px 10px !important;
    font-size: 14px !important;
  }
}
@media (max-width: 991px) {
  img.dx-logo { height: 40px !important; max-height: 40px !important; }
  .footer-logo img.dx-logo,
  .footer-logo img.dx-logo-footer { height: 58px !important; max-height: 58px !important; }
  .th-hero-wrapper.hero-2 { padding-top: 80px !important; }
}
@media (max-width: 575px) {
  img.dx-logo { height: 34px !important; max-height: 34px !important; }
  .th-header.header-layout2 .menu-area > .container,
  .th-header.header-layout2 .menu-area > .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ── ROBOT / CTA SECTION ────────────────────────────────── */
.space-extra-top.space-bottom.dx-cta-section,
body.theme .space-extra-top.space-bottom.dx-cta-section {
  padding-bottom: 56px !important;
  overflow: visible !important;
}

.dx-cta-section > .container {
  padding-left: 15px !important;
  padding-right: 15px !important;
  overflow: visible !important;
}

.space-extra-top.space-bottom { overflow: visible !important; position: relative; }

.cta-area3.space:not(.dx-cta-panel) {
  overflow: hidden !important;
  position: relative !important;
  min-height: 0 !important;
  padding: 36px 56px 0 28px !important;
  border-radius: 24px !important;
  margin-bottom: 0 !important;
}

/* Bottom edge soft blur */
.cta-area3.space:not(.dx-cta-panel)::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 4;
  pointer-events: none;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(
    to top,
    rgba(6, 22, 72, 0.7) 0%,
    rgba(6, 22, 72, 0.25) 55%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}

.cta-area3 .row {
  align-items: flex-end !important;
  overflow: visible !important;
  min-height: 0 !important;
  position: relative;
  z-index: 2;
}

.cta-area3 .col-lg-6:first-child {
  position: relative !important;
  display: block !important;
  align-self: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 380px !important;
  line-height: 0 !important;
}

.cta-area3 .cta-image {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-end !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  pointer-events: none !important;
}

/* Floating particles around robot */
.cta-area3 .cta-image::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee8ff;
  top: 12%;
  left: 6%;
  z-index: 3;
  box-shadow:
    24px  48px 0 0 rgba(110, 232, 255, 1),
    52px  96px 0 0 rgba(0, 200, 255, 0.95),
    -18px 120px 0 0 rgba(82, 180, 255, 0.9),
    70px  168px 0 0 rgba(0, 170, 255, 0.88),
    -36px 210px 0 0 rgba(120, 220, 255, 0.85),
    44px  252px 0 0 rgba(0, 190, 255, 0.82),
    -8px  300px 0 0 rgba(90, 210, 255, 0.8),
    88px  340px 0 0 rgba(0, 160, 255, 0.78),
    -52px 380px 0 0 rgba(110, 232, 255, 0.75),
    20px  420px 0 0 rgba(0, 200, 255, 0.7);
  filter: blur(0.3px);
  animation: particleDrift 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes particleDrift {
  0%   { transform: translate(0, 0); opacity: 0.85; }
  50%  { transform: translate(10px, -12px); opacity: 1; }
  100% { transform: translate(-8px, 6px); opacity: 0.9; }
}

/* Robot — flush to section bottom */
.cta-area3 .cta-image img {
  display: block !important;
  position: relative !important;
  width: auto !important;
  height: 540px !important;
  max-height: 62vh !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(0) !important;
  vertical-align: bottom !important;
  animation: robotFloat 4s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 28px rgba(0, 140, 255, 0.55))
    drop-shadow(0 0 70px rgba(0, 80, 255, 0.28))
    drop-shadow(0 40px 60px rgba(0, 0, 0, 0.22)) !important;
}

@keyframes robotFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Glow under robot */
.cta-area3 .cta-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 42px;
  background: radial-gradient(ellipse at center,
    rgba(0, 180, 255, 0.65) 0%,
    rgba(0, 100, 255, 0.32) 45%,
    transparent 75%);
  border-radius: 50%;
  animation: glowPulse 2.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.75; }
  50%      { transform: translateX(-50%) scaleX(1.35); opacity: 1; }
}

/* Flame */
.robot-flames {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.robot-flames::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 42px;
  left: -9px;
  bottom: 0;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(120, 210, 255, 0.88) 22%,
    rgba(0, 150, 255, 0.80) 50%,
    rgba(0, 60, 220, 0.40) 80%,
    transparent 100%);
  filter: blur(1.5px);
  animation: flameDance 1.3s ease-in-out infinite;
}

.robot-flames::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 26px;
  left: -5px;
  bottom: 0;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(180deg,
    rgba(210, 240, 255, 0.95) 0%,
    rgba(80, 190, 255, 0.85) 38%,
    rgba(0, 110, 255, 0.50) 72%,
    transparent 100%);
  filter: blur(1px);
  animation: flameDance 0.95s ease-in-out infinite reverse;
}

@keyframes flameDance {
  0%   { transform: scaleX(1) scaleY(1) rotate(-2deg); opacity: 0.9; }
  25%  { transform: scaleX(1.2) scaleY(1.15) rotate(3deg); opacity: 1; }
  50%  { transform: scaleX(0.85) scaleY(1.28) rotate(-4deg); opacity: 0.95; }
  75%  { transform: scaleX(1.15) scaleY(0.9) rotate(2deg); opacity: 1; }
  100% { transform: scaleX(1) scaleY(1) rotate(-2deg); opacity: 0.9; }
}

/* Sparks — brighter & more visible */
.robot-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ef0ff;
  box-shadow:
    0 0 6px 2px rgba(110, 232, 255, 0.95),
    0 0 14px 4px rgba(0, 160, 255, 0.55);
  pointer-events: none;
  z-index: 3;
  animation: sparkFly 2.4s ease-out infinite;
}

.robot-spark:nth-child(3)  { left: calc(50% - 55px); bottom: 38%; animation-delay: 0s;    --sx: -28px; --sy: -90px; }
.robot-spark:nth-child(4)  { left: calc(50% + 35px);  bottom: 42%; animation-delay: 0.4s;  --sx: 22px;  --sy: -110px; width: 6px; height: 6px; }
.robot-spark:nth-child(5)  { left: calc(50% - 20px);  bottom: 55%; animation-delay: 0.9s;  --sx: -14px; --sy: -130px; }
.robot-spark:nth-child(6)  { left: calc(50% + 58px);  bottom: 30%; animation-delay: 1.3s;  --sx: 32px;  --sy: -85px;  width: 6px; height: 6px; }
.robot-spark:nth-child(7)  { left: calc(50% - 72px);  bottom: 48%; animation-delay: 0.2s;  --sx: -36px; --sy: -100px; width: 5px; height: 5px; }
.robot-spark:nth-child(8)  { left: calc(50% + 12px);  bottom: 62%; animation-delay: 1.6s;  --sx: 10px;  --sy: -140px; }
.robot-spark:nth-child(9)  { left: calc(50% - 38px);  bottom: 25%; animation-delay: 2s;    --sx: -18px; --sy: -75px;  width: 5px; height: 5px; }
.robot-spark:nth-child(10) { left: calc(50% + 68px);  bottom: 52%; animation-delay: 0.7s;  --sx: 38px;  --sy: -120px; }
.robot-spark:nth-child(11) { left: calc(50% - 8px);   bottom: 68%; animation-delay: 1.1s;  --sx: 4px;   --sy: -150px; width: 6px; height: 6px; }

@keyframes sparkFly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  55%  { opacity: 0.9; }
  100% { transform: translate(var(--sx, 20px), var(--sy, -100px)) scale(0.4); opacity: 0; }
}

/* CTA text column */
.cta-area3 .col-lg-6:last-child {
  padding: 24px 0 52px !important;
}

.cta-area3 .title-area {
  margin-bottom: 20px !important;
}

/* CTA button — clean pill */
.cta-area3 .th-btn2.dx-cta-btn,
.cta-area3 .th-btn2.style3 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 15px 28px !important;
  height: auto !important;
  min-height: 52px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  background: #fff !important;
  color: #0b1b33 !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease !important;
}

.cta-area3 .th-btn2.dx-cta-btn::before,
.cta-area3 .th-btn2.style3::before {
  background-color: #0088ff !important;
}

.cta-area3 .th-btn2.dx-cta-btn:hover,
.cta-area3 .th-btn2.style3:hover {
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 36px rgba(0, 120, 255, 0.4) !important;
}

.cta-area3 .th-btn2 .icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  line-height: 0 !important;
}

.cta-area3 .th-btn2 img {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.cta-area3 .th-btn2:hover img {
  filter: brightness(0) invert(1) !important;
}

.cta-area3 .btn-group {
  justify-content: flex-start !important;
  margin-top: 4px !important;
}

@media (max-width: 991px) {
  .cta-area3.space:not(.dx-cta-panel) { padding: 32px 28px 0 !important; min-height: auto !important; }
  .cta-area3 .col-lg-6:first-child { min-height: 300px !important; }
  .cta-area3 .cta-image img { height: 340px !important; max-height: 50vh !important; }
  .cta-area3 .row { min-height: auto !important; }
  .cta-area3 .col-lg-6:last-child { padding-bottom: 36px !important; text-align: center; }
  .cta-area3 .btn-group { justify-content: center !important; }
}

@media (max-width: 575px) {
  .cta-area3 .col-lg-6:first-child { min-height: 240px !important; }
  .cta-area3 .cta-image img { height: 260px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-area3 .cta-image img,
  .cta-area3 .cta-image::after,
  .cta-area3 .cta-image::before,
  .robot-flames::before,
  .robot-flames::after,
  .robot-spark { animation: none !important; }
}

/* Final CTA overrides — beat older custom.css rules (legacy layout only) */
.cta-area3:not(.dx-cta-panel),
.cta-area3.space:not(.dx-cta-panel) {
  padding-bottom: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.cta-area3:not(.dx-cta-panel) .row {
  align-items: flex-end !important;
  min-height: 0 !important;
}

.cta-area3:not(.dx-cta-panel) .cta-image {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* ── BRAND / INTEGRATIONS CAROUSEL ─────────────────────── */
.dx-brand-section {
  padding-bottom: 8px !important;
}

.dx-brand-section .title-area {
  margin-bottom: 8px !important;
}

.dx-brand-slider-wrap {
  padding: 4px 0 20px !important;
  overflow: hidden;
}

.dx-brand-section .brand-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 40, 90, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.dx-brand-section .brand-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 60, 160, 0.08);
}

.dx-brand-section .brand-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.dx-brand-section .brand-item img {
  display: block;
  width: auto !important;
  max-width: 130px;
  height: 36px !important;
  max-height: 36px !important;
  object-fit: contain;
  opacity: 0.92;
}

html[data-theme='dark'] .dx-brand-section .brand-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .dx-brand-section .brand-item img {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

/* ── SITE SCALE — normal 100% feel (not zoomed) ─────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.theme {
  font-size: 15px;
}

body.theme .container,
body.theme .th-container,
.th-header.header-layout2 .menu-area > .container,
.th-header.header-layout2 .menu-area > .container-fluid,
.th-hero-wrapper.hero-2 > .container,
body.theme .footer-wrapper > .container {
  max-width: 1280px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Contact uses wider inner card */
body.theme .contact-sec > .container.th-container4 {
  max-width: 1320px !important;
}

body.theme .space,
body.theme .space-top,
body.theme .space-bottom {
  padding-top: 88px !important;
  padding-bottom: 88px !important;
}

body.theme .space-extra,
body.theme .space-extra-top,
body.theme .space-extra-bottom {
  padding-top: 104px !important;
  padding-bottom: 104px !important;
}

.hero-style2 .hero-title {
  font-size: clamp(2.125rem, 4.5vw, 3.75rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem !important;
  font-weight: 700 !important;
}

.hero-style2 .hero-text {
  font-size: 1rem !important;
  line-height: 1.65 !important;
  margin-bottom: 1.75rem !important;
}

.sec-title {
  font-size: clamp(1.625rem, 2.5vw, 2.375rem) !important;
  line-height: 1.15 !important;
}

.th-btn, .th-btn2 {
  font-size: 0.9375rem !important;
  padding: 0.72rem 1.35rem !important;
}

/* Header + hero share same .container — logo aligns with heading */
.th-header.header-layout2 .header-logo {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.hero-style2 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 1199px) {
  .th-hero-wrapper.hero-2 {
    min-height: auto;
    display: block;
    padding-top: 78px !important;
    padding-bottom: 40px !important;
  }

  .hero-2 .hero-style2 {
    padding: 0 0 24px !important;
  }
}

#case-studies-sec .service-box {
  padding: 16px !important;
  height: 100%;
}

#case-studies-sec .service-box .box-wrapp {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}

#case-studies-sec .service-box .box-img {
  min-width: 0 !important;
  width: 100% !important;
  order: 2;
  margin-top: 12px;
}

#case-studies-sec .service-box .box-content {
  order: 1;
  width: 100%;
  padding-right: 48px;
}

#case-studies-sec .service-box .box-icon {
  margin-bottom: 12px !important;
}

#case-studies-sec .service-box .box-text {
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin-bottom: 20px !important;
}

#case-studies-sec .service-box .box-title {
  font-size: 1.125rem !important;
  line-height: 1.3 !important;
}

#case-studies-sec .serviceSlider {
  padding-top: 8px;
}

#case-studies-sec .swiper-slide {
  height: auto;
}

/* ── CONTACT — centered layout, balanced columns ── */
.contact-sec .contact-area .row {
  align-items: center !important;
}

.contact-sec .contact-area {
  padding: 56px 48px 56px 56px !important;
}

.contact-sec .contact-form .title {
  max-width: none !important;
  font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
  line-height: 1.2 !important;
}

.contact-sec .contact-form select,
.contact-sec .contact-form .form-control,
.contact-sec .contact-form .form-select,
.contact-sec .contact-form textarea,
.contact-sec .contact-form input {
  font-size: 16px !important;
}

.contact-sec .contact-review {
  padding: 28px 28px 32px !important;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-sec .contact-review .box-profile {
  margin-bottom: 24px !important;
}

.contact-sec .contact-review .box-text {
  font-size: clamp(1rem, 1.35vw, 1.25rem) !important;
  line-height: 1.55 !important;
  text-transform: none !important;
}

@media (min-width: 1200px) {
  .contact-sec .col-xl-4 {
    flex: 0 0 34%;
    max-width: 34%;
  }

  .contact-sec .col-xl-8 {
    flex: 0 0 66%;
    max-width: 66%;
  }
}

@media (max-width: 1299px) {
  .contact-sec .contact-area {
    padding: 48px 32px !important;
  }
}

@media (max-width: 991px) {
  .contact-sec .contact-area {
    padding: 40px 24px !important;
  }

  #case-studies-sec .service-box .box-content {
    padding-right: 40px;
  }
}
