/* ============================================================
   HandlaOnline Standard – Custom CSS
   ============================================================ */

/* ── Blog — preserve CMS title casing (no auto-capitalize) ── */
.blog-posts h1,
.blog-posts h2,
.blog-posts h2 a,
.blog-list-section h1,
.blog-single-section h1 {
  text-transform: none !important;
}

/* ── Topbar Dropdown Menus ── */

/* Dropdown toggle arrow/caret in topbar */
#header .header-top .nav-item.dropdown .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

/* Dropdown menu container */
#header .header-top .header-nav-top .dropdown-menu {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 30px 10px rgba(0, 0, 0, 0.05);
  min-width: 180px;
  padding: 5px 0;
  margin-top: 0;
  z-index: 10000;
}

/* Dropdown menu items – dark text on white background */
#header .header-top .header-nav-top .dropdown-menu .dropdown-item {
  color: #333 !important;
  font-size: 0.85em;
  padding: 7px 16px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

#header .header-top .header-nav-top .dropdown-menu .dropdown-item:hover,
#header .header-top .header-nav-top .dropdown-menu .dropdown-item:focus {
  background-color: #f5f5f5;
  color: #000 !important;
}

#header .header-top .header-nav-top .dropdown-menu .dropdown-item:active {
  background-color: #e9ecef;
  color: #000 !important;
}

/* Ensure the dropdown parent has position relative for absolute menu */
#header .header-top .nav-item.dropdown {
  position: relative;
}

/* Hide the Porto triangle arrow on dropdown menu */
#header .header-top .header-nav-top .dropdown-menu::before {
  display: none !important;
}

/* ── Topbar CTA buttons ── */

/* Nav-item holding CTA: center vertically in topbar */
#header .header-top .nav-item:has(.btn-cta) {
  display: inline-flex !important;
  align-items: center;
  align-self: stretch;
}

/* CTA button base style */
#header .header-top .nav-item .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 5px 14px;
  line-height: 1.4;
  border-radius: 3px;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
}

/* Mobile: tighter padding, smaller font */
@media (max-width: 767.98px) {
  #header .header-top .nav-item .btn-cta {
    padding: 3px 10px;
    font-size: 0.75em;
    line-height: 1.2;
  }
}

/* ── Inner pages with sidtitel band + transparent header ──
   Transparent header is for hero/homepage. On CMS pages with a page-header
   section, force a solid header bar and dark nav so menu stays readable. */
body.ho-has-page-header #header.header-transparent {
  position: relative !important;
}

html:not(.sticky-header-active) body.ho-has-page-header #header.header-transparent .header-body {
  background-color: #fff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.ho-has-page-header #header.header-transparent .header-nav-light-text .header-nav-main nav > ul > li > a,
body.ho-has-page-header #header.header-transparent .header-nav-light-text .header-nav-main nav > ul > li > a.dropdown-toggle {
  color: var(--dark, #212529) !important;
}

body.ho-has-page-header #header.header-transparent .header-nav-light-text .header-nav-main nav > ul > li > a.active {
  color: var(--primary, #0088cc) !important;
}

body.ho-has-page-header #header.header-transparent .header-btn-collapse-nav {
  color: var(--dark, #212529) !important;
}

body.ho-has-page-header .main > section.page-header.page-header-modern.bg-color-grey-200,
body.ho-has-page-header .main > section.page-header.page-header-modern.bg-color-grey {
  margin-top: 0;
}

/* Solid sidtitel (modern grey, classic, primary): keep band above hero — overlap vars set to 0 in main.php */
body.ho-page-header-solid .main > section.page-header.page-header-modern,
body.ho-page-header-solid .main > section.page-header.page-header-classic {
  position: relative;
  z-index: 5;
  margin-bottom: 35px !important;
}

body.ho-page-header-overlap .main > section.page-header.page-header-background {
  margin-bottom: 0 !important;
}

/* ── Sidtitel band (ho-pt-band) — layout from dashboard settings ── */
section.page-header.ho-pt-band .ho-pt-inner {
  width: 100%;
}

section.page-header.ho-pt-band .ho-pt-title-wrap {
  width: 100%;
}

section.page-header.ho-pt-band .ho-pt-breadcrumb {
  width: 100%;
  padding-left: 0;
  margin-bottom: 0;
}

section.page-header.ho-pt-band.ho-pt-layout-stacked .ho-pt-breadcrumb,
section.page-header.ho-pt-band.ho-pt-layout-centered .ho-pt-breadcrumb {
  display: block;
  text-align: center;
}

section.page-header.ho-pt-band.ho-pt-layout-stacked .ho-pt-breadcrumb > li,
section.page-header.ho-pt-band.ho-pt-layout-centered .ho-pt-breadcrumb > li {
  display: inline-block;
  float: none;
}

section.page-header.ho-pt-band.ho-pt-layout-centered .ho-pt-inner-centered {
  max-width: 960px;
}

section.page-header.ho-pt-band.ho-pt-layout-side_by_side .ho-pt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  section.page-header.ho-pt-band.ho-pt-layout-side_by_side .ho-pt-breadcrumb {
    justify-content: flex-end;
  }
}

section.page-header.ho-pt-band .ho-pt-custom-title {
  display: block;
}

section.page-header.ho-pt-band .ho-pt-custom-breadcrumb > li,
section.page-header.ho-pt-band .ho-pt-custom-breadcrumb > li a {
  color: inherit;
}
