/* KNX24 course layout migration — 19 Nov 2026.
   Scope is limited to converted Tilda artboards. Native Bitrix24, GetCourse,
   galleries, existing fonts, colours and text remain on their source nodes.
   Layout uses normal document flow; none of the original XY coordinates are used. */

/* The two parent page IDs deliberately give these rules higher specificity
   than the exported Tilda #rec... geometry and its important declarations. */
#knxc-course #allrecords .knx24-flow-board,
#knx24-dali-course #allrecords .knx24-flow-board {
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  margin:0!important;
  transform:none!important;
  display:block!important;
  contain:none!important;
}
#knxc-course #allrecords .knx24-flow-board > :is(.t396__carrier,.t396__filter),
#knx24-dali-course #allrecords .knx24-flow-board > :is(.t396__carrier,.t396__filter) {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
#knxc-course #allrecords .knx24-flow-root,
#knx24-dali-course #allrecords .knx24-flow-root {
  box-sizing:border-box!important;
  position:relative;
  isolation:isolate;
  z-index:1;
  width:min(100%,1240px);
  max-width:100%;
  margin-inline:auto;
  padding:clamp(24px,4.2vw,64px) clamp(16px,3vw,36px);
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:clamp(16px,2.5vw,30px);
}
#knxc-course #allrecords .knx24-flow-root *,
#knx24-dali-course #allrecords .knx24-flow-root * {
  box-sizing:border-box!important;
  min-width:0;
}
#knxc-course #allrecords .knx24-flow-root :is(.knx24-stack,.knx24-training-step),
#knx24-dali-course #allrecords .knx24-flow-root :is(.knx24-stack,.knx24-training-step) {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:clamp(10px,1.4vw,20px);
  min-width:0;
}
#knxc-course #allrecords .knx24-flow-root :is(.knx24-grid-2,.knx24-hero-grid),
#knx24-dali-course #allrecords .knx24-flow-root :is(.knx24-grid-2,.knx24-hero-grid) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  column-gap:clamp(16px,3vw,38px);
  row-gap:clamp(16px,2.5vw,30px);
}
#knxc-course #allrecords .knx24-flow-root .knx24-grid-3,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-grid-3 {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:clamp(16px,2.5vw,28px);
}
#knxc-course #allrecords .knx24-flow-root .knx24-grid-4,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-grid-4 {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:clamp(16px,2vw,26px);
}
#knxc-course #allrecords .knx24-flow-root .tn-elem,
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem {
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  inset:auto!important;
  margin:0!important;
  float:none!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  max-width:100%!important;
  padding:0!important;
  transform:none!important;
  translate:none!important;
  animation:none!important;
  visibility:visible;
  opacity:1;
  display:block!important;
  flex-shrink:0;
  box-sizing:border-box!important;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"],
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] {
  min-width:0!important;
  overflow:visible!important;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] .tn-atom,
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] .tn-atom {
  box-sizing:border-box!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  text-overflow:clip!important;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="image"],
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="image"] {
  width:100%!important;
  max-width:min(100%,var(--knx-element-width,100%))!important;
  align-self:flex-start;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="image"] :is(.tn-atom,.tn-atom__img,img),
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="image"] :is(.tn-atom,.tn-atom__img,img) {
  display:block;
  box-sizing:border-box!important;
  max-width:100%!important;
  width:100%!important;
  height:auto!important;
  object-fit:contain!important;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="button"],
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="button"] {
  min-height:44px!important;
  height:auto!important;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="button"] > .tn-atom,
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="button"] > .tn-atom {
  position:relative!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-height:52px!important;
  height:auto!important;
  padding:12px 15px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.3!important;
  text-decoration:none;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="video"],
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="video"] {
  width:100%!important;
  height:auto!important;
  aspect-ratio:var(--knx-element-ratio,16 / 9)!important;
  min-height:0!important;
  align-self:stretch;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="video"] > .tn-atom,
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="video"] > .tn-atom {
  position:relative!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  overflow:hidden;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="video"] :is(iframe,video,.tn-atom__videoiframe),
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="video"] :is(iframe,video,.tn-atom__videoiframe) {
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  display:block;
}
#knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="gallery"],
#knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="gallery"] {
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:200px!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-surface,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-surface {
  position:relative;
  isolation:isolate;
  box-sizing:border-box!important;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:clamp(10px,1.4vw,18px);
  padding:clamp(20px,2.6vw,34px);
}
#knxc-course #allrecords .knx24-flow-root .knx24-surface > .tn-elem[data-elem-type="shape"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-surface > .tn-elem[data-elem-type="shape"] {
  position:absolute!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  right:0!important;
  inset:0!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  pointer-events:none!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-surface > .tn-elem[data-elem-type="shape"] > .tn-atom,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-surface > .tn-elem[data-elem-type="shape"] > .tn-atom {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  height:100%!important;
  width:100%!important;
  box-sizing:border-box!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-surface > :not(.tn-elem[data-elem-type="shape"]),
#knx24-dali-course #allrecords .knx24-flow-root .knx24-surface > :not(.tn-elem[data-elem-type="shape"]) {
  position:relative;
  z-index:1;
}
#knxc-course #allrecords .knx24-flow-root .knx24-flex-card,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-flex-card {
  min-width:0;
  display:flex;
  gap:clamp(12px,2vw,26px);
  align-items:center;
}
#knxc-course #allrecords .knx24-flow-root .knx24-flex-card > :first-child,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-flex-card > :first-child {
  flex:0 0 clamp(60px,9vw,110px);
  width:clamp(60px,9vw,110px)!important;
  max-width:clamp(60px,9vw,110px)!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-flex-card > :last-child,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-flex-card > :last-child {
  flex:1 1 auto;
}
#knxc-course #allrecords .knx24-flow-root .knx24-flex-card .tn-elem[data-elem-type="shape"] {
  height:clamp(60px,9vw,110px)!important;
  aspect-ratio:1;
}
#knxc-course #allrecords .knx24-flow-root .knx24-flex-card .tn-elem[data-elem-type="shape"] .tn-atom {height:100%!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-icon-tile,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-icon-tile {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(12px,1.6vw,24px);
  text-align:center;
  min-width:0;
}
#knxc-course #allrecords .knx24-flow-root .knx24-icon-tile .tn-elem[data-elem-type="shape"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-icon-tile .tn-elem[data-elem-type="shape"] {
  width:min(100%,130px)!important;
  height:auto!important;
  aspect-ratio:1!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-icon-tile .tn-elem[data-elem-type="shape"] .tn-atom,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-icon-tile .tn-elem[data-elem-type="shape"] .tn-atom {width:100%!important;height:100%!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-icon-tile .tn-atom {text-align:center!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-bullet,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-bullet {
  display:flex;align-items:baseline;gap:clamp(12px,1.6vw,24px);min-width:0;
}
#knxc-course #allrecords .knx24-flow-root .knx24-bullet .tn-elem[data-elem-type="shape"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-bullet .tn-elem[data-elem-type="shape"] {
  width:14px!important;height:14px!important;flex:0 0 14px;margin-top:5px!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-bullet .tn-elem[data-elem-type="shape"] .tn-atom,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-bullet .tn-elem[data-elem-type="shape"] .tn-atom{width:100%!important;height:100%!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-decor,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-decor {
  display:none!important; /* decorative timeline cannot intersect flow text */
}
#knxc-course #allrecords .knx24-flow-root .knx24-logo-row,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-logo-row {
  display:flex;flex-wrap:wrap;align-items:center;gap:clamp(12px,2vw,28px);
}
#knxc-course #allrecords .knx24-flow-root .knx24-logo-row > .tn-elem,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-logo-row > .tn-elem {width:auto!important;max-width:min(100%,var(--knx-element-width,45%))!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-brand-combo,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-brand-combo {
  display:flex;gap:clamp(12px,2vw,24px);align-items:center;flex-wrap:wrap;
}
#knxc-course #allrecords .knx24-flow-root .knx24-brand-combo > .tn-elem,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-brand-combo > .tn-elem {width:auto!important;max-width:100%!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-brand-combo .tn-elem[data-elem-type="image"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-brand-combo .tn-elem[data-elem-type="image"] {max-width:min(100%,var(--knx-element-width,120px))!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-media,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-media {
  min-width:0;max-width:100%;display:flex;align-items:center;justify-content:center;
}
#knxc-course #allrecords .knx24-flow-root .knx24-media > .tn-elem[data-elem-type="image"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-media > .tn-elem[data-elem-type="image"] {max-width:100%!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-media > .tn-elem[data-elem-type="video"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-media > .tn-elem[data-elem-type="video"] {width:100%!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-feature {gap:clamp(12px,1.8vw,22px);}
#knxc-course #allrecords .knx24-flow-root .knx24-reason,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-reason {
  min-height:170px;
  justify-content:center;
  align-items:center;
  text-align:center;
}
#knxc-course #allrecords .knx24-flow-root .knx24-reason .tn-elem[data-elem-type="image"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-reason .tn-elem[data-elem-type="image"] {
  max-width:min(95px,45%)!important;
  align-self:center;
}
#knxc-course #allrecords .knx24-flow-root .knx24-reason .tn-atom,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-reason .tn-atom {text-align:center!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-offer {min-height:240px;}
#knxc-course #allrecords .knx24-flow-root .knx24-offer > .tn-elem[data-elem-type="button"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-offer > .tn-elem[data-elem-type="button"],
#knxc-course #allrecords .knx24-flow-root .knx24-format-choice > .tn-elem[data-elem-type="button"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-format-choice > .tn-elem[data-elem-type="button"] {margin-top:auto!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-format {gap:clamp(20px,2.8vw,34px);}
#knxc-course #allrecords .knx24-flow-root .knx24-format-choices {padding-block:clamp(16px,2vw,26px);}
#knxc-course #allrecords .knx24-flow-root .knx24-format-choice,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-format-choice {gap:clamp(12px,1.6vw,20px);}
#knxc-course #allrecords .knx24-flow-root .knx24-pay-later {overflow:hidden;}
#knxc-course #allrecords .knx24-flow-root .knx24-pay-later-inside {align-items:center;}
#knxc-course #allrecords .knx24-flow-root .knx24-pay-later-inside > .knx24-media,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-pay-later-inside > .knx24-media {
  max-width:100%;overflow:hidden;
}
#knxc-course #allrecords .knx24-flow-root .knx24-pay-later-inside > .knx24-media .tn-elem[data-elem-type="image"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-pay-later-inside > .knx24-media .tn-elem[data-elem-type="image"] {
  max-width:100%!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-partner-logos,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-partner-logos {align-items:center;}
