/* Seminar detail */
html:has(.sem-detail),
body:has(.sem-detail) { overflow-x: clip; }

.sem-detail {
  --ink: #0f2744;
  --muted: #6b7c90;
  --line: #e4ebf2;
  --bg: #f5f7fb;
  --panel: #fff;
  --brand: #ff00aa;
  --navy: #123a6d;
  --accent: #1f4f9c;
  --shadow: 0 10px 28px rgba(15, 39, 68, .08);
  --overlap: 480px;
  --header: calc(var(--site-header-offset, 106px) + 10px);
  background: var(--bg);
  color: var(--ink);
}
.sem-detail--fallback { --overlap: 245px; }

/* Banner */
.sem-banner { line-height: 0; background: var(--bg); }
.sem-banner img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  display: block;
}
.sem-banner--fallback {
  line-height: normal;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #a5175c, #123a6d 50%, #1a4f8c 80%, #c2186b);
  color: #fff;
  padding: 2rem 0 2rem;
}
.sem-banner__inner { width: 100%; max-width: calc(100% - 360px); }
.sem-banner__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 34ch;
}
.sem-banner__dates {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .55rem;
}
.sem-banner__date {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: .3rem .7rem;
  font-weight: 700;
}
.sem-banner__date i { margin-right: .3rem; color: #ffb3e0; }
.sem-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .7rem;
  margin-bottom: .55rem;
  opacity: .95;
}
.sem-banner__meta i,
.sem-banner__loc i { margin-right: .3rem; color: #ffb3e0; }
.sem-banner__loc {
  margin: 0 0 .85rem;
  line-height: 1.45;
  max-width: 42rem;
  word-break: break-word;
  opacity: .95;
}
.sem-banner__credits { display: flex; flex-wrap: wrap; gap: .45rem; }
.sem-banner__credits span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .78rem;
  font-weight: 700;
}

