/* Theme switcher controls */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-switcher__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.theme-switcher__select {
  min-width: 132px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0 36px 0 14px;
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 15px,
    calc(100% - 12px) 15px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.theme-switcher__select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
}

.theme-switcher__select option {
  color: #0b1222;
}

.theme-switcher--drawer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 14px;
}

.theme-switcher--drawer .theme-switcher__label {
  color: var(--title-color);
}

.theme-switcher--drawer .theme-switcher__select {
  border-color: var(--th-border-color);
  color: var(--title-color);
  background-color: var(--white-color);
}

.theme-switcher--auth .theme-switcher__label {
  color: rgba(255, 255, 255, 0.85);
}

/* Header switchers and menu readability */
.header-layout6 .main-menu > ul > li > a,
.header-layout6 .main-menu ul li.menu-item-has-children > a:after {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
}

.header-layout6 .main-menu > ul > li > a:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor;
}

.header-layout6 .sticky-wrapper.sticky .main-menu > ul > li > a,
.header-layout6 .sticky-wrapper.sticky .main-menu ul li.menu-item-has-children > a:after {
  color: var(--title-color) !important;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.header-layout6 .sticky-wrapper.sticky .main-menu > ul > li > a:hover {
  color: var(--theme-color) !important;
}

.header-layout6 .th-menu-toggle {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background-color: rgba(8, 14, 28, 0.52);
}

.header-layout6 .sticky-wrapper.sticky .th-menu-toggle {
  color: #0b1222 !important;
  border-color: rgba(11, 18, 34, 0.24);
  background-color: #f3f6ff;
}

.theme-switcher--header .theme-switcher__label {
  color: rgba(255, 255, 255, 0.96) !important;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.theme-switcher--header .theme-switcher__select {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: rgba(8, 14, 28, 0.62) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor;
  color-scheme: dark;
}

.theme-switcher--header .theme-switcher__select option {
  color: #0b1222 !important;
  background-color: #ffffff !important;
}

.header-layout6 .sticky-wrapper.sticky .theme-switcher--header .theme-switcher__label {
  color: #32456b !important;
  text-shadow: none;
}

.header-layout6 .sticky-wrapper.sticky .theme-switcher--header .theme-switcher__select {
  border-color: rgba(11, 18, 34, 0.22) !important;
  background-color: #f3f6ff !important;
  color: #0b1222 !important;
  -webkit-text-fill-color: currentColor;
  color-scheme: light;
}

.header-layout6 .sticky-wrapper.sticky .theme-switcher--header .theme-switcher__select:focus {
  border-color: rgba(11, 18, 34, 0.45) !important;
}

.header-layout6 .sticky-wrapper.sticky .theme-switcher--header .theme-switcher__select option {
  color: #0b1222 !important;
  background-color: #ffffff !important;
}

/* Dark mode */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background-color: #0b1222;
  color: #bec8e4;
}

html[data-theme="dark"] .header-layout6 .main-menu > ul > li > a,
html[data-theme="dark"] .header-layout6 .main-menu ul li.menu-item-has-children > a:after,
html[data-theme="dark"] .header-layout6 .sticky-wrapper.sticky .main-menu > ul > li > a,
html[data-theme="dark"] .header-layout6 .sticky-wrapper.sticky .main-menu ul li.menu-item-has-children > a:after {
  color: #edf3ff !important;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

html[data-theme="dark"] .header-layout6 .main-menu > ul > li > a:hover,
html[data-theme="dark"] .header-layout6 .sticky-wrapper.sticky .main-menu > ul > li > a:hover {
  color: #ffffff !important;
}

html[data-theme="dark"] .header-layout6 .th-menu-toggle,
html[data-theme="dark"] .header-layout6 .sticky-wrapper.sticky .th-menu-toggle {
  color: #ecf3ff !important;
  border-color: #34436d;
  background-color: #101936;
}

html[data-theme="dark"] .bg-smoke {
  background-color: #0f1830 !important;
}

html[data-theme="dark"] .header-layout6 .menu-area,
html[data-theme="dark"] .th-menu-area,
html[data-theme="dark"] .footer-wrapper,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .about-feature,
html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .contact-feature,
html[data-theme="dark"] .faq-widget,
html[data-theme="dark"] .th-blog,
html[data-theme="dark"] .recent-post,
html[data-theme="dark"] .accordion-card,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .process-card2,
html[data-theme="dark"] .contact-item,
html[data-theme="dark"] .contact-form2,
html[data-theme="dark"] .error-content,
html[data-theme="dark"] .th-menu-wrapper .th-menu-area {
  background-color: #121b33 !important;
  border-color: #2a3758 !important;
}

html[data-theme="dark"] .about-sec-8[data-bg-src],
html[data-theme="dark"] .about-sec-8.background-image,
html[data-theme="dark"] .why-sec-4[data-bg-src],
html[data-theme="dark"] .why-sec-4.background-image,
html[data-theme="dark"] .contact-area8[data-bg-src],
html[data-theme="dark"] .contact-area8.background-image,
html[data-theme="dark"] .process-area6[data-bg-src],
html[data-theme="dark"] .process-area6.background-image,
html[data-theme="dark"] .faq-widget[data-bg-src],
html[data-theme="dark"] .faq-widget.background-image,
html[data-theme="dark"] .widget_banner[data-bg-src],
html[data-theme="dark"] .widget_banner.background-image,
html[data-theme="dark"] .breadcumb-wrapper[data-bg-src],
html[data-theme="dark"] .breadcumb-wrapper.background-image,
html[data-theme="dark"] section.bg-smoke[data-bg-src],
html[data-theme="dark"] section.bg-smoke.background-image,
html[data-theme="dark"] .th-hero-bg[data-bg-src],
html[data-theme="dark"] .th-hero-bg.background-image {
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .about-sec-8[data-bg-src]::after,
html[data-theme="dark"] .about-sec-8.background-image::after,
html[data-theme="dark"] .why-sec-4[data-bg-src]::after,
html[data-theme="dark"] .why-sec-4.background-image::after,
html[data-theme="dark"] .contact-area8[data-bg-src]::after,
html[data-theme="dark"] .contact-area8.background-image::after,
html[data-theme="dark"] .process-area6[data-bg-src]::after,
html[data-theme="dark"] .process-area6.background-image::after,
html[data-theme="dark"] .faq-widget[data-bg-src]::after,
html[data-theme="dark"] .faq-widget.background-image::after,
html[data-theme="dark"] .widget_banner[data-bg-src]::after,
html[data-theme="dark"] .widget_banner.background-image::after,
html[data-theme="dark"] .breadcumb-wrapper[data-bg-src]::after,
html[data-theme="dark"] .breadcumb-wrapper.background-image::after,
html[data-theme="dark"] section.bg-smoke[data-bg-src]::after,
html[data-theme="dark"] section.bg-smoke.background-image::after,
html[data-theme="dark"] .th-hero-bg[data-bg-src]::after,
html[data-theme="dark"] .th-hero-bg.background-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 24, 0.48);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] .th-hero-bg[data-bg-src]::after,
html[data-theme="dark"] .th-hero-bg.background-image::after {
  background: rgba(6, 12, 24, 0.35);
}

html[data-theme="dark"] .about-sec-8[data-bg-src] > *,
html[data-theme="dark"] .about-sec-8.background-image > *,
html[data-theme="dark"] .why-sec-4[data-bg-src] > *,
html[data-theme="dark"] .why-sec-4.background-image > *,
html[data-theme="dark"] .contact-area8[data-bg-src] > *,
html[data-theme="dark"] .contact-area8.background-image > *,
html[data-theme="dark"] .process-area6[data-bg-src] > *,
html[data-theme="dark"] .process-area6.background-image > *,
html[data-theme="dark"] .faq-widget[data-bg-src] > *,
html[data-theme="dark"] .faq-widget.background-image > *,
html[data-theme="dark"] .widget_banner[data-bg-src] > *,
html[data-theme="dark"] .widget_banner.background-image > *,
html[data-theme="dark"] .breadcumb-wrapper[data-bg-src] > *,
html[data-theme="dark"] .breadcumb-wrapper.background-image > *,
html[data-theme="dark"] section.bg-smoke[data-bg-src] > *,
html[data-theme="dark"] section.bg-smoke.background-image > * {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .sec-title,
html[data-theme="dark"] .box-title,
html[data-theme="dark"] .widget_title,
html[data-theme="dark"] .breadcumb-title,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .title {
  color: #edf3ff !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] span,
html[data-theme="dark"] .sec-text,
html[data-theme="dark"] .hero-text,
html[data-theme="dark"] .blog-text,
html[data-theme="dark"] .about-text,
html[data-theme="dark"] .contact-feature_label,
html[data-theme="dark"] .contact-info_text,
html[data-theme="dark"] .copyright-text,
html[data-theme="dark"] .process-card2_text,
html[data-theme="dark"] .about-feature_text,
html[data-theme="dark"] .feature-card_text,
html[data-theme="dark"] .faq-text,
html[data-theme="dark"] .newsletter-title {
  color: #bec8e4 !important;
}

html[data-theme="dark"] a:not(.th-btn):not(.line-btn):not(.author) {
  color: #d4defa;
}

html[data-theme="dark"] a:not(.th-btn):not(.line-btn):not(.author):hover {
  color: #ffffff;
}

html[data-theme="dark"] .breadcumb-menu li a,
html[data-theme="dark"] .breadcumb-menu li {
  color: #d8e4ff;
}

html[data-theme="dark"] .th-btn.style2 {
  background-color: #1f2c4c;
  border-color: #2a3f6b;
}

html[data-theme="dark"] .th-btn.style2:hover {
  background-color: #2b3f6f;
  border-color: #2b3f6f;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] select {
  background-color: #0d152b !important;
  border-color: #2a3758 !important;
  color: #ecf3ff !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #8f9cc0 !important;
}

html[data-theme="dark"] .th-social a,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .contact-info_icon,
html[data-theme="dark"] .contact-item_icon {
  background-color: #1a2644 !important;
  border-color: #2a3758 !important;
}

html[data-theme="dark"] .theme-switcher__select {
  background-color: #101936;
  border-color: #34436d;
}

html[data-theme="dark"] .theme-switcher--header .theme-switcher__label,
html[data-theme="dark"] .header-layout6 .sticky-wrapper.sticky .theme-switcher--header .theme-switcher__label {
  color: #d4defa !important;
}

html[data-theme="dark"] .theme-switcher--header .theme-switcher__select,
html[data-theme="dark"] .header-layout6 .sticky-wrapper.sticky .theme-switcher--header .theme-switcher__select {
  background-color: #101936 !important;
  border-color: #34436d !important;
  color: #ecf3ff !important;
  -webkit-text-fill-color: currentColor;
  color-scheme: dark;
}

html[data-theme="dark"] .theme-switcher--header .theme-switcher__select:focus,
html[data-theme="dark"] .header-layout6 .sticky-wrapper.sticky .theme-switcher--header .theme-switcher__select:focus {
  border-color: #6277aa;
}

html[data-theme="dark"] .theme-switcher--header .theme-switcher__select option,
html[data-theme="dark"] .header-layout6 .sticky-wrapper.sticky .theme-switcher--header .theme-switcher__select option {
  color: #ecf3ff !important;
  background-color: #101936 !important;
}

html[data-theme="dark"] .theme-switcher--drawer .theme-switcher__select {
  background-color: #101936;
  color: #ecf3ff;
}

html[data-theme="dark"] .theme-switcher--drawer .theme-switcher__label {
  color: #d4defa;
}

html[data-theme="dark"] .th-mobile-menu ul li,
html[data-theme="dark"] .th-mobile-menu ul li li:first-child {
  border-color: #2a3758;
}

html[data-theme="dark"] .th-mobile-menu ul li a {
  color: #ecf3ff !important;
}

html[data-theme="dark"] .th-mobile-menu ul li.th-active > a {
  color: #8ba5df !important;
}

html[data-theme="dark"] .th-mobile-menu ul .th-item-has-children > a:after,
html[data-theme="dark"] .th-mobile-menu ul .th-item-has-children > a .th-mean-expand {
  color: #d9e5ff;
  background-color: #1a2644;
}

@media (max-width: 1199px) {
  .theme-switcher__label {
    font-size: 12px;
  }

  .theme-switcher__select {
    min-width: 120px;
    height: 34px;
    font-size: 12px;
  }
}

/* Dark mode hardening for cards, icons, and buttons */
html[data-theme="dark"] {
  --nyota-dark-surface-1: #121b33;
  --nyota-dark-surface-2: #182443;
  --nyota-dark-border-1: #2a3758;
  --nyota-dark-border-2: #3a4f80;
  --nyota-dark-text-1: #edf3ff;
  --nyota-dark-text-2: #bec8e4;
  --nyota-dark-accent: #8ba5df;
}

html[data-theme="dark"] .blog-single,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .widget-banner,
html[data-theme="dark"] .widget_banner,
html[data-theme="dark"] .recent-post,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .feature-card.style2,
html[data-theme="dark"] .team-card .team-content,
html[data-theme="dark"] .team-card .team-social,
html[data-theme="dark"] .process-card2,
html[data-theme="dark"] .faq-widget,
html[data-theme="dark"] .accordion-card,
html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .contact-feature,
html[data-theme="dark"] .contact-item,
html[data-theme="dark"] .contact-form2 {
  background-color: var(--nyota-dark-surface-1) !important;
  border-color: var(--nyota-dark-border-1) !important;
  box-shadow: 0 12px 32px rgba(3, 8, 20, 0.55);
}

html[data-theme="dark"] .feature-card.style2:after {
  border-color: #25345a;
  opacity: 0.72;
}

html[data-theme="dark"] .th-btn,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .widget .search-form button {
  color: #ffffff;
}

html[data-theme="dark"] .th-btn {
  border: 1px solid var(--theme-color);
}

html[data-theme="dark"] .th-btn:before,
html[data-theme="dark"] .th-btn:after {
  background-color: #0b1429;
}

html[data-theme="dark"] .th-btn.style-border,
html[data-theme="dark"] .th-btn.style-border2 {
  color: var(--nyota-dark-text-1);
  border-color: var(--nyota-dark-border-2);
}

html[data-theme="dark"] .th-btn.style2,
html[data-theme="dark"] .th-btn.style2:hover {
  color: #ecf3ff;
}

html[data-theme="dark"] .line-btn {
  color: #dbe6ff;
}

html[data-theme="dark"] .line-btn:before {
  background-color: var(--nyota-dark-accent);
}

html[data-theme="dark"] .line-btn:hover {
  color: #ffffff;
}

html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .th-social a,
html[data-theme="dark"] .blog-single .social-links a,
html[data-theme="dark"] .team-card .team-social a,
html[data-theme="dark"] .contact-feature .icon-btn,
html[data-theme="dark"] .widget .search-form button {
  background-color: var(--nyota-dark-surface-2) !important;
  border-color: var(--nyota-dark-border-1) !important;
  color: var(--nyota-dark-text-1) !important;
}

html[data-theme="dark"] .icon-btn:hover,
html[data-theme="dark"] .th-social a:hover,
html[data-theme="dark"] .blog-single .social-links a:hover,
html[data-theme="dark"] .team-card .team-social a:hover,
html[data-theme="dark"] .contact-feature .icon-btn:hover,
html[data-theme="dark"] .widget .search-form button:hover {
  background-color: #314977 !important;
  border-color: #4c66a0 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .process-card2_icon,
html[data-theme="dark"] .feature-card.style2 .feature-card-icon,
html[data-theme="dark"] .about-feature.style2 .about-feature_icon {
  background-color: var(--nyota-dark-surface-2) !important;
  border-color: var(--nyota-dark-border-1) !important;
}

html[data-theme="dark"] .contact-item_icon {
  background-color: transparent !important;
  border-color: transparent !important;
  color: var(--nyota-dark-accent) !important;
}

html[data-theme="dark"] .tagcloud a,
html[data-theme="dark"] .wp-block-tag-cloud a,
html[data-theme="dark"] .widget_categories a,
html[data-theme="dark"] .blog-single .wp-block-tag-cloud a,
html[data-theme="dark"] .blog-single .tagcloud a {
  background-color: var(--nyota-dark-surface-2);
  border: 1px solid var(--nyota-dark-border-1);
  color: #dbe6ff !important;
}

html[data-theme="dark"] .tagcloud a:hover,
html[data-theme="dark"] .wp-block-tag-cloud a:hover,
html[data-theme="dark"] .widget_categories a:hover {
  background-color: #314977;
  border-color: #4c66a0;
  color: #ffffff !important;
}

html[data-theme="dark"] .blog-meta span i,
html[data-theme="dark"] .blog-meta a i,
html[data-theme="dark"] .recent-post .recent-post-meta a i,
html[data-theme="dark"] .contact-info_icon,
html[data-theme="dark"] .process-card2_number {
  color: var(--nyota-dark-accent) !important;
}

html[data-theme="dark"] .th-btn i,
html[data-theme="dark"] .line-btn i,
html[data-theme="dark"] .btn i {
  color: currentColor;
}

html[data-theme="dark"] .feature-card-icon img,
html[data-theme="dark"] .process-card2_icon img {
  filter: brightness(1.08) contrast(1.06);
}

html[data-theme="dark"] .btn-danger {
  border-color: #b02a37;
}

@media (max-width: 991px) {
  .widget {
    --widget-padding-y: 32px;
    --widget-padding-x: 28px;
    margin-bottom: 30px;
  }

  .blog-single .blog-content {
    padding: 32px 28px;
  }

  .contact-feature-wrap {
    grid-template-columns: 1fr;
  }

  .team-card .team-content {
    max-width: 100%;
    margin-top: -36px;
  }

  .widget-banner {
    min-height: 300px;
    height: auto;
    padding: 30px 20px;
  }
}

@media (max-width: 767px) {
  .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .blog-meta span,
  .blog-meta a {
    margin-right: 0;
    padding-right: 0;
  }

  .contact-info {
    gap: 18px;
    padding: 26px;
  }

  .contact-info_icon {
    width: 64px;
    min-width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 28px;
  }

  .feature-card.style2,
  .contact-form2 {
    padding: 28px 24px;
  }

  .process-card2_icon {
    width: 88px;
    height: 88px;
    line-height: 88px;
  }

  .faq-widget {
    padding: 32px 24px;
  }
}

@media (max-width: 575px) {
  .widget {
    --widget-padding-y: 24px;
    --widget-padding-x: 20px;
    margin-bottom: 24px;
  }

  .blog-single .blog-content {
    padding: 24px 20px;
  }

  .blog-single .blog-title {
    font-size: 30px;
    line-height: 1.25;
  }

  .contact-info,
  .contact-feature,
  .contact-item,
  .feature-card.style2,
  .faq-widget {
    border-radius: 14px;
  }

  .th-btn {
    min-width: 0;
    padding: 16px 18px;
    font-size: 13px;
  }

  .th-btn.style2,
  .th-btn.style10,
  .th-btn.style-radius {
    padding: 15px 18px;
  }

  .btn-group {
    gap: 12px;
    align-items: stretch;
  }

  .btn-group > .th-btn,
  .btn-group > a.th-btn,
  .btn-group > button.th-btn {
    width: 100%;
  }

  .icon-btn {
    --btn-size: 48px;
    --btn-font-size: 15px;
  }

  .th-social a {
    --icon-size: 40px;
    font-size: 14px;
  }

  .widget .search-form button {
    width: 48px;
  }

  .widget-banner .title {
    font-size: clamp(22px, 7vw, 30px);
    margin-bottom: 24px;
  }
}
