/* 
 Theme Name:   MBE
 Theme URI:    
 Description:  for MBE partners Liberec
 Author:       Pavel Srne.cz
 Author URI:   srne.cz
 Template:     astra
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

.position-relative {
  position: relative !important;
}

/* MAIN MENU */ 
.ast-theme-transparent-header .ast-builder-menu .main-header-menu .menu-item:hover > .menu-link, .ast-theme-transparent-header .main-header-menu .menu-item:hover > .menu-link {    
    color: #DC2618;
}

.ast-theme-transparent-header .ast-builder-menu .main-header-menu .menu-link, .ast-theme-transparent-header [CLASS*="ast-builder-menu-"] .main-header-menu .menu-item > .menu-link, .ast-theme-transparent-header .main-header-menu .menu-link {
    color: #565A61;
}

.ast-desktop .main-header-menu.ast-menu-shadow .sub-menu {
  width: auto;
}

.ast-builder-menu-1 .sub-menu {
  min-width: 250px;
}

.ast-builder-menu-1 .sub-menu .menu-item > .menu-link {
  line-height: 1em;
  font-size: .88rem;
  padding: .5em 1em;
  letter-spacing: 0.5px;
}


/* GOOGLE MAPS */

  .google-maps {
    position: relative;
    padding-bottom: 20%; // This is the aspect ratio
    height: 0;
    overflow: hidden;
  }
  .google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }


#content.site-content {
    position: relative;
    top: 88px;
}

.entry-content ul li {
    list-style: none;
}

.entry-content ul li::before {
  content: "●";
  color: #d51a00;
  margin-right: 10px;
  position: relative;
  top: -1px;
  margin-left: 5px;
}

/* SLIDER */
.swiper-content {
  height: 522px;
}
.wp-block-uagb-container {
  top: 35%;
}

.swiper-content > .alignwide {
  max-width: var(--wp--style--global--wide-size);
}

.swiper-content .uagb-ifb-separator {
  width: 100%;
  height: 20px;
  border-top-width: 0;
  border-top-style: none;
  margin-bottom: 0px;
  background-image: url("./../../uploads/2026/03/baffo.png.webp");
  background-size: contain;
  background-repeat: no-repeat;
}

.wp-block-button .wp-block-button__link {
  background-color: #D51A00;
  color: #fff;
}
.wp-block-button .wp-block-button__link:hover {
  background-color: #EE2C24;
  color: #f9f9f9;
}


.mbe-number-frame {
  box-shadow: 0 0 15px -5px #999;
}

/* MBE SERVICES */

.mbe-solution-frame h3.wp-block-heading {
  color: #d51a00;
  padding-top: 12px;
}
.mbe-solution-frame:hover {
  box-shadow: 0 0 15px 0 #999;
}
.mbe-solution-frame {
  position: relative;
  overflow:hidden;
}
.mbe-solution-frame::before {
  content: "";
  background: #d51a00;
  position: absolute;
  width: 300px;
  height: 400px;
  border-radius: 50px;
  transform: rotate(45deg);
  top: -300px;
  z-index: -1;
  left: -50px;
  opacity: 0;
  transition: all .3s ease-in-out;
}
.mbe-solution-frame:hover::before {
  opacity: 1;
}
.mbe-solution-frame:hover > .wp-block-uagb-image figure.wp-block-uagb-image__figure {
  filter: grayscale(1) invert(1) brightness(10);
}

.why-mbe-block {
  background-color: #e4e3df;
  padding: 20px;
}


.man-courier-wrap-group {
  position: relative;
  background-size: contain !important;
  background-repeat: no-repeat !important;  
}

.man-courier img {
  position: absolute;
  left: 40px;
  top: 0px;
  bottom: 0px;
  margin: auto;
}


/* FOOTER */

footer#colophon div.site-primary-footer-wrap {
  margin-top: 4rem;
  padding-top: 20px;
  background-color: #e4e3df;
}
footer#colophon div.site-below-footer-wrap {
  margin-top: 0;
  padding-top: 20px;
  background-color: #e4e3df;
  border: none;
}

/* FORM */

.wpcf7-form .wp-block-columns {
	gap: 1.2rem;
}

.wpcf7-form label > span:first-child {
  float: left;
  margin-right: 5px;
}

.wpcf7-form span:has(input.wpcf7-validates-as-required):before {
    content: " (povinné)";
    color: #d51a00;
    font-size: 0.8em;
}

@media only screen and (max-width: 1140px) {
  .man-courier img {
    left: auto;
    right: auto;
  }
  .google-maps {
    padding-bottom: 40%;
  }  
}

@media only screen and (max-width: 900px) {
  .man-courier img {
    position: static;
  }
}


@media only screen and (max-width: 782px) {
  .man-courier-wrap-group .wp-block-columns {
    gap: 0;
    line-height: 1.2;
  }
  .google-maps {
    padding-bottom: 50%;
  }    
}

@media (max-width: 544px) {
  .man-courier-wrap-group .wp-block-columns .wp-block-column:not(:last-child) {
    margin-bottom: 0;
  }
}


@media only screen and (max-width: 520px) {
  .man-courier-wrap-group {
    padding-top: 0 !important;
    background-image: none !important;
  }
}


