:root {
    --sf-bg: #f7fbff;
    --sf-bg-soft: #eef6ff;
    --sf-surface: #ffffff;
    --sf-text: #243447;
    --sf-text-soft: #5b6b7a;
    --sf-border: #d8e6f3;
    --sf-primary: #4f7cff;
    --sf-primary-dark: #365fd6;
    --sf-accent: #ffd76a;
    --sf-success: #3dbb7a;
    --sf-shadow: 0 10px 30px rgba(79, 124, 255, 0.10);
    --sf-radius: 18px;
    --sf-max-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--sf-text);
    background:
        radial-gradient(circle at top right, #e6f2ff 0%, transparent 28%),
        radial-gradient(circle at top left, #fdf7d9 0%, transparent 20%),
        linear-gradient(180deg, #fafdff 0%, #f4f9ff 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sf-primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: min(100% - 32px, var(--sf-max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(216, 230, 243, 0.85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 80px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #17315f;
    background: linear-gradient(135deg, #ffd76a 0%, #ffe9a8 100%);
    box-shadow: var(--sf-shadow);
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--sf-text);
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--sf-text-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--sf-text);
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
    text-decoration: none;
    background: var(--sf-bg-soft);
    transform: translateY(-1px);
}

.nav-link.is-active {
    background: var(--sf-primary);
    color: #fff;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--sf-border);
    background: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    color: var(--sf-text-soft);
    font-size: 0.95rem;
}

.footer-tagline {
    display: inline-block;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-weight: 700;
}

.section {
    padding: 48px 0;
}

.hero {
    padding: 56px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-copy,
.hero-card,
.panel-card,
.course-card,
.info-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
}

.hero-copy {
    padding: 34px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--sf-primary-dark);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--sf-text-soft);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn {
    background: var(--sf-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 124, 255, 0.22);
}

.btn:hover {
    background: var(--sf-primary-dark);
}

.btn-secondary {
    background: #fff6d8;
    color: #6f5310;
    border-color: #f1dda0;
}

.btn-ghost {
    background: #fff;
    color: var(--sf-text);
    border-color: var(--sf-border);
}

.hero-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    z-index: 0;
}

.hero-card::before {
    width: 180px;
    height: 180px;
    background: rgba(79, 124, 255, 0.10);
    top: -50px;
    right: -40px;
}

.hero-card::after {
    width: 140px;
    height: 140px;
    background: rgba(255, 215, 106, 0.18);
    bottom: -35px;
    left: -25px;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.hero-card p {
    color: var(--sf-text-soft);
    line-height: 1.65;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7fbff;
    border: 1px solid var(--sf-border);
    font-weight: 700;
}

.feature-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--sf-success);
    flex: 0 0 12px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.section-header h2 {
    margin: 0;
    font-size: 1.9rem;
}

