/*
 Theme Name:   Twenty Twenty-Five Child
 Template:     twentytwentyfive
 Version:      1.0.0
 Description:  Motyw potomny dla Twenty Twenty-Five
 Author:       Łukasz Zakrzewski
*/
body,
html {
  scroll-behavior: smooth !important;
}
.wp-block-navigation__responsive-container-open {
  color: rgb(46, 49, 146);
}

.widget_polylang img {
  width: 26px !important;
  height: 20px !important;
}
.widget_polylang ul {
  list-style-type: none;
  padding: 0;
}
.widget_nav_menu ul a {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.widget_nav_menu ul a:hover {
  text-decoration: underline;
}
.widget_nav_menu li:last-child {
  padding-right: 0;
}
.custom-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
@media (min-width: 600px) {
  .widget_nav_menu ul a {
    color: white;
    font-size: 18px;
  }
  .widget_nav_menu .sub-menu {
    background-color: #f3f3f3;
    padding: 20px !important;
  }

  .widget_nav_menu .sub-menu .menu-item {
    padding: 0;
    line-height: 1.2;
  }
  .widget_nav_menu .sub-menu .menu-item:not(:last-child) {
    margin-bottom: 12px;
  }
  .widget_nav_menu .sub-menu a {
    color: rgb(46, 49, 146);
  }
}
@media (max-width: 599px) {
  .custom-header {
    padding-right: var(--wp--preset--spacing--30) !important;
    padding-left: var(--wp--preset--spacing--30) !important;
  }
}
/* Base styles */
.widget_nav_menu {
  z-index: 1000;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: rgb(46, 49, 146);
}
.menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.4em;
  vertical-align: middle;
  transform: rotate(90deg);

  /* Use mask so we can recolor with CSS */
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='black' d='M9 18a1 1 0 0 1-.7-1.7L13.6 11 8.3 6.7A1 1 0 1 1 9.7 5.3l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-.7.3Z'/>\
</svg>")
    no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='black' d='M9 18a1 1 0 0 1-.7-1.7L13.6 11 8.3 6.7A1 1 0 1 1 9.7 5.3l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-.7.3Z'/>\
</svg>")
    no-repeat center / contain;
}

/* .menu-item-has-children::after {
  background-image: url("./resources/images/arrow-down.svg");
  width: 20px;
  height: 20px;
  position: absolute;
  line-height: 1;
  margin-left: 2px;
  opacity: 0.5;
  top: 2px;
  transition: all 0.25s linear;
} */
/* Sub-menus */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 0.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 200px;
}

.menu li:hover > .sub-menu {
  display: block;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 28px;
  height: 22px;
  justify-content: space-between;
  z-index: 1100;
  position: relative;
}
.hamburger.open {
  position: absolute;
  right: 20px;
  top: 40px;
}

.hamburger span {
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.4s;
}

/* Hamburger -> X effect */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile styles */
@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5rem 2rem;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
  }

  .menu.active {
    display: flex;
    padding: 100px 20px;
  }
  .menu.active .sub-menu {
    display: block;
    left: auto;
  }

  .menu li {
    width: 100%;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }

  .menu li.open > .sub-menu {
    display: block;
  }
  .widget_nav_menu .menu ul {
    position: static;
    padding-left: 10px;
  }
}

.wp-block-media-text.has-media-on-the-right img {
  border-radius: 150px 0 150px 0;
}
.wp-block-media-text img {
  border-radius: 0 150px 0 150px;
}

@media (max-width: 600px) {
  .wp-block-media-text {
    gap: 2rem;
  }
  .wp-block-media-text__content {
    padding: 0 !important;
  }
}