#knxc-course #allrecords .knx24-flow-root .knx24-partner-logos .tn-elem[data-elem-type="image"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-partner-logos .tn-elem[data-elem-type="image"] {max-width:min(100%,var(--knx-element-width,100%))!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-program,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-program {gap:0;}
#knxc-course #allrecords .knx24-flow-root .knx24-materials {align-items:flex-start;}
#knxc-course #allrecords .knx24-flow-root .knx24-materials .tn-elem[data-elem-type="button"],
#knx24-dali-course #allrecords .knx24-flow-root .knx24-materials .tn-elem[data-elem-type="button"] {max-width:460px!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-skills {row-gap:clamp(22px,3vw,48px);}
#knxc-course #allrecords .knx24-flow-root .knx24-training-media,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-training-media {align-items:center;}
#knxc-course #allrecords .knx24-flow-root .knx24-training-media .tn-elem[data-elem-type="image"]:last-child {max-width:75%!important;align-self:center;}
#knxc-course #allrecords .knx24-flow-root .knx24-step-title,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-step-title {display:flex;align-items:center;gap:clamp(12px,1.5vw,20px);}
#knxc-course #allrecords .knx24-flow-root .knx24-step-title > .tn-elem[data-elem-type="image"] {width:30px!important;max-width:30px!important;flex:0 0 30px;}
#knxc-course #allrecords .knx24-flow-root .knx24-project-card {
  gap:clamp(10px,1.4vw,20px);align-items:stretch;
}
#knxc-course #allrecords .knx24-flow-root .knx24-project-card > .tn-elem[data-elem-type="image"] {
  width:100%!important;max-width:100%!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-project-link,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-project-link {display:flex;gap:12px;align-items:center;justify-content:space-between;}
