.setmed-api-courses {
  --setmed-red: #e3000d;
  --setmed-green: #deece3;
  --setmed-ink: #17231d;
  --setmed-muted: #5d6b63;
  --setmed-line: #cbdcd1;
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  color: var(--setmed-ink);
  font-family: inherit;
}

.setmed-api-home-grid {
  display: grid;
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-right: auto;
  margin-left: auto;
  font-family: Montserrat, Arial, sans-serif !important;
  font-style: normal;
  white-space: normal;
}

/* Divi may otherwise clip the viewport-wide course grid inside its row. */
body #BUCHUNG_LHG.et_pb_row,
.et_pb_row:has(.setmed-api-home-grid) {
  width: 100vw !important;
  max-width: none !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  overflow: visible !important;
}

.et_pb_column:has(.setmed-api-home-grid),
.et_pb_module:has(.setmed-api-home-grid),
.et_pb_text_inner:has(.setmed-api-home-grid) {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

.setmed-api-home-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  align-self: start;
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 12px;
  background: #f1f5f7;
  color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .11);
}
.setmed-api-home-card,.setmed-api-home-card * { box-sizing: border-box; }

.setmed-api-home-card.is-featured { grid-column: span 2; }
.setmed-api-home-card + .setmed-api-home-card { margin-top: 0 !important; }

