/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */

@font-face {
  font-family: "Kjk";
  src: url("fonts/Kjk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --paper: #faf8f5;
  --paper-line: #e6edf5;
  --margin-line: #f0caca;
  --ink: #222d3d;
  --ink-soft: #4a576d;
  --ink-faint: #8893a7;
  --accent: #c4513b;
  --accent-glow: rgba(196, 81, 59, 0.06);
  --border-color: #dce3ed;
  
  /* Decorative Tapes */
  --tape: rgba(243, 226, 160, 0.5); /* softer yellow tape */
  --tape-blue: rgba(186, 215, 233, 0.5); /* softer blue tape */
  --tape-green: rgba(193, 225, 193, 0.5); /* softer green tape */
  --tape2: #f4e2e8; /* soft pink tape */
  
  --card-bg: #ffffff;
  --card-border: #e8e2d5;
  --header-bg: rgba(253, 251, 244, 0.93);
  
  /* Layout */
  --site-width: 1040px;
}

body.dark-mode {
  --paper: #121824;
  --paper-line: #202b3d;
  --margin-line: #522828;
  --ink: #f1f5f9;
  --ink-soft: #cbd5e1;
  --ink-faint: #64748b;
  --accent: #ff7a64;
  --accent-glow: rgba(255, 122, 100, 0.15);
  --border-color: #2b394e;
  
  /* Decorative Tapes (Dark mode versions) */
  --tape: rgba(65, 58, 41, 0.9);
  --tape-blue: rgba(43, 62, 80, 0.9);
  --tape-green: rgba(42, 61, 48, 0.9);
  --tape2: #462c35;
  
  --card-bg: #1a2333;
  --card-border: #2e3d56;
  --header-bg: rgba(18, 24, 36, 0.93);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Assistant", sans-serif;
  font-size: 18px;
  line-height: 1.85;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography helper */
.hand {
  font-family: "Kjk", "Gveret Levin", cursive;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Kjk", "Gveret Levin", cursive;
  font-size: 32px;
  font-weight: bold;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lev-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-sub {
  font-family: "Assistant", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 2px;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Switcher */
.theme-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--ink-faint);
  padding: 6px 14px;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile Hamburger Menu */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--paper);
  z-index: 90;
  display: none;
  padding: 24px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  overflow-y: auto; /* Allow scrolling mobile drawer menu on small screens */
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-link {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: "Assistant", sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-align: right;
  padding: 12px 8px;
  border-bottom: 1.5px dashed var(--border-color);
  cursor: pointer;
}

.drawer-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   NOTEBOOK WRAPPER & TABS (DESKTOP)
   ========================================================================== */

.notebook-container {
  max-width: var(--site-width);
  margin: 40px auto;
  padding: 0 40px 0 90px; /* Space for rings on right (40px) and tabs on left (90px) */
  position: relative;
  flex-grow: 1;
  display: flex;
}

/* Binder Rings (Decoration on the binding side of the paper) */
.binder-rings {
  position: absolute;
  right: 0;
  top: 40px;
  bottom: 40px;
  width: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.ring {
  width: 28px;
  height: 12px;
  background: linear-gradient(to bottom, #d1d5db, #9ca3af, #4b5563);
  border-radius: 6px;
  margin-right: -14px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}

body.dark-mode .ring {
  background: linear-gradient(to bottom, #374151, #4b5563, #1f2937);
}

/* Sidebar Notebook Divider Tabs */
.notebook-tabs {
  position: absolute;
  left: 0;
  right: auto; /* Fix RTL absolute alignment bug */
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 6px; /* smaller gap to fit 10 tabs */
  z-index: 1;
  width: 90px;
}

.notebook-tab {
  background: var(--card-bg);
  color: var(--ink-soft);
  border: 1.5px solid var(--card-border);
  border-right: none;
  height: 75px; /* fixed layout height to prevent overlapping */
  width: 90px;
  text-align: center;
  cursor: pointer;
  font-family: "Assistant", sans-serif;
  font-weight: 800;
  font-size: 12px; /* slightly smaller font for clean vertical fit */
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 4px rgba(0,0,0,0.04);
  transition: width 0.25s, background-color 0.25s, color 0.25s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notebook-tab span {
  display: block;
  transform: rotate(-90deg);
  white-space: nowrap;
}

.notebook-tab:hover {
  background-color: var(--paper);
  color: var(--accent);
}

.notebook-tab.active {
  background-color: var(--paper);
  color: var(--accent);
  width: 104px; /* Sticks out more */
  transform: translateX(-14px); /* Pushes leftwards to overlap paper boundary */
  z-index: 5;
  border-color: var(--border-color);
  border-right: 1.5px solid var(--paper); /* Fuses tab with paper */
}

/* ==========================================================================
   NOTEBOOK PAPER SHEET
   ========================================================================== */

.notebook-paper {
  background-color: var(--paper);
  border: 1.5px solid var(--border-color);
  box-shadow: -10px 10px 0 var(--border-color), -20px 20px 0 rgba(0,0,0,0.02);
  width: 100%;
  border-radius: 4px;
  position: relative;
  min-height: 700px;
  z-index: 2;
  overflow: hidden;
  
  /* Lined paper simulation */
  background-image: 
    repeating-linear-gradient(to bottom, transparent, transparent 39px, var(--paper-line) 40px);
}

/* Red Vertical Margin Line on the right side of Hebrew notebook */
.notebook-paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 70px;
  width: 2px;
  background-color: var(--margin-line);
  opacity: 0.75;
  z-index: 10;
  pointer-events: none;
}

/* Notebook Page Section */
.notebook-page {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 50px 110px 60px 50px; /* Space on right for the margin line */
}

.notebook-page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.page-content {
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   REUSABLE NOTEBOOK ELEMENTS
   ========================================================================== */

/* Main titles */
.hero-section {
  margin-bottom: 40px;
}

.main-title {
  font-size: 52px;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-title {
  font-size: 44px;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 8px;
}

.subtitle, .page-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 500;
}

.divider-line {
  height: 4px;
  margin-top: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 40 1, 80 9, 120 5 S 190 1, 218 6' fill='none' stroke='%23b6412c' stroke-width='2.5' stroke-linecap='round' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

body.dark-mode .divider-line {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 40 1, 80 9, 120 5 S 190 1, 218 6' fill='none' stroke='%23ff7a64' stroke-width='2.5' stroke-linecap='round' opacity='0.7'/%3E%3C/svg%3E");
}

.section-title {
  font-size: 32px;
  color: var(--ink);
  margin: 36px 0 24px;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 8px;
}

/* Bullet list with custom ticks */
.bullets-list {
  list-style: none;
  margin: 20px 0;
}

.bullets-list li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 12px;
  font-size: 16px;
}

.bullets-list li::before {
  content: "✓";
  position: absolute;
  right: 4px;
  color: var(--accent);
  font-weight: 900;
  font-family: monospace;
  font-size: 18px;
}

.bullets-list li.warning-li {
  color: var(--accent);
}

.bullets-list li.warning-li::before {
  content: "⚠️";
}

/* Note Cards (looks like papers taped inside the notebook) */
.note {
  background-color: var(--card-bg);
  border: 1.5px solid var(--card-border);
  padding: 24px;
  position: relative;
  box-shadow: 2px 5px 12px rgba(0,0,0,0.05);
  margin: 30px 0;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Sticky Tapes */
.tape-dec, .card-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 110px;
  height: 26px;
  background-color: var(--tape);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  pointer-events: none;
  z-index: 2;
}

.tape-blue {
  background-color: var(--tape-blue);
}

.tape-green {
  background-color: var(--tape-green);
}

.intro-note {
  transform: rotate(-1deg);
  max-width: 680px;
  margin: 40px auto;
}

.story-note {
  background-color: var(--card-bg);
  border-color: var(--card-border);
  transform: rotate(0.5deg);
  margin-top: 36px;
}

/* Reveal classes for scroll entrance animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   WORKSHOP HOME CARDS
   ========================================================================== */

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.workshop-card {
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.workshop-card:nth-child(even) {
  transform: rotate(0.8deg);
}

.workshop-card:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.workshop-card .card-tape {
  top: -13px;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.workshop-card h3 {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 12px;
  border-bottom: 1.5px dashed var(--border-color);
  padding-bottom: 4px;
}

.workshop-card p {
  font-size: 17px;
  color: var(--ink-soft);
  flex-grow: 1;
  line-height: 1.7;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 15px;
}

.card-tag {
  color: var(--ink-faint);
  font-weight: bold;
}

.card-action {
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.2s;
}

.workshop-card:hover {
  transform: translateY(-5px) scale(1.01) rotate(0deg) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.workshop-card:hover .card-action {
  transform: translateX(-4px);
}

/* ==========================================================================
   WORKSHOP DETAILS LAYOUTS
   ========================================================================== */

.page-intro {
  margin: 24px 0 36px;
  font-size: 17px;
  color: var(--ink-soft);
}

.page-intro h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 12px;
}

.details-box {
  background-color: var(--accent-glow);
  border-right: 4px solid var(--accent);
  padding: 24px 28px;
  margin: 30px 0;
}

.details-box h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.split-columns {
  display: flex;
  gap: 28px;
  margin-top: 16px;
}

.split-columns .col {
  flex: 1;
}

.split-columns h4 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Info blocks representing tech details (Price, location, times) */
.info-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.info-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 1px 3px 8px rgba(0,0,0,0.03);
}

.info-block .block-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.info-block h4 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}

.info-block p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.offer-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin: 24px 0 30px;
  padding: 14px;
  background: var(--accent-glow);
  border: 1.5px solid rgba(182, 65, 44, 0.16);
  border-radius: 8px;
}

.offer-strip div {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 12px 10px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.offer-strip strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.offer-strip span {
  display: block;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.offer-strip .btn-primary {
  align-self: center;
  white-space: nowrap;
  text-decoration: none;
}

/* Form and FAQ placement */
.form-faq-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  margin-top: 40px;
  align-items: start;
}

.form-faq-section > .form-wrapper:only-child {
  grid-column: 1 / -1;
  justify-self: center;
}

/* ==========================================================================
   FORMS & INPUTS (HANDWRITTEN STYLE)
   ========================================================================== */

.form-wrapper {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  padding: 32px 28px;
  position: relative;
  box-shadow: 3px 5px 15px rgba(0,0,0,0.06);
  border-radius: 4px;
}

.form-wrapper h3 {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 8px;
}

.form-wrapper p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.form-group input,
.form-group textarea {
  border: none;
  border-bottom: 2px dashed var(--border-color);
  background: transparent;
  padding: 10px 4px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-bottom-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
  border-bottom-style: solid;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Primary Button styled like marker highlighter click */
.btn-primary {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--accent);
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-secondary {
  border: 1.5px dashed var(--card-border);
  background: var(--card-bg);
  color: var(--ink-soft);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary.large-cta {
  font-size: 18px;
  padding: 16px 36px;
  box-shadow: 4px 4px 0 var(--accent-glow);
}

.btn-primary.large-cta:hover {
  box-shadow: 6px 6px 0 var(--accent);
}

/* Form success message */
.success-message {
  text-align: center;
  padding: 20px 10px;
}

.success-message h4 {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 12px;
}

.success-message p {
  font-size: 16px;
  color: var(--ink-soft);
}

/* ==========================================================================
   ACCORDION (FAQ)
   ========================================================================== */

.faq-wrapper h3 {
  font-size: 26px;
  margin-bottom: 20px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.accordion-item[open] {
  border-color: var(--accent);
}

.accordion-item summary {
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  user-select: none;
  color: var(--ink);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "＋";
  font-size: 14px;
  color: var(--accent);
  font-weight: bold;
  transition: transform 0.2s;
}

.accordion-item[open] summary::after {
  content: "－";
}

.accordion-item p {
  padding: 0 16px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   KABINET WRITING SIMULATOR SPECIFICS
   ========================================================================== */

.writing-sim-card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: 2px 4px 10px rgba(0,0,0,0.04);
  padding: 30px;
  margin: 36px 0;
  position: relative;
  border-radius: 4px;
}

.writing-sim-card h3 {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 8px;
}

.sim-container {
  margin-top: 20px;
  background-color: var(--paper);
  border: 1px dashed var(--border-color);
  padding: 24px;
  border-radius: 4px;
}

.sim-prompt-label {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#simPromptText {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 16px;
  padding-right: 12px;
  border-right: 3px solid var(--accent);
  background: transparent;
}

.sim-step textarea {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  resize: none;
  margin-bottom: 16px;
}

.user-written-text {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.6;
  background: rgba(0,0,0,0.01);
  padding: 12px;
  border-radius: 4px;
}

.highlighted-text {
  background-color: rgba(243, 226, 160, 0.4);
  border-bottom: 2px solid var(--accent);
  font-weight: bold;
  padding: 0 4px;
}

body.dark-mode .highlighted-text {
  background-color: rgba(255, 122, 100, 0.2);
}

.loader-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.extracted-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--paper);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 22px;
  margin: 10px 0 20px;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.1);
  transform: rotate(-1deg);
}

.bottom-cta-block {
  background: var(--accent-glow);
  border: 2px dashed var(--accent);
  text-align: center;
  padding: 36px 20px;
  margin-top: 40px;
  border-radius: 6px;
}

.bottom-cta-block h3 {
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 8px;
}

.bottom-cta-block p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ==========================================================================
   CHILUF PAGE DETAILS
   ========================================================================== */

.col h4 {
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 4px;
}

.col p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   WRITING SHOW PAGE DETAILS
   ========================================================================== */

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

.col-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 24px;
  border-radius: 4px;
  position: relative;
  text-align: center;
}

.col-item .step-num {
  width: 36px;
  height: 36px;
  background-color: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.1);
}

.col-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}

.col-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.info-card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--card-border);
  padding: 24px 28px;
  border-radius: 4px;
}

.info-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  border-bottom: 1.5px dashed var(--border-color);
  padding-bottom: 4px;
}

