/* ==========================================================================
   Dentaix FLOW — Premium Dark Mode
   Loaded after dentaix-custom.css; only applies when data-theme="dark"
   ========================================================================== */

html[data-theme='dark'] {
  --dx-blue: #52b4ff;
  --dx-blue-dark: #9ed0ff;
  --dx-blue-soft: rgba(82, 180, 255, 0.1);
  --dx-bg: #030508;
  --dx-bg-a: #030508;
  --dx-bg-b: #070b14;
  --dx-bg-c: #0a101a;
  --dx-bg-subtle: #050810;
  --dx-bg-elevated: #0a0f18;
  --dx-surface: #0e1420;
  --dx-surface-2: #121a28;
  --dx-text: #f4f7ff;
  --dx-text-muted: #9aa8c4;
  --dx-text-faint: #5f6d88;
  --dx-border: rgba(120, 155, 210, 0.14);
  --dx-border-strong: rgba(120, 155, 210, 0.26);
  --dx-glow-line: linear-gradient(90deg, transparent 0%, rgba(82, 180, 255, 0.45) 50%, transparent 100%);
  --dx-header-glass: rgba(3, 5, 8, 0.82);
  --dx-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --dx-shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
  --dx-card-bg: #0e1420;
  --dx-card-border: rgba(120, 155, 210, 0.12);
  --dx-blue-section: linear-gradient(135deg, #031528 0%, #0a2855 48%, #051a38 100%);
  color-scheme: dark;
}

/* ---- Foundation: override ALL template variables ---- */
html[data-theme='dark'] body.theme {
  --theme-color: #52b4ff;
  --theme-color2: #9ed0ff;
  --title-color: #f4f7ff;
  --body-color: #9aa8c4;
  --smoke-color: rgba(120, 155, 210, 0.1);
  --smoke-color2: #0a0f18;
  --smoke-color3: rgba(82, 180, 255, 0.08);
  --smoke-color4: rgba(82, 180, 255, 0.04);
  --white-color: #ffffff;
  --gray-color: rgba(120, 155, 210, 0.15);
  --black-color: #f4f7ff;
  --black-color2: #030508;
  --th-border-color: rgba(120, 155, 210, 0.12);
  --yellow-color: #ffc857;
  background-color: var(--dx-bg) !important;
  background-image: none !important;
}

/* ---- Typography ---- */
html[data-theme='dark'] body.theme p,
html[data-theme='dark'] body.theme .fs-18,
html[data-theme='dark'] body.theme .box-text,
html[data-theme='dark'] body.theme .about-text {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .sec-title,
html[data-theme='dark'] body.theme .box-title,
html[data-theme='dark'] body.theme .widget_title,
html[data-theme='dark'] body.theme .hero-title,
html[data-theme='dark'] body.theme h1,
html[data-theme='dark'] body.theme h2,
html[data-theme='dark'] body.theme h3,
html[data-theme='dark'] body.theme h4,
html[data-theme='dark'] body.theme h5 {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .sub-title,
html[data-theme='dark'] body.theme .sub-title.style3 {
  color: var(--dx-blue);
}

html[data-theme='dark'] body.theme .text-theme,
html[data-theme='dark'] body.theme a.text-theme {
  color: var(--dx-blue) !important;
}

html[data-theme='dark'] body.theme .sec-title .title,
html[data-theme='dark'] body.theme .sec-title span:not(.text-theme) {
  color: var(--dx-text);
}

/* ---- Header ---- */
html[data-theme='dark'] body.theme .th-header.header-layout2 .menu-area {
  background: transparent !important;
}

html[data-theme='dark'] body.theme .th-header.header-layout2 .sticky-wrapper:not(.sticky) .main-menu.style2 ul li a {
  color: #f4f7ff;
}

html[data-theme='dark'] body.theme .th-header.header-layout2 .sticky-wrapper:not(.sticky) .main-menu.style2 ul li a:hover {
  color: var(--dx-blue);
}

html[data-theme='dark'] body.theme .th-header.header-layout2 .sticky-wrapper.sticky {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme='dark'] body.theme .th-header.header-layout2 .sticky-wrapper.sticky .menu-area {
  background: rgba(3, 5, 8, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dx-border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme='dark'] body.theme .th-header.header-layout2 .sticky-wrapper.sticky .main-menu.style2 ul li a {
  color: #f4f7ff;
}

html[data-theme='dark'] body.theme .th-btn2.style2 {
  color: var(--dx-text);
  border-color: var(--dx-border-strong);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] body.theme .th-btn2.style2:hover {
  background: var(--dx-blue);
  border-color: var(--dx-blue);
  color: #fff;
}

html[data-theme='dark'] body.theme .dx-theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--dx-border);
  color: var(--dx-blue);
}

/* ---- Mobile menu ---- */
html[data-theme='dark'] .th-menu-wrapper .th-menu-area {
  background: var(--dx-bg-elevated);
}

html[data-theme='dark'] .th-menu-wrapper .mobile-logo {
  background: var(--dx-surface);
}

html[data-theme='dark'] .th-mobile-menu ul li a {
  color: var(--dx-text);
  border-color: var(--dx-border);
}

html[data-theme='dark'] .th-mobile-menu ul li a:hover {
  color: var(--dx-blue);
}

/* ---- Hero: pure dark (no image) ---- */
html[data-theme='dark'] .th-hero-wrapper.hero-2 {
  background-image: none !important;
  background-color: var(--dx-bg-a) !important;
  position: relative;
}

html[data-theme='dark'] .th-hero-wrapper.hero-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(82, 180, 255, 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(82, 180, 255, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
  display: block;
}

html[data-theme='dark'] .th-hero-wrapper.hero-2 .container,
html[data-theme='dark'] .th-hero-wrapper.hero-2 > .container-fluid,
html[data-theme='dark'] .th-hero-wrapper.hero-2 .hero-inner {
  position: relative;
  z-index: 2;
}

html[data-theme='dark'] .th-hero-wrapper.hero-2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--dx-glow-line);
  pointer-events: none;
  z-index: 2;
}

html[data-theme='dark'] body.theme .hero-style2 .hero-title {
  color: #f4f7ff;
}

html[data-theme='dark'] body.theme .hero-style2 .hero-title .text-theme {
  color: var(--dx-blue) !important;
}

html[data-theme='dark'] body.theme .hero-style2 .hero-text {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .hero-2 .hero-bottom-text {
  background-color: var(--dx-card-bg);
  box-shadow: var(--dx-shadow);
  border: 1px solid var(--dx-card-border);
}

html[data-theme='dark'] body.theme .hero-2 .hero-bottom-text .title {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .hero-style2 .client-box .rating,
html[data-theme='dark'] body.theme .hero-style2 .client-box .client-review .rating {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .hero-style2 .client-box .client-review i {
  color: var(--yellow-color);
}

/* ---- Luxury section rhythm (solid sections only — image sections keep their BG) ---- */
html[data-theme='dark'] body.theme #features-sec,
html[data-theme='dark'] body.theme #testi-sec,
html[data-theme='dark'] body.theme .space-bottom.overflow-hidden:not(.space-extra-top),
html[data-theme='dark'] body.theme #blog-sec {
  background-color: var(--dx-bg-a) !important;
}

html[data-theme='dark'] body.theme #about-sec,
html[data-theme='dark'] body.theme #about-sec + .overflow-hidden.space-top,
html[data-theme='dark'] body.theme #case-studies-sec + section.space,
html[data-theme='dark'] body.theme #testi-sec + section.position-relative.space-bottom,
html[data-theme='dark'] body.theme .space-extra-top.space-bottom {
  background-color: var(--dx-bg-b) !important;
}

html[data-theme='dark'] body.theme #about-sec,
html[data-theme='dark'] body.theme #features-sec,
html[data-theme='dark'] body.theme #case-studies-sec,
html[data-theme='dark'] body.theme #case-studies-sec + section.space,
html[data-theme='dark'] body.theme .space-extra-top.space-bottom,
html[data-theme='dark'] body.theme #testi-sec,
html[data-theme='dark'] body.theme #testi-sec + section.position-relative.space-bottom,
html[data-theme='dark'] body.theme .space-bottom.overflow-hidden:not(.space-extra-top),
html[data-theme='dark'] body.theme #faq-sec,
html[data-theme='dark'] body.theme #blog-sec,
html[data-theme='dark'] body.theme .contact-sec {
  position: relative;
  isolation: isolate;
}

html[data-theme='dark'] body.theme #about-sec::before,
html[data-theme='dark'] body.theme #features-sec::before,
html[data-theme='dark'] body.theme #case-studies-sec::before,
html[data-theme='dark'] body.theme #case-studies-sec + section.space::before,
html[data-theme='dark'] body.theme .space-extra-top.space-bottom::before,
html[data-theme='dark'] body.theme #testi-sec::before,
html[data-theme='dark'] body.theme #testi-sec + section.position-relative.space-bottom::before,
html[data-theme='dark'] body.theme .space-bottom.overflow-hidden:not(.space-extra-top)::before,
html[data-theme='dark'] body.theme #faq-sec::before,
html[data-theme='dark'] body.theme #blog-sec::before,
html[data-theme='dark'] body.theme .contact-sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1180px);
  height: 1px;
  background: var(--dx-glow-line);
  pointer-events: none;
  z-index: 3;
}

html[data-theme='dark'] body.theme #about-sec::after,
html[data-theme='dark'] body.theme #features-sec::after,
html[data-theme='dark'] body.theme #testi-sec::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(82, 180, 255, 0.07) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

html[data-theme='dark'] body.theme #about-sec > .container,
html[data-theme='dark'] body.theme #features-sec > .container,
html[data-theme='dark'] body.theme #case-studies-sec > .container,
html[data-theme='dark'] body.theme #testi-sec > .container,
html[data-theme='dark'] body.theme #faq-sec > .container,
html[data-theme='dark'] body.theme #blog-sec > .container,
html[data-theme='dark'] body.theme .contact-sec > .container {
  position: relative;
  z-index: 2;
}

/* ---- Section backgrounds: image on Case Studies, FAQ, CTA & Contact ---- */
html[data-theme='dark'] #case-studies-sec[data-bg-src] {
  background-image: url('../img/bg/case_studies_bg.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #031528 !important;
}

html[data-theme='dark'] #case-studies-sec[data-bg-src]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.68);
  pointer-events: none;
  z-index: 1;
}