.section-header p {
    margin: 0;
    color: var(--sf-text-soft);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.course-card,
.info-card,
.panel-card {
    padding: 22px;
}

.card-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--sf-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.card-eyebrow.free {
    background: #e7f9ef;
    color: #18754a;
}

.card-eyebrow.paid {
    background: #fff3d4;
    color: #7c5b0c;
}

.course-card h3,
.info-card h3,
.panel-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.course-card p,
.info-card p,
.panel-card p {
    margin: 0 0 16px;
    color: var(--sf-text-soft);
    line-height: 1.65;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f6f9fc;
    border: 1px solid var(--sf-border);
    color: var(--sf-text-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff6d8;
    color: #6f5310;
    font-weight: 800;
    margin-bottom: 16px;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.notice-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--sf-radius);
    background: linear-gradient(135deg, #eff6ff 0%, #fff7dc 100%);
    border: 1px solid var(--sf-border);
    box-shadow: var(--sf-shadow);
    flex-wrap: wrap;
}

.notice-banner strong {
    display: block;
    margin-bottom: 4px;
}

.notice-banner span {
    color: var(--sf-text-soft);
}

.empty-state {
    padding: 28px;
    text-align: center;
    border-radius: var(--sf-radius);
    border: 1px dashed var(--sf-border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--sf-text-soft);
}

@media (max-width: 980px) {
    .hero-grid,
    .split-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .main-nav {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, var(--sf-max-width));
    }

    .hero {
        padding-top: 32px;
    }

    .hero-copy,
    .hero-card,
    .course-card,
    .info-card,
    .panel-card {
        padding: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
.page-home .site-main {
  padding-top: 0;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-actions,
.cta-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(4px);
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}

.hero-card-main {
  padding: 1.4rem;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.hero-badge,
.hero-status,
.course-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-badge {
  background: rgba(34, 197, 94, 0.12);
}

.hero-status {
  background: rgba(59, 130, 246, 0.10);
}

.progress-block {
  margin: 1.25rem 0;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,0.08);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399 0%, #60a5fa 100%);
}

.hero-checklist {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.hero-checklist li + li {
  margin-top: 0.45rem;
}

.hero-card-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding: 1rem;
}

.mini-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
}

.mini-stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.course-grid,
.info-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.step-card,
.cta-box {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.06);
}

.card,
.step-card {
  padding: 1.4rem;
}

.course-card h3,
.info-card h3,
.step-card h3,
.cta-box h2 {
  margin-top: 0;
}

.course-card-tag {
  margin-bottom: 1rem;
  background: rgba(59, 130, 246, 0.10);
}

.course-card-tag-paid {
  background: rgba(245, 158, 11, 0.14);
}

.course-card-tag-private {
  background: rgba(168, 85, 247, 0.12);
}

.course-meta {
  margin: 1rem 0 1.25rem;
  padding-left: 1.1rem;
}

.course-meta li + li {
  margin-top: 0.3rem;
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.steps-grid {
  display: grid;
  gap: 1.25rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.12);
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.cta-copy {
  max-width: 720px;
}

.btn-sm {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .course-grid,
  .info-grid,
  .steps-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    display: grid;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-card-side {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions,
  .card-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .card-actions .btn {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   Header / Footer alignment for current safe header.php
   ========================================================= */

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 80px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-logo {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--sf-text);
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
}

.site-tagline {
    font-size: 0.9rem;
    color: var(--sf-text-soft);
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--sf-text);
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav-link:hover {
    text-decoration: none;
    background: var(--sf-bg-soft);
    transform: translateY(-1px);
}

.site-nav-link.is-active {
    background: var(--sf-primary);
    color: #fff;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.site-footer-brand {
    color: var(--sf-text-soft);
    font-size: 0.95rem;
}

.site-footer-brand strong {
    display: block;
    color: var(--sf-text);
    margin-bottom: 4px;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-links a {
    font-weight: 700;
}

/* =========================================================
   Home page polish
   ========================================================= */

.page-home .site-main {
    padding-top: 0;
}

.section-heading p {
    color: var(--sf-text-soft);
    line-height: 1.65;
}

.hero-copy {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-copy .eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--sf-primary-dark);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    opacity: 1;
}

.hero-text {
    color: var(--sf-text-soft);
}

.card,
.step-card,
.cta-box,
.hero-card-main,
.hero-card-side,
.course-card,
.info-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
}

.course-card,
.info-card,
.step-card {
    padding: 22px;
}

.course-card-tag,
.hero-badge,
.hero-status {
    color: var(--sf-text);
}

.course-card-tag-paid {
    color: #7c5b0c;
}

.course-card-tag-private {
    color: #5a2ea6;
}

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-copy p {
    color: var(--sf-text-soft);
    line-height: 1.65;
}

@media (max-width: 980px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .site-nav-list {
        width: 100%;
    }

    .cta-box {
        display: grid;
    }
}

@media (max-width: 640px) {
    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===== Header rebuild ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(216, 230, 243, 0.85);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding: 12px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-link:hover {
    text-decoration: none;
}

.logo-horizontal {
    display: block;
    height: 150px;
    width: auto;
}

.site-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.site-nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-list li {
    margin: 0;
    padding: 0;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--sf-text);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav-link:hover {
    text-decoration: none;
    background: var(--sf-bg-soft);
    transform: translateY(-1px);
}

.site-nav-link.is-active {
    background: var(--sf-primary);
    color: #fff;
}

/* tighter hero start after cleaner header */
.hero-home-compact,
.hero {
    padding-top: 2.75rem;
}

/* ===== Responsive header ===== */

@media (max-width: 980px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav-list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .logo-horizontal {
        height: 40px;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        min-height: auto;
        padding: 12px 0;
    }

    .logo-horizontal {
        height: 36px;
    }

    .site-nav-link {
        padding: 0 12px;
        min-height: 38px;
        font-size: 0.92rem;
    }
}
.hero-illustration {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(79,124,255,0.12));
}
/* ===== Auth ===== */

.auth-section {
    padding: 3.5rem 0 4rem;
}

.auth-container {
    max-width: 560px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--sf-border);
    border-radius: 22px;
    box-shadow: var(--sf-shadow);
    padding: 2rem;
}

.auth-card-header h1 {
    margin: 0 0 0.75rem;
}

.auth-card-header p {
    margin: 0 0 1.25rem;
    color: var(--sf-text-soft);
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 0.45rem;
}

.form-row label {
    font-weight: 700;
    color: var(--sf-text);
}

.form-row input {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: #fff;
    color: var(--sf-text);
    font: inherit;
}

.form-row input:focus {
    outline: none;
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.12);
}

.form-actions {
    padding-top: 0.25rem;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-weight: 600;
}

.auth-alert-error {
    background: #fff1f1;
    border: 1px solid #f3c7c7;
    color: #8a2f2f;
}

.auth-alert-success {
    background: #eefaf3;
    border: 1px solid #cfe9d9;
    color: #216642;
}

.auth-note {
    margin-top: 1rem;
    color: var(--sf-text-soft);
    font-size: 0.95rem;
}
.page-courses .site-main {
    padding-top: 0;
}

.section-heading-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.courses-hero {
    padding: 3rem 0 1.25rem;
}

.courses-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.courses-hero p {
    max-width: 760px;
    color: var(--sf-text-soft);
    line-height: 1.7;
}

.section-course-list {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
}
.page-course .site-main {
    padding-top: 0;
}

.course-hero {
    padding: 3rem 0 1.5rem;
}

.course-hero-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--sf-border);
    border-radius: 22px;
    box-shadow: var(--sf-shadow);
    padding: 2rem;
}