/* ==========================================================================
   AUDITION PREP PAGE DETAILS
   ========================================================================== */

.story-note h4 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 10px;
}

.story-note p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ==========================================================================
   ABOUT PAGE DETAILS
   ========================================================================== */

.about-flex {
  display: flex;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.about-text {
  flex: 1.4;
}

.about-text h3 {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.about-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.photo-frame {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 2px 8px 20px rgba(0,0,0,0.06);
  padding: 14px 14px 24px;
  transform: rotate(2deg);
  border-radius: 2px;
  max-width: 320px;
  width: 100%;
}

body.dark-mode .photo-frame {
  background-color: #1a2333;
}

.photo-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
  border-radius: 2px;
  display: block;
}

.photo-caption {
  font-size: 15px;
  color: var(--ink-faint);
  text-align: center;
  font-weight: bold;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  margin-top: auto;
  border-top: 2px dashed var(--border-color);
  padding: 30px 24px;
  background-color: var(--header-bg);
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
  max-width: var(--site-width);
  margin: 0 auto;
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-instagram-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(184, 66, 47, 0.18);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(31, 43, 58, 0.06);
}

.footer-instagram-link:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 66, 47, 0.34);
  box-shadow: 0 14px 28px rgba(31, 43, 58, 0.09);
}

/* ==========================================================================
   RESPONSIVENESS (TABLETS & MOBILE)
   ========================================================================== */

@media (max-width: 960px) {
  .notebook-container {
    padding: 0 16px;
    margin: 20px auto;
    display: block; /* Standard vertical flow */
  }
  
  /* Hide Binder Rings & Sidebar Tabs completely on mobile/tablet viewports */
  .binder-rings {
    display: none !important;
  }
  
  .notebook-tabs {
    display: none !important; /* Hide tabs bar - user navigates via header & back buttons */
  }
  
  .notebook-paper {
    background-image: none !important; /* Remove horizontal lines */
    box-shadow: 0 8px 32px rgba(0,0,0,0.04) !important; /* Modern premium soft shadow */
    border-radius: 16px !important; /* Elegant rounded corners */
    border: 1.5px solid var(--card-border) !important;
  }
  
  /* Remove page red margin line on mobile/tablet */
  .notebook-paper::before {
    display: none !important;
  }
  
  .notebook-page {
    padding: 36px 24px 48px 24px !important; /* Symmetric page padding for perfect mobile layout */
  }
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .workshops-grid {
    grid-template-columns: 1fr;
  }
  
  .form-faq-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .offer-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-strip .btn-primary {
    grid-column: 1 / -1;
    justify-self: center;
    white-space: normal;
    width: min(100%, 320px);
  }
  
  .info-blocks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .grid-3-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .split-columns {
    flex-direction: column;
    gap: 20px;
  }
  
  .about-flex {
    flex-direction: column; /* Profile image at the top, text below on mobile */
    gap: 30px;
  }
  
  .notebook-paper {
    background-image: none; /* Disable busy blue lines on mobile/tablet for clean readable text */
  }
  
  .about-image-wrapper {
    width: 100%;
  }
  
  .photo-frame {
    max-width: 280px;
    transform: none; /* Prevent tilted corners from causing horizontal overflow/cut-off */
  }
}