html[data-theme='dark'] #faq-sec[data-bg-src] {
  background-image: url('../img/bg/faq_bg_dental.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #031528 !important;
}

html[data-theme='dark'] #faq-sec[data-bg-src]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.7);
  pointer-events: none;
  z-index: 1;
}

html[data-theme='dark'] #case-studies-sec > .container,
html[data-theme='dark'] #faq-sec > .container {
  position: relative;
  z-index: 2;
}

/* Blue section typography */
html[data-theme='dark'] #case-studies-sec .sec-title,
html[data-theme='dark'] #case-studies-sec .sec-title .title,
html[data-theme='dark'] #case-studies-sec .sec-title span:not(.text-theme),
html[data-theme='dark'] #faq-sec .sec-title,
html[data-theme='dark'] #faq-sec .sec-title .title,
html[data-theme='dark'] #faq-sec .sec-title span:not(.text-theme) {
  color: #f4f7ff !important;
}

html[data-theme='dark'] #case-studies-sec .sub-title,
html[data-theme='dark'] #faq-sec .sub-title {
  color: #9ed0ff !important;
}

html[data-theme='dark'] #case-studies-sec .fs-18,
html[data-theme='dark'] #faq-sec .fs-18,
html[data-theme='dark'] #faq-sec .box-text {
  color: rgba(244, 247, 255, 0.78) !important;
}

/* Case studies cards on blue bg */
html[data-theme='dark'] #case-studies-sec .service-box::before {
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
  transition: background 0.3s ease, box-shadow 0.3s ease, outline-color 0.3s ease;
}

html[data-theme='dark'] #case-studies-sec .service-box:hover::before {
  background: rgba(82, 180, 255, 0.16) !important;
  outline-color: rgba(82, 180, 255, 0.42);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(82, 180, 255, 0.2) !important;
}

html[data-theme='dark'] #case-studies-sec .service-box .box-title,
html[data-theme='dark'] #case-studies-sec .service-box .box-title a {
  color: #f4f7ff !important;
}

html[data-theme='dark'] #case-studies-sec .service-box .box-text {
  color: rgba(244, 247, 255, 0.72) !important;
}

html[data-theme='dark'] #case-studies-sec .service-box .icon-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

html[data-theme='dark'] #case-studies-sec .service-box:hover .icon-btn {
  background: var(--dx-blue) !important;
  border-color: var(--dx-blue) !important;
}

