
.kategorie-header-popis-container-mobile {
  display: none; /* Hidden by default on desktop */
  box-sizing: border-box;
  overflow: hidden;
  background-color: #f8f8f8;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kategorie-header-popis-middle-block-mobile,
.kategorie-header-popis-right-block-mobile {
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 100%;
}

.kategorie-header-popis-middle-block-mobile {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px; /* Added for requested banner size */
  /* Removed flex and margins that were for desktop layout */
}

.kategorie-header-popis-banner-overlay-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 44, 77, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

.kategorie-header-popis-banner-title-mobile {
  font-size: 19px;
  margin-bottom: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.kategorie-header-popis-banner-button-mobile {
  display: inline-block;
  padding: 10px 22px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 15px;
  font-weight: 500;
}

.kategorie-header-popis-banner-button:hover-mobile {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.kategorie-header-popis-right-block-mobile {
  background-color: #f2f2f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 6px;
  /* Removed flex: 0 0 20%; for desktop layout */
}

.kategorie-header-popis-contact-title-mobile {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #0056b3;
  font-weight: 500;
}

.kategorie-header-popis-contact-text-mobile {
  font-size: 14px;
  margin-bottom: 12px;
  color: #555;
  padding: 0 10px;
}

.kategorie-header-popis-operator-image-mobile {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 0px solid #0087c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.kategorie-header-popis-contact-email-mobile {
  font-size: 1.1em;
  color: #0087c7;
  text-decoration: none;
  margin-bottom: 4px;
  font-weight: 500;
}

.kategorie-header-popis-contact-email-mobile:hover {
  text-decoration: underline;
}

.kategorie-header-popis-opening-hours-mobile {
  font-size: 0.9em;
  color: #777;
  margin: 0;
}

@media (max-width: 768px) {
  .kategorie-header-popis-container-mobile {
    display: flex; /* Show container on mobile */
    flex-direction: column; /* Stack blocks vertically */
    max-height: none; /* Allow container to grow */
    width: calc(100% - 10px); /* Use previous desktop width calculation for mobile, if desired */
    margin: 5px; /* Use previous desktop margin for mobile, if desired */
    padding: 5px; /* Use previous desktop padding for mobile, if desired */
  }

  .kategorie-header-popis-middle-block-mobile {
    flex: 1 1 100%; /* Take full width on mobile */
    margin-bottom: 10px; /* Space between middle and right block */
    margin-left: 0; /* Override any potential desktop horizontal margin */
    margin-right: 0; /* Override any potential desktop horizontal margin */
  }

  .kategorie-header-popis-right-block-mobile {
    flex: 1 1 100%; /* Take full width on mobile */
  }
}

@media (max-width: 480px) {
  .kategorie-header-popis-container-mobile {
    margin: 0;
    border-radius: 0;
  }
}