@media (max-width: 480px) {
  .notebook-page {
    padding: 24px 16px 40px 16px !important; /* Fully symmetric padding on phone screens */
  }
  
  .notebook-paper::before {
    display: none !important;
  }
  
  .main-title {
    font-size: 32px !important;
  }
  
  .page-title {
    font-size: 26px !important;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .logo-sub {
    display: none;
  }
}


/* ==========================================================================
   MATCHER QUIZ STYLING
   ========================================================================== */

.quiz-card {
  border: 2px dashed var(--accent);
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 4px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.quiz-opt {
  background: var(--paper);
  border: 1.5px solid var(--border-color);
  color: var(--ink);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
}

.quiz-opt:hover {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.quiz-opt.selected {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(196, 81, 59, 0.2);
}

.quiz-result {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TESTIMONIALS STYLING
   ========================================================================== */

.testimonial-note {
  border-left: 3px solid var(--accent);
  background-color: var(--card-bg) !important;
  box-shadow: 1px 4px 10px rgba(0,0,0,0.03) !important;
}

.testimonial-author {
  font-family: "Assistant", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-top: 12px;
}

/* ==========================================================================
   INPUTS HIGHLIGHTER FOCUS STATE
   ========================================================================== */

.lead-form input:focus,
.lead-form textarea:focus {
  background-color: rgba(243, 226, 160, 0.25) !important;
  border-bottom: 2px solid var(--accent) !important;
}

body.dark-mode .lead-form input:focus,
body.dark-mode .lead-form textarea:focus {
  background-color: rgba(255, 122, 100, 0.12) !important;
  border-bottom: 2px solid var(--accent) !important;
}

/* Interactive elements highlight wiggles */
.btn-primary:hover {
  animation: wiggle 0.3s ease infinite alternate;
}

@keyframes wiggle {
  0% { transform: rotate(-0.5deg) translate(-2px, -2px); }
  100% { transform: rotate(0.5deg) translate(-4px, -4px); }
}

@media (max-width: 768px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   INDIVIDUAL TAB COLORING (REAL BINDER LOOK)
   ========================================================================== */

/* 1. Home / בית */
.notebook-tab[data-target="home"] {
  background-color: #f3f4f6;
  color: #4b5563;
  border-left-color: #d1d5db;
}
.notebook-tab[data-target="home"].active {
  background-color: var(--paper) !important;
  color: var(--accent) !important;
  border-left-color: var(--border-color) !important;
  box-shadow: -3px 3px 5px rgba(0,0,0,0.06);
}

/* 2. Master of Non / מאסטר */
.notebook-tab[data-target="master-of-non"] {
  background-color: #fee2e2;
  color: #991b1b;
  border-left-color: #fca5a5;
}
.notebook-tab[data-target="master-of-non"].active {
  background-color: #ef4444 !important;
  color: white !important;
  border-left-color: #ef4444 !important;
  border-color: #b91c1c !important;
  box-shadow: -3px 3px 6px rgba(239, 68, 68, 0.3);
}

/* 3. Kabinet / קבינט */
.notebook-tab[data-target="kabinet-ktiva"] {
  background-color: #fef3c7;
  color: #92400e;
  border-left-color: #fcd34d;
}
.notebook-tab[data-target="kabinet-ktiva"].active {
  background-color: #f59e0b !important;
  color: #451a03 !important;
  border-left-color: #f59e0b !important;
  border-color: #d97706 !important;
  box-shadow: -3px 3px 6px rgba(245, 158, 11, 0.3);
}

/* 4. Chiluf / חילוף */
.notebook-tab[data-target="chiluf"] {
  background-color: #dcfce7;
  color: #166534;
  border-left-color: #86efac;
}
.notebook-tab[data-target="chiluf"].active {
  background-color: #10b981 !important;
  color: white !important;
  border-left-color: #10b981 !important;
  border-color: #047857 !important;
  box-shadow: -3px 3px 6px rgba(16, 185, 129, 0.3);
}

/* 5. Be Active / הצפה */
.notebook-tab[data-target="be-active"] {
  background-color: #e0f2fe;
  color: #075985;
  border-left-color: #7dd3fc;
}
.notebook-tab[data-target="be-active"].active {
  background-color: #0ea5e9 !important;
  color: white !important;
  border-left-color: #0ea5e9 !important;
  border-color: #0369a1 !important;
  box-shadow: -3px 3px 6px rgba(14, 165, 233, 0.3);
}

/* 6. Find Method / שיטה */
.notebook-tab[data-target="find-method"] {
  background-color: #f3e8ff;
  color: #6b21a8;
  border-left-color: #c084fc;
}
.notebook-tab[data-target="find-method"].active {
  background-color: #8b5cf6 !important;
  color: white !important;
  border-left-color: #8b5cf6 !important;
  border-color: #6d28d9 !important;
  box-shadow: -3px 3px 6px rgba(139, 92, 246, 0.3);
}

/* 7. Learning from No / מהלא */
.notebook-tab[data-target="learning-from-no"] {
  background-color: #ffedd5;
  color: #9a3412;
  border-left-color: #fdba74;
}
.notebook-tab[data-target="learning-from-no"].active {
  background-color: #f97316 !important;
  color: white !important;
  border-left-color: #f97316 !important;
  border-color: #c2410c !important;
  box-shadow: -3px 3px 6px rgba(249, 115, 22, 0.3);
}

/* 8. Writing Show / מופע */
.notebook-tab[data-target="writing-show"] {
  background-color: #fae8ff;
  color: #86198f;
  border-left-color: #f5d0fe;
}
.notebook-tab[data-target="writing-show"].active {
  background-color: #d946ef !important;
  color: white !important;
  border-left-color: #d946ef !important;
  border-color: #a21caf !important;
  box-shadow: -3px 3px 6px rgba(217, 70, 239, 0.3);
}

/* 9. Auditions / אודישנים */
.notebook-tab[data-target="audition-prep"] {
  background-color: #e0e7ff;
  color: #3730a3;
  border-left-color: #c7d2fe;
}
.notebook-tab[data-target="audition-prep"].active {
  background-color: #6366f1 !important;
  color: white !important;
  border-left-color: #6366f1 !important;
  border-color: #4338ca !important;
  box-shadow: -3px 3px 6px rgba(99, 102, 241, 0.3);
}

/* 10. About / אודות */
.notebook-tab[data-target="about"] {
  background-color: #ffe4e6;
  color: #9f1239;
  border-left-color: #fecdd3;
}
.notebook-tab[data-target="about"].active {
  background-color: #ec4899 !important;
  color: white !important;
  border-left-color: #ec4899 !important;
  border-color: #be185d !important;
  box-shadow: -3px 3px 6px rgba(236, 72, 153, 0.3);
}

/* Ensure rotated span color matches tab states correctly */
.notebook-tab.active span {
  color: inherit;
}

/* Touch and Active feedbacks for mobile responsiveness */
@media (max-width: 1024px) {
  .workshop-card:active {
    transform: scale(0.97) !important;
    background-color: var(--paper-hover) !important;
    box-shadow: -2px 2px 0 var(--border-color) !important;
  }
  
  .back-to-catalog-btn:hover {
    background-color: var(--paper-hover);
  }
}


/* ==========================================================================
   ADVANCED MOBILE HEADER & VIEWPORT PERFECTING
   ========================================================================== */

@media (max-width: 600px) {
  .header-container {
    padding: 10px 16px;
  }
  
  .theme-toggle-btn {
    padding: 0;
    border-radius: 50% !important; /* Circular button */
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .theme-toggle-text {
    display: none !important; /* Hide text on mobile to prevent header wrapping */
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 8px 12px;
  }

  .logo {
    font-size: 23px; /* Compact logo text */
    gap: 6px;
  }

  .logo-sub {
    font-size: 13px;
  }

  .lev-logo-img {
    width: 32px; /* Compact logo image */
    height: 32px;
  }
  
  .main-title {
    font-size: 32px; /* Prevent heading text wraps */
  }
}

@media (max-width: 400px) {
  .notebook-container {
    padding: 0 8px; /* Maximize page width on tiny screens */
  }
}

/* Responsive title scaling and form button widths for mobile perfection */
@media (max-width: 1024px) {
  .main-title {
    font-size: 34px !important;
  }
  .page-title {
    font-size: 26px !important;
    line-height: 1.3;
  }
  .page-subtitle {
    font-size: 15px !important;
  }
  .page-intro h3 {
    font-size: 18px !important;
  }
  .details-box h3 {
    font-size: 18px !important;
  }
  .quiz-options {
    grid-template-columns: 1fr !important; /* Stack quiz vertically on tablet/mobile */
  }
}

@media (max-width: 800px) {
  .lead-form button[type="submit"] {
    width: 100% !important; /* Full width submit buttons to prevent text overflows */
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow long button text to wrap cleanly */
  }
  
  .back-to-catalog-wrapper button {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   MARKER HIGHLIGHTER & HANDDRAWN ESTHETIC
   ========================================================================== */

/* Highlighter strokes */
.marker-highlight {
  background: linear-gradient(120deg, rgba(254, 226, 115, 0.45) 0%, rgba(254, 226, 115, 0.7) 100%);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline;
}

.marker-highlight-red {
  background: linear-gradient(120deg, rgba(182, 65, 44, 0.08) 0%, rgba(182, 65, 44, 0.15) 100%);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline;
}

/* Wobbly hand-cut borders for cards and boxes */
.workshop-card, .details-box, .note, .form-wrapper, .info-card, .quiz-card {
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px !important;
}

/* Red notebook line to look like a red marker stroke */
.notebook-paper::before {
  width: 3px !important;
  background: rgba(182, 65, 44, 0.45) !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(12deg);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* WhatsApp Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile responsive WhatsApp */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

/* ==========================================================================
   CONVERSION OPTIMIZED SALES ELEMENTS
   ========================================================================== */

/* Show Ticket Stub Card */
.ticket-card {
  display: flex;
  background-color: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  overflow: visible;
  box-shadow: -6px 6px 0 var(--card-border);
  margin: 32px 0;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-card:hover {
  transform: translate(2px, -2px);
  box-shadow: -8px 8px 0 var(--card-border);
}

/* Semi-circular cuts for ticket effect */
.ticket-card::before, .ticket-card::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--paper); /* Matches parent page background */
  border: 2px solid var(--card-border);
  border-radius: 50%;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
}

.ticket-card::before {
  left: -13px;
}

.ticket-card::after {
  right: -13px;
}

/* Ticket Main Section */
.ticket-main {
  flex: 2.8;
  padding: 30px;
  border-left: 2.5px dashed var(--card-border);
  position: relative;
}

/* Ticket Tear-off Action Stub */
.ticket-stub {
  flex: 1.2;
  background-color: rgba(254, 226, 115, 0.15); /* Soft yellow highlighter tone */
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* Scarcity / Urgency Banner inside forms */
.form-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(182, 65, 44, 0.07);
  border: 1px solid rgba(182, 65, 44, 0.14);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}

.pulse-icon {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(182, 65, 44, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(182, 65, 44, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(182, 65, 44, 0);
  }
}

/* Secure & Frictionless Sign-up Footer */
.form-trust-footer {
  margin-top: 24px;
  border-top: 1.5px dashed rgba(28, 43, 74, 0.1);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}

.form-trust-footer span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Mobile adjustments for Ticket */
@media (max-width: 768px) {
  .ticket-card {
    flex-direction: column;
  }
  
  .ticket-card::before, .ticket-card::after {
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .ticket-card::before {
    top: -13px;
  }
  
  .ticket-card::after {
    bottom: -13px;
  }
  
  .ticket-main {
    border-left: none;
    border-bottom: 2.5px dashed var(--card-border);
    padding: 24px;
  }
  
  .ticket-stub {
    padding: 24px;
    border-radius: 0 0 10px 10px;
  }
}

/* ==========================================
   ACTING SCHOOL PREP: JOURNEY TIMELINE
   ========================================== */
.as-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  margin: 28px 0 34px;
}

.as-hero-copy {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: -4px 5px 0 rgba(0, 0, 0, 0.03);
}

.as-kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

.as-hero-copy h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.18;
  color: var(--ink);
}

.as-hero-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.as-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.as-facts-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.as-facts-card div {
  background: var(--accent-glow);
  border: 1.5px solid rgba(182, 65, 44, 0.18);
  border-radius: 8px;
  padding: 18px 12px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.as-facts-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.as-facts-card span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

.as-process-section {
  margin: 34px 0;
}

.as-process-section > h3,
.as-mid-cta h3,
.as-faq > h3 {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 18px;
}

.as-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.as-process-step {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  padding: 18px;
  min-height: 185px;
}

.as-process-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 12px;
}

.as-process-step h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
}

.as-process-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.as-copy-section {
  max-width: 780px;
}

.as-mid-cta {
  margin: 32px auto 12px;
  padding: 24px;
  max-width: 700px;
  text-align: center;
  background: var(--accent-glow);
  border: 1.5px solid rgba(182, 65, 44, 0.16);
  border-radius: 8px;
}

.as-mid-cta p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto 18px;
  max-width: 560px;
}

.as-faq {
  max-width: 780px;
  margin: 44px auto 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.faq-item h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.timeline-container {
  position: relative;
  max-width: 680px;
  margin: 40px auto 60px auto;
  padding-right: 35px;
}

.timeline-track {
  position: absolute;
  right: 12px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-left: 2px dashed var(--accent);
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
  transition: transform 0.2s ease;
}

.timeline-dot {
  position: absolute;
  right: -31px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}

.timeline-card {
  position: relative;
  padding: 22px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: -4px 4px 0 rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.2s, transform 0.2s;
}

.timeline-card:hover {
  box-shadow: -6px 6px 0 rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.timeline-phase {
  font-family: "Kjk", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.timeline-card h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: var(--ink);
  font-weight: 800;
}

.timeline-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.timeline-badge {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
}

.timeline-badge-highlight {
  background: var(--accent-glow);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(182, 65, 44, 0.15);
}

@media (max-width: 600px) {
  .as-hero-panel {
    grid-template-columns: 1fr;
  }

  .as-hero-copy {
    padding: 22px;
  }

  .as-hero-copy h2 {
    font-size: 24px;
  }

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

  .as-hero-actions .btn-primary,
  .as-hero-actions .btn-secondary {
    width: 100%;
  }

  .as-process-grid {
    grid-template-columns: 1fr;
  }

  .as-process-step {
    min-height: auto;
  }

  .timeline-container {
    padding-right: 25px;
    margin-bottom: 40px;
  }
  .timeline-track {
    right: 8px;
  }
  .timeline-dot {
    right: -24px;
    width: 12px;
    height: 12px;
    top: 6px;
  }
  .timeline-card {
    padding: 16px;
  }
  .timeline-card h4 {
    font-size: 16px;
  }
  .timeline-card p {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   PAGE-SPECIFIC CUSTOM NOTEBOOK THEMES & GRIDS (DYNAMIC OVERRIDES)
   ========================================================================== */

/* 1. HOME / cover page (Neutral horizontal notebook) */
.notebook-paper[data-active-page="home"] {
  --paper: #fdfbf4;
  --paper-line: #dbe6f2;
  --margin-line: #e8b4b4;
  --accent: #b6412c;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 39px, var(--paper-line) 40px);
}
body.dark-mode .notebook-paper[data-active-page="home"] {
  --paper: #121824;
  --paper-line: #202b3d;
  --margin-line: #522828;
  --accent: #ff7a64;
}

/* 2. MASTER OF NON (Graph Blueprint paper style) */
.notebook-paper[data-active-page="master-of-non"] {
  --paper: #f9f6e8;
  --paper-line: rgba(220, 200, 160, 0.4);
  --margin-line: #dfa082;
  --accent: #b86500;
  background-image: 
    linear-gradient(to right, var(--paper-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--paper-line) 1px, transparent 1px);
  background-size: 25px 25px;
}
.notebook-paper[data-active-page="master-of-non"]::before {
  right: 60px;
  width: 3px;
  background-color: var(--margin-line);
}
body.dark-mode .notebook-paper[data-active-page="master-of-non"] {
  --paper: #151a1d;
  --paper-line: rgba(255, 255, 255, 0.05);
  --margin-line: #b86500;
  --accent: #ffc266;
}

/* 3. KABINET KTIVA (Narrow ruled ivory typewriter room) */
.notebook-paper[data-active-page="kabinet-ktiva"] {
  --paper: #fcf9f2;
  --paper-line: #cbd8e8;
  --margin-line: #c48a8a;
  --accent: #22577a;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 29px, var(--paper-line) 30px);
}
.notebook-paper[data-active-page="kabinet-ktiva"]::before {
  right: 80px;
  border-right: 1px dotted var(--margin-line);
  background-color: transparent;
  width: 2px;
}
body.dark-mode .notebook-paper[data-active-page="kabinet-ktiva"] {
  --paper: #0f141c;
  --paper-line: #1c2838;
  --margin-line: #6c4e4e;
  --accent: #64b5f6;
}

/* 4. CHILUF (Mint Dot-matrix grid) */
.notebook-paper[data-active-page="chiluf"] {
  --paper: #f5faf6;
  --paper-line: rgba(147, 197, 161, 0.4);
  --margin-line: #8dbb9c;
  --accent: #1e7043;
  background-image: radial-gradient(var(--paper-line) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.notebook-paper[data-active-page="chiluf"]::before {
  right: 55px;
  background-color: var(--margin-line);
  width: 2px;
}
body.dark-mode .notebook-paper[data-active-page="chiluf"] {
  --paper: #0e1913;
  --paper-line: rgba(147, 197, 161, 0.1);
  --margin-line: #1e7043;
  --accent: #5cd693;
}

/* 5. BE ACTIVE (Cross-hatched slate graph) */
.notebook-paper[data-active-page="be-active"] {
  --paper: #f2f5f7;
  --paper-line: rgba(195, 207, 216, 0.6);
  --margin-line: #c97d7d;
  --accent: #ad2b2b;
  background-image: 
    linear-gradient(to right, var(--paper-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--paper-line) 1px, transparent 1px);
  background-size: 30px 30px;
}
.notebook-paper[data-active-page="be-active"]::before {
  right: 70px;
  background-color: var(--margin-line);
  width: 2px;
}
body.dark-mode .notebook-paper[data-active-page="be-active"] {
  --paper: #171d24;
  --paper-line: rgba(255, 255, 255, 0.04);
  --margin-line: #ad2b2b;
  --accent: #ff6b6b;
}

/* 6. FIND METHOD (Ledger accounting ledger theme) */
.notebook-paper[data-active-page="find-method"] {
  --paper: #f4fafb;
  --paper-line: #c5e3e6;
  --margin-line: #8fc2c6;
  --accent: #0b7a7c;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 34px, var(--paper-line) 35px);
}
.notebook-paper[data-active-page="find-method"]::before {
  right: 90px;
  width: 4px;
  border-left: 1px solid var(--margin-line);
  border-right: 1px solid var(--margin-line);
  background-color: transparent;
}
body.dark-mode .notebook-paper[data-active-page="find-method"] {
  --paper: #0c1518;
  --paper-line: #1c3236;
  --margin-line: #355f63;
  --accent: #4dd0e1;
}

/* 7. LEARNING FROM NO (Distressed scribbled paper) */
.notebook-paper[data-active-page="learning-from-no"] {
  --paper: #faf8f5;
  --paper-line: #ebdcd0;
  --margin-line: #d0b0a2;
  --accent: #6d4c41;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 37px, var(--paper-line) 38px);
}
.notebook-paper[data-active-page="learning-from-no"]::before {
  right: 75px;
  width: 2px;
  background-color: var(--margin-line);
}
body.dark-mode .notebook-paper[data-active-page="learning-from-no"] {
  --paper: #1b1614;
  --paper-line: #362c28;
  --margin-line: #6d4c41;
  --accent: #d7ccc8;
}

/* 8. WRITING SHOW (Diagonal music/manuscript style) */
.notebook-paper[data-active-page="writing-show"] {
  --paper: #fbf9f0;
  --paper-line: #e3dec9;
  --margin-line: #d1b8b8;
  --accent: #8e1c3e;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 48px, var(--paper-line) 49px, var(--paper-line) 50px, transparent 51px, transparent 98px);
}
.notebook-paper[data-active-page="writing-show"]::before {
  right: 65px;
  width: 3px;
  background-color: var(--margin-line);
}
body.dark-mode .notebook-paper[data-active-page="writing-show"] {
  --paper: #1a1617;
  --paper-line: #382c2f;
  --margin-line: #8e1c3e;
  --accent: #ec407a;
}

/* 9. AUDITION PREP (Minimal clean canvas viewfinder theme) */
.notebook-paper[data-active-page="audition-prep"] {
  --paper: #fcfcfc;
  --paper-line: #e0e0e0;
  --margin-line: #d32f2f;
  --accent: #2c3e50;
  background-image: linear-gradient(var(--paper-line) 1px, transparent 1px);
  background-size: 100% 60px;
}
.notebook-paper[data-active-page="audition-prep"]::before {
  right: 50px;
  width: 1px;
  background-color: var(--margin-line);
}
body.dark-mode .notebook-paper[data-active-page="audition-prep"] {
  --paper: #111418;
  --paper-line: #222a33;
  --margin-line: #d32f2f;
  --accent: #90a4ae;
}

/* 10. ACTING SCHOOL PREP (Coffee-stained notebook theme) */
.notebook-paper[data-active-page="acting-school-prep"] {
  --paper: #faf6ee;
  --paper-line: rgba(182, 65, 44, 0.08); /* Crimson tinted lines */
  --margin-line: #b6412c;
  --accent: #b6412c;
  
  background-image: 
    /* Crimson tinted horizontal ruled lines */
    repeating-linear-gradient(to bottom, transparent, transparent 39px, var(--paper-line) 40px),
    /* Coffee stain top right */
    url("images/coffee_stain.png"),
    /* Coffee stain bottom left */
    url("images/coffee_stain.png");
  
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center center, right 8% top 12%, left 5% bottom 15%;
  background-size: auto, 360px 360px, 240px 240px;
}
.notebook-paper[data-active-page="acting-school-prep"]::before {
  right: 70px;
  width: 2px;
  background-color: var(--margin-line);
}
body.dark-mode .notebook-paper[data-active-page="acting-school-prep"] {
  --paper: #16120e;
  --paper-line: #2b231b;
  --margin-line: #b6412c;
  --accent: #ff8a75;
  background-image: 
    repeating-linear-gradient(to bottom, transparent, transparent 39px, var(--paper-line) 40px),
    /* Subtle coffee stain overlay for dark mode */
    url("images/coffee_stain.png"),
    url("images/coffee_stain.png");
  
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center center, right 8% top 12%, left 5% bottom 15%;
  background-size: auto, 360px 360px, 240px 240px;
  background-blend-mode: normal, overlay, overlay;
}

/* ==========================================================================
   READABILITY & DELIGHT REFRESH
   Keeps the original notebook personality, with calmer reading rhythm.
   ========================================================================== */

:root {
  --soft-shadow: 0 14px 34px rgba(34, 45, 61, 0.08);
  --lift-shadow: 0 20px 42px rgba(34, 45, 61, 0.12);
  --joy-yellow: #f7df82;
  --joy-blue: #b9dced;
  --joy-green: #bee7c5;
  --joy-pink: #f3bdd0;
}

body {
  background:
    linear-gradient(180deg, rgba(250, 248, 245, 0.95), rgba(244, 239, 230, 0.92));
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.dark-mode {
  background:
    linear-gradient(180deg, rgba(18, 24, 36, 1), rgba(13, 18, 29, 1));
}

button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(196, 81, 59, 0.35);
  outline-offset: 4px;
}

.notebook-paper {
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  border-color: rgba(34, 45, 61, 0.12);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0.16)),
    repeating-linear-gradient(to bottom, transparent, transparent 43px, rgba(180, 191, 205, 0.24) 44px) !important;
}

body.dark-mode .notebook-paper {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
    repeating-linear-gradient(to bottom, transparent, transparent 43px, rgba(90, 108, 132, 0.18) 44px) !important;
}

.notebook-paper::before {
  opacity: 0.35;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-section,
.page-header-block {
  text-align: center;
}

.main-title,
.page-title {
  line-height: 1.08;
  text-wrap: balance;
}

.subtitle,
.page-subtitle {
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.65;
  color: var(--ink-soft);
}

.divider-line {
  max-width: 360px;
  margin-inline: auto;
  opacity: 0.82;
}

.page-intro {
  max-width: 760px;
  margin: 30px auto 38px;
  font-size: 18px;
  line-height: 1.8;
}

.page-intro h3 {
  font-size: 26px;
  line-height: 1.35;
  text-wrap: balance;
}

.page-intro p,
.details-box p,
.story-note p,
.info-card p,
.bottom-cta-block p,
.writing-sim-card p {
  line-height: 1.75;
}

.note,
.details-box,
.form-wrapper,
.info-card,
.writing-sim-card,
.ticket-card,
.bottom-cta-block,
.faq-item,
.accordion-item,
.timeline-card,
.teacher-card {
  border-radius: 12px !important;
  box-shadow: var(--soft-shadow) !important;
}

.note:hover,
.workshop-card:hover,
.info-block:hover,
.timeline-card:hover,
.teacher-card:hover {
  box-shadow: var(--lift-shadow) !important;
}

.workshops-grid {
  gap: 22px;
}

.workshop-card {
  min-height: 205px;
  padding: 26px;
  border-width: 1px;
}

.workshop-card h3 {
  border: none;
  padding-bottom: 0;
  margin-bottom: 10px;
  line-height: 1.15;
}

.workshop-card p {
  font-size: 16px;
  line-height: 1.65;
}

.card-footer {
  gap: 12px;
  flex-wrap: wrap;
}

.card-tag {
  background: var(--accent-glow);
  border: 1px solid rgba(182, 65, 44, 0.12);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1.2;
}

.card-action {
  font-size: 14px;
}

.info-blocks-grid {
  gap: 16px;
}

.info-block {
  border-radius: 12px;
  padding: 22px 20px;
  border-color: rgba(34, 45, 61, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-block:hover {
  transform: translateY(-3px);
}

.info-block .block-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 999px;
  margin-bottom: 12px;
}

.info-block h4 {
  font-size: 18px;
  line-height: 1.3;
}

.info-block p {
  font-size: 15px;
}

.details-box {
  max-width: 820px;
  margin: 34px auto;
  border-right-width: 5px;
  background:
    linear-gradient(90deg, var(--accent-glow), rgba(255,255,255,0.5));
}

body.dark-mode .details-box {
  background:
    linear-gradient(90deg, var(--accent-glow), rgba(255,255,255,0.025));
}

.offer-strip {
  border-radius: 16px;
  padding: 16px;
  gap: 10px;
  background:
    linear-gradient(135deg, var(--accent-glow), rgba(255, 255, 255, 0.58));
  box-shadow: var(--soft-shadow);
}

body.dark-mode .offer-strip {
  background:
    linear-gradient(135deg, var(--accent-glow), rgba(255, 255, 255, 0.035));
}

.offer-strip div {
  min-height: 82px;
  border-radius: 12px;
  border-color: rgba(34, 45, 61, 0.1);
}

.offer-strip strong {
  font-size: 17px;
  color: var(--accent);
}

.offer-strip span {
  font-size: 13px;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  line-height: 1.25;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 8px 18px rgba(34, 45, 61, 0.12);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(196, 81, 59, 0.22);
}

.btn-secondary {
  border-style: solid;
  background: rgba(255, 255, 255, 0.72);
}

body.dark-mode .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.form-wrapper {
  border-color: rgba(34, 45, 61, 0.12);
}

.form-wrapper p {
  font-size: 15px;
  line-height: 1.65;
}

.form-group label {
  font-size: 14.5px;
}

.form-group input,
.form-group textarea,
.form-group select,
.sim-step textarea {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.sim-step textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-availability {
  border-radius: 12px;
}

.form-trust-footer {
  border-top-color: rgba(34, 45, 61, 0.11);
}

.accordion-item summary {
  font-size: 17px;
  line-height: 1.45;
}

.accordion-item p,
.faq-item p {
  font-size: 15.5px;
  line-height: 1.72;
}

.as-hero-panel {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  margin-top: 34px;
}

.as-hero-copy {
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--soft-shadow);
}

.as-hero-copy h2 {
  font-size: 32px;
  line-height: 1.22;
  text-wrap: balance;
}

.as-hero-copy p {
  font-size: 17px;
}

.as-facts-card div,
.as-process-step {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(34, 45, 61, 0.06);
}

.as-process-grid {
  gap: 12px;
}

.timeline-card {
  border-radius: 16px !important;
}

@media (max-width: 1024px) {
  .notebook-paper {
    border-radius: 18px !important;
  }

  .offer-strip {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
    line-height: 1.75;
  }

  .notebook-page {
    padding: 34px 18px 42px !important;
  }

  .main-title {
    font-size: 40px;
  }

  .page-title {
    font-size: 36px;
  }

  .subtitle,
  .page-subtitle {
    font-size: 16.5px;
  }

  .page-intro {
    font-size: 16.5px;
  }

  .page-intro h3 {
    font-size: 22px;
  }

  .offer-strip {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .offer-strip div {
    min-height: 76px;
    padding: 10px 8px;
  }

  .offer-strip strong {
    font-size: 15.5px;
  }

  .offer-strip span {
    font-size: 12.5px;
  }

  .workshops-grid {
    gap: 16px;
  }

  .workshop-card {
    min-height: auto;
    padding: 22px;
    transform: none !important;
  }

  .workshop-card h3 {
    font-size: 23px;
  }

  .workshop-card p {
    font-size: 15.5px;
  }

  .form-row,
  .split-columns {
    flex-direction: column;
  }

  .details-box,
  .note,
  .form-wrapper,
  .writing-sim-card {
    padding: 22px 18px;
  }

  .as-hero-copy {
    padding: 24px 20px;
  }

  .as-hero-copy h2 {
    font-size: 25px;
  }

  .as-facts-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .offer-strip,
  .as-facts-card {
    grid-template-columns: 1fr;
  }

  .offer-strip .btn-primary {
    width: 100%;
  }
}

/* ==========================================================================
   EDITORIAL NOTEBOOK UPGRADE
   A more generous, polished reading layer without changing the content.
   ========================================================================== */

:root {
  --paper: #fbf7ee;
  --paper-warm: #fffdf8;
  --paper-surface: rgba(255, 253, 248, 0.88);
  --paper-line: rgba(62, 80, 105, 0.105);
  --ink: #1f2b3a;
  --ink-soft: #536173;
  --ink-faint: #8d98a8;
  --accent: #b8422f;
  --accent-deep: #8f2d23;
  --accent-glow: rgba(184, 66, 47, 0.105);
  --border-color: rgba(42, 55, 74, 0.13);
  --card-bg: rgba(255, 254, 250, 0.94);
  --card-border: rgba(68, 80, 98, 0.15);
  --site-width: 1180px;
  --read-width: 720px;
  --wide-read-width: 920px;
  --surface-shadow: 0 26px 80px rgba(31, 43, 58, 0.12);
  --card-shadow: 0 14px 34px rgba(31, 43, 58, 0.085);
  --card-shadow-hover: 0 22px 48px rgba(31, 43, 58, 0.135);
  --inside-line: rgba(184, 66, 47, 0.24);
  --joy-yellow: #ffe788;
  --joy-blue: #bfe5f4;
  --joy-green: #bdf0c9;
  --joy-pink: #ffc6d6;
  --joy-violet: #dac8ff;
}

body.dark-mode {
  --paper: #111827;
  --paper-warm: #182233;
  --paper-surface: rgba(24, 34, 51, 0.9);
  --paper-line: rgba(202, 213, 229, 0.08);
  --ink: #f4f7fb;
  --ink-soft: #c9d3e1;
  --ink-faint: #8491a5;
  --accent: #ff806b;
  --accent-deep: #ffab9b;
  --accent-glow: rgba(255, 128, 107, 0.15);
  --border-color: rgba(226, 232, 240, 0.11);
  --card-bg: rgba(28, 39, 58, 0.9);
  --card-border: rgba(226, 232, 240, 0.13);
  --inside-line: rgba(255, 128, 107, 0.26);
}

html {
  scroll-padding-top: 104px;
}

body {
  font-size: 18px;
  line-height: 1.82;
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.97), rgba(246, 239, 226, 0.94)),
    repeating-linear-gradient(90deg, rgba(184, 66, 47, 0.018) 0 1px, transparent 1px 92px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 231, 136, 0.14), transparent 35%),
    linear-gradient(245deg, rgba(191, 229, 244, 0.16), transparent 38%),
    linear-gradient(0deg, rgba(189, 240, 201, 0.1), transparent 45%);
}

header {
  border-bottom: 1px solid rgba(42, 55, 74, 0.09);
  box-shadow: 0 12px 34px rgba(31, 43, 58, 0.055);
}

.header-container {
  max-width: 1320px;
  padding: 14px 28px;
  gap: 18px;
}

.logo {
  padding: 4px 8px;
  border-radius: 16px;
}

.desktop-nav {
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.15;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-glow);
  border-color: rgba(184, 66, 47, 0.18);
  box-shadow: inset 0 -1px 0 rgba(184, 66, 47, 0.08);
}

.notebook-container {
  max-width: 1260px;
  margin: 34px auto 64px;
  padding: 0 34px 0 108px;
}

.notebook-paper {
  border-radius: 28px;
  border: 1px solid rgba(42, 55, 74, 0.11);
  box-shadow: var(--surface-shadow);
  background-color: var(--paper-warm);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(to bottom, transparent, transparent 47px, var(--paper-line) 48px) !important;
}

.notebook-paper::before {
  right: 78px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--inside-line) 10%, var(--inside-line) 90%, transparent);
  opacity: 1;
}

.notebook-page {
  padding: 64px 118px 78px 64px;
}

.page-content {
  max-width: var(--wide-read-width);
}

.hero-section,
.page-header-block {
  max-width: 820px;
  margin-inline: auto;
}

.main-title,
.page-title {
  font-size: clamp(2.7rem, 5vw, 4.65rem);
  color: var(--accent-deep);
  letter-spacing: 0;
  margin-bottom: 14px;
}

.subtitle,
.page-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.divider-line {
  max-width: 260px;
  margin-top: 18px;
  opacity: 0.65;
}

.notebook-tabs {
  top: 54px;
  gap: 8px;
  width: 106px;
}

.notebook-tab {
  width: 96px;
  height: 70px;
  border: 1px solid rgba(42, 55, 74, 0.12);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: -9px 10px 24px rgba(31, 43, 58, 0.055);
  filter: saturate(0.96);
}

.notebook-tab.active {
  width: 112px;
  transform: translateX(-16px);
  box-shadow: -14px 16px 32px rgba(31, 43, 58, 0.095);
}

.notebook-tab span {
  font-size: 12px;
  letter-spacing: 0;
}

.binder-rings {
  opacity: 0.55;
}

.ring {
  width: 30px;
  height: 10px;
  box-shadow: 0 5px 16px rgba(31, 43, 58, 0.16);
}

.page-intro,
.as-copy-section,
.story-note,
.details-box,
.faq-wrapper,
.form-faq-section {
  max-width: var(--read-width);
  margin-inline: auto;
}

.page-intro {
  margin-top: 38px;
  margin-bottom: 42px;
}

.page-intro h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--ink);
}

.page-intro p,
.as-copy-section p,
.story-note p,
.details-box p,
.timeline-card p,
.teacher-card p,
.faq-item p,
.accordion-item p {
  font-size: 1rem !important;
  line-height: 1.88 !important;
  color: var(--ink-soft) !important;
}

.page-intro b,
.as-copy-section b,
.story-note b,
.timeline-card b,
.faq-item b {
  color: var(--ink);
  font-weight: 800;
}

.page-intro br,
.as-copy-section br {
  display: none;
}

.note,
.details-box,
.form-wrapper,
.info-card,
.writing-sim-card,
.ticket-card,
.bottom-cta-block,
.faq-item,
.accordion-item,
.timeline-card,
.teacher-card,
.as-hero-copy,
.as-facts-card div,
.as-process-step,
.info-block {
  border: 1px solid var(--card-border) !important;
  border-radius: 22px !important;
  background: var(--card-bg) !important;
  box-shadow: var(--card-shadow) !important;
}

.note::after,
.workshop-card::after,
.form-wrapper::after,
.timeline-card::after,
.teacher-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 42%);
}

.note:hover,
.workshop-card:hover,
.info-block:hover,
.timeline-card:hover,
.teacher-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--card-shadow-hover) !important;
}

.tape-dec,
.card-tape {
  height: 22px;
  border-radius: 3px;
  opacity: 0.78;
  box-shadow: 0 4px 14px rgba(31, 43, 58, 0.07);
}

.workshops-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.workshop-card {
  min-height: 235px;
  padding: 30px 26px 24px;
  overflow: hidden;
  transform: none !important;
}

.workshop-card:nth-child(3n + 1) {
  border-top: 6px solid rgba(255, 231, 136, 0.86) !important;
}

.workshop-card:nth-child(3n + 2) {
  border-top: 6px solid rgba(191, 229, 244, 0.9) !important;
}

.workshop-card:nth-child(3n) {
  border-top: 6px solid rgba(189, 240, 201, 0.9) !important;
}

.workshop-card h3 {
  font-size: 1.55rem;
  line-height: 1.22;
  margin-bottom: 12px;
  color: var(--accent-deep);
}

.workshop-card p {
  font-size: 0.98rem;
  line-height: 1.75;
}

.card-footer {
  margin-top: 22px;
}

.card-tag {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(42, 55, 74, 0.1);
  color: var(--ink-soft);
  box-shadow: inset 0 -1px 0 rgba(31, 43, 58, 0.04);
}

.card-action {
  color: var(--accent);
}

.offer-strip {
  max-width: var(--wide-read-width);
  margin: 32px auto 38px;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(184, 66, 47, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 231, 136, 0.22), rgba(191, 229, 244, 0.18) 48%, rgba(255, 255, 255, 0.7));
  box-shadow: var(--card-shadow);
}

