/* Rwanda Business List - site header layout.
   Lives in the plugin so it survives removing any helper plugin.
   Selectors target the Elementor element IDs of the "Site Header" template. */

/* 1. Height: collapse default inner paddings of the stacked containers. */
.elementor-element-0b003ef{padding-top:13px!important;padding-bottom:13px!important}
.elementor-element-0b003ee>.e-con-inner,.elementor-element-hdrow01>.e-con-inner,.elementor-element-hdlogo1>.e-con-inner,.elementor-element-hdnav1>.e-con-inner,.elementor-element-hdright1>.e-con-inner{padding-top:0!important;padding-bottom:0!important}

/* 2. Widths: logo and right group size to content, nav takes the rest. */
.elementor-element-hdlogo1,.elementor-element-hdright1{width:auto!important;flex:0 0 auto!important}
.elementor-element-hdnav1{width:auto!important;flex:1 1 auto!important;min-width:0!important}
.elementor-element-hdnav1>.e-con-inner{min-width:0}
.elementor-element-hdmenu1{max-width:100%}
.elementor-element-hdnav1 ul{flex-wrap:wrap!important;row-gap:6px;justify-content:center}
.elementor-element-hdnav1 li{white-space:nowrap!important}
.elementor-element-hdbtn1 .elementor-button{white-space:nowrap!important}
.elementor-element-hdright1,.elementor-element-hdsrch1,.elementor-element-hdbtn1{flex-shrink:0!important}

/* 3. Tighter nav links for this header's menu only. */
.elementor-element-hdmenu1 .xpro-elementor-horizontal-navbar-nav>li>a{padding:20px 6px!important;margin:0 3px!important;font-size:14px!important}
@media(min-width:1025px){.elementor-element-hdmenu1 .xpro-elementor-horizontal-navbar-nav{flex-wrap:wrap!important;row-gap:6px}}

/* 4. Logo lockup. */
.elementor-element-hdlogo1>.elementor-widget-image{flex:0 0 auto!important;width:auto!important;--container-widget-width:auto!important;--container-widget-flex-grow:0!important}
.elementor-element-hdlogo1 .elementor-widget-image img{display:block}
.elementor-element-hdlogotxt1{flex:0 1 auto!important;width:auto!important;min-width:0!important}
.elementor-element-hdtag1 p{line-height:1.25}

/* 5. Give the header row more room than the default boxed width. */
@media(min-width:1025px){.elementor-element-0b003ee{max-width:1320px!important}}

/* 6. Hide the tagline and header search early so the 6-item nav never collides. */
@media(max-width:1366px){.elementor-element-hdsrch1{display:none!important}.elementor-element-hdtag1{display:none!important}}

/* 7. Smaller laptops. */
@media(min-width:1025px) and (max-width:1240px){.elementor-82 .elementor-element.elementor-element-hdtitle1 .xpro-site-title{font-size:18px!important}.elementor-82 .elementor-element.elementor-element-hdlogoimg1 img{width:40px!important}.elementor-82 .elementor-element.elementor-element-hdrow01{--column-gap:16px!important}.elementor-82 .elementor-element.elementor-element-hdbtn1 .elementor-button{font-size:13.5px!important;padding:10px 18px!important}}

/* 8. Phones. */
@media(max-width:767px){.elementor-element-hdlogo1{flex:1 1 0!important;min-width:0!important;width:auto!important}.elementor-element-hdnav1,.elementor-element-hdright1{flex:0 0 auto!important;width:auto!important}.elementor-element-hdlogo1 .xpro-site-title{line-height:1.15}.elementor-element-hdlogo1 .xpro-site-title-text{text-wrap:balance}.elementor-82 .elementor-element.elementor-element-hdmenu1 button.xpro-elementor-horizontal-menu-toggler{width:36px!important;height:36px!important;font-size:22px!important}}
@media(max-width:360px){.elementor-82 .elementor-element.elementor-element-hdtitle1 .xpro-site-title{font-size:13px!important}.elementor-82 .elementor-element.elementor-element-hdlogoimg1 img{width:32px!important}.elementor-82 .elementor-element.elementor-element-hdbtn1 .elementor-button{font-size:12px!important;padding:9px 12px!important}.elementor-82 .elementor-element.elementor-element-0b003ef{--padding-left:12px!important;--padding-right:12px!important}}
/* Legal pages (privacy, terms): keep anchored headings clear of the header */
.rbl-legal [id^="sec-"]{scroll-margin-top:96px}
.rbl-legal .elementor-widget-text-editor ul{margin:0 0 6px;padding-left:22px}
.rbl-legal .elementor-widget-text-editor li{margin-bottom:6px}
.rbl-legal .elementor-widget-text-editor p:last-child{margin-bottom:0}
.rbl-legal .elementor-widget-text-editor a{color:#20603D;font-weight:600}


/* Header: the second button (Post a Job) behaves like the first; stacked on phones. */
.elementor-element-hdbtn2a .elementor-button{white-space:nowrap!important}
.elementor-element-hdbtn2a{flex-shrink:0!important}
@media(min-width:1025px) and (max-width:1240px){.elementor-82 .elementor-element.elementor-element-hdbtn2a .elementor-button{font-size:13.5px!important;padding:10px 18px!important}}
@media(max-width:767px){.elementor-82 .elementor-element.elementor-element-hdbtn2a .elementor-button{font-size:12px!important;padding:9px 12px!important}.elementor-element-hdright1{align-items:stretch!important}.elementor-element-hdbtn1,.elementor-element-hdbtn2a{width:100%}}


/* Hero search: keep the green button inside the field on phones. */
@media(max-width:767px){
.elementor-element-hrsr001 .xpro-elementor-search-input-group,.elementor-element-hrsr002 .xpro-elementor-search-input-group{display:flex!important;width:100%!important}
.elementor-element-hrsr001 .xpro-elementor-search-input-group>input,.elementor-element-hrsr002 .xpro-elementor-search-input-group>input{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important;padding-left:12px!important;padding-right:6px!important;font-size:14px!important}
.elementor-element-hrsr001 .xpro-elementor-search-button,.elementor-element-hrsr002 .xpro-elementor-search-button{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:36px!important;padding:0 14px!important;margin:4px!important;font-size:13px!important;white-space:nowrap!important}
}
