/* A ONE: Fixed, compact responsive header. Does not alter existing theme files. */
header.two {position:fixed !important;top:0;left:0;right:0;width:100%;z-index:11120;background:#fff;}
header.two .bottom-bar {background:#fff;}
header.two .bottom-bar .logo {padding-top:5px !important;padding-bottom:5px !important;}
header.two .bottom-bar .logo a {display:flex;align-items:center;}
header.two .bottom-bar .logo img {display:block;width:auto;max-width:100%;height:auto !important;max-height:85px !important;object-fit:contain;}
@media (max-width:767px) {
  header.two .top-bar {padding-top:7px;padding-bottom:7px;}
  header.two .bottom-bar .logo img {max-height:65px !important;max-width:min(72vw,300px);}
  header.two .bottom-bar .logo {padding-top:5px !important;padding-bottom:5px !important;}
  header.two .bottom-bar .two-bar {min-height:0;}
}

/* Center-align header controls; preserve original RK layout and fixed positioning. */
header.two .bottom-bar .two-bar { display:flex; align-items:center; }
header.two .bottom-bar .logo,header.two .bottom-bar .bar-menu,header.two .bottom-bar .header-search {align-self:center;}
header.two .bottom-bar .bar-menu {line-height:1; cursor:pointer;}
header.two .bottom-bar .bar-menu i {display:block;line-height:1;}
header.two .bottom-bar .header-search .search-box-outer {display:flex;align-items:center;justify-content:center;}
header.two .bottom-bar .header-search .search-box-outer > a {display:inline-flex;align-items:center;justify-content:center;margin:0 !important;min-width:48px;min-height:48px;}
@media(max-width:1199px){
 header.two .bottom-bar .two-bar {width:100%;display:grid !important;grid-template-columns:minmax(0,1fr) 44px 52px;column-gap:12px;align-items:center;justify-items:center;padding-right:10px;}
 header.two .bottom-bar .two-bar > .d-flex {width:100%;min-width:0;justify-self:start;align-items:center;}
 header.two .bottom-bar .logo {width:100%;display:flex;align-items:center;justify-content:flex-start;padding:5px 0 !important;}
 header.two .bottom-bar .logo img {max-width:100% !important;max-height:65px !important;height:auto !important;object-fit:contain;}
 header.two .bottom-bar .bar-menu {margin:0 !important;display:flex;align-items:center;justify-content:center;width:44px;height:48px;}
 header.two .bottom-bar .header-search {margin:0 !important;display:flex;align-items:center;justify-content:center;width:52px;}
}
@media(max-width:767px){
 header.two .bottom-bar .two-bar {grid-template-columns:minmax(0,1fr) 40px 48px;column-gap:9px;}
 header.two .bottom-bar .header-search .search-box-outer > a {min-width:44px;min-height:44px;}
}
/* White links and submenu text within black off-canvas mobile navigation. */
.mobile-nav, .mobile-nav.open {color:#fff;}
.mobile-nav ul li a,.mobile-nav ul li a:link,.mobile-nav ul li a:visited,
.mobile-nav .sub-menu li a,.mobile-nav .menu-item-has-children > a,
.mobile-nav ul li a i {color:#fff !important;}
.mobile-nav ul li a:hover,.mobile-nav ul li a:focus {color:#fff !important;opacity:.82;}
.mobile-nav .btn {color:#fff !important;}

/* Header alignment correction: equal-height cells and true centered navigation. */
@media (min-width:1200px) {
  header.two .bottom-bar .two-bar {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    column-gap:24px;
    width:100%;
    padding:0 16px !important;
  }
  header.two .bottom-bar .two-bar > .d-flex {grid-column:1;justify-self:start;display:flex;align-items:center;min-width:0;}
  header.two .bottom-bar .two-bar > .navbar {grid-column:2;justify-self:center;display:flex;align-items:center;justify-content:center;margin:0 !important;padding:0 !important;width:auto;}
  header.two .bottom-bar .navbar-links {display:flex;align-items:center;justify-content:center;gap:clamp(16px,2.3vw,40px);margin:0;padding:0;}
  header.two .bottom-bar .navbar-links > li {margin:0 !important;}
  header.two .bottom-bar .header-search {grid-column:3;justify-self:end;display:flex;align-items:center;justify-content:center;margin:0 !important;}
  header.two .bottom-bar .bar-menu {display:none !important;}
}
@media (max-width:1199px) {
  header.two .bottom-bar .two-bar {
    display:grid !important;
    grid-template-columns:minmax(0,46fr) minmax(44px,27fr) minmax(48px,27fr) !important;
    gap:0 !important;
    padding:0 8px !important;
    width:100%;align-items:center;
  }
  header.two .bottom-bar .two-bar > .d-flex {grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;}
  header.two .bottom-bar .logo {display:flex;justify-content:center;align-items:center;width:100%;padding:5px 0 !important;}
  header.two .bottom-bar .logo img {width:auto !important;height:auto !important;max-height:65px !important;max-width:100% !important;object-fit:contain;}
  header.two .bottom-bar .bar-menu {grid-column:2;grid-row:1;justify-self:center;align-self:center;margin:0 !important;display:flex;justify-content:center;align-items:center;width:44px;height:48px;}
  header.two .bottom-bar .header-search {grid-column:3;grid-row:1;justify-self:center;align-self:center;margin:0 !important;width:52px;display:flex;align-items:center;justify-content:center;}
  header.two .bottom-bar .navbar {display:none !important;}
}

/* Compact desktop navigation — centered group, smaller uniform gaps. */
@media (min-width:1200px) {
 header.two .bottom-bar .navbar-links {
  gap:clamp(12px,1.25vw,22px) !important;
  justify-content:center !important;
 }
 header.two .bottom-bar .navbar-links > li {margin:0 !important;padding:0 !important;}
 header.two .bottom-bar .navbar-links > li > a {padding-left:4px !important;padding-right:4px !important;}
}
/* Bright mobile-panel logo on black background. */
.mobile-nav .res-log img.white-logo {filter:none !important;opacity:1 !important;}