.offer-strip div {
  min-height: 88px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(42, 55, 74, 0.08);
  border-radius: 18px;
}

.offer-strip strong {
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--accent-deep);
}

.offer-strip span {
  font-size: 0.82rem;
  line-height: 1.35;
}

.offer-strip .btn-primary {
  min-width: 150px;
  align-self: stretch;
}

.info-blocks-grid {
  max-width: var(--wide-read-width);
  margin: 38px auto;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.info-block {
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}

.info-block::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(to bottom, var(--joy-yellow), var(--joy-blue), var(--joy-green));
}

.info-block h4 {
  color: var(--accent-deep);
  font-size: 1.16rem;
}

.info-block p {
  font-size: 0.95rem;
  line-height: 1.76;
}

.details-box {
  padding: 30px 32px;
  border-right: 0 !important;
  background:
    linear-gradient(135deg, rgba(255, 231, 136, 0.18), rgba(255, 255, 255, 0.82)) !important;
}

.details-box h3 {
  color: var(--accent-deep);
}

.bullets-list li,
.story-note li {
  line-height: 1.76 !important;
}

.marker-highlight {
  border-radius: 999px !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.btn-primary,
.btn-secondary,
.back-to-catalog-btn {
  min-height: 46px;
  border-radius: 999px !important;
  font-weight: 850 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ink), #314156) !important;
  color: #fff !important;
  border: 1px solid rgba(31, 43, 58, 0.1) !important;
  box-shadow: 0 12px 24px rgba(31, 43, 58, 0.16) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(184, 66, 47, 0.24) !important;
}

