:root {
  --page-bg: #101b3d;
  --page-bg-2: #21143a;

  --card: rgba(255, 255, 255, 0.96);
  --card-soft: #f7f9ff;

  --text: #172033;
  --muted: #5f6b82;
  --light-text: #f4f7ff;

  --border: rgba(15, 23, 42, 0.10);

  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-purple: #7c3aed;
  --accent-green: #16a34a;
  --accent-gold: #f59e0b;

  --soft-blue: #eef4ff;
  --soft-green: #ecfdf5;
  --soft-warm: #fff7ed;

  --shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.10);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --wrap: 1120px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--light-text);
  background:
    radial-gradient(circle at top left, rgba(94, 92, 230, 0.30), transparent 34rem),
    radial-gradient(circle at top right, rgba(31, 184, 205, 0.16), transparent 30rem),
    linear-gradient(135deg, var(--page-bg) 0%, #18214a 45%, var(--page-bg-2) 100%);
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand,
.brand-with-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  padding: 8px 11px;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--soft-blue);
}

.site-nav .nav-cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

/* Main layout */
.site-main {
  padding: 32px 0 46px;
}

.section {
  margin-top: 20px;
}

/* Cards and common panels */
.hero,
.intro-strip,
.card {
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card h2,
.card h3,
.section h2,
.hero h1 {
  color: #111a33;
}

.muted,
.card .muted,
.intro-strip p,
.highlight-card p,
.roadmap-card p,
.lead {
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.72), transparent 18rem),
    radial-gradient(circle at 85% 85%, rgba(104, 190, 255, 0.16), transparent 20rem);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 780px;
  font-size: 18px;
}

/* Home hero logo layout */
.hero-with-logo {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: 30px;
  align-items: center;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: min(100%, 230px);
  height: auto;
  display: block;
  border-radius: 22px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.hero-content {
  min-width: 0;
}

.hero-home {
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 68, 68, 0.10), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.13), transparent 30%),
    linear-gradient(135deg, #ffffff, #f3f7ff);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto -40px -82px -40px;
  height: 155px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(132, 204, 22, 0.08));
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.hero-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid #4f7cff;
  border-radius: 14px;
  background: rgba(29, 78, 216, 0.08);
  color: #24304f;
}

.hero-note strong {
  color: #162246;
}

/* Labels and buttons */
.badge,
.mini-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(29, 78, 216, 0.11);
  color: var(--accent-dark);
  border: 1px solid rgba(29, 78, 216, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.mini-label {
  margin-bottom: 8px;
}

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(29, 42, 85, 0.16);
  background: #ffffff;
  color: #1d2a55;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.btn.primary {
  color: #ffffff;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

/* Intro strip */
.intro-strip {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.intro-strip h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.intro-strip p {
  margin: 0;
  font-size: 17px;
}

/* Grids */
.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

/* Homepage card styles */
.feature-card,
.highlight-card,
.roadmap-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover,
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.34);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--soft-blue), #ffffff);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  font-size: 24px;
}

.highlight-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 16rem),
    var(--card);
}

.roadmap-card {
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.10), transparent 18rem),
    var(--card);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  padding: 24px 0;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Simple content pages */
.page-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-card {
  padding: 28px;
}

.content-list {
  margin: 0;
  padding-left: 20px;
}

.content-list li {
  margin: 8px 0;
  color: var(--muted);
}

/* Forms, if needed later */
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font: inherit;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--text);
}

/* Mobile */
@media (max-width: 820px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .site-nav {
    width: 100%;
  }

  .hero {
    padding: 26px 20px;
  }

  .hero-with-logo,
  .intro-strip,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero-with-logo {
    text-align: center;
  }

  .hero-logo {
    width: min(100%, 205px);
  }

  .hero-content .btnrow {
    justify-content: center;
  }

  .lead {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 14px;
  }

  .site-main {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .card,
  .intro-strip,
  .roadmap-card {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }
}
/* About page polish */
.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 28px;
  align-items: start;
}