.course-hero-card h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.course-hero-text {
    max-width: 820px;
    color: var(--sf-text-soft);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.section-course-content {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.unit-stack {
    display: grid;
    gap: 1rem;
}

.unit-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--sf-border);
    border-radius: 18px;
    box-shadow: var(--sf-shadow);
    padding: 1.4rem;
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.unit-card h3 {
    margin: 0 0 0.4rem;
}

.unit-card p {
    margin: 0;
    color: var(--sf-text-soft);
    line-height: 1.65;
}

.lesson-list {
    display: grid;
    gap: 0.85rem;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.lesson-title {
    font-weight: 800;
    color: var(--sf-text);
}

.lesson-sub {
    margin-top: 0.25rem;
    color: var(--sf-text-soft);
    font-size: 0.95rem;
}

.lesson-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-state-tight {
    padding: 1rem 1.1rem;
    text-align: left;
}

@media (max-width: 640px) {
    .course-hero-card,
    .unit-card {
        padding: 1.2rem;
    }

    .lesson-item {
        align-items: flex-start;
    }

    .lesson-actions {
        width: 100%;
    }

    .lesson-actions .btn {
        width: 100%;
        text-align: center;
    }
}
.page-lesson .site-main {
    padding-top: 0;
}

.lesson-hero {
    padding: 3rem 0 1.25rem;
}

.lesson-hero-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--sf-border);
    border-radius: 22px;
    box-shadow: var(--sf-shadow);
    padding: 2rem;
}

.lesson-breadcrumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--sf-text-soft);
}

.lesson-breadcrumbs a {
    color: var(--sf-primary-dark);
    text-decoration: none;
}

.lesson-breadcrumbs a:hover {
    text-decoration: underline;
}

.lesson-hero-card h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.lesson-subtitle {
    margin: 0;
    color: var(--sf-text-soft);
    line-height: 1.65;
}

.lesson-hero-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-lesson-content {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
}

.lesson-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 320px;
    gap: 1.25rem;
    align-items: start;
}

.lesson-content-card,
.lesson-sidebar-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--sf-border);
    border-radius: 22px;
    box-shadow: var(--sf-shadow);
}

.lesson-content-card {
    padding: 1.75rem;
}

.lesson-sidebar-card {
    padding: 1.25rem;
    display: grid;
    gap: 1.25rem;
}

.lesson-sidebar-section h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.lesson-sidebar-meta {
    display: grid;
    gap: 0.5rem;
    color: var(--sf-text-soft);
    line-height: 1.55;
}

.lesson-sidebar-links {
    display: grid;
    gap: 0.55rem;
}

.lesson-sidebar-links a {
    color: var(--sf-primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.lesson-sidebar-links a:hover {
    text-decoration: underline;
}

.lesson-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.prose {
    color: var(--sf-text);
    line-height: 1.75;
    font-size: 1rem;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: var(--sf-text);
    line-height: 1.2;
    margin-top: 1.4em;
    margin-bottom: 0.55em;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
    margin-top: 0;
    margin-bottom: 1rem;
}

.prose ul,
.prose ol {
    padding-left: 1.3rem;
}

.prose a {
    color: var(--sf-primary-dark);
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.prose th,
.prose td {
    border: 1px solid var(--sf-border);
    padding: 0.75rem;
    text-align: left;
}

.prose blockquote {
    margin-left: 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--sf-primary);
    background: rgba(79, 124, 255, 0.06);
    border-radius: 10px;
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--sf-border);
    margin: 1.5rem 0;
}

@media (max-width: 980px) {
    .lesson-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lesson-hero-card,
    .lesson-content-card,
    .lesson-sidebar-card {
        padding: 1.2rem;
    }

    .lesson-nav-buttons .btn,
    .lesson-hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }
}
.course-action-box
{
    margin:20px 0 30px 0;
}