.btn-secondary,
.back-to-catalog-btn {
  background: rgba(255, 255, 255, 0.74) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(42, 55, 74, 0.14) !important;
  box-shadow: 0 8px 20px rgba(31, 43, 58, 0.07) !important;
}

.btn-secondary:hover,
.back-to-catalog-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 66, 47, 0.22) !important;
}

.as-hero-panel {
  max-width: var(--wide-read-width);
  margin: 42px auto;
  gap: 18px;
  align-items: stretch;
}

.as-hero-copy {
  padding: 38px 36px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 221, 0.8)) !important;
}

.as-kicker {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--accent-glow);
}

.as-hero-copy h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.22;
  color: var(--accent-deep);
}

.as-hero-copy p {
  font-size: 1.02rem !important;
  line-height: 1.8 !important;
}

.as-hero-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.as-facts-card {
  gap: 12px;
}

.as-facts-card div {
  min-height: 116px;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(191, 229, 244, 0.18)) !important;
}

.as-facts-card strong {
  color: var(--accent-deep);
}

.as-process-section,
.as-mid-cta {
  max-width: var(--wide-read-width);
  margin-inline: auto;
}

.as-process-section {
  margin-top: 44px;
}

.as-process-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.as-process-step {
  padding: 24px 18px;
}

.as-process-step span {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 43, 58, 0.16);
}