html[data-theme='dark'] #case-studies-sec .service-box .box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  line-height: 0;
  box-sizing: border-box;
}

html[data-theme='dark'] #case-studies-sec .service-box .box-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

html[data-theme='dark'] #case-studies-sec .service-box:hover .box-icon {
  background: rgba(82, 180, 255, 0.18);
  border-color: rgba(82, 180, 255, 0.35);
}

html[data-theme='dark'] #case-studies-sec .slider-arrow {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

html[data-theme='dark'] #case-studies-sec .slider-arrow:hover {
  background: var(--dx-blue) !important;
  border-color: var(--dx-blue) !important;
}

/* FAQ cards on blue bg */
html[data-theme='dark'] #faq-sec .faq-card {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

html[data-theme='dark'] #faq-sec .faq-card .box-title {
  color: #f4f7ff !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme='dark'] #faq-sec .faq-card .box-content {
  background: rgba(3, 8, 18, 0.38) !important;
}

html[data-theme='dark'] #faq-sec .faq-card .box-content .box-text {
  color: rgba(244, 247, 255, 0.75) !important;
}

html[data-theme='dark'] #faq-sec .faq-card:hover {
  background: rgba(82, 180, 255, 0.92) !important;
  border-color: rgba(158, 208, 255, 0.8) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32) !important;
  transform: translateY(-3px);
}

html[data-theme='dark'] #faq-sec .faq-card:hover .box-title {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme='dark'] #faq-sec .faq-card:hover .box-content {
  background: rgba(0, 0, 0, 0.12) !important;
}

html[data-theme='dark'] #faq-sec .faq-card:hover .box-content .box-text {
  color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme='dark'] .contact-sec {
  background-image: none !important;
  background-size: auto !important;
  background-position: center center !important;
  background-color: #122139 !important;
  border: 1px solid rgba(110, 145, 220, 0.14) !important;
  border-radius: 48px 48px 28px 28px !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24) !important;
  margin: 0 40px 32px !important;
}

@media (max-width: 1699px) {
  html[data-theme='dark'] .contact-sec {
    margin: 0 20px 28px !important;
  }
}

html[data-theme='dark'] .breadcumb-wrapper[data-bg-src] {
  background-image: none !important;
  background-color: var(--dx-bg-b) !important;
}

html[data-theme='dark'] .footer-wrapper.footer-layout2[data-bg-src] {
  background-image: none !important;
  background-color: #09101f !important;
  border-top: 1px solid rgba(110, 145, 220, 0.16) !important;
  position: relative;
}

html[data-theme='dark'] .footer-wrapper.footer-layout2[data-bg-src]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(120, 165, 255, 0.42), transparent) !important;
  pointer-events: none !important;
}

html[data-theme='dark'] body.theme .testi-box .rating {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(82, 180, 255, 0.1);
}

html[data-theme='dark'] body.theme .testi-box .shape {
  display: none !important;
}

html[data-theme='dark'] .contact-sec::after {
  display: none !important;
  content: none !important;
}

html[data-theme='dark'] .footer-wrapper.footer-layout2 .container {
  position: relative;
  z-index: 2;
}

/* ---- Feature cards ---- */
html[data-theme='dark'] body.theme .feature-box {
  background: var(--dx-card-bg) !important;
  border: 1px solid var(--dx-card-border);
  box-shadow: var(--dx-shadow) !important;
}