#knxc-course #allrecords .knx24-flow-root .knx24-project-link .tn-elem[data-elem-type="image"] {width:min(55px,22%)!important;max-width:55px!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-project-link .tn-elem[data-elem-type="text"] {flex:1 1 auto;}
#knxc-course #allrecords .knx24-flow-root .knx24-tag {padding:clamp(16px,1.5vw,22px);justify-content:center;}
#knxc-course #allrecords .knx24-flow-root .knx24-salaries .knx24-stack {gap:6px;}
#knxc-course #allrecords .knx24-flow-root .knx24-price-line,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-price-line {display:flex;gap:12px 20px;justify-content:center;align-items:baseline;flex-wrap:wrap;}
#knxc-course #allrecords .knx24-flow-root .knx24-price-line > .tn-elem {width:auto!important;max-width:100%!important;}
#knxc-course #allrecords .knx24-flow-root .knx24-review-grid .knx24-media {min-width:0;}
#knxc-course #allrecords .knx24-flow-root .knx24-review-small {gap:18px;}
#knxc-course #allrecords .knx24-flow-root .knx24-contact {gap:clamp(20px,3vw,38px);}
#knxc-course #allrecords .knx24-flow-root .knx24-html-form,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-html-form {width:100%;min-width:0;max-width:100%;}
#knxc-course #allrecords .knx24-flow-root .knx24-html-form > .tn-elem[data-elem-type="html"] {
  height:auto!important;max-width:100%!important;min-width:0!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-html-form iframe,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-html-form iframe {max-width:100%!important;}