.as-process-step h4 {
  color: var(--accent-deep);
}

.as-mid-cta {
  border-radius: 28px;
  padding: 34px 28px;
  background:
    linear-gradient(135deg, rgba(255, 231, 136, 0.32), rgba(255, 198, 214, 0.22), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(184, 66, 47, 0.13);
  box-shadow: var(--card-shadow);
}

.journey-section {
  max-width: var(--wide-read-width);
  margin-inline: auto;
}

.timeline-container {
  padding-right: 0;
  max-width: 780px;
  margin-inline: auto;
}

.timeline-track,
.timeline-dot {
  display: none;
}

.timeline-item {
  transform: none !important;
  margin-bottom: 16px !important;
}

.timeline-card {
  margin-right: 0;
  padding: 28px 28px 24px;
  overflow: hidden;
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to bottom, var(--joy-yellow), var(--joy-pink));
}

.timeline-phase {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(184, 66, 47, 0.08);
  color: var(--accent-deep);
  font-size: 0.84rem;
  line-height: 1.45;
}

.timeline-card h4 {
  font-size: 1.24rem;
  line-height: 1.28;
  margin-bottom: 8px;
  color: var(--ink);
}

.teachers-section {
  max-width: var(--wide-read-width);
  margin-inline: auto !important;
}