html[data-theme='dark'] body.theme .feature-box .box-title {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .feature-box .box-text {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .feature-box .box-img {
  border-radius: 12px;
  overflow: hidden;
}

html[data-theme='dark'] body.theme .feature-box .box-img img {
  opacity: 0.92;
}

/* ---- Service cards ---- */
html[data-theme='dark'] body.theme .service-box::before {
  background: var(--dx-card-bg) !important;
  box-shadow: var(--dx-shadow) !important;
}

html[data-theme='dark'] body.theme .service-box .box-title,
html[data-theme='dark'] body.theme .service-box .box-title a {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .service-box .box-text {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .service-box .icon-btn {
  background: var(--dx-surface-2);
  border-color: var(--dx-border);
}

html[data-theme='dark'] body.theme .service-box .icon-btn:hover {
  background: var(--dx-blue);
  border-color: var(--dx-blue);
}

/* ---- Process section ---- */
html[data-theme='dark'] body.theme .process-card .number {
  color: rgba(130, 165, 220, 0.18);
}

html[data-theme='dark'] body.theme .process-card .box-title {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .process-card .box-text {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .process-card_wrapp:not(:last-child) .process-card {
  border-right-color: var(--dx-border);
}

html[data-theme='dark'] body.theme .process-card_wrapp:not(:last-child) .process-card .icon-btn {
  background-color: var(--dx-surface-2) !important;
  border-color: var(--dx-border) !important;
}

html[data-theme='dark'] body.theme .process-line,
html[data-theme='dark'] body.theme hr.process-line {
  border-color: var(--dx-border) !important;
  opacity: 1;
}

/* ---- Testimonials ---- */
html[data-theme='dark'] body.theme .testi-box {
  background: linear-gradient(160deg, rgba(12, 18, 30, 0.98) 0%, rgba(7, 11, 20, 0.99) 100%) !important;
  border: 1px solid rgba(82, 180, 255, 0.2);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme='dark'] body.theme .testi-box:hover {
  border-color: rgba(82, 180, 255, 0.42);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(82, 180, 255, 0.12) !important;
}

html[data-theme='dark'] body.theme .testi-box .box-text {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .testi-box .box-title {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .testi-box .box-desig {
  color: var(--dx-text-faint);
}

html[data-theme='dark'] body.theme .testi-box .rating i {
  color: var(--yellow-color);
}

html[data-theme='dark'] body.theme .testi-box::before {
  background-color: var(--dx-blue) !important;
}

html[data-theme='dark'] body.theme .testi-box:hover .box-text,
html[data-theme='dark'] body.theme .testi-box:hover .box-title,
html[data-theme='dark'] body.theme .testi-box:hover .box-desig {
  color: #fff;
}

html[data-theme='dark'] body.theme .swiper-pagination-progressbar {
  background: var(--dx-surface-2) !important;
}

html[data-theme='dark'] body.theme .swiper-pagination-progressbar-fill {
  background: var(--dx-blue) !important;
}

/* ---- Pricing ---- */
html[data-theme='dark'] body.theme .price-card,
html[data-theme='dark'] body.theme .price-card_wrapp:nth-child(2) .price-card,
html[data-theme='dark'] body.theme .price-card_wrapp:nth-child(3) .price-card {
  background-color: var(--dx-card-bg) !important;
  border: 1px solid var(--dx-card-border);
  box-shadow: var(--dx-shadow);
}

html[data-theme='dark'] body.theme .price-card.active {
  background: linear-gradient(160deg, rgba(82, 180, 255, 0.14) 0%, var(--dx-card-bg) 100%) !important;
  border-color: rgba(82, 180, 255, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(82, 180, 255, 0.2), var(--dx-shadow);
}

html[data-theme='dark'] body.theme .price-card .box-content {
  border-bottom-color: var(--dx-border);
}

html[data-theme='dark'] body.theme .price-card .box-title,
html[data-theme='dark'] body.theme .price-card .subtitle,
html[data-theme='dark'] body.theme .price-card .box-price,
html[data-theme='dark'] body.theme .price-card .available-list li {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .price-card .duration {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .price-card .available-list li::after {
  color: var(--dx-blue);
}

html[data-theme='dark'] body.theme .price-card .th-btn2 {
  border-color: var(--dx-border-strong);
  color: var(--dx-text);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme='dark'] body.theme .price-card.active .th-btn2 {
  background-color: var(--dx-blue) !important;
  border-color: var(--dx-blue) !important;
  color: #fff !important;
}

html[data-theme='dark'] body.theme .price-card .offer-tag {
  background: var(--dx-surface-2) !important;
  color: var(--dx-text) !important;
  border: 1px solid var(--dx-border);
}

html[data-theme='dark'] body.theme .pricing-tabs .toggler {
  background: var(--dx-surface-2) !important;
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .pricing-tabs .toggler.toggler--is-active {
  background-color: var(--dx-blue) !important;
  color: #fff !important;
}

html[data-theme='dark'] body.theme .pricing-tabs .switch-area .switch {
  background: var(--dx-surface) !important;
}

/* ---- Integration ---- */
html[data-theme='dark'] body.theme .integration-icon {
  background-color: var(--dx-surface-2) !important;
  border: 1px solid var(--dx-border);
  box-shadow: var(--dx-shadow);
}

html[data-theme='dark'] body.theme .integration-icon img {
  filter: brightness(1.1);
}

html[data-theme='dark'] body.theme .integration-area .fs-18 {
  color: var(--dx-text-muted);
}

/* ---- FAQ ---- */
html[data-theme='dark'] body.theme .faq-card {
  background: var(--dx-card-bg) !important;
  border-color: var(--dx-card-border) !important;
}

html[data-theme='dark'] body.theme .faq-card .box-title {
  color: var(--dx-text) !important;
  border-bottom-color: var(--dx-border) !important;
}

html[data-theme='dark'] body.theme .faq-card .box-content {
  background-color: var(--dx-surface-2) !important;
}

html[data-theme='dark'] body.theme .faq-card .box-content .box-text {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .faq-card:hover {
  background: var(--dx-blue) !important;
  border-color: var(--dx-blue) !important;
}

html[data-theme='dark'] body.theme .faq-card:hover .box-content {
  background-color: rgba(0, 0, 0, 0.15) !important;
}

html[data-theme='dark'] body.theme .faq-card:hover .box-content .box-text {
  color: rgba(255, 255, 255, 0.9);
}

/* ---- Blog ---- */
html[data-theme='dark'] body.theme .blog-card.style2 .box-content {
  background: transparent;
}

html[data-theme='dark'] body.theme .blog-card .box-title,
html[data-theme='dark'] body.theme .blog-card .box-title a {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .blog-card .box-title a:hover {
  color: var(--dx-blue);
}

html[data-theme='dark'] body.theme .blog-card .blog-meta a {
  color: var(--dx-text-faint) !important;
}

html[data-theme='dark'] body.theme .blog-card .box-img img {
  opacity: 0.9;
}

/* ---- Brand logos ---- */
html[data-theme='dark'] body.theme .brand-item img {
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

html[data-theme='dark'] body.theme .brand-item:hover img {
  opacity: 0.85;
}

html[data-theme='dark'] body.theme .brand-item a {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px;
  display: block;
  border: 1px solid var(--dx-border);
}

/* ---- Contact: BG image + clean white form card ---- */
html[data-theme='dark'] .contact-area {
  position: relative;
  z-index: 2;
  background-color: #ffffff !important;
  -webkit-mask-image: url('../img/bg/contact_bg_shape.png') !important;
  mask-image: url('../img/bg/contact_bg_shape.png') !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: 100% 100% !important;
  mask-size: 100% 100% !important;
  border: none;
  border-radius: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  padding: 80px 48px 80px 120px !important;
  overflow: hidden;
}

html[data-theme='dark'] .contact-area::before {
  display: none;
}

@media (max-width: 1299px) {
  html[data-theme='dark'] .contact-area {
    padding: 72px 40px !important;
  }
}

@media (max-width: 991px) {
  html[data-theme='dark'] .contact-area {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    border-radius: 24px;
    padding: 48px 24px !important;
  }
}

html[data-theme='dark'] body.theme .contact-area .contact-form .title {
  color: #06050b !important;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.25;
  margin-bottom: 28px;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .form-group {
  margin-bottom: 18px;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .form-control,
html[data-theme='dark'] body.theme .contact-area .contact-form .form-select,
html[data-theme='dark'] body.theme .contact-area .contact-form textarea,
html[data-theme='dark'] body.theme .contact-area .contact-form input,
html[data-theme='dark'] body.theme .contact-area .contact-form .nice-select {
  background: #f4f7ff !important;
  border: 1px solid #c8d6ea !important;
  border-bottom: 1px solid #c8d6ea !important;
  border-radius: 10px !important;
  color: #06050b !important;
  height: 52px !important;
  padding: 0 18px !important;
  font-size: 16px !important;
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(6, 5, 11, 0.04) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme='dark'] body.theme .contact-area .contact-form textarea.form-control,
html[data-theme='dark'] body.theme .contact-area .contact-form textarea {
  min-height: 130px !important;
  height: auto !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  resize: vertical;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .form-control:focus,
html[data-theme='dark'] body.theme .contact-area .contact-form .form-select:focus,
html[data-theme='dark'] body.theme .contact-area .contact-form textarea:focus,
html[data-theme='dark'] body.theme .contact-area .contact-form input:focus,
html[data-theme='dark'] body.theme .contact-area .contact-form .nice-select.open,
html[data-theme='dark'] body.theme .contact-area .contact-form .nice-select:focus {
  border-color: #0088ff !important;
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15) !important;
  background: #ffffff !important;
  outline: none;
}

html[data-theme='dark'] body.theme .contact-area .contact-form input::placeholder,
html[data-theme='dark'] body.theme .contact-area .contact-form textarea::placeholder,
html[data-theme='dark'] body.theme .contact-area .contact-form .form-control::placeholder {
  color: #5f6d88 !important;
  opacity: 1;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .form-select {
  background-color: #f4f7ff !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2306050B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 16px center !important;
  background-repeat: no-repeat !important;
  padding-right: 42px !important;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .nice-select {
  background: #f4f7ff !important;
  line-height: 50px;
  padding-right: 42px !important;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .nice-select::after {
  border-bottom-color: #06050b;
  border-right-color: #06050b;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .nice-select .current {
  color: #06050b;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .form-btn {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(6, 5, 11, 0.08);
  gap: 16px;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .box-text {
  color: #4a607a !important;
  font-size: 14px;
  line-height: 1.55;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .th-btn {
  min-width: 210px;
  border-radius: 999px;
  flex-shrink: 0;
}

html[data-theme='dark'] body.theme .contact-area .contact-form .form-messages {
  color: #4a607a;
}

html[data-theme='dark'] body.theme .contact-area .contact-review {
  background: #eef4ff !important;
  border: 1px solid #d4e3f7;
  border-radius: 24px;
  box-shadow: none;
  padding: 28px 32px 36px !important;
  height: 100%;
}

html[data-theme='dark'] body.theme .contact-area .contact-review .box-profile {
  margin-bottom: 32px;
}

html[data-theme='dark'] body.theme .contact-area .contact-review .box-author {
  border: none;
  box-shadow: none;
}

html[data-theme='dark'] body.theme .contact-area .contact-review .box-quote img {
  filter: none;
  opacity: 1;
}

html[data-theme='dark'] body.theme .contact-area .contact-review .box-text {
  color: #06050b !important;
  font-size: clamp(17px, 2vw, 28px);
  line-height: 1.4;
}

html[data-theme='dark'] body.theme .contact-area .contact-review .box-title {
  color: #06050b;
}

html[data-theme='dark'] body.theme .contact-area .contact-review .box-desig {
  color: #0088ff;
}

/* Contact page info cards */
html[data-theme='dark'] body.theme .contact-media {
  background: linear-gradient(160deg, var(--dx-surface) 0%, var(--dx-bg-elevated) 100%) !important;
  border: 1px solid var(--dx-border);
  box-shadow: var(--dx-shadow-soft);
}

html[data-theme='dark'] body.theme .contact-media:nth-child(2),
html[data-theme='dark'] body.theme .contact-media:nth-child(3) {
  background: linear-gradient(160deg, var(--dx-surface) 0%, var(--dx-bg-elevated) 100%) !important;
}

html[data-theme='dark'] body.theme .contact-media::before {
  opacity: 0.25;
}

html[data-theme='dark'] body.theme .contact-media .icon-btn {
  background: rgba(82, 180, 255, 0.12) !important;
  border: 1px solid rgba(82, 180, 255, 0.25);
  color: var(--dx-blue) !important;
}

html[data-theme='dark'] body.theme .contact-media:hover .icon-btn {
  background: var(--dx-blue) !important;
  border-color: var(--dx-blue);
  color: #fff !important;
}

html[data-theme='dark'] body.theme .contact-media .box-title {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .contact-media .box-text,
html[data-theme='dark'] body.theme .contact-media a {
  color: var(--dx-text-muted) !important;
}

html[data-theme='dark'] body.theme .contact-media a:hover {
  color: var(--dx-blue) !important;
}

html[data-theme='dark'] body.theme .space.overflow-hidden:has(.contact-media) {
  background: var(--dx-bg-a) !important;
}

/* ---- Footer ---- */
html[data-theme='dark'] body.theme .footer-wrapper {
  background-color: #050810 !important;
}

html[data-theme='dark'] body.theme .footer-wrapper .about-text,
html[data-theme='dark'] body.theme .footer-wrapper .menu a,
html[data-theme='dark'] body.theme .copyright-text {
  color: #8fa0be;
}

html[data-theme='dark'] body.theme .footer-wrapper .menu a:hover {
  color: var(--dx-blue);
}

html[data-theme='dark'] body.theme .footer-wrapper .widget_title {
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .footer-wrapper .th-social a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dx-border);
  color: var(--dx-text);
}

html[data-theme='dark'] body.theme .footer-wrapper .th-social a:hover {
  background: var(--dx-blue);
  border-color: var(--dx-blue);
  color: #fff;
}

/* ---- Buttons ---- */
html[data-theme='dark'] body.theme .th-btn {
  background: var(--dx-blue);
  color: #fff;
}

html[data-theme='dark'] body.theme .th-btn2 {
  background: var(--dx-blue);
  color: #fff;
  border-color: var(--dx-blue);
}

html[data-theme='dark'] body.theme .th-btn2.style3 {
  background: #fff;
  color: var(--dx-bg);
  border-color: #fff;
}

html[data-theme='dark'] body.theme .th-btn2.style3:hover {
  background: var(--dx-blue);
  color: #fff;
  border-color: var(--dx-blue);
}

html[data-theme='dark'] body.theme .icon-btn {
  background: var(--dx-surface-2);
  border-color: var(--dx-border);
}

/* ---- Sliders & arrows ---- */
html[data-theme='dark'] body.theme .slider-arrow {
  background: var(--dx-surface-2) !important;
  border: 1px solid var(--dx-border);
}

html[data-theme='dark'] body.theme .slider-arrow img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

html[data-theme='dark'] body.theme .slider-arrow:hover {
  background: var(--dx-blue) !important;
  border-color: var(--dx-blue);
}

html[data-theme='dark'] body.theme .slider-arrow.style2 {
  background: var(--dx-card-bg) !important;
}

/* ---- Checklist ---- */
html[data-theme='dark'] body.theme .checklist li,
html[data-theme='dark'] body.theme .about-checklist li {
  color: var(--dx-text-muted);
}

/* ---- Scroll to top ---- */
html[data-theme='dark'] .scroll-top {
  background: var(--dx-surface-2);
  border: 1px solid var(--dx-border);
}

html[data-theme='dark'] .scroll-top svg path {
  stroke: var(--dx-blue);
}

/* ---- Cursor ---- */
html[data-theme='dark'] .cursor-inner {
  background-color: var(--dx-blue);
}

html[data-theme='dark'] .cursor-outer {
  border-color: var(--dx-blue);
}

/* ---- CTA banner: keep theme background image ---- */
html[data-theme='dark'] .cta-area3.dx-cta-panel,
html[data-theme='dark'] .cta-area3.space.dx-cta-panel {
  background-image: none !important;
  background-color: #122139 !important;
  background-size: auto !important;
  background-position: center center !important;
  border: 1px solid var(--dx-border-strong);
  border-radius: 24px !important;
  box-shadow: var(--dx-shadow);
  overflow: visible !important;
}

html[data-theme='dark'] .space-extra-top.space-bottom {
  background: var(--dx-bg-b) !important;
}

html[data-theme='dark'] .cta-area3 .sec-title,
html[data-theme='dark'] .cta-area3 .box-text {
  color: #ffffff !important;
}

/* ---- Breadcrumb (contact page) ---- */
html[data-theme='dark'] .breadcumb-wrapper {
  background-color: var(--dx-bg-subtle) !important;
}

html[data-theme='dark'] .breadcumb-wrapper::before {
  background: linear-gradient(0deg, rgba(8, 13, 24, 0.85), rgba(8, 13, 24, 0.85)) !important;
}

html[data-theme='dark'] .breadcumb-title,
html[data-theme='dark'] .breadcumb-menu,
html[data-theme='dark'] .breadcumb-menu a {
  color: var(--dx-text) !important;
}

html[data-theme='dark'] .breadcumb-menu a:hover {
  color: var(--dx-blue) !important;
}

/* ---- Nice select dropdown ---- */
html[data-theme='dark'] .nice-select .list {
  background: var(--dx-surface-2);
  border-color: var(--dx-border);
  box-shadow: var(--dx-shadow);
}

html[data-theme='dark'] .nice-select .option {
  color: var(--dx-text);
}

html[data-theme='dark'] .nice-select .option:hover,
html[data-theme='dark'] .nice-select .option.focus {
  background: var(--dx-blue-soft);
  color: var(--dx-blue);
}

/* ---- Swiper shadow fix ---- */
html[data-theme='dark'] .has-shadow {
  box-shadow: none !important;
}

/* ---- Image boxes ---- */
html[data-theme='dark'] body.theme .img-box1 .img1 {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--dx-border);
}

html[data-theme='dark'] body.theme .img-box1 .img1 img {
  opacity: 0.92;
}

/* ---- Preloader: pure black (light + dark) ---- */
#preloader,
html[data-theme='dark'] #preloader {
  background: #000000 !important;
}

html[data-theme='dark'] #preloader .preloader-bg,
html[data-theme='dark'] #preloader .preloader-bg-one,
html[data-theme='dark'] #preloader .preloader-bg-two {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  opacity: 1;
}

/* ---- Extra polish ---- */
html[data-theme='dark'] body.theme .h5.fw-medium {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .service-box .box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  background: rgba(82, 180, 255, 0.1);
  border: 1px solid rgba(82, 180, 255, 0.2);
  border-radius: 16px;
  line-height: 0;
  box-sizing: border-box;
}

html[data-theme='dark'] body.theme .service-box .box-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

html[data-theme='dark'] body.theme .integration-shape img {
  opacity: 0.35;
  filter: brightness(1.5);
}

html[data-theme='dark'] body.theme .integration-logo img {
  filter: brightness(1.2);
}

html[data-theme='dark'] body.theme .footer-layout2 .widget-area {
  border-bottom-color: var(--dx-border) !important;
}

html[data-theme='dark'] body.theme .footer-layout2 .footer-widget .widget_title {
  color: var(--dx-text) !important;
}

html[data-theme='dark'] body.theme .footer-layout2 .copyright-wrap {
  border-top: 1px solid var(--dx-border);
  padding-top: 24px;
}

html[data-theme='dark'] body.theme .footer-top .box-title.text-white {
  color: var(--dx-text) !important;
}

html[data-theme='dark'] body.theme .client-thumb-group .thumb {
  border-color: var(--dx-border);
}

html[data-theme='dark'] body.theme .th-btn2.fw-btn {
  color: inherit;
}

html[data-theme='dark'] body.theme a {
  transition: color 0.25s ease;
}

html[data-theme='dark'] body.theme .box-title a {
  color: inherit;
}

html[data-theme='dark'] body.theme .box-title a:hover {
  color: var(--dx-blue);
}

html[data-theme='dark'] body.theme hr {
  border-color: var(--dx-border);
  opacity: 1;
}

html[data-theme='dark'] body.theme .positive-relative,
html[data-theme='dark'] body.theme .position-relative {
  background-color: inherit;
}

html[data-theme='dark'] body.theme .map-area,
html[data-theme='dark'] body.theme .map-sec {
  filter: grayscale(0.3) brightness(0.7);
}

html[data-theme='dark'] body.theme .th-btn .icon img,
html[data-theme='dark'] body.theme .th-btn2 .icon img {
  filter: brightness(0) invert(1);
}

html[data-theme='dark'] body.theme .th-btn2.style3 .icon img {
  filter: none;
}

html[data-theme='dark'] body.theme .th-btn2.style3:hover .icon img {
  filter: brightness(0) invert(1);
}

/* ---- Luxury polish: cards, titles, blog, map ---- */
html[data-theme='dark'] body.theme .sub-title.style3::before,
html[data-theme='dark'] body.theme .sub-title.text-anime-style-2::before {
  opacity: 0.85;
}

html[data-theme='dark'] body.theme .feature-box,
html[data-theme='dark'] body.theme .service-box::before,
html[data-theme='dark'] body.theme .testi-box,
html[data-theme='dark'] body.theme .price-card,
html[data-theme='dark'] body.theme .faq-card,
html[data-theme='dark'] body.theme .blog-card.style2 {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme='dark'] body.theme .blog-card.style2 {
  background: linear-gradient(160deg, var(--dx-surface) 0%, var(--dx-bg-elevated) 100%);
  border: 1px solid var(--dx-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--dx-shadow-soft);
}

html[data-theme='dark'] body.theme .blog-card.style2 .box-img {
  border-bottom: 1px solid var(--dx-border);
}

html[data-theme='dark'] body.theme .blog-card.style2 .box-content {
  padding: 24px 24px 28px;
}

html[data-theme='dark'] body.theme .process-card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

html[data-theme='dark'] body.theme .process-card:hover {
  background: rgba(82, 180, 255, 0.04);
  border-color: var(--dx-border);
}

html[data-theme='dark'] body.theme .contact-map {
  border-top: 1px solid var(--dx-border);
  border-bottom: 1px solid var(--dx-border);
}

html[data-theme='dark'] body.theme .contact-map .contact-icon {
  background: var(--dx-surface);
  border: 1px solid var(--dx-border-strong);
  box-shadow: var(--dx-shadow-soft);
}

html[data-theme='dark'] body.theme .footer-top {
  border-bottom: 1px solid var(--dx-border);
  padding-bottom: 48px;
  margin-bottom: 8px;
}

html[data-theme='dark'] body.theme #about-sec + .overflow-hidden.space-top .h5.fw-medium {
  color: var(--dx-text-muted);
}

html[data-theme='dark'] body.theme .integration-area {
  padding: 24px 0 8px;
}

html[data-theme='dark'] body.theme .integration-area .sec-title {
  margin-bottom: 8px;
}

/* ==========================================================================
   DARK MODE OVERRIDES — Dental Tech Background for FAQ & Case Studies
   ========================================================================== */

/* Dark mode: same dental tech image, even darker overlay */
html[data-theme='dark'] #case-studies-sec[data-bg-src] {
  background-image: url('../img/bg/dental-tech-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #020a1c !important;
}

html[data-theme='dark'] #case-studies-sec[data-bg-src]::after {
  background: rgba(1, 5, 15, 0.82) !important;
}

html[data-theme='dark'] #faq-sec[data-bg-src] {
  background-image: url('../img/bg/dental-tech-bg.jpg') !important;
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
  background-color: #020a1c !important;
}

html[data-theme='dark'] #faq-sec[data-bg-src]::after {
  background: rgba(1, 5, 15, 0.84) !important;
}

/* Dark mode logo: always white in header */
html[data-theme='dark'] .logo-dark {
  display: block !important;
}

html[data-theme='dark'] .logo-light {
  display: none !important;
}

/* Footer logo is always white regardless of theme */
.footer-logo .logo-footer-always {
  display: block !important;
}

.footer-logo .logo-footer-light-hidden {
  display: none !important;
}


/* ==========================================================================
   FINAL OVERRIDE — Dental Tech BG for Case Studies + FAQ (Dark Mode)
   These rules are LAST so they win over all previous dark mode rules
   ========================================================================== */

/* Force dental tech bg — both sections — dark mode */
html[data-theme='dark'] #case-studies-sec,
html[data-theme='dark'] #case-studies-sec[data-bg-src] {
  background-image: url('../img/bg/dental-tech-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #020a1c !important;
  position: relative !important;
}

html[data-theme='dark'] #faq-sec,
html[data-theme='dark'] #faq-sec[data-bg-src] {
  background-image: url('../img/bg/dental-tech-bg.jpg') !important;
  background-size: cover !important;
  background-position: center 35% !important;
  background-repeat: no-repeat !important;
  background-color: #020a1c !important;
  position: relative !important;
}

/* Dark overlay — deeper in dark mode */
html[data-theme='dark'] #case-studies-sec::after,
html[data-theme='dark'] #case-studies-sec[data-bg-src]::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(1, 5, 16, 0.82) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

html[data-theme='dark'] #faq-sec::after,
html[data-theme='dark'] #faq-sec[data-bg-src]::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(1, 5, 16, 0.85) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Ensure containers above overlay */
html[data-theme='dark'] #case-studies-sec > .container,
html[data-theme='dark'] #faq-sec > .container {
  position: relative !important;
  z-index: 2 !important;
}

/* Dark mode: text colors on tech bg — crisp white headings */
html[data-theme='dark'] #case-studies-sec .sec-title,
html[data-theme='dark'] #case-studies-sec .sec-title .title,
html[data-theme='dark'] #case-studies-sec .sec-title span:not(.text-theme),
html[data-theme='dark'] #case-studies-sec h2,
html[data-theme='dark'] #faq-sec .sec-title,
html[data-theme='dark'] #faq-sec .sec-title .title,
html[data-theme='dark'] #faq-sec .sec-title span:not(.text-theme),
html[data-theme='dark'] #faq-sec h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 80, 200, 0.5);
}

html[data-theme='dark'] #case-studies-sec .sub-title,
html[data-theme='dark'] #faq-sec .sub-title {
  color: #7dd3fc !important;
}

html[data-theme='dark'] #case-studies-sec .fs-18,
html[data-theme='dark'] #faq-sec .fs-18,
html[data-theme='dark'] #faq-sec .box-text {
  color: rgba(210, 230, 255, 0.85) !important;
}

/* Dark mode — case-studies card text */
html[data-theme='dark'] #case-studies-sec .service-box .box-title,
html[data-theme='dark'] #case-studies-sec .service-box .box-title a {
  color: #ffffff !important;
}

html[data-theme='dark'] #case-studies-sec .service-box .box-text {
  color: rgba(200, 220, 255, 0.78) !important;
}

/* Dark mode — FAQ card styling */
html[data-theme='dark'] #faq-sec .faq-card {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(130, 180, 255, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html[data-theme='dark'] #faq-sec .faq-card .box-title {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme='dark'] #faq-sec .faq-card .box-content {
  background: rgba(1, 5, 18, 0.45) !important;
}

html[data-theme='dark'] #faq-sec .faq-card .box-content .box-text {
  color: rgba(200, 220, 255, 0.82) !important;
}

html[data-theme='dark'] #faq-sec .faq-card:hover {
  background: rgba(0, 100, 230, 0.88) !important;
  border-color: rgba(100, 180, 255, 0.75) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 24px 56px rgba(0, 50, 180, 0.4) !important;
}

html[data-theme='dark'] #faq-sec .faq-card:hover .box-title {
  color: #ffffff !important;
}

html[data-theme='dark'] #faq-sec .faq-card:hover .box-content .box-text {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Dark mode logo */
html[data-theme='dark'] img.dentaix-logo-custom {
  filter: brightness(1.08) !important;
}


/* ==========================================================================
   DARK MODE — Final Overrides v3 (Logo + Sections)
   ========================================================================== */

/* Logo in dark mode — show dark (white text) version */
html[data-theme='dark'] .logo-for-dark { display: block !important; opacity: 1 !important; }
html[data-theme='dark'] .logo-for-light { display: none !important; }

/* Dark glass header */
html[data-theme='dark'] body.theme .th-header.header-layout2 .sticky-wrapper.sticky .menu-area {
  background: rgba(3, 5, 8, 0.90) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(120,155,210,0.14) !important;
}

/* Case Studies — dental tech bg, dark mode */
html[data-theme='dark'] #case-studies-sec,
html[data-theme='dark'] #case-studies-sec[data-bg-src] {
  background-image: url('../img/bg/dental-tech-bg.jpg') !important;
  background-size: cover !important; background-position: center center !important;
  background-color: #020a1c !important; position: relative !important;
}
html[data-theme='dark'] #case-studies-sec::after,
html[data-theme='dark'] #case-studies-sec[data-bg-src]::after {
  content: '' !important; position: absolute !important; inset: 0 !important;
  background: rgba(1, 5, 16, 0.84) !important;
  pointer-events: none !important; z-index: 0 !important;
}
html[data-theme='dark'] #case-studies-sec > .container { position: relative !important; z-index: 2 !important; }
html[data-theme='dark'] #case-studies-sec .sec-title,
html[data-theme='dark'] #case-studies-sec h2 { color: #ffffff !important; text-shadow: 0 2px 16px rgba(0,80,200,0.5); }
html[data-theme='dark'] #case-studies-sec .sub-title { color: #7dd3fc !important; }
html[data-theme='dark'] #case-studies-sec .fs-18 { color: rgba(210,230,255,0.85) !important; }
html[data-theme='dark'] #case-studies-sec .service-box .box-title,
html[data-theme='dark'] #case-studies-sec .service-box .box-title a { color: #fff !important; }
html[data-theme='dark'] #case-studies-sec .service-box .box-text { color: rgba(200,220,255,0.78) !important; }

/* FAQ — dental tech bg, dark mode */
html[data-theme='dark'] #faq-sec,
html[data-theme='dark'] #faq-sec[data-bg-src] {
  background-image: url('../img/bg/dental-tech-bg.jpg') !important;
  background-size: cover !important; background-position: center 35% !important;
  background-color: #020a1c !important; position: relative !important;
}
html[data-theme='dark'] #faq-sec::after,
html[data-theme='dark'] #faq-sec[data-bg-src]::after {
  content: '' !important; position: absolute !important; inset: 0 !important;
  background: rgba(1, 5, 16, 0.86) !important;
  pointer-events: none !important; z-index: 0 !important;
}
html[data-theme='dark'] #faq-sec > .container { position: relative !important; z-index: 2 !important; }
html[data-theme='dark'] #faq-sec .sec-title,
html[data-theme='dark'] #faq-sec h2 { color: #ffffff !important; text-shadow: 0 2px 16px rgba(0,80,200,0.5); }
html[data-theme='dark'] #faq-sec .sub-title { color: #7dd3fc !important; }
html[data-theme='dark'] #faq-sec .faq-card {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(130,180,255,0.22) !important;
  backdrop-filter: blur(10px) !important;
}
html[data-theme='dark'] #faq-sec .faq-card .box-title { color: #fff !important; border-bottom-color: rgba(255,255,255,0.12) !important; }
html[data-theme='dark'] #faq-sec .faq-card .box-content { background: rgba(1,5,18,0.45) !important; }
html[data-theme='dark'] #faq-sec .faq-card .box-content .box-text { color: rgba(200,220,255,0.82) !important; }
html[data-theme='dark'] #faq-sec .faq-card:hover {
  background: rgba(0,100,230,0.88) !important;
  border-color: rgba(100,180,255,0.75) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 24px 56px rgba(0,50,180,0.4) !important;
}
html[data-theme='dark'] #faq-sec .faq-card:hover .box-title { color: #fff !important; }
html[data-theme='dark'] #faq-sec .faq-card:hover .box-content .box-text { color: rgba(255,255,255,0.95) !important; }


