/* Shining Dijkot static-site overlays: forms, search, cards, header/footer polish */

#rev_slider_3_1_wrapper {
  background-image: url("/wp-content/uploads/2016/04/rozgar_bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
}

.sd-form-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.sd-form-banner.is-ok {
  background: #ecfdf3;
  border: 1px solid #10b981;
  color: #065f46;
}
.sd-form-banner.is-err {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.sd-captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  color: #1e293b;
}
.sd-captcha-label {
  font-size: 14px;
  color: #1e293b !important;
  margin: 0 !important;
}
.sd-captcha-input {
  width: 68px !important;
  min-width: 68px !important;
  padding: 5px 8px !important;
  margin: 0 !important;
  border: 1px solid #94a3b8 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: #0f172a !important;
  height: 34px !important;
  box-sizing: border-box !important;
}
.sd-captcha-refresh {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #334155 !important;
  cursor: pointer !important;
}
.sd-captcha-msg {
  width: 100%;
  margin: 4px 0 0 !important;
  font-size: 13px;
  color: #b91c1c !important;
}

.sd-search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 220px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}
.sd-search-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: #0f172a !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9;
}
.sd-search-item:hover {
  background: #f8fafc;
}
.sd-search-empty {
  padding: 12px;
  color: #64748b;
  font-size: 14px;
}

.sd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding: 10px 0 40px;
  width: 100%;
}
.sd-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  min-height: 100%;
}
.sd-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.sd-card-body {
  padding: 16px 18px 20px;
}
.sd-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: #0d1c34;
}
.sd-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}
.sd-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  background: #0ca2e0;
  color: #fff !important;
}
.sd-btn.secondary {
  background: #0d1c34;
}
.sd-magazine-pages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 12px 0 40px;
}
.sd-magazine-pages img {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  display: block;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  background: #fff;
}
.sd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 18px;
}

@media (max-width: 1040px) {
  #header .masthead,
  .masthead-mobile-header {
    overflow: visible;
  }
  .header-bar,
  .top-bar,
  #top-bar {
    flex-wrap: wrap;
  }
  .branding,
  .mini-widgets,
  .header-bar .mini-contacts {
    max-width: 100%;
  }
  #footer .wf-container,
  .footer .wf-wrap,
  #footer .footer-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  #footer .widget,
  #footer .wf-cell {
    min-width: min(100%, 240px);
    flex: 1 1 240px;
  }
  .dt-mobile-header {
    max-width: 100vw;
  }
}

@media (max-width: 800px) {
  .mini-contacts,
  .mini-login-soc-icons {
    font-size: 13px;
    line-height: 1.4;
  }
  #footer iframe,
  .wpb_gmaps_widget iframe {
    width: 100% !important;
    max-width: 100%;
  }
  .sd-magazine-pages img {
    max-width: 100%;
  }
}


/* Keep a single desktop header; The7 also prints a phantom/sticky clone */
@media (min-width: 1041px) {
  .dt-mobile-header,
  .mobile-header-space,
  .show-on-first-switch,
  .show-on-second-switch {
    display: none !important;
  }
  #page > .masthead + .dt-mobile-header {
    display: none !important;
  }
}
@media (max-width: 1040px) {
  .masthead:not(.sticky-mobile-on) .main-nav {
    display: none;
  }
  .header-bar {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .branding {
    max-width: 70%;
  }
  .mini-nav,
  .mini-widgets {
    max-width: 100%;
  }
  #footer,
  .footer {
    overflow: hidden;
  }
  #footer .wf-container,
  #footer .footer-sidebar,
  #bottom-bar .wf-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
  }
}
