@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pretendard/Pretendard-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pretendard/Pretendard-Bold.woff2") format("woff2");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

h1 {
  font-size: 28px;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 35px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
}

h4 {
  font-size: 15px;
  font-weight: 700;
}

.section-desc {
  text-align: center;
  color: #666;
  margin-bottom: 32px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  min-height: 580px;
}

/* Header */

.site-header {
  position: relative;
  border-bottom: 1px solid #eee;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a.active {
  color: #1a56db;
}

.main-nav a.nav-btn {
  font-weight: 600;
}

.main-nav a.nav-btn-primary {
  color: #fff;
}

.main-nav a.nav-btn-outline {
  color: #1a1a1a;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  background: none;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: 2px solid #1a56db;
  outline-offset: 2px;
}

.btn-primary {
  background: #1a56db;
  color: #fff;
}

.btn-outline {
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 16px;
}

.nav-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-btn-outline {
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
}

.nav-btn-primary {
  background: #1a56db;
  color: #fff;
}

/* Hero */

.hero {
  padding: 72px 0;
  background: url('/images/hero-pattern.jpg') no-repeat center center / cover;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e8edfc;
  color: #1a56db;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-description {
  color: #666;
  max-width: 480px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #888;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #4a7de0;
}

.hero-trust-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero-visual {
  flex: 1;
  min-width: 0;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Steps */

.steps-section {
  padding: 64px 0;
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 32px;
  text-align: left;
}

.step-item:first-child {
  padding-left: 0;
}

.step-item:last-child {
  padding-right: 0;
}

.step-item:not(:first-child) {
  border-left: 1px solid #eaeaea;
}

.step-icon-circle {
  display: inline-flex;
  width: 76px;
  height: 76px;
  border-radius: 20%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef1f8;
}

.step-item:nth-child(2) .step-icon-circle {
  background: #e6f7ee;
}

.step-item:nth-child(3) .step-icon-circle {
  background: #f0ecfd;
}

.step-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-text h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.step-num {
  margin-right: 2px;
}

.step-text p {
  font-size: 0.9rem;
  color: #666;
}

/* Lab Director */

.director-section {
  padding: 40px 0;
  background: #f7f7fb;
}

.director-card {
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.director-panel {
  flex: 0 0 400px;
  padding: 40px 150px 0 32px;
  background-color: #1a1a3d;
  background-image: url('/images/director-photo.png'), linear-gradient(135deg, #1a56db 0%, #1a1a3d 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: 70% auto, cover;
  background-position: right -30px bottom, bottom;
  color: #fff;
}

.director-eyebrow {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.director-name {
  text-align: left;
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.director-title {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.director-credentials {
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.director-credentials li {
  margin-bottom: 6px;
}

.director-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 40px;
}

.director-quote-block {
  flex: 1;
  min-width: 0;
}

.quote-mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #1a56db;
  margin-bottom: 8px;
  text-align: center;
}

.director-quote {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.director-more-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #1a56db;
  color: #1a56db;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.director-stats {
  display: flex;
  flex-shrink: 0;
}

.director-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.director-stat:not(:first-child) {
  border-left: 1px solid #eee;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  color: #4a7de0;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Academy */

.academy-section {
  padding: 64px 0;
  background: #fff;
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.academy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 8px;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.85rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.academy-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.academy-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: #4a7de0;
}

.academy-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Project examples */

.examples-section {
  padding: 64px 0;
  background: #f7f7fb;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.example-card {
  height: 140px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-weight: 600;
}

.example-card-0 {
  background: linear-gradient(135deg, #1a56db, #4c7cf0);
}

.example-card-1 {
  background: linear-gradient(135deg, #d33, #f08c6d);
}

.example-card-2 {
  background: linear-gradient(135deg, #1a1a3d, #4a4a7d);
}

.example-card-3 {
  background: linear-gradient(135deg, #1a7f37, #4cae5c);
}

/* Platform */

.platform-section {
  padding: 64px 0;
  background: #fff;
}

.platform-layout {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.platform-grid {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.platform-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #4a7de0;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.platform-item h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.platform-item p {
  font-size: 0.85rem;
  color: #666;
}

.domain-banner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  padding: 32px;
  text-align: center;
}

.domain-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: #4a7de0;
}

.domain-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.domain-banner p {
  font-weight: 600;
  margin-bottom: 12px;
}

.domain-example {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  background: #eef1f8;
  color: #1a56db;
  font-weight: 700;
  margin-bottom: 12px;
}

.domain-hint {
  font-weight: 400 !important;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0 !important;
}

/* Community tiles */

.community-section {
  padding: 64px 0;
  background: #f7f7fb;
}

.community-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.community-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
  text-decoration: none;
  color: #1a1a1a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.community-tile-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #4a7de0;
}

.community-tile-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.community-tile h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.community-tile p {
  font-size: 0.85rem;
  color: #666;
}

/* Lab news */

.news-section {
  padding: 64px 0;
  background: #fff;
}

.news-list {
  list-style: none;
}

.news-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #1a1a1a;
}

.news-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8edfc;
  color: #1a56db;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.news-title {
  flex: 1;
  font-size: 0.92rem;
}

.news-date {
  font-size: 0.8rem;
  color: #999;
  flex-shrink: 0;
}

/* Section spacing */

.showcase {
  padding: 72px 0;
  background: #f7f7fb;
}

.link-more {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header-row h2 {
  text-align: left;
  margin-bottom: 0;
}

/* Showcase */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.showcase-thumb {
  height: 140px;
  background: #e5e5f0;
}

.showcase-card h3,
.showcase-card p {
  padding: 0 16px;
}

.showcase-card h3 {
  margin-top: 16px;
  font-size: 1rem;
}

.showcase-card p {
  margin: 8px 0 16px;
  font-size: 0.88rem;
  color: #666;
}

.showcase-author {
  color: #999 !important;
  font-size: 0.8rem !important;
}

.featured-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* Portfolio pages */

.portfolio-page {
  padding: 60px 20px 100px;
}

.portfolio-page h1 {
  margin-bottom: 24px;
}

.portfolio-item-page {
  max-width: 720px;
  padding: 60px 20px 100px;
}

.showcase-hero-thumb {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  background: #e5e5f0 center / cover no-repeat;
  margin-bottom: 20px;
}

.portfolio-item-page h1 {
  margin: 8px 0 4px;
}

.portfolio-author {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.portfolio-author a {
  color: #1a1a1a;
  font-weight: 600;
}

.portfolio-summary {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Auth */

.nav-user {
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
}

.nav-logout {
  background: none;
  border: none;
  color: #333;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.auth-page {
  max-width: 420px;
  padding: 80px 20px;
  min-height: 720px;
}

.auth-page h1 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 32px;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.auth-form small {
  display: block;
  color: #888;
  font-size: 0.8rem;
  margin-top: 4px;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn input {
  flex: 1;
  min-width: 0;
}

.input-with-btn .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.form-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 6px;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.auth-terms-step .form-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.auth-terms-step .terms-agree-all label {
  font-size: 1rem;
}

.terms-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 4px 0 8px;
}

.terms-view-link {
  font-size: 0.85rem;
  color: #888;
  text-decoration: underline;
  flex-shrink: 0;
}

.form-error {
  color: #d33;
  font-size: 0.88rem;
  min-height: 1.2em;
  margin-bottom: 12px;
}

.form-success {
  color: #1a9c5f;
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.thumbnail-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.thumbnail-option {
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.thumbnail-option img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.thumbnail-option.selected {
  border-color: #1a56db;
}

.comment-count {
  color: #1a56db;
  font-weight: 600;
  font-size: 0.85rem;
}

.ua-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.admin-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border: 1px solid #ddd;
}

.admin-nav a.active {
  color: #fff;
  background: #1a56db;
  border-color: #1a56db;
}

.find-account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-switch a {
  color: #1a1a1a;
  font-weight: 600;
}

/* Status pages (404 / error) */

.status-page {
  padding: 100px 0;
  text-align: center;
}

.status-page h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.status-page a {
  color: #1a1a1a;
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding: 48px 0 24px;
  color: #ccc;
  font-size: 0.85rem;
  background: #14142b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 32px;
}

.footer-col p {
  margin-bottom: 0px;
  color: #aaa;
}

.footer-col a {
  color: #aaa;
  text-decoration: none;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  box-sizing: border-box;
}

.footer-logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #7a8bd8;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-col-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #888;
}

/* Mobile bottom nav */

.mobile-bottom-nav {
  display: none;
}

/* Course pages */

.course-page,
.course-detail-page,
.lesson-page {
  padding: 60px 20px 100px;
  min-height: 720px;
}

.course-page h1,
.course-detail-page h1 {
  margin-bottom: 24px;
}

.recent-learning {
  margin-bottom: 32px;
  padding: 20px;
  background: #f7f7fb;
  border-radius: 8px;
}

.recent-learning h2 {
  font-size: 1.1rem;
  text-align: left;
  margin-bottom: 12px;
}

.recent-list {
  list-style: none;
}

.recent-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.recent-list li:last-child {
  border-bottom: none;
}

.recent-list a {
  color: #1a1a1a;
  text-decoration: none;
}

.recent-status {
  color: #888;
  font-size: 0.85rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-card {
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #1a1a1a;
}

.course-card-thumb {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1a56db, #1a1a3d);
}

.course-card-body {
  padding: 24px;
}

.course-level {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 10px;
}

.course-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.course-card p {
  font-size: 0.88rem;
  color: #666;
}

.empty-state {
  color: #999;
  text-align: center;
  padding: 40px 0;
}

.course-description {
  color: #666;
  margin: 12px 0 24px;
}

.completion-bar {
  height: 8px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
  margin-bottom: 6px;
}

.completion-bar-fill {
  height: 100%;
  background: #1a1a1a;
}

.completion-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 24px;
}

.lesson-list {
  list-style: none;
}

.lesson-list li {
  border-bottom: 1px solid #eee;
}

.lesson-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  text-decoration: none;
  color: #1a1a1a;
}

.lesson-index {
  width: 24px;
  color: #999;
  font-size: 0.9rem;
}

.lesson-thumb {
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.lesson-meta {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lesson-title {
  font-size: 0.95rem;
}

.lesson-duration {
  font-size: 0.85rem;
  color: #888;
  flex-shrink: 0;
}

.lesson-done {
  font-size: 0.8rem;
  color: #1a7f37;
  font-weight: 600;
}

.lesson-back {
  display: inline-block;
  margin-bottom: 16px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.lesson-summary {
  color: #666;
  margin-bottom: 24px;
}

.lesson-content {
  line-height: 1.8;
  margin-bottom: 32px;
  white-space: pre-line;
}

.lesson-progress-box {
  border-top: 1px solid #eee;
  padding-top: 24px;
}

.lesson-login-hint {
  border-top: 1px solid #eee;
  padding-top: 24px;
  color: #666;
  font-size: 0.9rem;
}

.lesson-nav {
  display: flex;
  margin-top: 20px;
}

.lesson-nav-next {
  margin-left: auto;
}

/* Project pages */

.project-page,
.project-detail-page,
.project-form-page,
.mypage-page {
  padding: 60px 20px 100px;
  min-height: 720px;
}

.mypage-page {
  max-width: 800px;
  margin: 0 auto;
}

.mypage-page .stat-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mypage-page .project-grid {
  grid-template-columns: repeat(2, 1fr);
}

.mypage-section {
  margin-top: 40px;
}

.mypage-section h2 {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.billing-current {
  min-height: 150px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 20px;
}

.billing-current-details {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.billing-renew-hint {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff8e6;
  color: #8a6100;
  border-radius: 8px;
  font-size: 0.88rem;
}

.billing-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 6px;
}

.billing-status-active {
  background: #e6f7ee;
  color: #1a7f37;
}

.billing-status-past_due,
.billing-status-pending {
  background: #fdeaea;
  color: #d33;
}

.billing-price-display {
  font-size: 1.1rem;
  margin: 4px 0 20px;
}

.billing-price-display strong {
  font-size: 1.7rem;
  color: #1a56db;
}

.billing-terms-agree {
  margin: 20px 0 24px;
}

.billing-terms-agree label {
  align-items: flex-start;
  line-height: 1.5;
}

.billing-terms-agree input[type='checkbox'] {
  margin-top: 3px;
  flex-shrink: 0;
}

.billing-cycle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 20px;
}

.billing-cycle-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.billing-cycle-group label:hover {
  border-color: #1a56db;
}

.billing-cycle-group label:has(input:checked) {
  border-color: #1a56db;
  background: #eef2ff;
  color: #1a56db;
  font-weight: 600;
}

.billing-cycle-group input[type='radio'] {
  accent-color: #1a56db;
}

.billing-current-empty {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.billing-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.billing-hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.billing-hero p {
  color: #666;
  font-size: 1.05rem;
}

#billingDurationPanel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

#billingPayBtn {
  width: 100%;
  margin-top: 4px;
}

.billing-page-section {
  margin: 40px 0;
}

.billing-page-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pricing-card:hover {
  border-color: #1a56db;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-box h2 {
  margin-bottom: 12px;
}

.modal-box p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-box .btn {
  width: 100%;
}

.pricing-card-selected {
  border-color: #1a56db;
  border-width: 2px;
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #1a56db;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pricing-desc {
  color: #666;
  font-size: 0.88rem;
  min-height: 40px;
  margin-bottom: 16px;
}

.pricing-cta {
  width: 100%;
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 1.9rem;
  font-weight: 700;
  padding-top: 16px;
  border-top: 1px solid #eee;
  margin-bottom: 16px;
}

.pricing-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
}

.pricing-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  padding-left: 22px;
  position: relative;
  font-size: 0.92rem;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1a56db;
  font-weight: 700;
}

table.billing-discount-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

table.billing-discount-table th,
table.billing-discount-table td {
  text-align: center;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f0;
  white-space: normal;
  word-break: keep-all;
}

.billing-discount-table .billing-free-row td {
  border-bottom: none;
}

.billing-discount-table thead th {
  background: #f7f8fa;
  color: #888;
  font-size: 0.85rem;
  border-bottom: 1px solid #e3e3e3;
}

.billing-discount-table tbody tr:last-child td {
  border-bottom: none;
}

.billing-discount-table tbody tr:hover td {
  background: #fafbfe;
}

.avatar-uploader {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.avatar-img,
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.course-thumb-preview,
.course-thumb-placeholder {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, #1a56db, #1a1a3d);
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a56db, #1a1a3d);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}

.project-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  display: block;
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a1a;
}

.project-card h3 {
  font-size: 1.05rem;
  margin: 10px 0 6px;
}

.project-card p {
  font-size: 0.85rem;
  color: #888;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.project-slug {
  color: #888;
  font-size: 0.9rem;
}

.project-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-danger {
  background: #fff;
  border: 1px solid #d33;
  color: #d33;
}

.project-description {
  color: #666;
  margin-bottom: 24px;
}

.project-section {
  border-top: 1px solid #eee;
  padding: 24px 0;
}

.project-section h2 {
  font-size: 1.1rem;
  text-align: left;
  margin-bottom: 12px;
}

.project-branch {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.commit-result {
  margin-top: 10px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #444;
}

.env-list {
  list-style: none;
  margin-bottom: 16px;
}

.env-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.env-key {
  font-family: monospace;
  font-weight: 600;
  min-width: 140px;
}

.env-value {
  flex: 1;
  color: #999;
  letter-spacing: 2px;
}

.env-delete-btn {
  background: none;
  border: none;
  color: #d33;
  cursor: pointer;
  font-size: 0.85rem;
}

.env-form {
  display: flex;
  gap: 8px;
}

.env-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
}

.deploy-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
}

.deploy-open-link {
  font-size: 0.85rem;
  color: #1a1a1a;
  font-weight: 600;
}

.deploy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.deploy-actions .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.deploy-hint {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 20px;
}

.deploy-subheading {
  font-size: 1rem;
  margin: 20px 0 10px;
}

.deploy-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.deploy-history-table th,
.deploy-history-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #f0f0f0;
}

.deploy-history-table th {
  color: #888;
  font-weight: 600;
}

.log-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.log-tab-btn {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.log-output {
  background: #1a1a1a;
  color: #d6d6d6;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.db-created-info {
  background: #f7f7fb;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  font-family: monospace;
  font-size: 0.85rem;
}

.db-created-info p {
  margin-bottom: 6px;
}

/* Community */

.community-page,
.community-form-page {
  padding: 60px 20px 100px;
    min-height: 720px;
}

.community-form-page {
  max-width: 960px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ddd;
  color: #444;
  text-decoration: none;
  font-size: 0.88rem;
}

.category-tab.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.community-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.community-table th,
.community-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.community-table th {
  color: #888;
  font-weight: 600;
  font-size: 0.85rem;
}

.community-table a {
  color: #1a1a1a;
  text-decoration: none;
}

.pinned-row {
  background: #f9f9fc;
}

.community-content {
  line-height: 1.8;
  margin: 24px 0;
  white-space: pre-line;
}

.rich-content {
  line-height: 1.8;
  margin: 24px 0;
  word-break: break-word;
}

.rich-content p {
  margin-bottom: 1em;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 1.2em 0 0.6em;
  text-align: left;
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 1em 1.4em;
}

.rich-content blockquote {
  margin: 0 0 1em;
  padding: 8px 16px;
  border-left: 3px solid #ddd;
  color: #666;
}

.rich-content pre {
  margin: 0 0 1em;
  padding: 12px 16px;
  background: #f7f7fb;
  border-radius: 8px;
  overflow-x: auto;
}

.rich-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5em 0;
}

.rich-content table {
  border-collapse: collapse;
  margin-bottom: 1em;
  width: 100%;
}

.rich-content th,
.rich-content td {
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.comment-list {
  list-style: none;
  margin-bottom: 16px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item .comment-list {
  margin: 8px 0 0;
}

.comment-item .comment-item {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-avatar .avatar-img,
.comment-avatar .avatar-placeholder {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-author {
  font-weight: 600;
  font-size: 0.88rem;
}

.comment-date {
  margin-left: 6px;
  color: #999;
  font-size: 0.78rem;
}

.comment-content {
  margin: 4px 0;
  font-size: 0.92rem;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  gap: 12px;
}

.comment-reply-btn,
.comment-delete-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

.comment-reply-btn {
  color: #666;
}

.comment-delete-btn {
  color: #d33;
}

.comment-reply-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.comment-reply-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.88rem;
}

/* Admin */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

.role-select {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {

  .course-page,
  .course-detail-page,
  .lesson-page {
    padding: 20px 20px 100px;
  }


  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-form {
  max-width: 960px;
}

.project-form .form-group {
  margin-bottom: 18px;
}

.project-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.project-form input,
.project-form textarea,
.project-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.project-form textarea {
  min-height: 90px;
  resize: vertical;
}

/* Responsive */

@media (max-width: 992px) {
  .platform-grid,
  .examples-grid,
  .community-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .academy-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .director-card {
    flex-direction: column;
  }

  .director-panel {
    flex-basis: auto;
    padding: 32px 110px 0 24px;
    background-size: 83% auto, cover;
    background-position: right -30px bottom, bottom;
  }

  .director-content {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .director-stats {
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid,
  .course-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 500;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav .nav-btn {
    margin: 0;
    padding: 14px 20px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    background: none;
    color: #333;
    text-align: left;
  }

  .main-nav a.nav-btn-primary,
  .main-nav a.nav-btn-outline {
    color: #333;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-inner {
    flex-direction: column;
    position: relative;
  }

  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  .hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    max-width: 260px;
    max-height: none;
    opacity: 0.2;
    z-index: 0;
    box-shadow: none;
    pointer-events: none;
  }

  .director-stats {
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .director-stat {
    padding: 0 10px;
  }
  .director-content {
    padding: 32px 20px;
  }


  .steps-grid,
  .platform-grid,
  .examples-grid,
  .community-tiles,
  .showcase-grid,
  .course-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .platform-layout {
    flex-direction: column;
  }

  .steps-grid {
    gap: 20px;
  }

  .step-item {
    padding: 20px 0 0;
    border-left: none !important;
  }

  .step-item:first-child {
    padding-top: 0;
  }

  .step-item:not(:first-child) {
    border-top: 1px solid #eaeaea;
  }

  .academy-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
  }

  .env-form {
    flex-direction: column;
  }

  body {
    padding-bottom: 60px;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 50;
  }

  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0;
    text-decoration: none;
    color: #666;
    font-size: 0.7rem;
  }

  .mobile-nav-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #666;
  }

  .mobile-nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  .mobile-bottom-nav a.active {
    color: #1a56db;
  }

  .mobile-bottom-nav a.active .mobile-nav-icon {
    color: #1a56db;
  }

}

/* Scroll to top */

#scrollTopBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #1a56db;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: background 0.2s ease, transform 0.2s ease;
}

#scrollTopBtn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

#scrollTopBtn.show {
  display: flex;
}

#scrollTopBtn:hover {
  background: #1443ad;
  transform: translateY(-2px);
}

/* Toast */

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 320px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: #d33;
}

.toast-success {
  background: #1a9c5f;
}

@media (max-width: 768px) {
  .toast-container {
    right: 16px;
    bottom: 150px;
    max-width: calc(100% - 32px);
  }
}

@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 84px;
  }

  main {
    min-height: 400px;
  }

  .mypage-page .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mypage-page .project-grid {
    grid-template-columns: 1fr;
  }

  .avatar-uploader {
    gap: 14px;
  }

  .avatar-img,
  .avatar-placeholder {
    width: 64px;
    height: 64px;
  }

  .table-scroll-x {
    /* display: block;
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; */
  }

  .table-scroll-x th,
  .table-scroll-x td {
    white-space: nowrap;
  }

  .table-scroll-x td.table-cell-wrap {
    white-space: normal;
  }

  .lesson-nav {
    flex-direction: column;
    gap: 10px;
  }

  .lesson-nav-next {
    margin-left: 0;
  }

  .lesson-meta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
  }

  .lesson-duration {
    order: -1;
  }

  .auth-switch-links {
    display: block;
    margin-top: 4px;
  }

  .auth-switch-links a {
    text-decoration: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .billing-hero h1 {
    font-size: 1.6rem;
  }

  #billingDurationPanel {
    padding: 20px 7px;
  }

  .billing-cycle-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .billing-cycle-group label {
    justify-content: center;
    padding: 16px;
  }
}