/* CTA Robot — dark mode glow enhancement (not dx-cta-panel) */
html[data-theme='dark'] .cta-area3:not(.dx-cta-panel) .cta-image img {
  filter: drop-shadow(0 30px 60px rgba(0,150,255,0.45))
          drop-shadow(0 10px 30px rgba(0,0,0,0.4)) !important;
}
html[data-theme='dark'] .cta-area3:not(.dx-cta-panel) .cta-image::after {
  background: radial-gradient(ellipse, rgba(82,180,255,0.5) 0%, transparent 70%) !important;
}

/* dx-cta-panel — absolutely no filter/shadow ever */
html[data-theme='dark'] .cta-area3.dx-cta-panel .dx-cta-robot-img,
html[data-theme='light'] .cta-area3.dx-cta-panel .dx-cta-robot-img,
.cta-area3.dx-cta-panel .dx-cta-robot-img {
  filter: none !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}


/* Header dark mode — new logo */
html[data-theme='dark'] .dx-logo-light { display: none !important; }
html[data-theme='dark'] .dx-logo-dark  { display: block !important; }
html[data-theme='light'] .dx-logo-dark { display: none !important; }
html[data-theme='light'] .dx-logo-light,
html:not([data-theme])   .dx-logo-light { display: block !important; }

/* Sticky dark header */
html[data-theme='dark'] .th-header.header-layout2 .sticky-wrapper.sticky .menu-area {
  background: rgba(5, 8, 16, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(100,140,210,0.15) !important;
}

/* Final override — case studies + FAQ use solid brand blue */
html[data-theme='dark'] #case-studies-sec,
html[data-theme='dark'] #case-studies-sec[data-bg-src],
html[data-theme='dark'] #faq-sec,
html[data-theme='dark'] #faq-sec[data-bg-src] {
  background-image: none !important;
  background-color: #122139 !important;
  background-size: auto !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
}

html[data-theme='dark'] #case-studies-sec::after,
html[data-theme='dark'] #case-studies-sec[data-bg-src]::after,
html[data-theme='dark'] #faq-sec::after,
html[data-theme='dark'] #faq-sec[data-bg-src]::after {
  display: none !important;
  content: none !important;
}