.teachers-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 18px !important;
}

.teacher-card {
  padding: 26px 22px !important;
}

.teacher-card img {
  filter: saturate(1.02) contrast(1.02);
}

.faq-wrapper {
  margin-top: 52px;
}

.faq-item,
.accordion-item {
  padding: 24px 24px;
  margin-bottom: 14px;
}

.faq-item h4,
.accordion-item summary {
  color: var(--ink);
  font-size: 1.03rem;
}

.form-faq-section {
  margin-top: 52px;
}

.form-wrapper {
  max-width: 560px !important;
  padding: 34px 30px !important;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 221, 0.74)) !important;
}

.form-wrapper h3 {
  color: var(--accent-deep);
  font-size: 1.9rem;
}

.form-wrapper p {
  font-size: 0.98rem !important;
  color: var(--ink-soft) !important;
}

.form-availability {
  padding: 12px 14px;
  border: 1px solid rgba(184, 66, 47, 0.14);
  background: rgba(255, 255, 255, 0.58);
}

.form-group label {
  margin-bottom: 7px;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select,
.sim-step textarea {
  min-height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(42, 55, 74, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.form-group textarea,
.sim-step textarea {
  min-height: 110px;
}

.lead-form .btn-primary,
.form-wrapper .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 15px 22px;
}

.form-trust-footer {
  margin-top: 18px;
  padding-top: 16px;
}

.success-message {
  border-radius: 22px;
  background: rgba(189, 240, 201, 0.2);
}

.ticket-card {
  max-width: var(--wide-read-width);
  margin-inline: auto;
}

.whatsapp-float {
  width: 62px;
  height: 62px;
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.28);
}

@media (max-width: 1180px) {
  .header-container {
    align-items: flex-start;
  }

  .desktop-nav {
    max-width: 64vw;
  }

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

  .offer-strip .btn-primary {
    grid-column: 1 / -1;
    min-height: 52px;
  }

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

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .notebook-container {
    padding: 0 18px;
    margin-top: 20px;
  }

  .notebook-tabs,
  .binder-rings,
  .notebook-paper::before {
    display: none;
  }

  .notebook-paper {
    border-radius: 24px !important;
  }

  .notebook-page {
    padding: 46px 24px 58px !important;
  }

  .as-hero-panel {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    padding: 24px 22px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
    line-height: 1.76;
  }

  .header-container {
    padding: 12px 16px;
  }

  .logo {
    font-size: 27px;
  }

  .lev-logo-img {
    width: 36px;
    height: 36px;
  }

  .logo-sub,
  .theme-toggle-text {
    display: none;
  }

  .notebook-container {
    padding: 0 10px;
  }

  .notebook-page {
    padding: 34px 16px 46px !important;
  }

  .main-title,
  .page-title {
    font-size: 2.65rem;
  }

  .subtitle,
  .page-subtitle {
    font-size: 1rem;
  }

  .workshops-grid,
  .info-blocks-grid,
  .teachers-grid {
    grid-template-columns: 1fr !important;
  }

  .workshop-card,
  .details-box,
  .form-wrapper,
  .note,
  .faq-item,
  .accordion-item,
  .as-hero-copy,
  .timeline-card {
    border-radius: 20px !important;
    padding: 24px 18px !important;
  }

  .offer-strip,
  .as-facts-card,
  .as-process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .offer-strip {
    border-radius: 22px;
    gap: 8px;
  }

  .offer-strip div,
  .as-facts-card div {
    min-height: 86px;
  }

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

  .as-hero-actions .btn-primary,
  .as-hero-actions .btn-secondary,
  .as-mid-cta .btn-primary {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .main-title,
  .page-title {
    font-size: 2.35rem;
  }

  .offer-strip,
  .as-facts-card,
  .as-process-grid {
    grid-template-columns: 1fr;
  }

  .timeline-phase {
    border-radius: 16px;
  }
}

/* ==========================================================================
   HOME FLOW & RESPONSIVE READABILITY TUNING
   Brings the workshop chooser into view and reduces visual fatigue.
   ========================================================================== */

#page-home .hero-section {
  margin-bottom: 26px;
}

#page-home .main-title {
  margin-top: 4px;
  margin-bottom: 8px;
}

#page-home .subtitle {
  margin-bottom: 12px;
}

#page-home .instagram-banner {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(184, 66, 47, 0.2) !important;
  box-shadow: 0 10px 24px rgba(31, 43, 58, 0.065);
}

.quiz-card {
  max-width: var(--wide-read-width);
  margin: 18px auto 46px !important;
  padding: 30px 30px 28px;
  border: 1px solid rgba(184, 66, 47, 0.16) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(255, 231, 136, 0.16) 46%, rgba(191, 229, 244, 0.16)) !important;
}

.quiz-card h3 {
  font-size: 1.65rem !important;
  line-height: 1.25;
  color: var(--accent-deep) !important;
  margin-bottom: 8px !important;
}

.quiz-card > p {
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin-bottom: 18px !important;
}

.quiz-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quiz-opt {
  min-height: 62px;
  padding: 12px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(42, 55, 74, 0.11);
  color: var(--ink);
  line-height: 1.2;
  box-shadow: 0 7px 18px rgba(31, 43, 58, 0.045);
  text-align: center;
  font-size: 0.95rem;
}

.quiz-opt:hover,
.quiz-opt:focus-visible {
  background: #fff;
  color: var(--accent-deep);
  border-color: rgba(184, 66, 47, 0.24);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(31, 43, 58, 0.1);
}

.quiz-opt.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(184, 66, 47, 0.24);
}

#page-home .section-title {
  max-width: var(--wide-read-width);
  margin: 10px auto 22px;
  border: 0;
  text-align: center;
  color: var(--accent-deep);
}

.section-title {
  border-bottom: 0;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--joy-yellow), var(--joy-pink), var(--joy-blue));
}

body.dark-mode .quiz-card,
body.dark-mode .as-hero-copy,
body.dark-mode .form-wrapper,
body.dark-mode .details-box,
body.dark-mode .as-mid-cta {
  background: linear-gradient(145deg, rgba(28, 39, 58, 0.96), rgba(41, 52, 73, 0.86)) !important;
}

body.dark-mode .quiz-opt,
body.dark-mode .offer-strip div,
body.dark-mode .card-tag,
body.dark-mode .btn-secondary,
body.dark-mode .back-to-catalog-btn,
body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select,
body.dark-mode .form-availability {
  background: rgba(255, 255, 255, 0.045) !important;
}

@media (max-width: 1180px) {
  .quiz-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 82px;
  }

  .mobile-drawer {
    top: 66px;
    background:
      linear-gradient(180deg, var(--paper-warm), var(--paper));
  }

  .drawer-link {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    padding: 13px 16px;
  }
}

@media (max-width: 640px) {
  #page-home .hero-section {
    margin-bottom: 18px;
  }

  #page-home .main-title,
  .main-title,
  .page-title {
    font-size: 2.55rem !important;
    line-height: 1.06 !important;
  }

  .quiz-card {
    margin-top: 12px !important;
    padding: 22px 16px 20px !important;
  }

  .quiz-options {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }

  .quiz-opt {
    min-height: 58px;
    font-size: 0.9rem;
    padding-inline: 12px;
  }

  .offer-strip,
  .as-facts-card,
  .as-process-grid {
    grid-template-columns: 1fr !important;
  }

  .offer-strip div,
  .as-facts-card div {
    min-height: 72px;
  }

  .page-intro p,
  .as-copy-section p,
  .story-note p,
  .details-box p,
  .timeline-card p,
  .teacher-card p,
  .faq-item p,
  .accordion-item p {
    font-size: 0.98rem !important;
    line-height: 1.78 !important;
  }
}

@media (max-width: 430px) {
  #page-home .main-title,
  .main-title,
  .page-title {
    font-size: 2.25rem !important;
  }

  .notebook-paper {
    border-radius: 20px !important;
  }

  .notebook-page {
    padding: 28px 13px 42px !important;
  }
}

