@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
}

/* Search Overlay & Popup */
.search-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: none;
  transition: opacity 0.3s ease;
}

.search-bg-overlay.active {
  display: block;
}

.search-form-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 8px;
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-form-popup.active {
  display: block;
}

.search-form-popup .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.search-form-popup .close-btn:hover {
  color: #000;
}

/* Blog Section Overflow Fix - Minimal */
.blog-card-two .post-img {
  overflow: hidden;
}

.blog-card-two .post-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.blog-card-two .post-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