.about-photo-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  margin: 0 auto;
}

.about-badge {
  display: inline-flex;
  margin-top: 12px;
}

.about-content {
  min-width: 0;
}

.about-content h1,
.about-content h2 {
  margin-top: 0;
}

.about-content p {
  font-size: 17px;
  line-height: 1.75;
}

.about-callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.14);
}

@media (max-width: 820px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 260px;
  }

  .about-photo-card {
    max-width: 340px;
    margin: 0 auto;
  }
}
/* About page actual layout fixes */
.about-brand-card,
.founder-card {
  overflow: hidden;
}

.about-brand-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 30px;
  align-items: center;
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 22px;
  background: #ffffff;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.about-brand-content {
  min-width: 0;
}

.about-brand-content h1 {
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.about-brand-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.founder-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 30px;
  align-items: start;
}

.founder-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.founder-photo {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.founder-content {
  min-width: 0;
}

.founder-content h2 {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.founder-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 820px) {
  .about-brand-layout,
  .founder-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-logo {
    max-width: 220px;
  }

  .founder-photo {
    max-width: 240px;
  }

  .about-brand-content p,
  .founder-content p {
    text-align: left;
  }
}
/* Admin dashboard */
.admin-hero h1 {
  max-width: 760px;
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.admin-stats {
  align-items: stretch;
}

.stat-card {
  text-align: center;
  padding: 24px 18px;
}

.stat-number {
  display: block;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 950;
  line-height: 1;
  color: var(--accent-dark);
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.admin-action-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.34);
}

.admin-action-card h2 {
  margin-bottom: 8px;
}

.admin-action-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--soft-blue), #ffffff);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  font-size: 26px;
}

.admin-roadmap {
  padding: 26px;
}

.admin-alert {
  border-left: 6px solid #dc2626;
}

@media (max-width: 900px) {
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .grid.four {
    grid-template-columns: 1fr;
  }
}
/* Admin course builder */
.admin-list-card,
.admin-form-card {
  padding: 26px;
}

.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-list-header h2 {
  margin: 0;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--card-soft);
  border: 1px dashed rgba(37, 99, 235, 0.25);
  text-align: center;
}

.empty-state h3 {
  margin-top: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #1f2a44;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.slug-line {
  font-size: 12px;
  opacity: 0.82;
}

.actions-col {
  white-space: nowrap;
}

.btn.small {
  padding: 7px 10px;
  font-size: 13px;
  margin: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.status-draft {
  background: #fff7ed;
  color: #9a3412;
}

.status-published {
  background: #ecfdf5;
  color: #166534;
}

.status-archived {
  background: #f3f4f6;
  color: #4b5563;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: #ffffff;
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

@media (max-width: 820px) {
  .admin-list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
}
/* Lesson resources / learning tools */
.resource-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #eef4ff;
  color: #1d4ed8;
}

.resource-video,
.resource-cryptpad_presentation {
  background: #f5f3ff;
  color: #6d28d9;
}

.resource-printable,
.resource-file {
  background: #fff7ed;
  color: #9a3412;
}

.resource-research,
.resource-link {
  background: #eff6ff;
  color: #1d4ed8;
}

.resource-meeting {
  background: #ecfdf5;
  color: #166534;
}

.resource-cryptpad_document,
.resource-cryptpad_spreadsheet,
.resource-cryptpad_board,
.resource-cryptpad_form {
  background: #f0fdf4;
  color: #15803d;
}

.resource-quizforge {
  background: #fef3c7;
  color: #92400e;
}

.resource-helper-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(22, 163, 74, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.resource-helper-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
/* Public course and lesson pages */
.course-card-grid {
  align-items: stretch;
}

.public-course-card {
  display: flex;
  flex-direction: column;
}

.public-course-card h2 {
  margin-top: 14px;
}

.public-course-card .btnrow {
  margin-top: auto;
  padding-top: 12px;
}

.course-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.course-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.course-audience {
  margin-top: 12px;
  color: var(--muted);
}

.course-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.course-info-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(37, 99, 235, 0.08);
  color: #25304a;
  font-size: 13px;
}

.public-content-card {
  padding: 28px;
}

.public-rich-text {
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
}

.public-rich-text p:first-child {
  margin-top: 0;
}

.public-unit-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.public-unit-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.unit-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  color: #ffffff;
  font-weight: 950;
  text-align: center;
}