/* No fragile fixed canvas height. Switch tracks when content needs the space,
   not just at the old Tilda breakpoints. The final 320px viewport remains fluid. */
@media(max-width:999px){
  #knxc-course #allrecords .knx24-flow-root .knx24-grid-4,
  #knx24-dali-course #allrecords .knx24-flow-root .knx24-grid-4 {grid-template-columns:repeat(2,minmax(0,1fr));}
  #knxc-course #allrecords .knx24-flow-root .knx24-grid-3,
  #knx24-dali-course #allrecords .knx24-flow-root .knx24-grid-3 {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:699px){
  #knxc-course #allrecords .knx24-flow-root,
  #knx24-dali-course #allrecords .knx24-flow-root {
    padding:clamp(20px,5vw,32px) clamp(12px,4vw,24px);
    gap:clamp(18px,4vw,26px);
  }
  #knxc-course #allrecords .knx24-flow-root :is(.knx24-hero-grid,.knx24-grid-2,.knx24-grid-3),
  #knx24-dali-course #allrecords .knx24-flow-root :is(.knx24-hero-grid,.knx24-grid-2,.knx24-grid-3) {grid-template-columns:minmax(0,1fr);}
  #knxc-course #allrecords .knx24-flow-root .knx24-audiences,
  #knx24-dali-course #allrecords .knx24-flow-root .knx24-audiences,
  #knxc-course #allrecords .knx24-flow-root .knx24-grid-4,
  #knx24-dali-course #allrecords .knx24-flow-root .knx24-grid-4 {grid-template-columns:repeat(2,minmax(0,1fr));}
  #knxc-course #allrecords .knx24-flow-root .knx24-grid-2.knx24-cta-pair,
  #knx24-dali-course #allrecords .knx24-flow-root .knx24-grid-2.knx24-cta-pair {grid-template-columns:minmax(0,1fr);}
  #knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] .tn-atom,
  #knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] .tn-atom {line-height:1.35!important;}
  #knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] h1.tn-atom,
  #knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] h1.tn-atom {font-size:clamp(25px,6vw,38px)!important;line-height:1.15!important;}
  #knxc-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] .tn-atom:where(h2,h3),
  #knx24-dali-course #allrecords .knx24-flow-root .tn-elem[data-elem-type="text"] .tn-atom:where(h2,h3) {line-height:1.2!important;}
  #knxc-course #allrecords .knx24-flow-root .knx24-format,
  #knx24-dali-course #allrecords .knx24-flow-root .knx24-format {padding:clamp(14px,4vw,24px);}
  #knxc-course #allrecords .knx24-flow-root .knx24-offer {min-height:0;}
  #knxc-course #allrecords .knx24-flow-root .knx24-review-grid .knx24-media,
  #knx24-dali-course #allrecords .knx24-flow-root .knx24-review-grid .knx24-media {max-width:100%;}
}
@media(max-width:380px){
  #knxc-course #allrecords .knx24-flow-root,
  #knx24-dali-course #allrecords .knx24-flow-root {padding-inline:12px;}
  #knxc-course #allrecords .knx24-flow-root .knx24-audiences {grid-template-columns:minmax(0,1fr);}
  #knxc-course #allrecords .knx24-flow-root .knx24-flex-card,
  #knx24-dali-course #allrecords .knx24-flow-root .knx24-flex-card {gap:12px;}
}

