/* ========================================
   COURSE TEMPLATE CSS
   Layout styles for course/lesson/topic pages
   Component styles are in components/ directory
   ======================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  position: relative;
  font-family: var(--font-inter, sans-serif);
  background-color: #F1F1EC;
}

@media (max-width: 768px) {
  body, html {
    width: 100%;
    overflow-x: hidden;
  }
}

.text-black {
  color: #000;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-black-transparent-35: rgba(0, 0, 0, 0.35);
  --color-black-transparent-50: rgba(0, 0, 0, 0.5);
  --color-white-transparent-35: rgba(255, 255, 255, 0.35);
  --color-white-transparent-50: rgba(255, 255, 255, 0.5);
  --color-border-light: rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-inter: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sf-pro: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font sizes */
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 16px;
  --font-size-md: 18px;
  --font-size-lg: 22px;
  --font-size-xl: 24px;
  --font-size-xxl: 28px;
  --font-size-xxxl: 48px;

  /* Line heights */
  --line-height-xs: 11px;
  --line-height-sm: 16px;
  --line-height-base: 25px;
  --line-height-md: 40px;
  --line-height-lg: 45px;
  --line-height-xl: 50px;

  /* Spacing */
  --spacing-xs: 2px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 15px;
  --spacing-xl: 20px;
  --spacing-xxl: 30px;
  --spacing-xxxl: 80px;

  /* Transitions */
  --transition-speed: 0.3s;

  /* Z-indexes */
  --z-index-base: 1;
  --z-index-menu: 99;
  --z-index-header: 999;
  --z-index-overlay: 1000;
  --z-index-modal: 1001;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container-fluid {
  max-width: 95%;
}

.bg-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========================================
   COURSE PAGE LAYOUT
   ======================================== */