.unit-body h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.public-lesson-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.public-lesson-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.public-lesson-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.public-lesson-link small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.lesson-arrow {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-dark);
}

.mastery-card {
  border-left: 7px solid var(--accent-green);
}

.mastery-card p {
  font-size: 18px;
  color: var(--text);
}

.assignment-card {
  border-left: 7px solid var(--accent);
}

.project-card {
  border-left: 7px solid var(--accent-gold);
}

.video-grid,
.resource-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.video-grid {
  grid-template-columns: 1fr;
}

.video-embed-card,
.public-resource-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.video-embed-card h3,
.public-resource-card h3 {
  margin-bottom: 8px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: var(--shadow-soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.resource-grid {
  grid-template-columns: repeat(2, 1fr);
}

.public-resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.public-resource-card .btn {
  margin-top: auto;
}

@media (max-width: 820px) {
  .public-unit-card {
    grid-template-columns: 1fr;
  }

  .unit-number {
    justify-content: flex-start;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .public-content-card {
    padding: 20px;
  }
}
/* Delete controls */
.inline-delete-form {
  display: inline;
}

.btn.danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.18);
}

.btn.danger:hover {
  background: #fecaca;
}
/* Branded resource launch page */
.resource-launch-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  align-items: center;
}

.resource-launch-icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.75), transparent 42%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.14));
  box-shadow: var(--shadow-soft);
  font-size: 46px;
}

.resource-launch-content {
  min-width: 0;
}

.resource-launch-content h1 {
  max-width: 780px;
}

.resource-guidance-card {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.10), transparent 16rem),
    var(--card);
}

.resource-guidance-card h2 {
  margin-top: 8px;
}

.resource-guidance-card h3 {
  margin-bottom: 6px;
}

@media (max-width: 760px) {
  .resource-launch-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .resource-launch-icon {
    margin: 0 auto;
  }

  .resource-launch-content .btnrow,
  .resource-launch-content .course-info-strip {
    justify-content: center;
  }
}
/* Lesson builder editor */
.lesson-builder-card {
  overflow: hidden;
}

.lesson-builder-form {
  gap: 1.25rem;
}

.lesson-builder-section {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.lesson-builder-section + .lesson-builder-section {
  margin-top: 1.25rem;
}

.lesson-builder-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.lesson-builder-section-header h2 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.lesson-builder-section-header p {
  margin: 0;
}

.lesson-builder-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  border-radius: 999px;
  font-weight: 800;
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
}

.lesson-builder-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.lesson-builder-note {
  margin: 0.75rem 0 0;
}

@media (max-width: 720px) {
  .lesson-builder-section {
    padding: 1rem;
  }

  .lesson-builder-section-header {
    gap: 0.7rem;
  }

  .lesson-builder-step {
    width: 1.9rem;
    height: 1.9rem;
    flex-basis: 1.9rem;
  }
}
/* Auth / password fields */
.auth-card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.password-input-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.password-input-wrap input {
  flex: 1;
}

.password-toggle {
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  padding: 0 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover {
  background: #f8fafc;
}

@media (max-width: 640px) {
  .password-input-wrap {
    flex-direction: column;
  }

  .password-toggle {
    padding: 0.75rem 0.9rem;
  }
}
/* Admin user management */
.admin-user-details {
  min-width: 260px;
}

.admin-user-details summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.admin-user-details summary::-webkit-details-marker {
  display: none;
}

.compact-admin-form {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.85);
}

.compact-admin-form + .compact-admin-form,
.compact-admin-form + .inline-delete-form {
  margin-top: 0.75rem;
}