/* Black Friday compatibility: promo copy and sticker must participate in
   the responsive hero flow, not be placed above titles, video or buttons. */
#knxc-course #rec1652766461 .knx24-hero-copy > .knxo-bf-eyebrow {
  position:relative!important;
  left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;
  align-self:flex-start;
  max-width:100%!important;
  white-space:normal!important;
  flex-wrap:wrap;
  transform:none!important;
}
#knxc-course #rec1652766461 .knx24-hero-media > .knxo-bf-art {
  position:relative!important;
  inset:auto!important;
  display:block!important;
  align-self:flex-end;
  width:clamp(110px,24%,180px)!important;
  max-width:40%!important;
  height:auto!important;
  margin:4px 0 0!important;
  transform:none!important;
}
#knx24-dali-course #rec703918623 .knx24-hero-copy > .knxbf-sticker {
  position:relative!important;
  inset:auto!important;
  display:block!important;
  align-self:flex-start;
  width:min(100%,225px)!important;
  max-width:65%!important;
  height:auto!important;
  margin:8px 0 0!important;
  transform:none!important;
}

/* Container-driven fallback for narrow Bitrix columns inside wide desktop windows.
   The viewport rules above remain the browser-wide fallback. */
#knxc-course #allrecords .knx24-flow-root,
#knx24-dali-course #allrecords .knx24-flow-root {
  container-name:knx24-flow;
  container-type:inline-size;
}
@container knx24-flow (max-width:999px){
  .knx24-flow-root .knx24-grid-4,
  .knx24-flow-root .knx24-grid-3 {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@container knx24-flow (max-width:699px){
  .knx24-flow-root :is(.knx24-hero-grid,.knx24-grid-2,.knx24-grid-3) {
    grid-template-columns:minmax(0,1fr)!important;
  }
  .knx24-flow-root .knx24-grid-4 {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .knx24-flow-root .tn-elem[data-elem-type="text"] .tn-atom {line-height:1.35!important;}
  .knx24-flow-root .tn-elem[data-elem-type="text"] h1.tn-atom {
    font-size:clamp(25px,6vw,38px)!important;line-height:1.15!important;
  }
}
@container knx24-flow (max-width:380px){
  .knx24-flow-root .knx24-audiences {grid-template-columns:minmax(0,1fr)!important;}
}
/* CRS3 r2 — restore component-level alignment without changing page content.
   Scope: only the Grid/Flex migration containers on online-knx and DALI. */

/* Every top-level section shares one horizontally centered content frame.
   The original heading's text-align stays intact (left, right, or centered). */
#knxc-course #allrecords .knx24-flow-board > .knx24-flow-root,
#knx24-dali-course #allrecords .knx24-flow-board > .knx24-flow-root {
  width:min(100%,1240px)!important;
  max-width:100%!important;
  margin-inline:auto!important;
  padding-inline:clamp(16px,3vw,36px);
  align-items:stretch;
}
#knxc-course #allrecords .knx24-flow-root > :is(.knx24-hero-grid,.knx24-grid-2,.knx24-grid-3,.knx24-grid-4,.knx24-stack,.knx24-surface),
#knx24-dali-course #allrecords .knx24-flow-root > :is(.knx24-hero-grid,.knx24-grid-2,.knx24-grid-3,.knx24-grid-4,.knx24-stack,.knx24-surface) {
  width:100%;
  max-width:100%;
  margin-inline:auto;
}
/* Media and grouped grid columns align within their assigned columns.
   No global text-align:center: that would break original heading composition. */
#knxc-course #allrecords .knx24-flow-root :is(.knx24-hero-grid,.knx24-hero-media,.knx24-media,.knx24-partner-logos),
#knx24-dali-course #allrecords .knx24-flow-root :is(.knx24-hero-grid,.knx24-media,.knx24-partner-logos) {
  align-items:center;
}
#knxc-course #allrecords .knx24-flow-root :is(.knx24-media,.knx24-training-media,.knx24-review-grid .knx24-media) > .tn-elem[data-elem-type="image"],
#knx24-dali-course #allrecords .knx24-flow-root :is(.knx24-media,.knx24-pay-later-inside .knx24-media,.knx24-partner-logos) > .tn-elem[data-elem-type="image"] {
  margin-inline:auto!important;
  align-self:center!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-grid-3 > *,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-grid-3 > *,
