.obc-kids .obc-course-grid>.wp-block-column{display:flex;flex-direction:column;min-width:0}
.obc-kids .obc-course-grid>.wp-block-column>.obc-course-card{height:auto;flex:1}
.obc-kids-parents,.obc-kids-assistant{margin:48px 0}
.obc-kids-parents .obc-course-grid{max-width:430px}
.obc-kids-assistant{padding:24px;border:1px solid #dce8f5;border-radius:20px;background:#eaf5ff}
.obc-kids #kids-courses{scroll-margin-top:24px}

/* Standard full cover hero layout: same as /kursy/ and /dpo/ */
.obc-kids .obc-catalog-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--obc-radius-xl, 1.5rem);
  min-height: 420px;
  background: #0f172a;
}
.obc-kids .obc-catalog-hero picture {
  display: contents;
}
.obc-kids .obc-catalog-hero .wp-block-cover__image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.obc-kids .obc-catalog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 45%, rgba(15, 23, 42, 0.15) 100%);
  z-index: 1;
}
.obc-kids .obc-catalog-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4rem);
  width: 100%;
  box-sizing: border-box;
}
.obc-kids .obc-catalog-hero__content {
  max-width: 38rem;
  color: #fff;
}
.obc-kids .obc-catalog-hero__content h1 {
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.obc-kids .obc-catalog-hero__content p {
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}
.obc-kids .obc-catalog-hero__content .wp-element-button {
  background: #1769ed !important;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(23, 105, 237, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.obc-kids .obc-catalog-hero__content .wp-element-button:hover {
  background: #154eaa !important;
  transform: translateY(-1px);
}

@media(max-width:700px) {
  .obc-kids .obc-catalog-hero {
    min-height: auto;
    padding-bottom: 18rem;
    background: #fff;
  }
  .obc-kids .obc-catalog-hero .wp-block-cover__image-background {
    top: auto;
    bottom: 0;
    height: 18rem;
    object-position: center bottom;
  }
  .obc-kids .obc-catalog-hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.85) 60%, transparent 100%);
  }
  .obc-kids .obc-catalog-hero__content {
    max-width: 100%;
    color: #0f172a;
  }
  .obc-kids .obc-catalog-hero__content h1 {
    color: #0f172a !important;
  }
  .obc-kids .obc-catalog-hero__content p {
    color: #475569;
  }
}
/* Branded interactive CTA button with signature gradient, elevation lift & shadow pulse */
.obc-kids .obc-catalog-hero__content .wp-element-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  min-height: 3rem !important;
  padding: 0.75rem 1.75rem !important;
  background: linear-gradient(135deg, var(--obc-primary, #1e3a8a) 0%, #173693 100%) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(23, 54, 147, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}

.obc-kids .obc-catalog-hero__content .wp-element-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.obc-kids .obc-catalog-hero__content .wp-element-button:hover {
  background: linear-gradient(135deg, var(--obc-primary-hover, #1e40af) 0%, #112870 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(28, 63, 170, 0.4), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.obc-kids .obc-catalog-hero__content .wp-element-button:hover::after {
  left: 100%;
}

.obc-kids .obc-catalog-hero__content .wp-element-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(28, 63, 170, 0.3) !important;
}

.obc-kids .obc-catalog-hero__content .wp-element-button:focus-visible {
  outline: 3px solid #93c5fd !important;
  outline-offset: 3px !important;
}