.course-page {
    display: flex;
    min-height: 100vh;
    background-color: #F1F1EC;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Main Content */
.course-main-content {
    flex: 1;
    margin-left: 278px;
    padding: 0px 60px 0px 40px;
    width: calc(100% - 278px);
    max-width: none;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.course-content-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Course Header */
.course-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.course-main-title {
    font-family: var(--font-inter, sans-serif);
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.course-description {
    font-family: var(--font-inter, sans-serif);
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Course Content */
.course-content-inner {
    margin-bottom: 48px;
}

.course-content-inner p {
    font-family: var(--font-inter, sans-serif);
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
}

/* Lessons Overview */
.course-lessons-overview {
    margin-top: 48px;
}

.course-lessons-overview h2 {
    font-family: var(--font-inter, sans-serif);
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 32px;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lesson-card {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
}

.lesson-card:hover {
    transform: translateY(-1px);
}

.lesson-card h3 {
    margin: 16px 0 12px 0;
    font-family: var(--font-inter, sans-serif);
    font-size: 18px;
    font-weight: 600;
}

.lesson-card h3 a {
    color: #111827;
    text-decoration: none;
}

.lesson-card h3 a:hover {
    color: var(--color-link-hover, #6B5344);
}

.lesson-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.lesson-status {
    margin-top: 16px;
}

.status-completed {
    color: var(--color-topic-completed, #A7925B);
    font-weight: 600;
    font-size: 14px;
}

.status-pending {
    color: #d97706;
    font-weight: 600;
    font-size: 14px;
}

/* Course Sections Grid */
.course-sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

/* Section card styles moved to components/section-card.css */

/* ========================================
   COURSE HEADER (MOBILE)
   ======================================== */
.course-custom-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 989.98px) {
    .course-custom-header {
        display: block;
    }
}

.course-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 100%;
}

.course-header-logo img {
    height: 29px;
    width: auto;
}

.course-header-logo {
    cursor: pointer;
}

.course-header-logo:hover {
    background: none;
    opacity: 1;
    transform: none;
    transition: none;
}

.course-header-logo img:hover {
    opacity: 1;
    transform: none;
    transition: none;
}

.course-header-toggle {
    cursor: pointer;
    padding: 8px 0 8px 8px;
    top: 2px;
    position: relative;
}

.course-header-toggle .hamburger-icon {
    width: 14px;
    height: 14px;
    position: relative;
    display: inline-block;
}

.course-header-toggle .hamburger-icon .line {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #374151;
    border-radius: 1px;
    left: 0;
    transition: all 0.3s ease;
}

.course-header-toggle .hamburger-icon .line1 {
    top: 2px;
}

.course-header-toggle .hamburger-icon .line2 {
    top: 6px;
}

.course-header-toggle .hamburger-icon .line3 {
    top: 10px;
}

.course-header-toggle.active .hamburger-icon .line1 {
    transform: translateY(4px) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-header-toggle.active .hamburger-icon .line2 {
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-header-toggle.active .hamburger-icon .line3 {
    transform: translateY(-4px) rotate(-45deg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-header-toggle .hamburger-icon .line1,
.course-header-toggle .hamburger-icon .line2,
.course-header-toggle .hamburger-icon .line3 {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.course-mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e5e7eb;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
}

.course-mobile-menu.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Same layout as .course-sidebar: scrollable nav + .sidebar-bottom-links pinned at bottom */
.course-mobile-navigation {
    padding: 0;
    background-color: var(--sidebar-bg, #f4f4f4);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-mobile-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 0 16px 0;
    -webkit-overflow-scrolling: touch;
}

.course-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

/* Bottom block reuses .sidebar-bottom-links from sidebar.css; keep flush to menu footer */
.course-mobile-menu .course-mobile-bottom-links {
    flex-shrink: 0;
}

.mobile-nav-item {
    border-bottom: none;
    background-color: transparent;
}

/* Top-level (Welcome, Resources, Support/Account/Log out) — sidebar .nav-link: 13px, 6px 12px 6px 20px */
.course-mobile-nav-list > .mobile-nav-item .mobile-nav-link {
    padding: 6px 12px 6px 20px;
    font-family: var(--sidebar-font, SF Pro Display, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--sidebar-text, #434343);
    text-decoration: none;
    line-height: 100%;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.course-mobile-nav-list > .mobile-nav-item.active .mobile-nav-link {
    color: var(--sidebar-text-active, #000);
    font-weight: 600;
}

.mobile-nav-link:hover {
    color: var(--sidebar-text-active, #000);
}

/* SECTIONS / LIVE WEBINARS labels — .sections-header h3 */
.mobile-nav-header {
    padding: 12px 20px 0 20px;
    margin-bottom: 0;
}

.mobile-nav-header span {
    display: block;
    font-family: var(--sidebar-font, SF Pro Display, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 10px;
    font-weight: 700;
    color: var(--sidebar-header, #a2a2a2);
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 100%;
    padding-bottom: 10px;
    margin: 0;
}

/* Accordion sections (LIVE WEBINARS, Human Energy System, etc.) */
.mobile-nav-section {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-section-group {
    margin: 0;
    padding: 0;
}

/* Match .section-group summary.section-group-header + h3: 8px 20px, 13px, 500 / 700 when open */
.mobile-section-group summary.mobile-section-header {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    margin: 0;
    font-family: var(--sidebar-font, SF Pro Display, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 13px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--sidebar-text, #434343);
}

.mobile-section-group[open] summary.mobile-section-header {
    font-weight: 700;
}

.mobile-section-group summary.mobile-section-header::-webkit-details-marker,
.mobile-section-group summary.mobile-section-header::marker {
    display: none;
}

.mobile-section-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-section-caret img {
    display: block;
}

.mobile-section-group:not([open]) .mobile-section-caret .mobile-caret-down {
    display: none !important;
}

.mobile-section-group[open] .mobile-section-caret .mobile-caret-right {
    display: none !important;
}

.mobile-lessons-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
}

.mobile-lesson-item {
    margin: 0;
    padding: 0;
}

/* Live Webinars — .nav-sub-list .section-link: 4px 12px 4px 20px */
.mobile-nav-section--live-webinars .mobile-lesson-link {
    padding: 4px 12px 4px 20px;
    margin: 0;
    border-radius: 10px 0 0 10px;
}

/* Lesson links — .section-link under sections: 12px 500, 5px 12px 5px 0 + margin 6px */
.mobile-lesson-link {
    display: block;
    padding: 5px 12px 5px 0;
    margin: 0 6px;
    border-radius: 10px 0 0 10px;
    box-sizing: border-box;
    font-family: var(--sidebar-font, SF Pro Display, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--sidebar-text, #434343);
    text-decoration: none;
    line-height: 100%;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

/* Active lesson — flat row (no topic accordion) */
.mobile-lesson-item.active > .mobile-nav-link.mobile-lesson-link {
    font-weight: 600;
    color: var(--sidebar-text-active, #000);
    background-color: #d7d7d7;
    margin-left: -16px;
    margin-right: 0;
    padding-left: 26px;
    padding-right: 6px;
    width: calc(100% + 22px);
    box-sizing: border-box;
}

/* Active lesson — with topic accordion (summary link) */
.mobile-lesson-item.active .mobile-lesson-details summary .mobile-lesson-link {
    font-weight: 600;
    color: var(--sidebar-text-active, #000);
    background-color: #d7d7d7;
    margin-left: -16px;
    margin-right: 0;
    padding-left: 26px;
    padding-right: 6px;
    width: calc(100% + 22px);
    box-sizing: border-box;
}

/* Live Webinars active — stay aligned to 20px left */
.mobile-nav-section--live-webinars .mobile-lesson-item.active .mobile-lesson-link {
    margin-left: 0;
    padding-left: 20px;
    width: 100%;
    max-width: 100%;
}

.mobile-lesson-link:hover {
    color: var(--sidebar-text-active, #000);
}

/* Lesson with topics - accordion */
.mobile-lesson-details {
    margin: 0;
    padding: 0;
}

.mobile-lesson-details summary.mobile-lesson-header {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0 6px;
}

.mobile-lesson-details summary.mobile-lesson-header::-webkit-details-marker,
.mobile-lesson-details summary.mobile-lesson-header::marker {
    display: none;
}

.mobile-lesson-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-lesson-caret img {
    display: block;
}

.mobile-lesson-details:not([open]) .mobile-lesson-caret .mobile-caret-down {
    display: none !important;
}

.mobile-lesson-details[open] .mobile-lesson-caret .mobile-caret-right {
    display: none !important;
}

.mobile-lesson-details .mobile-lesson-link {
    flex: 1;
}

/* Topics — .section-sub-list / .section-sub-link */
.mobile-topics-list {
    counter-reset: topic;
    list-style: none;
    margin: 4px 0 12px 7px;
    padding: 0 60px 0 0;
}

.mobile-topic-item {
    counter-increment: topic;
    margin-bottom: 4px;
}

.mobile-topic-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 2px 0;
    color: var(--sidebar-text, #434343);
    text-decoration: none;
    font-family: var(--sidebar-font, SF Pro Display, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.mobile-topic-link:hover {
    color: var(--sidebar-text-active, #000);
}

.mobile-topic-link:hover .mobile-topic-text {
    text-decoration: underline;
}

.mobile-topic-item.active .mobile-topic-link {
    font-weight: 600;
    color: var(--sidebar-text-active, #000);
}

.mobile-topic-item.active .mobile-topic-link .mobile-topic-text {
    text-decoration: underline;
}

.mobile-topic-link .topic-num::before {
    content: counter(topic) ". ";
    font-size: 12px;
    font-weight: 400;
}

.mobile-topic-link .topic-num,
.mobile-topic-link .topic-spacer {
    flex-shrink: 0;
}

.mobile-topic-item:not(.topic-completed) .mobile-topic-link .topic-spacer {
    display: inline-block;
    width: 16px;
    min-width: 16px;
}

.mobile-topic-item.topic-completed .topic-completed-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: var(--color-topic-completed, #A7925B);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.course-mobile-menu .mobile-nav-header {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered animation for top-level items only */
.course-mobile-menu.show .mobile-nav-item {
    transform: translateX(0);
    opacity: 1;
}

/* ========================================
   HERO OVERRIDES FOR COURSE/LESSON/RESOURCES PAGES
   ======================================== */
/* Hero - universal (courses, lessons, resources, 404) */
.section-hero {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 48px;
}

.section-hero-content {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1920 / 800;
    background-color: #000;
}

.section-hero-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.section-hero-overlay {
    background: rgba(0, 0, 0, 0.0);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.section-hero-title {
    font-family: var(--font-sf-pro, 'SF Pro Display', sans-serif);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.section-hero-subtitle {
    font-family: var(--font-inter, sans-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

/* Topic hero — fixed band (no image); overrides 1920×800 ratio */
body.single-sfwd-topic .section-hero-content,
body.single-sfwd-topic .topic-hero .section-hero-content {
    aspect-ratio: auto;
    height: 225px;
    background-color: transparent;
}

/* Hide image on topic hero */
body.single-sfwd-topic .section-hero-content img,
body.single-sfwd-topic .topic-hero .section-hero-content img {
    display: none;
}

/* Dark background for topic hero overlay */
body.single-sfwd-topic .section-hero-overlay,
body.single-sfwd-topic .topic-hero .section-hero-overlay {
    background: transparent;
    position: absolute;
    bottom: auto;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    height: auto;
    width: calc(100% - 120px);
}

body.single-sfwd-topic .section-hero-title {
    font-weight: 400;
}

/* Topic breadcrumb styling */
.topic-title-section .topic-breadcrumb {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    width: 100%;
    display: block;
}

body.single-sfwd-topic .topic-title-section .topic-breadcrumb {
    margin-top: 30px;
}

/* Override gap for topic pages */
body.single-sfwd-topic .lesson-sections-container {
    gap: 0;
}

.topic-breadcrumb .breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    font-family: SF Pro Display, sans-serif;
    font-size: 14px;
}

.topic-breadcrumb .breadcrumb-link {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.topic-breadcrumb .breadcrumb-link:hover {
    color: #000;
    text-decoration: underline;
}

.topic-breadcrumb .breadcrumb-link.current {
    color: #000;
    font-weight: 500;
    cursor: default;
}

.topic-breadcrumb .breadcrumb-link.current:hover {
    text-decoration: none;
    color: #000;
}

.topic-breadcrumb .breadcrumb-separator {
    color: #999;
    font-weight: normal;
    user-select: none;
}

/* Topic title section */
body.single-sfwd-topic .lesson-sections-container .topic-title-section {
    margin-bottom: 32px;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-title {
    font-family: 'Adventure V1', sans-serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #000;
    margin: 0;
}

/* Live webinar title badge: white pill, bold #N + gray date — all breakpoints */
body.single-sfwd-topic .topic-meta-pill--live-webinar {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 12px 0 20px 0;
    padding: 6px 22px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    font-family: var(--font-inter, 'SF Pro Display', sans-serif);
    font-size: 13.5px;
    line-height: 1.2;
}

body.single-sfwd-topic .topic-meta-pill--live-webinar .topic-meta-pill__hash {
    font-weight: 700;
    color: #000;
}

body.single-sfwd-topic .topic-meta-pill--live-webinar .topic-meta-pill__dash {
    flex-shrink: 0;
    white-space: pre;
    font-weight: 400;
    color: #434343;
}

body.single-sfwd-topic .topic-meta-pill--live-webinar .topic-meta-pill__date {
    font-weight: 400;
    color: #434343;
}

/* Single topic — below-header layout on tablet/phone (Figma): title, meta pill, card shell; not player controls */
@media (min-width: 990px) {
    body.single-sfwd-topic .topic-breadcrumb .breadcrumb-links {
        font-size: 12px;
    }

    body.single-sfwd-topic .topic-meta-pill:not(.topic-meta-pill--live-webinar) {
        display: none;
    }

    /* Desktop: pull live webinar badge up — avoid stacking flex gap + large margin */
    body.single-sfwd-topic .topic-title-section:has(.topic-meta-pill--live-webinar) {
        gap: 0;
    }

    body.single-sfwd-topic .topic-title-section:has(.topic-meta-pill--live-webinar) .topic-breadcrumb {
        margin-bottom: 20px;
    }

    body.single-sfwd-topic .topic-title-section:has(.topic-meta-pill--live-webinar) .topic-title {
        margin-bottom: 8px;
    }

    body.single-sfwd-topic .topic-meta-pill--live-webinar {
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 989.98px) {
    body.single-sfwd-topic .lesson-sections-container .topic-title-section {
        margin-bottom: 20px;
        gap: 0;
    }

    body.single-sfwd-topic .topic-title-section .topic-breadcrumb {
        margin-bottom: 40px;
    }

    body.single-sfwd-topic .topic-breadcrumb .breadcrumb-links {
        font-size: 10.5px;
        line-height: 1.15;
    }

    body.single-sfwd-topic .topic-title {
        font-family: var(--font-inter, 'SF Pro Display', sans-serif);
        font-weight: 500;
        font-size: 23px;
        line-height: 1.1;
        letter-spacing: 0;
        color: #111827;
    }

    body.single-sfwd-topic .topic-meta-pill:not(.topic-meta-pill--live-webinar) {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        margin: 12px 0 0;
        padding: 5px 18px;
        min-height: 29px;
        box-sizing: border-box;
        background: #fff;
        border: 1px solid #d7d7d7;
        border-radius: 25px;
        font-family: var(--font-inter, 'SF Pro Display', sans-serif);
        font-size: 13.5px;
        font-weight: 500;
        line-height: 1.2;
        color: #434343;
    }

    body.single-sfwd-topic .topic-meta-pill:not(.topic-meta-pill--live-webinar) .topic-meta-pill__hash {
        color: #000000;
    }

    body.single-sfwd-topic .lesson-content-slide .slide-wrapper {
        border-radius: 10px;
        padding: 16px;
        margin-top: 0;
        margin-bottom: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (min-width: 990px) {
    body.single-sfwd-courses .course-page,
    body.single-sfwd-lessons .course-page,
    body.single-sfwd-topic .course-page {
        margin-top: 0;
    }
    
    body.admin-bar .course-sidebar {
        top: 0;
    }
}

@media (max-width: 989.98px) {
    .course-sidebar {
        display: none;
    }
    
    .course-main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }
    
    /* Lesson/topic page layout overrides */
    body.single-sfwd-lessons .course-main-content,
    body.single-sfwd-topic .course-main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .course-main-title {
        font-size: 28px;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .course-page {
        min-height: auto;
    }
    
    /* Section hero mobile */
    .section-hero {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .section-hero-overlay {
        left: 40px;
        width: calc(100% - 40px);
        bottom: 30px;
    }
    
    .section-hero-title {
        font-size: 36px;
        line-height: 32px;
    }
}

@media (max-width: 768px) {
    .course-main-content {
        padding: 0 12px 12px 12px;
    }
    
    /* Topic page: push content below fixed header, smaller h1 */
    body.single-sfwd-topic .course-main-content {
        padding-top: 64px;
    }
    
    body.single-sfwd-topic .topic-title {
        font-size: 22px;
        text-decoration: none;
    }
    
    body.single-sfwd-topic .topic-title::after {
        content: none;
    }
    
    /* No ::after underline on topic page */
    body.single-sfwd-topic .lesson-section::after {
        content: none;
    }
    
    body.single-sfwd-topic .topic-complete-section {
        margin-top: 16px;
        margin-bottom: 16px;
    }
    
    body.single-sfwd-topic .topic-complete-row {
        gap: 10px;
    }

    body.single-sfwd-topic .lesson-content-slide .slide-wrapper {
        padding: 14px 12px 16px;
    }
    
    .course-main-title {
        font-size: 24px;
    }
    
    .course-description {
        font-size: 16px;
    }
    
    /* Section hero mobile */
    .section-hero {
        width: calc(100% + 24px);
        margin-left: -12px;
        margin-right: -12px;
        margin-bottom: 20px;
        margin-top: 64px;
    }
    
    .section-hero-overlay {
        left: 24px;
        width: calc(100% - 24px);
        bottom: 24px;
    }
    
    .section-hero-title {
        font-size: 32px;
        line-height: 37px;
    }
}

@media (max-width: 480px) {
    .section-hero-content {
        background-image: url('../images/hero-course-mobile.jpg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #000;
    }

    body.single-sfwd-topic .section-hero-content,
    body.single-sfwd-topic .topic-hero .section-hero-content {
        background-image: none;
    }
    
    .section-hero-overlay {
        left: 0px;
        width: calc(100%);
        padding: 0;
    }
    
    .section-hero-title {
        font-size: 36px;
    }
    
    .section-hero-subtitle {
        font-size: 15px;
    }
}
