/* ===== KH fixes: header/hero spacing + mobile sizing ===== */

/* Desktop: JS sets the exact header height as margin-top (flush, no gap/overlap) */
@media (min-width: 992px) {
  .hero-slide .slide-inner { padding-top: 60px; }
}

/* Mobile: keep clearance under the taller header, shrink brand + hero title */
@media (max-width: 991px) {
  .hero-slider { margin-top: 64px; }
  .dima-logo-text { font-size: 16px; }
  .dima-logo-text .dima-logo-sub { font-size: 10px; line-height: 1.25; }
  .hero-slide .slide-inner { padding-top: 30px; padding-right: 20px; }
  .hero-slide h1,
  .hero-slide h2 { font-size: 24px !important; }
  .hero-slide .hero-title-green { font-size: 24px !important; }
  .hero-slide p { font-size: 15px; line-height: 26px; }
  /* Inner-page title bars: header is sticky/in-flow on mobile, so drop the desktop
     top margin that would otherwise create a gap between the header and the title bar */
  .page-head { margin-top: 0; }
  .title_container { margin-top: 0; }
  /* Safety net: stray empty <p> (porting artifacts) must not add top spacing */
  .dima-main.clearfix > p { margin: 0 !important; }
}

/* ===== Dropdown sub-menu (EN section uses a static nav with .sub-menu) ===== */
.dima-nav li { position: relative; }
.dima-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 235px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border-radius: 0 0 10px 10px;
  display: none;
  z-index: 1050;
  text-align: left;
}
.dima-nav li:hover > .sub-menu,
.dima-nav li:focus-within > .sub-menu { display: block; }
.dima-nav .sub-menu li { display: block; width: 100%; }
.dima-nav .sub-menu a {
  display: block;
  padding: 9px 20px;
  color: #1f2d3a;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid #f1f3f5;
}
.dima-nav .sub-menu li:last-child a { border-bottom: 0; }
.dima-nav .sub-menu a:hover { background: #f4f8f6; color: #0a8a4a; }
html[dir="rtl"] .dima-nav .sub-menu { left: auto; right: 0; text-align: right; }

/* Mobile: sub-menu stays inline inside the slide-in panel */
.mobile-menu-panel .sub-menu {
  position: static;
  display: block;
  box-shadow: none;
  background: transparent;
  padding: 0 0 0 14px;
  border-radius: 0;
}
.mobile-menu-panel .sub-menu a { border-bottom: 0; padding: 8px 14px; }
.mobile-menu-panel .sub-menu a:hover { background: rgba(255,255,255,.08); }

/* ===== Mobile nav: Services submenu collapsed by default, opens on tap ===== */
@media (max-width: 991px) {
  .dima-nav li.has-dropdown > .dima-dropdown { display: none !important; }
  .dima-nav li.has-dropdown.open > .dima-dropdown { display: block !important; }
  .dima-nav li.has-dropdown > a .dropdown-caret { display: inline-block; }
  .dima-nav li.has-dropdown.open > a .dropdown-caret { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
}
/* ===== Desktop: restore hover dropdown (global rule had hidden it) ===== */
@media (min-width: 992px) {
  .dima-nav li.has-dropdown > .dima-dropdown { display: block !important; }
}