/* SANJIVANI EDU CMS - Rehbar Theme Design 2 compatibility layer.
   The original Rehbar CSS remains the primary visual source. These rules only
   remove CMS overrides/conflicts and add safe multi-level menu behavior. */
.cms-theme2 .navbar { padding: 0; background-color: #fff; }
.cms-theme2 .navbar-collapse { background-color: #fff; }
.cms-theme2 .navbar-light .navbar-nav .nav-link { color: #000; }
.cms-theme2 .navbar-light .navbar-nav .nav-link:focus,
.cms-theme2 .navbar-light .navbar-nav .nav-link:hover { color: #C7C4C4; }
.cms-theme2 .navbar-brand { z-index: 1051; }
.cms-theme2 .navbar-brand.cms-text-brand { color:#fff !important; font-size:22px; font-weight:700; line-height:1.15; padding:8px 14px; min-height:49px; display:flex; align-items:center; max-width:370px; }
.cms-theme2 .navbar-brand.cms-text-brand:hover { color:#fff !important; }
.cms-theme2 .navbar-brand img { max-width:370px; width:auto; height:auto; }
.cms-theme2 .dropdown-submenu { position:relative; }
.cms-theme2 .dropdown-submenu > .dropdown-menu { top:0; left:100%; margin-top:-10px; }
.cms-theme2 .dropdown-submenu:hover > .dropdown-menu { display:block; opacity:1; visibility:visible; }
.cms-theme2 .dropdown-submenu > a.dropdown-toggle::after { float:right; margin-top:.45em; }
.cms-theme2 .dropdown-menu { z-index:1100; }
.cms-theme2 .cms-hero-caption { text-align:left; }
.cms-theme2 .cms-home-copy a { color:#a51417; font-weight:700; }
.cms-theme2 .cms-page-content img { max-width:100%; height:auto; }
.cms-theme2 .cms-soon { color:#777; font-style:italic; }
@media (max-width:991.98px){
  .cms-theme2 .navbar-brand img { width:245px; }
  .cms-theme2 .navbar-brand.cms-text-brand { max-width:245px; font-size:18px; }
  .cms-theme2 .dropdown-submenu > .dropdown-menu { position:static; float:none; margin:0; box-shadow:none; padding-left:18px; }
  .cms-theme2 .dropdown-submenu:hover > .dropdown-menu { display:none; }
  .cms-theme2 .dropdown-submenu.open > .dropdown-menu { display:block; }
  .cms-theme2 .navbar .dropdown ul { position:static; opacity:1; visibility:visible; }
}