.setmed-api-home-media { position: relative; width: 100%; height: 230px; min-height: 230px; max-height: 230px; overflow: hidden; }
.setmed-api-home-card.is-featured .setmed-api-home-media { height: 360px; min-height: 360px; max-height: 360px; }
.setmed-api-home-image { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.setmed-api-home-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, #7c8589, #3e474b); color: #fff; font-weight: 800; letter-spacing: .12em; }
.setmed-api-home-overlays { position: absolute; z-index: 2; top: 16px; left: 16px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; max-width: calc(100% - 32px); }
.setmed-api-home-date { position: static; display: grid; width: 76px; min-width: 76px; min-height: 104px; place-items: center; align-content: center; border-radius: 14px; background: rgba(255, 48, 18, .96); color: #000; line-height: 1; box-shadow: 0 5px 14px rgba(0,0,0,.22); }
.setmed-api-home-date span { font-size: 14px; font-weight: 800; letter-spacing: .05em; }
.setmed-api-home-date strong { margin: 6px 0; font-size: 34px; }
.setmed-api-home-date small { font-size: 13px; }
.setmed-api-home-date-arrow { display: inline-flex; width: 32px; min-width: 32px; height: 32px; align-self: center; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.92); border-radius: 999px; background: rgba(26,34,30,.82); color: #fff; font-size: 20px; font-weight: 800; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.65); box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.setmed-api-home-more { padding: 10px 13px; border-radius: 9px; background: rgba(69, 69, 69, .78); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.setmed-api-home-content { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 22px 24px 10px; text-align: center; }
.setmed-api-home-card.is-featured .setmed-api-home-content { padding: 28px 30px 12px; }
.setmed-api-home-content h3 { margin: 0 0 7px; padding: 0; color: #000; font-family: Montserrat, Arial, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.35; text-transform: uppercase; }
.setmed-api-home-content p { margin: 0 0 12px; padding: 0; font-size: 14px; line-height: 1.55; }
.setmed-api-home-short-description { margin-bottom: 18px !important; color: #68736d; font-size: 12.5px !important; font-weight: 500; line-height: 1.45 !important; }
.setmed-api-home-description { display: -webkit-box; overflow: hidden; margin: 0 0 18px; color: #111; font-size: 14px; font-weight: 400; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.setmed-api-home-card.is-featured .setmed-api-home-description { display: block; overflow: visible; }
.setmed-api-home-description p { margin: 0 0 8px; font-size: inherit; font-weight: inherit; line-height: inherit; }
.setmed-api-home-description p:last-child { margin-bottom: 0; }
.setmed-api-home-target { margin-bottom: 0 !important; color: #222; font-size: 14px !important; font-weight: 400; }
.setmed-api-home-target strong { font-weight: 700; }
.setmed-api-home-next { width: 100%; margin: 0; padding: 6px 24px 18px; text-align: center; }
.setmed-api-home-card.is-featured .setmed-api-home-next { padding-right: 30px; padding-left: 30px; }
.setmed-api-home-display-date,.setmed-api-home-time,.setmed-api-home-mode,.setmed-api-home-availability { margin: 0 !important; }
.setmed-api-home-display-date { color: #e0000b; font-size: 15px; font-weight: 800; text-transform: uppercase; }
.setmed-api-home-time { margin-top: 6px !important; color: #000; font-size: 15px; font-weight: 700; }
.setmed-api-home-mode { margin-top: 9px !important; }
.setmed-api-home-mode em { display: inline-flex; min-height: 29px; align-items: center; justify-content: center; padding: 3px 16px; border: 2px solid #34813a; border-radius: 999px; color: #34813a; font-size: 12px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.setmed-api-home-availability { margin-top: 6px !important; color: #5d6b63; font-size: 12px; }
.setmed-api-home-actions { display: flex; width: 100%; gap: 10px; justify-content: space-between; margin: auto 0 0; padding: 13px 16px 14px; border-top: 1px solid #e3000d; background: #f1f5f7; }
.setmed-api-home-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 8px 20px; border: 2px solid #d92f26; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: background .2s ease, color .2s ease, transform .2s ease; }
.setmed-api-details { background: transparent; color: #d92f26 !important; }
.setmed-api-register { background: #d92f26; color: #fff !important; }
.setmed-api-home-actions a:hover { transform: translateY(-1px); }
.setmed-api-details:hover { background: #fff; }
.setmed-api-register:hover { background: #b9211a; border-color: #b9211a; }
.setmed-api-location-heading { margin-bottom: 24px; }
.setmed-api-location-heading h2 { margin: 0; color: var(--setmed-ink); }

.setmed-api-course {
  overflow: hidden;
  border: 1px solid var(--setmed-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 35, 29, .08);
}

.setmed-api-course-header {
  padding: clamp(24px, 5vw, 48px);
  background: linear-gradient(135deg, #fff 0%, #f7fbf8 100%);
}

.setmed-api-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--setmed-red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.setmed-api-course h2 {
  margin: 0;
  color: var(--setmed-ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.setmed-api-lead {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--setmed-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.setmed-api-description {
  padding: 0 clamp(24px, 5vw, 48px) clamp(24px, 4vw, 38px);
  background: linear-gradient(135deg, #fff 0%, #f7fbf8 100%);
}

.setmed-api-description p { margin: 0 0 12px; }
.setmed-api-description p:last-child { margin-bottom: 0; }
.setmed-api-short-description { color: var(--setmed-muted); font-size: 1.05rem; font-weight: 600; }

.setmed-api-session-list {
  display: grid;
  gap: 1px;
  background: var(--setmed-line);
}

.setmed-api-session {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(175px, auto);
  gap: clamp(16px, 3vw, 30px);
  align-items: center;
  padding: clamp(20px, 4vw, 34px) clamp(20px, 5vw, 48px);
  background: #fff;
}

.setmed-api-date {
  display: grid;
  justify-items: center;
  overflow: hidden;
  border: 1px solid var(--setmed-line);
  border-radius: 14px;
  background: var(--setmed-green);
}

.setmed-api-day {
  padding-top: 7px;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.setmed-api-month {
  color: var(--setmed-red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.setmed-api-year {
  width: 100%;
  margin-top: 3px;
  padding: 1px 4px 7px;
  background: transparent;
  color: var(--setmed-ink);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.setmed-api-session-main h3 {
  margin: 0 0 3px !important;
  padding: 0 !important;
  color: var(--setmed-ink);
  font-size: 1.15rem;
  line-height: 1.3;
}

.setmed-api-session-main { display: grid; align-content: center; gap: 2px; }
.setmed-api-session-main p { margin: 0 !important; padding: 0 !important; line-height: 1.35; }
.setmed-api-session-time { color: var(--setmed-ink); font-weight: 800; }
.setmed-api-room,.setmed-api-address { color: var(--setmed-muted); }
.setmed-api-note { font-weight: 700; }

.setmed-api-offer {
  display: grid;
  justify-items: end;
  gap: 9px;
  text-align: right;
}

.setmed-api-price {
  display: grid;
  justify-items: end;
}

.setmed-api-price strong {
  color: var(--setmed-ink);
  font-size: 1.5rem;
  line-height: 1.1;
}

.setmed-api-price-old {
  color: var(--setmed-muted);
  font-size: .9rem;
  text-decoration: line-through;
}

.setmed-api-price small { margin-top: 3px; color: var(--setmed-red); }

.setmed-api-availability {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--setmed-green);
  color: #176b46;
  font-size: .78rem;
  font-weight: 900;
}

.setmed-api-few { background: #fff1cc; color: #805b00; }
.setmed-api-availability.setmed-api-full { background: #e3000d !important; color: #fff !important; }

.setmed-api-book {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--setmed-red);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
}

.setmed-api-book:hover { filter: brightness(.88); }

.setmed-api-message {
  padding: 20px 24px;
  border: 1px solid var(--setmed-line);
  border-radius: 14px;
  background: #fff;
}

.setmed-api-error { border-color: #efc2c8; color: #9f2424; }

@media (max-width: 1024px) {
  .setmed-api-home-grid { gap: 18px; }
}

@media (max-width: 900px) {
  .setmed-api-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setmed-api-home-card.is-featured { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .setmed-api-session { grid-template-columns: 72px minmax(0, 1fr); }
  .setmed-api-offer { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; justify-items: start; text-align: left; }
  .setmed-api-price { justify-items: start; }
}

@media (max-width: 560px) {
  .setmed-api-home-grid { grid-template-columns: 1fr; gap: 18px; }
  .setmed-api-home-card.is-featured { grid-column: auto; }
  .setmed-api-home-media,.setmed-api-home-card.is-featured .setmed-api-home-media { width: 100%; height: 210px; min-height: 210px; max-height: 210px; }
  .setmed-api-home-content,.setmed-api-home-card.is-featured .setmed-api-home-content { padding: 20px 20px 8px; }
  .setmed-api-home-next,.setmed-api-home-card.is-featured .setmed-api-home-next { padding: 6px 20px 16px; }
  .setmed-api-home-overlays { top: 12px; left: 12px; gap: 8px; max-width: calc(100% - 24px); }
  .setmed-api-home-date { width: 64px; min-width: 64px; min-height: 88px; border-radius: 12px; }
  .setmed-api-home-date span { font-size: 12px; }
  .setmed-api-home-date strong { margin: 4px 0; font-size: 29px; }
  .setmed-api-home-date small { font-size: 11px; }
  .setmed-api-home-more { padding: 8px 10px; font-size: 12px; }
  .setmed-api-home-actions a { flex: 1 1 0; padding-right: 10px; padding-left: 10px; }
}

@media (max-width: 460px) {
  .setmed-api-course { border-radius: 16px; }
  .setmed-api-session { grid-template-columns: 62px minmax(0, 1fr); gap: 13px; }
  .setmed-api-day { font-size: 1.35rem; }
  .setmed-api-offer { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .setmed-api-home-media,.setmed-api-home-card.is-featured .setmed-api-home-media { height: 185px; min-height: 185px; max-height: 185px; }
}
