﻿/* Static fallback for template pages running without Next runtime */
.wow,
[data-wow-delay],
[data-wow-duration] {
  visibility: visible !important;
  animation: none !important;
}

/* Reveal sections that were initially hidden for animation */
[style*="opacity:0"] {
  opacity: 1 !important;
}

[style*="transform:translate"],
[style*="transform: translate"],
[style*="transform:scale"],
[style*="transform: scale"] {
  transform: none !important;
}

/* Keep tab/accordion content readable in static mode */
.tab-pane {
  display: none;
}

.tab-pane.active,
.tab-pane.show,
.tab-pane.active.show {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
}

.collapse.show {
  display: block !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
}

/* Desktop dropdown usability without Bootstrap JS */
@media (min-width: 992px) {
  .navbar .submenu:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Theme toggle and light/dark mode */
.js-darkmode-btn {
  position: relative;
  width: 56px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

.js-darkmode-btn .dark_mode_switcher {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.js-darkmode-btn .tab-btn {
  font-size: 13px;
  line-height: 1;
  color: #334155;
  z-index: 2;
}

.js-darkmode-btn .ball {
  position: absolute;
  top: 2px;
  left: 3px !important;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: left 0.2s ease, background-color 0.2s ease;
  z-index: 1;
}

body.theme-light {
  background-color: #f4f6fb;
  color: #0f172a;
}

body.theme-dark {
  background-color: #0b1220;
  color: #e5edf8;
}

body.theme-dark .js-darkmode-btn {
  background: #1f2937;
  border-color: #374151;
}

body.theme-dark .js-darkmode-btn .tab-btn {
  color: #e5edf8;
}

body.theme-dark .js-darkmode-btn .ball {
  left: 31px !important;
  background: #facc15;
}

body.theme-dark .bg_white,
body.theme-dark .bg_disable,
body.theme-dark .header,
body.theme-dark .header-top,
body.theme-dark .header-menu,
body.theme-dark .footer,
body.theme-dark .feature-card-widget-4,
body.theme-dark .feature-card-widget-5,
body.theme-dark .feature-card-widget-6,
body.theme-dark .single-widget-one,
body.theme-dark .contact-form-widget,
body.theme-dark .navbar .dropdown-menu {
  background-color: #111a2b !important;
  border-color: #273247 !important;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark p,
body.theme-dark li,
body.theme-dark span,
body.theme-dark label,
body.theme-dark .nav-link,
body.theme-dark .footer-link a,
body.theme-dark a {
  color: #e5edf8;
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background-color: #0f1726;
  color: #e5edf8;
  border-color: #273247;
}
