/**
 * MD Teacher: courses ([mdt_kurser]).
 *
 * Everything is scoped to the page wrapper #mdt-k, so the theme and Elementor do not affect the page, and the page
 * does not affect them. Colours and fonts are variables at the top. Tablet and mobile: each @media block sits next
 * to the part it changes, and responsive.css is loaded on top at the end.
 */

#mdt-k {
  --bg: #0b2129;
  --bg-2: #122d36;
  --bg-3: #16333d;
  --panel: #1a3944;
  --line: #254753;
  --line-soft: #1e3e4a;
  --white: #ffffff;
  --mist: #c9d6da;
  --dim: #8fa6ad;
  --red: #e41e2e;
  --red-deep: #b8151f;
  --sun: #6edad3;
  --sand: #6edad3;
  --paper: #ffffff;
  --ink: #122d36;
  --ink-2: #2e4e58;
  --slate: #69828a;
  --rule: #e3e8ea;
  --sun-soft: #e2f8f6;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 22px 44px -24px rgba(0, 0, 0, 0.5);
  --f-display: "IBM Plex Serif", Georgia, serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
#mdt-k,
#mdt-k * {
  box-sizing: border-box;
}
#mdt-k {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#mdt-k .wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
#mdt-k p {
  margin: 0 0 1rem;
}
#mdt-k p:last-child {
  margin-bottom: 0;
}
#mdt-k strong {
  font-weight: 700;
}
#mdt-k a {
  color: var(--mist);
  text-underline-offset: 2px;
}
#mdt-k a:hover {
  color: var(--white);
}
#mdt-k a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
#mdt-k .btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
}
#mdt-k .btn.primary {
  background: var(--red);
  color: #fff;
}
#mdt-k .btn.primary:hover {
  background: var(--red-deep);
  color: #fff;
}
#mdt-k .btn.ghost {
  border-color: #3e5f6b;
  color: var(--white);
}
#mdt-k .btn.ghost:hover {
  border-color: var(--white);
  color: var(--white);
}
#mdt-k h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  max-width: 19ch;
  text-wrap: balance;
  color: var(--white);
}
#mdt-k .lede {
  font-size: 1.13rem;
  line-height: 1.65;
  color: var(--mist);
  max-width: 37rem;
}
#mdt-k .lede strong {
  color: var(--white);
}
#mdt-k .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.9rem;
}
#mdt-k .trustband {
  background: var(--bg-2);
  color: var(--white);
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
#mdt-k .trustband .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#mdt-k .trustband .f {
  font-size: 0.95rem;
  color: var(--mist);
  font-weight: 600;
}
#mdt-k .trustband .f b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--white);
  font-weight: 700;
  margin-top: 0.2rem;
}
#mdt-k section.dark {
  padding: 3.9rem 0;
}
#mdt-k section.dark.alt {
  background: var(--bg-2);
}
#mdt-k h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
  color: var(--white);
}
#mdt-k .kick {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.8rem;
}
#mdt-k .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.6rem 0 0;
  text-align: left;
}
@media (max-width: 980px) {
  #mdt-k .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  #mdt-k .cards {
    grid-template-columns: 1fr;
  }
}
#mdt-k .capture {
  background: var(--bg-3);
  padding: 3.4rem 0;
  text-align: center;
}
#mdt-k .capture h2 {
  margin-bottom: 0.6rem;
}
#mdt-k .capture p {
  color: var(--mist);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
#mdt-k .capture input {
  font-family: var(--f-body);
  font-size: 1rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--white);
  min-width: 16rem;
}
#mdt-k .capture input::placeholder {
  color: var(--dim);
}
#mdt-k .capture .lille {
  font-size: 0.88rem;
  color: var(--dim);
}
#mdt-k .capture .lille a {
  color: var(--sand);
}
#mdt-k .sub {
  background: radial-gradient(90rem 40rem at 70% -20%, #1b4150 0%, var(--bg-2) 45%, var(--bg) 100%);
  padding: 3.8rem 0 3rem;
}
#mdt-k .sub h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 3rem);
}
#mdt-k h1,
#mdt-k h2,
#mdt-k h3 {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
@media (max-width: 760px) {
  #mdt-k .sub h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
  }
}
#mdt-k {
  color-scheme: dark;
}
#mdt-k .wrap {
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  #mdt-k .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}
#mdt-k .sub .lede {
  max-width: 44rem;
}
#mdt-k .trustband .f b {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
#mdt-k .sub .lede {
  max-width: 44rem;
}
#mdt-k .trustband .f b {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
#mdt-k .center-cta {
  justify-content: center;
  margin: 1.5rem 0 1rem;
}
#mdt-k .tools {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: rgba(11, 33, 41, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
#mdt-k .tools .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
#mdt-k .search {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}
#mdt-k .search input {
  flex: 1 1 16rem;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--white);
}
#mdt-k .search input::placeholder {
  color: var(--dim);
}
#mdt-k .search input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
#mdt-k .search .cnt {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--dim);
  white-space: nowrap;
}
#mdt-k .chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}
#mdt-k .chips::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1000px) {
  #mdt-k .chips {
    flex-wrap: wrap;
    overflow: visible;
  }
}
#mdt-k .chips button {
  flex: none;
  font: inherit;
  font-size: 0.8rem;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  white-space: nowrap;
  cursor: pointer;
}
#mdt-k .chips button:hover {
  border-color: var(--sand);
  color: var(--white);
}
#mdt-k .chips button.on {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
  font-weight: 600;
}
#mdt-k .chips button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
#mdt-k .chips button span {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.3rem;
}
#mdt-k .kgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  padding: 2rem 0 1rem;
}
#mdt-k .kc {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  min-width: 0;
}
/* A course the filter has hidden. Without this, display: flex above wins over the hidden attribute. */
#mdt-k .kc[hidden] {
  display: none;
}
#mdt-k .kc:hover {
  transform: translateY(-3px);
  border-color: var(--sand);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.7);
}
#mdt-k .kc:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #mdt-k .kc {
    transition: none;
  }
  #mdt-k .kc:hover {
    transform: none;
  }
}
#mdt-k .kc-img {
  position: relative;
  height: 10.5rem;
  background: radial-gradient(22rem 12rem at 50% 0%, #27505f 0%, var(--bg-3) 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
#mdt-k .kc-img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
#mdt-k .kc-img .kc-cat {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(11, 33, 41, 0.85);
  color: var(--sun);
  font-family: var(--f-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 218, 211, 0.35);
}
#mdt-k .kc-b {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
}
#mdt-k .kc h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.25;
  margin: 0;
  color: var(--white);
}
#mdt-k .kc p {
  font-size: 0.88rem;
  color: var(--mist);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
#mdt-k .kc-meta {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
#mdt-k .kc-meta b {
  color: var(--sand);
  font-family: var(--f-body);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
#mdt-k .tom {
  padding: 3rem 0;
  text-align: center;
  color: var(--mist);
}
#mdt-k .lp-teaser {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  margin: 1.6rem 0 0;
}
#mdt-k .lp-teaser h2 {
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}
#mdt-k .lp-teaser p {
  color: var(--mist);
  margin: 0;
  max-width: 36rem;
}
#mdt-k .lp {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
#mdt-k .lp .for {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
#mdt-k .lp h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
  color: var(--white);
}
#mdt-k .lp p.d {
  color: var(--mist);
  font-size: 0.96rem;
  margin: 0;
}
#mdt-k .lp .btn {
  align-self: flex-start;
  margin-top: auto;
}
#mdt-k .kc-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mdt-k {
  display: block;
  width: 100%;
  overflow-x: clip;
}