#knxc-course #allrecords .knx24-flow-root .knx24-grid-4 > *,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-grid-4 > * {
  min-width:0;
  max-width:100%;
}

/* The 7 audience tiles originally form a centered 4 + 3 layout.
   Grid's default behavior would left-align the incomplete final row. */
#knxc-course #allrecords .knx24-flow-root .knx24-audiences {
  display:flex!important;
  flex-wrap:wrap;
  justify-content:center;
  align-content:start;
  align-items:stretch;
  column-gap:clamp(16px,2.5vw,28px);
  row-gap:clamp(22px,3vw,40px);
}
#knxc-course #allrecords .knx24-flow-root .knx24-audiences > .knx24-icon-tile {
  flex:0 1 calc((100% - 3 * clamp(16px,2.5vw,28px))/4);
  width:calc((100% - 3 * clamp(16px,2.5vw,28px))/4);
  align-items:center;
}
#knxc-course #allrecords .knx24-flow-root .knx24-audiences .tn-elem[data-elem-type="shape"] {
  align-self:center;
  margin-inline:auto!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-audiences .tn-elem[data-elem-type="text"] .tn-atom {
  text-align:center!important;
}

/* Each project is ONE card, not four independently flowing elements.
   Background graphic and its clickable image are the only visual layer;
   title, details link and icon remain in normal Flexbox document flow. */
