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

:root,
body {
  --the7-base-font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --the7-base-font-size: 15px;
  --the7-text-big-font-size: 15px;
  --the7-text-small-font-size: 13px;
  --the7-base-line-height: 25px;
  --the7-text-big-line-height: 25px;
  --the7-top-bar-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-top-bar-font-size: 13px;
  --the7-menu-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-submenu-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-page-title-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-breadcrumbs-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-widget-title-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-widget-content-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-h1-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-h2-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-h3-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-h4-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-h5-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-h6-font-family: "Open Sans", Helvetica, Arial, sans-serif;
  --the7-h1-font-size: 34px;
  --the7-h2-font-size: 26px;
  --the7-h3-font-size: 20px;
  --the7-h4-font-size: 17px;
}

html,
body {
  overflow-x: clip;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

body p,
body li,
#main p,
#main li,
.wf-container > * {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

/* Top bar typography & balanced inner padding (esp. around social icons) */
.masthead .top-bar {
  padding: 7px 50px !important;
  min-height: 38px !important;
  align-items: center !important;
}
.top-bar,
.top-bar .mini-contacts,
.top-bar .mini-widgets,
.top-bar a {
  font-family: "Open Sans", Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.top-bar .left-widgets,
.top-bar .right-widgets {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.top-bar .soc-ico {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  padding: 2px 0 !important;
  line-height: 1 !important;
}
.top-bar .soc-ico a {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Match main menu header height cleanly to the 55px logo */
.masthead.inline-header .header-bar {
  min-height: 65px !important;
  height: 65px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  align-items: center !important;
  gap: 20px;
}
.masthead .branding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-right: 28px !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
}
@media (max-width: 1040px) {
  .masthead .branding {
    margin-right: 0 !important;
  }
}
.masthead .branding a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
}
.masthead .branding img:not(.mobile-logo) {
  display: block;
  max-height: 55px;
  width: auto;
}
.masthead .branding img.mobile-logo {
  display: none !important;
}
.masthead.full-height .main-nav > li {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.masthead.full-height .main-nav > li > a {
  min-height: 0 !important;
  height: 55px !important;
  line-height: 55px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
}
@media (max-width: 1040px) {
  .masthead .top-bar {
    padding: 6px 20px !important;
  }
  .masthead.inline-header .header-bar {
    min-height: 60px !important;
    height: auto !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .masthead .branding img:not(.mobile-logo) {
    max-height: 46px;
  }
}

/* Footer 4-column layout & typography */
#footer .wf-container-footer .wf-container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: start;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#footer .wf-container-footer .wf-container::before,
#footer .wf-container-footer .wf-container::after {
  content: none !important;
  display: none !important;
}
#footer .wf-container-footer .wf-cell {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}
#footer .widget-title {
  font-family: "Open Sans", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px !important;
}
#footer .widget,
#footer .widget p,
#footer .widget li,
#footer .widget a {
  font-family: "Open Sans", Helvetica, Arial, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}
#footer .sd-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#footer .sd-footer-links li {
  margin: 0 0 8px !important;
  padding: 0 !important;
}
#footer .sd-footer-links a {
  text-decoration: none;
  opacity: 0.9;
}
#footer .sd-footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
#footer iframe {
  width: 100% !important;
  height: 185px !important;
  border-radius: 6px;
  display: block;
}

/* Copyright bottom bar typography & alignment */
#bottom-bar,
#bottom-bar .wf-container-bottom,
#bottom-bar .wf-float-left,
#bottom-bar .wf-float-right,
#bottom-bar .bottom-text-block,
#bottom-bar p,
#bottom-bar a {
  font-family: "Open Sans", Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
#bottom-bar .wf-container-bottom {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 0 !important;
}
#bottom-bar .wf-float-left,
#bottom-bar .wf-float-right,
#bottom-bar #branding-bottom {
  float: none !important;
  display: flex;
  align-items: center;
}
#bottom-bar .bottom-text-block p {
  margin: 0 !important;
}

@media (max-width: 1040px) {
  #footer .wf-container-footer .wf-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}
@media (max-width: 640px) {
  #footer .wf-container-footer .wf-container {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  #bottom-bar .wf-container-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Disable The7 footer-overlap fixed positioning & CSS-grid page-inner displacement */
#page,
.page-inner {
  display: block !important;
  grid-area: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}
#footer,
.footer {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  transform: none !important;
}
#page,
.page-inner,
#main {
  margin-bottom: 0 !important;
}
#main {
  position: relative;
  z-index: 2;
}

/* Ensure WPBakery / The7 animated elements & isotope grids never stay hidden or shifted off-screen */
.wpb_animate_when_almost_visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  -webkit-transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
}
.iso-container.loading-effect-scale-up .wf-cell,
.iso-container .wf-cell {
  opacity: 1 !important;
  visibility: visible !important;
}
.iso-container.sd-grid-fallback {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
  height: auto !important;
  position: static !important;
}
.iso-container.sd-grid-fallback > .wf-cell {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  padding: 0 !important;
  display: block !important;
}

/* Header popup search toggle (Lucide search icon) */
.mini-search {
  position: relative;
}
.mini-search .submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 6px;
  color: #334155 !important;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.mini-search .submit:hover {
  color: #0ca2e0 !important;
  background-color: rgba(12, 162, 224, 0.08);
}
.mini-search .submit::before,
.mini-search .submit::after {
  display: none !important;
  content: none !important;
}
.mini-search .submit svg {
  width: 18px;
  height: 18px;
  display: block;
}
.mini-search .popup-search-wrap {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  z-index: 9999;
  opacity: 1 !important;
  visibility: visible !important;
}
.masthead.inline-header .header-bar,
.masthead .mini-widgets {
  overflow: visible !important;
}
.mini-search.sd-search-open .popup-search-wrap,
.mini-search.act .popup-search-wrap {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.mini-search.sd-search-open .popup-search-wrap .searchform-s,
.mini-search.act .popup-search-wrap .searchform-s {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  color: #0f172a !important;
  background: #fff !important;
  font-size: 14px !important;
  height: 36px !important;
  box-sizing: border-box !important;
}
.mini-search .sd-search-results {
  position: absolute;
  top: calc(100% + 56px);
  right: 0;
  left: auto;
  width: min(320px, calc(100vw - 32px));
  z-index: 10000;
}

#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: 260px;
  object-fit: cover;
  object-position: top center;
  background: #f8fafc;
  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%;
  }
  .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;
  }
}