/* Header navigation breathing room */
@media (min-width: 901px) {
  .header-container {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .logo {
    order: 1;
    margin-inline-end: auto;
  }

  .header-actions {
    order: 2;
    margin-inline-start: auto;
  }

  .desktop-nav {
    order: 3;
    flex: 0 0 100%;
    max-width: none !important;
    justify-content: center;
    padding: 0 4px 2px;
  }

  .desktop-nav .nav-link {
    flex: 0 0 auto;
  }
}

/* ==========================================================================
   WORKSHOP WORLDS NAVIGATION
   Makes many workshops feel like distinct places, not a crowded list.
   ========================================================================== */

:root {
  --world-home: #f5d8c9;
  --world-master: #ffd7bf;
  --world-kabinet: #ffe993;
  --world-chiluf: #c7f1d1;
  --world-active: #cbe9f7;
  --world-method: #d9cdff;
  --world-no: #ffc8dd;
  --world-show: #ffd9a8;
  --world-audition: #c7e4ff;
  --world-raw: #f7d7a8;
}

body[data-active-page="master-of-non"] { --active-world: var(--world-master); --active-world-strong: #d95d38; }
body[data-active-page="kabinet-ktiva"] { --active-world: var(--world-kabinet); --active-world-strong: #b58a00; }
body[data-active-page="chiluf"] { --active-world: var(--world-chiluf); --active-world-strong: #31865a; }
body[data-active-page="be-active"] { --active-world: var(--world-active); --active-world-strong: #2d7ea2; }
body[data-active-page="find-method"] { --active-world: var(--world-method); --active-world-strong: #735bb5; }
body[data-active-page="learning-from-no"] { --active-world: var(--world-no); --active-world-strong: #b94c73; }
body[data-active-page="writing-show"] { --active-world: var(--world-show); --active-world-strong: #b46a22; }
body[data-active-page="audition-prep"] { --active-world: var(--world-audition); --active-world-strong: #3b78ae; }
body[data-active-page="acting-school-prep"] { --active-world: var(--world-raw); --active-world-strong: var(--accent-deep); }
body[data-active-page="about"],
body[data-active-page="home"] { --active-world: var(--world-home); --active-world-strong: var(--accent-deep); }

body[data-active-page]::before {
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.44), transparent 18rem),
    linear-gradient(130deg, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(245deg, var(--active-world), transparent 44%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.36), transparent 48%);
}

body.dark-mode[data-active-page]::before {
  opacity: 0.4;
}

.desktop-nav {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(42, 55, 74, 0.08);
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(31, 43, 58, 0.07);
}

.desktop-nav .nav-link {
  position: relative;
  min-height: 38px;
  padding: 7px 12px 8px;
  isolation: isolate;
}

.desktop-nav .nav-link::before,
.drawer-link::before {
  content: attr(data-world-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 1rem;
  line-height: 1;
}

.desktop-nav .nav-link[data-target="home"]::before,
.desktop-nav .nav-link[data-target="about"]::before,
.drawer-link[data-target="home"]::before,
.drawer-link[data-target="about"]::before {
  content: "";
  margin: 0;
}

.desktop-nav .nav-link::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.desktop-nav .nav-link:hover::after,
.desktop-nav .nav-link.active::after {
  opacity: 1;
  transform: scale(1);
}

.desktop-nav .nav-link[data-target="master-of-non"]::after,
.drawer-link[data-target="master-of-non"] { background: rgba(255, 215, 191, 0.55); }
.desktop-nav .nav-link[data-target="kabinet-ktiva"]::after,
.drawer-link[data-target="kabinet-ktiva"] { background: rgba(255, 233, 147, 0.55); }
.desktop-nav .nav-link[data-target="chiluf"]::after,
.drawer-link[data-target="chiluf"] { background: rgba(199, 241, 209, 0.58); }
.desktop-nav .nav-link[data-target="be-active"]::after,
.drawer-link[data-target="be-active"] { background: rgba(203, 233, 247, 0.62); }
.desktop-nav .nav-link[data-target="find-method"]::after,
.drawer-link[data-target="find-method"] { background: rgba(217, 205, 255, 0.58); }
.desktop-nav .nav-link[data-target="learning-from-no"]::after,
.drawer-link[data-target="learning-from-no"] { background: rgba(255, 200, 221, 0.58); }
.desktop-nav .nav-link[data-target="writing-show"]::after,
.drawer-link[data-target="writing-show"] { background: rgba(255, 217, 168, 0.62); }
.desktop-nav .nav-link[data-target="audition-prep"]::after,
.drawer-link[data-target="audition-prep"] { background: rgba(199, 228, 255, 0.62); }
.desktop-nav .nav-link[data-target="acting-school-prep"]::after,
.drawer-link[data-target="acting-school-prep"] { background: rgba(247, 215, 168, 0.65); }

.desktop-nav .nav-link.active {
  color: var(--active-world-strong);
  border-color: transparent;
}

.notebook-paper {
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.notebook-paper[data-active-page] {
  border-color: color-mix(in srgb, var(--active-world-strong) 18%, transparent);
}

.notebook-paper[data-active-page] .page-title,
.notebook-paper[data-active-page] .main-title,
.notebook-paper[data-active-page] .section-title,
.notebook-paper[data-active-page] .workshop-card h3 {
  color: var(--active-world-strong);
}

.notebook-paper[data-active-page] .as-hero-copy,
.notebook-paper[data-active-page] .form-wrapper,
.notebook-paper[data-active-page] .quiz-card,
.notebook-paper[data-active-page] .as-mid-cta {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--active-world) 28%, rgba(255, 255, 255, 0.6))) !important;
}

.notebook-tab {
  position: relative;
  overflow: hidden;
}

.notebook-tab::before {
  content: attr(data-world-icon);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  font-size: 15px;
  opacity: 0.88;
}

.notebook-tab[data-target="home"]::before,
.notebook-tab[data-target="about"]::before {
  content: "";
}

.notebook-tab[data-target="master-of-non"] { background: var(--world-master); }
.notebook-tab[data-target="kabinet-ktiva"] { background: var(--world-kabinet); }
.notebook-tab[data-target="chiluf"] { background: var(--world-chiluf); }
.notebook-tab[data-target="be-active"] { background: var(--world-active); }
.notebook-tab[data-target="find-method"] { background: var(--world-method); }
.notebook-tab[data-target="learning-from-no"] { background: var(--world-no); }
.notebook-tab[data-target="writing-show"] { background: var(--world-show); }
.notebook-tab[data-target="audition-prep"] { background: var(--world-audition); }
.notebook-tab[data-target="acting-school-prep"] { background: var(--world-raw); }

.workshop-card {
  border-top: 0 !important;
  isolation: isolate;
}

.workshop-card::before {
  content: attr(data-world-icon);
  position: absolute;
  top: 18px;
  left: 20px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 9px 22px rgba(31, 43, 58, 0.08);
  z-index: 1;
}

.workshop-card[data-goto="master-of-non"] { --card-world: var(--world-master); }
.workshop-card[data-goto="kabinet-ktiva"] { --card-world: var(--world-kabinet); }
.workshop-card[data-goto="chiluf"] { --card-world: var(--world-chiluf); }
.workshop-card[data-goto="be-active"] { --card-world: var(--world-active); }
.workshop-card[data-goto="find-method"] { --card-world: var(--world-method); }
.workshop-card[data-goto="learning-from-no"] { --card-world: var(--world-no); }
.workshop-card[data-goto="writing-show"] { --card-world: var(--world-show); }
.workshop-card[data-goto="audition-prep"] { --card-world: var(--world-audition); }
.workshop-card[data-goto="acting-school-prep"] { --card-world: var(--world-raw); }

.workshop-card[data-goto] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--card-world) 38%, rgba(255, 255, 255, 0.65))) !important;
}

.workshop-card[data-goto]::after {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(to bottom, color-mix(in srgb, var(--card-world) 80%, white), transparent 44%);
  opacity: 0.55;
}

.world-stepper {
  max-width: var(--wide-read-width);
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.world-step,
.world-step-current {
  min-height: 62px;
  border-radius: 24px;
  border: 1px solid rgba(42, 55, 74, 0.12);
  padding: 12px 16px;
  font-family: inherit;
  font-weight: 850;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.world-step {
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 26px rgba(31, 43, 58, 0.075);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.world-step:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--active-world-strong) 24%, transparent);
  box-shadow: 0 18px 34px rgba(31, 43, 58, 0.115);
}

.world-step-current {
  min-width: 180px;
  color: var(--active-world-strong);
  background: color-mix(in srgb, var(--active-world) 58%, rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.world-step-icon {
  flex: 0 0 auto;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .mobile-drawer {
    padding: 18px;
  }

  .mobile-nav {
    gap: 10px;
  }

  .drawer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
  }

  .drawer-link::before {
    width: 34px;
    height: 34px;
    margin-left: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
  }

  .world-stepper {
    grid-template-columns: 1fr 1fr;
    margin-top: 42px;
  }

  .world-step-current {
    grid-column: 1 / -1;
    order: -1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .world-stepper {
    gap: 9px;
  }

  .world-step,
  .world-step-current {
    min-height: 56px;
    border-radius: 20px;
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .workshop-card::before {
    width: 40px;
    height: 40px;
    top: 16px;
    left: 16px;
  }
}

/* World navigation polish: no clipped lists, no crowded side-tab icons */
@media (min-width: 901px) {
  .desktop-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    direction: rtl;
    padding: 8px 10px;
    row-gap: 0;
  }

  .desktop-nav .nav-link {
    direction: rtl;
    font-size: 13.5px;
    min-height: 34px;
    padding: 6px 10px;
  }
}

.notebook-tab::before {
  content: "" !important;
  display: none !important;
}

.notebook-tab span {
  transform: rotate(-90deg);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
}
