/* ── Detail view (speakers & events) ── */
.detail {
  background: var(--surface, #ffffff);
  border: 2px solid var(--secondary-color);
  border-radius: var(--radius, 16px);
  overflow: hidden;
}

/* Back link sits above the card */
.detail-back {
  display: inline-block;
  margin-bottom: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.95rem;
}

.detail-back:hover { text-decoration: underline; }

.detail-hero {
  background: var(--primary-color);
  padding: 28px 24px;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.detail-hero h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: var(--text-color, #1f2a24);
}

.detail-hero .role {
  color: var(--secondary-color);
  font-weight: 700;
  margin: 0 0 10px;
}

.detail-hero-meta {
  flex: 1;
  min-width: 220px;
}

/* Hero avatar (photo or initials) */
.detail-hero-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  overflow: hidden;
}

.detail-hero-avatar--img {
  object-fit: cover;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 26px 24px;
}

.detail-main h3 {
  color: var(--secondary-color);
  margin: 0 0 10px;
}

.detail-main p { line-height: 1.7; }

.detail-main ul {
  padding-left: 1.2rem;
  line-height: 1.8;
}

.detail-side {
  background: var(--bg, #f3f9fa);
  border-radius: 12px;
  padding: 18px;
  align-self: start;
}

.detail-side h3 {
  color: var(--secondary-color);
  margin: 0 0 12px;
  font-size: 1.1rem;
}

/* Tags inside the sidebar: left-aligned, no extra top margin */
.detail-side .tags {
  justify-content: flex-start;
  margin-top: 0;
}

/* Trainer block */
.detail-trainer {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e2e8e4;
  border-radius: 12px;
  padding: 14px 16px;
}

.detail-trainer-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-color, #1f2a24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.detail-trainer-name {
  font-weight: 700;
  color: var(--text-color, #1f2a24);
}

.detail-trainer-role {
  font-size: 0.875rem;
  color: #6b7770;
}

/* Sidebar meta list */
.detail-meta {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.detail-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8e4;
}

.detail-meta li:last-child { border-bottom: none; }

.detail-meta-label { color: #6b7770; }

.detail-meta-value {
  font-weight: 700;
  color: var(--text-color, #1f2a24);
  text-align: right;
}

/* Register button */
.detail-register {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.detail-register:hover { opacity: 0.88; }

@media screen and (max-width: 750px) {
  .detail-body { grid-template-columns: 1fr; }
}