#knxc-course #allrecords .knx24-flow-root .knx24-projects {
  align-items:stretch;
  justify-items:stretch;
}
#knxc-course #allrecords .knx24-flow-root .knx24-projects > .knx24-project-card {
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:stretch;
  flex-wrap:nowrap;
  gap:clamp(12px,1.6vw,22px);
  min-width:0;
  min-height:190px;
  aspect-ratio:319 / 166;
  padding:clamp(18px,2vw,28px);
  overflow:hidden;
  border-radius:24px;
  box-sizing:border-box;
}
#knxc-course #allrecords .knx24-flow-root .knx24-projects > .knx24-project-card > .tn-elem[data-elem-type="image"]:first-child {
  position:absolute!important;
  inset:0!important;
  top:0!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  display:block!important;
  z-index:0;
  width:100%!important;
  max-width:none!important;
  min-width:100%!important;
  height:100%!important;
  min-height:100%!important;
  max-height:none!important;
  align-self:stretch!important;
  pointer-events:auto;
}
#knxc-course #allrecords .knx24-flow-root .knx24-project-card > .tn-elem[data-elem-type="image"]:first-child :is(.tn-atom,.tn-atom__img,img) {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-project-card > .tn-elem[data-elem-type="text"],
#knxc-course #allrecords .knx24-flow-root .knx24-project-card > .knx24-project-link {
  position:relative!important;
  z-index:1;
  flex-shrink:0;
  width:100%!important;
  max-width:100%!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-project-card > .tn-elem[data-elem-type="text"] {
  margin:0!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-project-card > .knx24-project-link {
  margin-top:auto!important;
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  min-height:44px;
}
#knxc-course #allrecords .knx24-flow-root .knx24-project-link > .tn-elem[data-elem-type="text"] {
  flex:1 1 auto;
  width:auto!important;
  min-width:0;
  max-width:100%!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-project-link > .tn-elem[data-elem-type="image"] {
  flex:0 0 auto;
  align-self:center!important;
  width:clamp(36px,4vw,55px)!important;
  max-width:clamp(36px,4vw,55px)!important;
  margin:0!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-projects + .tn-elem[data-elem-type="text"] {
  text-align:center;
  width:100%!important;
  margin-inline:auto!important;
}

/* Equal column/cell centering where the original artwork was symmetrical. */
#knxc-course #allrecords .knx24-flow-root .knx24-salaries > .knx24-stack,
#knx24-dali-course #allrecords .knx24-flow-root .knx24-partner-logos > .tn-elem[data-elem-type="image"] {
  align-items:center;
  justify-content:center;
  margin-inline:auto!important;
}
#knxc-course #allrecords .knx24-flow-root .knx24-salaries .tn-atom {
  text-align:center!important;
}
#knx24-dali-course #allrecords .knx24-flow-root .knx24-feature {
  align-items:center;
  text-align:center;
}
#knx24-dali-course #allrecords .knx24-flow-root .knx24-feature .tn-atom {
  text-align:center!important;
}

@media(max-width:999px) {
  #knxc-course #allrecords .knx24-flow-root .knx24-audiences > .knx24-icon-tile {
    flex-basis:calc((100% - clamp(16px,2.5vw,28px))/2);
    width:calc((100% - clamp(16px,2.5vw,28px))/2);
  }
}
@media(max-width:699px) {
  #knxc-course #allrecords .knx24-flow-root .knx24-projects > .knx24-project-card {
    aspect-ratio:auto;
    min-height:200px;
    padding:clamp(18px,5vw,28px);
  }
}
@media(max-width:380px) {
  #knxc-course #allrecords .knx24-flow-root .knx24-audiences > .knx24-icon-tile {
    flex-basis:100%;
    width:100%;
  }
}
@container knx24-flow (max-width:999px) {
  .knx24-flow-root .knx24-audiences > .knx24-icon-tile {
    flex-basis:calc((100% - clamp(16px,2.5vw,28px))/2)!important;
    width:calc((100% - clamp(16px,2.5vw,28px))/2)!important;
  }
}
@container knx24-flow (max-width:380px) {
  .knx24-flow-root .knx24-audiences > .knx24-icon-tile {
    flex-basis:100%!important;
    width:100%!important;
  }
}

/* An incomplete two-column row should sit on the center axis instead of
   clinging to the left edge (five online-course feature tiles). */
#knxc-course #allrecords .knx24-flow-root .knx24-tags > .knx24-tag:last-child:nth-child(odd) {
  grid-column:1 / -1;
  justify-self:center;
  width:calc((100% - clamp(16px,3vw,38px))/2);
  max-width:100%;
}
@media(max-width:699px) {
  #knxc-course #allrecords .knx24-flow-root .knx24-tags > .knx24-tag:last-child:nth-child(odd) {
    grid-column:auto;
    width:100%;
  }
}
@container knx24-flow (max-width:699px) {
  .knx24-flow-root .knx24-tags > .knx24-tag:last-child:nth-child(odd) {
    grid-column:auto;
    width:100%;
  }
}