.btn
{
    display:inline-block;
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

.btn.primary
{
    background:#2563eb;
    color:white;
}

.btn.success
{
    background:#16a34a;
    color:white;
}
.sf-course-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    margin: 28px 0 32px;
}

.sf-course-hero__main {
    min-width: 0;
}

.sf-course-breadcrumb {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 14px;
}

.sf-course-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.sf-course-breadcrumb span {
    margin: 0 6px;
}

.sf-course-title {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.15;
    color: #0f172a;
}

.sf-course-description {
    color: #334155;
    line-height: 1.7;
    max-width: 860px;
    margin-bottom: 18px;
}

.sf-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sf-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.88rem;
    font-weight: 700;
}

.sf-meta-text {
    color: #475569;
    font-size: 0.95rem;
}

.sf-course-hero__card {
    min-width: 0;
}

.sf-enroll-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 20px;
}

.sf-enroll-card__label {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 12px;
    font-weight: 700;
}

.sf-enroll-card__price {
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.sf-enroll-card__small {
    margin-top: 14px;
    color: #64748b;
    font-size: 0.90rem;
    line-height: 1.5;
}

.sf-progress-block {
    margin-bottom: 16px;
}

.sf-progress-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 8px;
}

.sf-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.sf-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 999px;
}

.sf-progress-subtext {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.90rem;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.18s ease;
    cursor: pointer;
}

.sf-btn--full {
    width: 100%;
}

.sf-btn--primary {
    background: #2563eb;
    color: #ffffff;
}

.sf-btn--primary:hover {
    background: #1d4ed8;
}

.sf-btn--secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

.sf-btn--secondary:hover {
    background: #f8fafc;
}

.sf-btn--disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.sf-curriculum-wrap {
    margin: 18px 0 40px;
}

.sf-section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.sf-section-title {
    margin: 0;
    font-size: 1.4rem;
    color: #0f172a;
}

.sf-section-subtitle {
    color: #64748b;
    margin-top: 4px;
    font-size: 0.95rem;
}

.sf-empty-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    padding: 22px;
    color: #475569;
}

.sf-curriculum {
    display: grid;
    gap: 14px;
}

.sf-unit {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    overflow: hidden;
}

.sf-unit__summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background: #ffffff;
}

.sf-unit__summary::-webkit-details-marker {
    display: none;
}

.sf-unit__left {
    min-width: 0;
}

.sf-unit__eyebrow {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.sf-unit__title {
    color: #0f172a;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.3;
}

.sf-unit__desc {
    color: #64748b;
    font-size: 0.93rem;
    margin-top: 6px;
    line-height: 1.5;
}

.sf-unit__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sf-unit__count {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
}

.sf-unit__chevron {
    color: #64748b;
    font-size: 1rem;
    transition: transform 0.18s ease;
}

.sf-unit[open] .sf-unit__chevron {
    transform: rotate(180deg);
}

.sf-unit__body {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fcfcfd;
}

.sf-lesson {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sf-lesson:last-child {
    border-bottom: 0;
}

.sf-lesson--current {
    background: #eff6ff;
}

.sf-lesson--empty {
    color: #64748b;
}

.sf-lesson__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-status {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
}

.sf-status--done {
    background: #dcfce7;
    color: #166534;
}

.sf-status--current {
    background: #dbeafe;
    color: #1d4ed8;
}

.sf-status--locked {
    background: #e2e8f0;
    color: #475569;
}

.sf-status--open {
    background: #f1f5f9;
    color: #475569;
}

.sf-lesson__content {
    min-width: 0;
}

.sf-lesson__kicker {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sf-lesson__title {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
}

.sf-lesson__title:hover {
    color: #1d4ed8;
}

.sf-lesson__title--muted {
    color: #334155;
}

.sf-lesson__action {
    white-space: nowrap;
}

.sf-lesson__link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
}

.sf-lesson__link:hover {
    color: #1d4ed8;
}

.sf-lesson__locked-text {
    color: #64748b;
    font-size: 0.90rem;
}

@media (max-width: 960px) {
    .sf-course-hero {
        grid-template-columns: 1fr;
    }

    .sf-enroll-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .sf-course-title {
        font-size: 1.65rem;
    }

    .sf-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sf-unit__summary {
        padding: 16px;
    }

    .sf-lesson {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 14px 16px;
    }

    .sf-lesson__action {
        grid-column: 2;
    }
}
.course-action-box
{
    margin:20px 0 30px 0;
}

.btn
{
    display:inline-block;
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

.btn.primary
{
    background:#2563eb;
    color:white;
}

.btn.success
{
    background:#16a34a;
    color:white;
}