/* Public SEO topic pages — single-column flow: lesson body first, resources/glossary stacked below */
.topic-seo-lesson .lesson-embed-layout #topic-seo-main-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.topic-seo-lesson .lesson-embed-layout #topic-seo-main-row > #topic-seo-main-col,
.topic-seo-lesson .lesson-embed-layout #topic-seo-main-row > #topic-seo-sidebar-col {
  max-width: 100%;
  width: 100%;
  flex: 0 0 auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.topic-seo-lesson .lesson-embed-layout #topic-seo-main-row > #topic-seo-sidebar-col {
  position: static;
}

.topic-seo-lesson .lesson-wireframe {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 0.75rem 1rem 1.25rem;
  margin-bottom: 0.5rem;
}
.topic-seo-lesson .lesson-hero-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(15, 34, 58, 0.08);
  margin-bottom: 1rem;
  background: #fff;
}
.topic-seo-lesson .lesson-hero-img-wrap .ratio {
  max-height: min(52vw, 380px);
}
.topic-seo-lesson .lesson-hero-img-wrap img {
  object-fit: cover;
  object-position: center;
}
.topic-seo-lesson .lesson-hero {
  padding: 0.5rem 0 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid #e9ecef;
  background: transparent;
}
.topic-seo-lesson .lesson-hero .lesson-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.topic-seo-lesson .lesson-hero .lesson-meta {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 0.35rem;
  margin-bottom: 0;
}
.topic-seo-lesson .lesson-hero .lesson-meta.lesson-meta--quick-facts li:last-child {
  margin-bottom: 0 !important;
}
.topic-seo-lesson .lesson-hero .lesson-meta.lesson-meta--quick-facts strong {
  color: #495057;
  font-weight: 600;
}
.topic-seo-lesson .wireframe-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 1.1rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid #e9ecef;
}
.topic-seo-lesson .wireframe-card:last-child {
  border-bottom: none;
}
.topic-seo-lesson .wireframe-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topic-seo-lesson .wireframe-card .card-title i {
  color: #667eea;
}
.topic-seo-lesson .wireframe-card .card-title .text-teal {
  color: #20c997;
}
.topic-seo-lesson .list-check {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.topic-seo-lesson .list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.topic-seo-lesson .list-check li::before {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  background: #20c997;
  border-radius: 50%;
  margin-top: 0.2rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E") center/0.6em no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E") center/0.6em no-repeat;
}
.topic-seo-lesson .time-pill {
  display: inline-block;
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.topic-seo-lesson .timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  gap: 0.5rem;
}
.topic-seo-lesson .timeline-item:last-child {
  border-bottom: none;
}
.topic-seo-lesson .timeline-item i {
  color: #667eea;
  width: 1.25rem;
  text-align: center;
  margin-right: 0.35rem;
  flex-shrink: 0;
}
.topic-seo-lesson .activity-block {
  background: rgba(102, 126, 234, 0.06);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid #667eea;
}
.topic-seo-lesson .activity-block .activity-head {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.topic-seo-lesson .lesson-sidebar-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  border: 1px solid #eef0f3;
}
.topic-seo-lesson #topic-seo-sidebar .wireframe-card {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}
.topic-seo-lesson #topic-seo-sidebar .wireframe-card:last-of-type {
  border-bottom: none;
}
.topic-seo-lesson .sidebar-resource-row {
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.topic-seo-lesson .glossary-term {
  font-weight: 600;
  color: #374151;
}
.topic-seo-lesson .glossary-def {
  font-size: 0.85rem;
  color: #6b7280;
}

/* SEO lesson: pill / segmented tab bar (replaces default Bootstrap nav-tabs look) */
.topic-seo-lesson .topic-seo-lesson__header {
  padding-bottom: 0.25rem;
}
.topic-seo-lesson .topic-seo-tabs-toolbar {
  margin-top: 0.25rem;
  padding: 0.4rem;
  background: linear-gradient(180deg, #eef1f6 0%, #e4e9f2 100%);
  border-radius: 14px;
  border: 1px solid rgba(15, 34, 58, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.topic-seo-lesson .topic-seo-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}
.topic-seo-lesson .topic-seo-tabs-list .nav-item {
  margin: 0;
}
.topic-seo-lesson .topic-seo-tab-btn.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 34, 58, 0.08);
  background: #fff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  line-height: 1.25;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 34, 58, 0.06);
  white-space: nowrap;
}
.topic-seo-lesson .topic-seo-tab-btn.nav-link:hover:not(.active) {
  color: #4f46e5;
  border-color: rgba(102, 126, 234, 0.45);
  background: #fafbff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
}
.topic-seo-lesson .topic-seo-tab-btn.nav-link:focus-visible {
  outline: 2px solid rgba(102, 126, 234, 0.55);
  outline-offset: 2px;
}
.topic-seo-lesson .topic-seo-tab-btn.nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: transparent !important;
  box-shadow:
    0 4px 14px rgba(102, 126, 234, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-1px);
}
.topic-seo-lesson .topic-seo-tab-btn.nav-link.active i {
  opacity: 0.95;
}
/* Tabbed layout: sections rail + resources in right column (desktop) */
.topic-seo-lesson .topic-seo-tabs-rail__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
  padding-left: 0.15rem;
}
.topic-seo-lesson .topic-seo-rcol .topic-seo-tabs-toolbar {
  margin-top: 0;
  width: 100%;
}
.topic-seo-lesson .topic-seo-tabs-toolbar--vertical {
  width: 100%;
}
.topic-seo-lesson .topic-seo-tabs-list--vertical {
  width: 100%;
  justify-content: center;
}
@media (min-width: 992px) {
  .topic-seo-lesson .topic-seo-tabs-list--vertical {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .topic-seo-lesson .topic-seo-tabs-list--vertical .topic-seo-tab-btn.nav-link {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
  }
  .topic-seo-lesson .topic-seo-rcol.topic-seo-rcol--tabbed {
    position: sticky;
    top: 1rem;
    z-index: 2;
  }
}
.topic-seo-lesson .topic-seo-sidebar-below-tabs {
  border-top: 1px solid rgba(15, 34, 58, 0.08);
}
.topic-seo-lesson .card-body {
  border-top: 1px solid rgba(15, 34, 58, 0.06);
  padding-top: 1.25rem;
}
