* {
  box-sizing: border-box;
}

.navbar {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  height: 85px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 0px;
  height: 100%;
  box-sizing: border-box;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 45px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.search-section {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 350px;
  margin: 0 auto;
  position: relative;
  justify-content: center;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
  opacity: 0.7;
}

.search-input {
  border: none;
  outline: none;
  font-size: 16px;
  color: #666;
  background: transparent;
  padding: 8px 12px;
  width: 200px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #999;
  font-size: 16px;
}

.search-input:focus {
  background-color: #f8f9fa;
  width: 250px;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 9000;
  margin-top: 5px;
}

.search-result-item {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  position: relative;
}

.search-result-item:last-child {
  border-bottom: none;
  border: 1px solid #e0e0e0;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-link {
  display: block;
  padding: 0;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.search-result-image {
  width: 100%;
  height: 120px;
  border-radius: 0;
  overflow: hidden;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-content {
  padding: 15px;
  position: relative;
}

.search-result-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-excerpt {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.search-result-date {
  font-weight: 500;
}

.search-result-categories {
  position: absolute;
  top: 20px;
  right: 15px;

  color: white;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  z-index: 10;

}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
  font-style: italic;
}

.navbar-menu-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  align-items: center;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a,
.menu-item {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 0;
  display: block;
  white-space: nowrap;
}

.navbar-menu a:hover,
.menu-item:hover {
  color: #EB610E;
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a {
  display: flex;
  align-items: center;
  position: relative;
}

.menu-item-has-children > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #333;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  margin: 0;
  width: 100%;
}

.sub-menu a {
  padding: 10px 16px;
  color: #333;
  font-size: 14px;
  border-bottom: none;
  display: block;
  transition: all 0.3s ease;
}

.sub-menu a:hover {
  background-color: #f8f9fa;
  color: #EB610E;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 8px 16px;
    color: #333;
    font-size: 14px;
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #EB610E;
}

.stronaGWna {
  color: #636363;
}

.kategorie {
  color: #6d6d6d;
}

.vector {
  margin-left: 11px;
  width: 7px;
  height: 12px;
  transform: rotate(90deg);
}

.contact-section {
  margin: 17px 0px 0px 37px;
}

.kontakt {
  line-height: 19px;
  letter-spacing: 0;
  color: #2f4269;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1002;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.dropdown {
  position: relative;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 10px 0;
  min-width: 150px;
  z-index: 1001;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #6d6d6d;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f7fafc;
  color: #2f4269;
}

@media (max-width: 1024px) {
    .navbar-container {
        padding: 15px 15px;
    }
    
    .search-section {
        max-width: 250px;
    }
    
    .navbar-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 12px 15px;
    }
    
    .search-section {
        display: none;
    }
    
    .search-dropdown {
        left: -15px;
        right: -15px;
        border-radius: 0;
        margin-top: 0;
        border-left: none;
        border-right: none;
    }
    
    .search-result-link {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .search-result-image {
   
    }
    
    .search-result-title {
        font-size: 15px;
    }
    
    .search-result-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
    
    .search-result-meta {
        font-size: 11px;
        gap: 8px;
    }
    
    .navbar-menu-wrapper {
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e1e5e9;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
        max-height: calc(100vh - 85px);
        overflow-y: auto;
    }
    
    .navbar-menu-wrapper.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-menu {
        flex-direction: column;
        padding: 20px;
        width: 100%;
        gap: 0;
        align-items: flex-start;
    }
    
    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-menu li:last-child {
        border-bottom: none;
    }
    
    .navbar-menu > li > a {
        padding: 15px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .menu-item-has-children > a::after {
        border-top: 4px solid #333;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        transition: transform 0.3s ease;
    }
    
    .menu-item-has-children.mobile-open > a::after {
        transform: rotate(180deg);
    }
    
    .sub-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: #f8f9fa;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-item-has-children.mobile-open .sub-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        padding: 10px 0;
    }
    
    .sub-menu li {
        border-bottom: none;
        padding: 0;
    }
    
    .sub-menu a {
        padding: 12px 20px;
        color: #666;
        font-size: 14px;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .sub-menu li:last-child a {
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        margin-top: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 70px;
    }
    
    .navbar-container {
        padding: 10px 15px;
    }
    
    .navbar-logo img {
        height: 35px;
        max-width: 150px;
    }
    
    .navbar-menu-wrapper {
        top: 70px;
    }
    
    .search-result-link {
        padding: 10px 12px;
        gap: 8px;
    }
    
    
    .search-result-title {
        font-size: 14px;
    }
    
    .search-result-excerpt {
        font-size: 12px;
    }
    
    .search-result-meta {
        font-size: 10px;
        gap: 6px;
    }
    
    .search-no-results {
        padding: 15px;
        font-size: 13px;
    }
}