/* Layout */
.sem-body { padding: 1.2rem 0 1.5rem; }
.sem-detail--has-banner .sem-body { padding-top: 0; }
.sem-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.1rem;
  align-items: start;
}
.sem-main-col { display: grid; gap: .9rem; min-width: 0; }
.sem-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Tabs + panel */
.sem-tabs {
  display: flex;
  gap: .3rem;
  overflow-x: auto;
  padding: .55rem .6rem;
  background: #eef3fa;
  border-bottom: 1px solid #dfe7f0;
  scrollbar-width: thin;
}
.sem-tabs .nav-link {
  border: 0;
  background: transparent;
  color: #5a6d82;
  font-size: .84rem;
  font-weight: 700;
  padding: .5rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.sem-tabs .nav-link:hover { background: #fff; color: var(--navy); }
.sem-tabs .nav-link.active { color: #fff !important; background: var(--brand); }
.sem-panel {
  padding: 1.15rem 1.2rem 1.3rem;
  font-size: .95rem;
  line-height: 1.7;
  color: #2b3d50;
}
p{
  line-height: 1.6 !important;
}
.sem-panel p { margin-bottom: .75rem; }
.sem-panel :is(h1,h2,h3,h4,h5,h6) {
  color: var(--navy);
  font-weight: 800;
  margin: 1rem 0 .5rem;
}
.sem-panel ul, .sem-panel ol { margin: .3rem 0 .9rem; padding-left: 1.1rem; }
.sem-panel li { margin-bottom: .4rem; }
.sem-panel a { color: var(--accent); font-weight: 700; }

/* Includes */
.sem-includes { padding: 1rem 1.1rem; }
.sem-includes h5 { font-size: 1rem; font-weight: 800; margin: 0 0 .7rem; }
.sem-includes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sem-includes__item {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: #f5f8fc;
  border-radius: 9px;
  padding: .5rem .6rem;
  font-size: .82rem;
  font-weight: 650;
}
.sem-includes__item i {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f0fa;
  color: var(--navy);
  font-size: .72rem;
  flex-shrink: 0;
}

/* Speaker / agenda / faq */
.sem-speaker-block { display: flex; gap: 1rem; padding: 1rem 1.15rem; }
.sem-speaker-block img {
  width: 92px; height: 92px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.sem-speaker-block h5 { margin: 0 0 .2rem; font-weight: 800; color: var(--navy); }
.sem-speaker-block .role { color: var(--muted); font-size: .82rem; margin-bottom: .35rem; }
.sem-speaker-block p { margin: 0; font-size: .88rem; color: #405468; line-height: 1.5; }

.sem-agenda { padding: 0 0 1rem; border-left: 2px solid var(--brand); padding-left: 1rem; margin-left: .25rem; }
.sem-agenda h5 { margin: 0 0 .15rem; font-size: 1rem; font-weight: 750; }
.sem-agenda__meta { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.sem-faq + .sem-faq { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--line); }
.sem-faq h5 { font-size: .95rem; margin: 0 0 .25rem; font-weight: 750; }

.sem-speaker-card {
  display: flex;
  gap: 1rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfcfe;
  margin-bottom: .75rem;
}
.sem-speaker-card:hover { box-shadow: var(--shadow); color: inherit; }
.sem-speaker-card img { width: 110px; object-fit: cover; flex-shrink: 0; }
.sem-speaker-card__body { padding: .85rem 1rem .85rem 0; }
.sem-speaker-card h5 { margin: 0 0 .15rem; font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.sem-speaker-card h6 { margin: 0 0 .35rem; font-size: .8rem; color: var(--muted); }
.sem-speaker-card p { margin: 0; font-size: .86rem; color: #4a5c6e; line-height: 1.5; }

.sem-dl {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .8rem;
  border-radius: 8px;
  background: #eaf6fa;
  border: 1px solid #c5e3ee;
  color: #1a6f8c;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.sem-map { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }

/* Sidebar */
body:has(.sem-detail) .footer { position: relative; z-index: 3; }
.sem-side {
  align-self: start;
  position: sticky;
  top: var(--header);
  z-index: 2;
}
.sem-side__lift { display: grid; gap: .75rem; }
.sem-detail--has-banner .sem-side__lift {
  transform: translateY(calc(var(--overlap) * -1));
  margin-bottom: calc(var(--overlap) * -1);
}
.sem-rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 39, 68, .12);
  padding: 1rem;
}
.sem-rail__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .7rem;
}
.sem-rail__head h4 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.sem-rail__tag {
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: .28rem .55rem;
}
.sem-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: .75rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}
.sem-price__now { font-size: 1.65rem; font-weight: 800; color: #3daf53; line-height: 1; }
.sem-price__hint { font-size: .74rem; color: var(--muted); font-weight: 600; }
.sem-attend { margin-bottom: .75rem; }
.sem-attend__label { font-size: .8rem; font-weight: 750; margin-bottom: .4rem; }
.sem-opts { display: grid; gap: .45rem; }
.sem-opt {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin: 0;
  padding: .65rem .7rem;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  background: #fff;
}
.sem-opt:hover { border-color: #9db7e0; background: #f7faff; }
.sem-opt:has(input:checked) { border-color: var(--accent); background: #eef4ff; }
.sem-opt input { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; flex-shrink: 0; }
.sem-opt__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sem-opt__meta strong { font-size: .85rem; font-weight: 750; }
.sem-opt__meta em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--accent); }
.sem-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.sem-qty > span { font-size: .84rem; font-weight: 750; }
.sem-qty__ctrl {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.sem-qty__ctrl button {
  width: 34px; height: 34px; border: 0;
  background: #f3f6fa; color: var(--ink); cursor: pointer;
}
.sem-qty__ctrl input {
  width: 40px; height: 34px; border: 0;
  text-align: center; font-weight: 750;
}
.sem-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  margin-bottom: .5rem;
}
.sem-btn--cart { background: var(--accent); color: #fff !important; }
.sem-btn--express { background: var(--brand); color: #fff !important; }
.sem-btn:hover { filter: brightness(1.04); }
.sem-trust {
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
}
.sem-trust i { color: #2e9d63; }
.sem-note { margin: .4rem 0 0; font-size: .72rem; color: var(--muted); }
.sem-code { font-size: .72rem; color: var(--muted); font-weight: 700; }
.sem-pay-icons {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px dashed var(--line);
  font-size: 1.55rem;
}
.sem-pay-icons .fa-cc-visa { color: #1a1f71; }
.sem-pay-icons .fa-cc-mastercard { color: #eb001b; }
.sem-pay-icons .fa-cc-amex { color: #2e77bc; }
.sem-pay-icons .fa-cc-paypal { color: #003087; }

/* Side cards */
.sem-mini { padding: .8rem .9rem; }
.sem-mini__head {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
}
.sem-mini__head i {
  width: 1.6rem; height: 1.6rem;
  border-radius: 7px;
  display: grid; place-items: center;
  background: #fff0f7; color: var(--brand);
  font-size: .75rem;
}
.sem-mini__head h5 { margin: 0; font-size: .9rem; font-weight: 800; color: var(--navy); }
.sem-mini p { margin: 0 0 .55rem; font-size: .8rem; color: #405468; line-height: 1.45; }

.sem-cpe { padding: 1rem 1.05rem .85rem; }
.sem-cpe__title { margin: 0 0 .35rem; font-size: 1rem; font-weight: 800; color: var(--navy); }
.sem-cpe__list { list-style: none; margin: 0; padding: 0; }
.sem-cpe__list li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid #e8eef4;
  font-size: .86rem;
  color: #3d5166;
}
.sem-cpe__list li:last-child { border-bottom: 0; }
.sem-cpe__list span { font-weight: 600; }
.sem-cpe__list strong { font-weight: 700; color: #2b3d50; }

@media (max-width: 991.98px) {
  .sem-body__grid { grid-template-columns: 1fr; }
  .sem-side { position: static; order: -1; }
  .sem-banner__inner { max-width: 100%; }
  .sem-banner--fallback { padding: 1.5rem 0 2rem; }
  .sem-detail--has-banner .sem-side__lift {
    transform: none;
    margin-bottom: 0;
  }
  .sem-includes__grid { grid-template-columns: 1fr; }
  .sem-banner img { height: 300px; }
}
@media (max-width: 575.98px) {
  .sem-banner img { height: 200px; }
  .sem-banner__title { font-size: 1.35rem; }
  .sem-speaker-block { flex-direction: column; }
}
