/*
Theme Name: The Psychology Notebook
Theme URI: https://www.youtube.com/channel/UCEVngYvoWwoAkz0iaDaI7-w
Author: The Psychology Notebook
Author URI: https://www.youtube.com/channel/UCEVngYvoWwoAkz0iaDaI7-w
Description: A warm, academic "Lecture Notebook" theme for The Psychology Notebook — featuring cream paper tones, handwritten annotations, notebook-tab navigation, and sticky-note cards. Includes custom post types for Psych 101 Lessons and Vocabulary terms.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psychology-notebook
Tags: education, blog, custom-menu, custom-logo, featured-images, theme-options
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================
   CSS CUSTOM PROPERTIES — "Lecture Notebook"
   ============================================ */
:root {
  /* Core palette */
  --cream: #F5EDE0;
  --warm-cream: #EDE4D3;
  --paper: #F7F0E6;
  --ink: #2D2A26;
  --teal: #3D8B8B;
  --teal-light: #D4EDED;
  --rose: #C4706E;
  --rose-light: #F0D4D3;
  --ruled-line: #C8C0D0;
  --margin-red: #C47070;
  --border: #DDD5C8;
  --muted: #8A8279;

  /* Typography */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-handwritten: 'Caveat', cursive;

  /* Spacing */
  --container-max: 1280px;
  --container-padding: 1rem;
  --section-padding: 4rem;
  --radius: 0.5rem;
}

@media (min-width: 640px) {
  :root { --container-padding: 1.5rem; }
}
@media (min-width: 1024px) {
  :root {
    --container-padding: 2rem;
    --section-padding: 6rem;
  }
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 237, 224, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header-inner { height: 5rem; }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .logo-icon { width: 3rem; height: 3rem; }
}

.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal);
}

@media (min-width: 1024px) {
  .logo-icon svg { width: 1.5rem; height: 1.5rem; }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .logo-title { font-size: 1.25rem; }
}

.logo-subtitle {
  font-family: var(--font-handwritten);
  font-size: 0.85rem;
  color: var(--muted);
  display: none;
}

@media (min-width: 640px) {
  .logo-subtitle { display: block; }
}

/* Desktop Nav — Notebook Tabs */
.main-nav {
  display: none;
  align-items: flex-end;
  gap: 0.125rem;
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
}

.nav-tab {
  position: relative;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: -1px;
}

.nav-tab:hover {
  color: var(--ink);
  background: var(--paper);
}

.nav-tab.active,
.nav-tab.current-menu-item > a,
.current-menu-item .nav-tab {
  background: var(--cream);
  border-color: var(--teal);
  color: var(--teal);
  z-index: 1;
}

/* WordPress menu compatibility */
.main-nav .menu {
  display: flex;
  list-style: none;
  align-items: flex-end;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
}

.main-nav .menu li {
  list-style: none;
}

.main-nav .menu li a {
  position: relative;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: -1px;
  display: block;
}

.main-nav .menu li a:hover {
  color: var(--ink);
  background: var(--paper);
}

.main-nav .menu li.current-menu-item a,
.main-nav .menu li.current_page_item a {
  background: var(--cream);
  border-color: var(--teal);
  color: var(--teal);
  z-index: 1;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-youtube {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--rose);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
  .btn-youtube { display: inline-flex; }
}

.btn-youtube:hover {
  opacity: 0.9;
  color: #fff;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  line-height: 0;
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

.mobile-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--paper);
  padding: 1rem var(--container-padding);
}

.mobile-nav.open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav .menu li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease;
}

.mobile-nav .menu li a:hover {
  background: var(--warm-cream);
}

.mobile-nav .menu li.current-menu-item a,
.mobile-nav .menu li.current_page_item a {
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--warm-cream);
  color: var(--ink);
}

.btn-rose {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn-rose:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245,237,224,0.95), rgba(245,237,224,0.80), rgba(245,237,224,0.40));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .hero-content { padding: 8rem 0; }
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 9999px;
  font-family: var(--font-handwritten);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  color: var(--teal);
  position: relative;
}

.hero h1 .highlight svg {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-label-teal { color: var(--teal); }
.section-label-rose { color: var(--rose); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-body {
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .card-body { padding: 2rem; }
}

/* Feature cards (Study Hub) */
.feature-card {
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  height: 100%;
}

@media (min-width: 1024px) {
  .feature-card { padding: 2rem; }
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-card .icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.icon-box-teal {
  background: var(--teal-light);
  color: var(--teal);
}

.icon-box-rose {
  background: var(--rose-light);
  color: var(--rose);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.feature-card:hover h3 {
  color: var(--teal);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 0.5rem;
  color: var(--teal);
}

/* Lesson cards */
.lesson-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 2px solid var(--margin-red);
  padding-left: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .lesson-card { padding: 1.25rem; padding-left: 1.5rem; }
}

.lesson-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: var(--ink);
}

.lesson-card .play-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  background: var(--warm-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lesson-card:hover .play-icon {
  background: var(--teal-light);
}

.lesson-card .play-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--teal);
}

.lesson-card .lesson-meta {
  font-family: var(--font-handwritten);
  font-size: 0.8rem;
  color: var(--teal);
}

.lesson-card .lesson-meta span {
  font-family: var(--font-body);
  color: var(--muted);
}

.lesson-card h3 {
  font-size: 1.125rem;
  margin: 0.25rem 0;
  transition: color 0.2s ease;
}

.lesson-card:hover h3 {
  color: var(--teal);
}

.lesson-card .lesson-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tag pills */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  background: var(--warm-cream);
  border-radius: 9999px;
  color: var(--muted);
}

/* Article cards */
.article-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: var(--ink);
}

.article-card .color-bar {
  height: 0.5rem;
}

.color-bar-teal { background: var(--teal); }
.color-bar-rose { background: var(--rose); }
.color-bar-green { background: #6B9E6B; }
.color-bar-amber { background: #B8956A; }
.color-bar-purple { background: #8B6B9E; }
.color-bar-muted { background: var(--muted); }

.article-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--margin-red);
  margin-left: 0;
  padding-left: 1.5rem;
}

.article-card .category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: var(--rose-light);
  color: var(--rose);
  border-radius: 9999px;
}

.article-card .featured-badge {
  font-family: var(--font-handwritten);
  font-size: 0.8rem;
  color: var(--teal);
}

.article-card h3 {
  margin: 0.75rem 0;
  transition: color 0.2s ease;
}

.article-card:hover h3 {
  color: var(--teal);
}

.article-card .excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.article-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Sticky note cards */
.sticky-note {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 2px 3px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  transform: rotate(-0.5deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-note:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 3px 5px 12px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.06);
}

.sticky-note-cream { background: #F2E8D5; }
.sticky-note-rose { background: #F0D4D3; }
.sticky-note-teal { background: #D4EDED; }

.sticky-note h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.sticky-note p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   NOTEBOOK EFFECTS
   ============================================ */
.notebook-margin {
  border-left: 2px solid var(--margin-red);
  padding-left: 1.5rem;
}

.pencil-underline {
  position: relative;
  text-decoration: none;
}

.pencil-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width 0.3s ease;
  opacity: 0.6;
}

.pencil-underline:hover::after {
  width: 100%;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   PAGE BANNER
   ============================================ */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .page-banner { padding: 6rem 0; }
}

.page-banner-dark {
  background: var(--ink);
}

.page-banner-dark .page-banner-content {
  color: #fff;
}

.page-banner-dark .page-banner-content p {
  color: rgba(255,255,255,0.8);
}

.page-banner-bg {
  position: absolute;
  inset: 0;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45,42,38,0.8), rgba(45,42,38,0.6), rgba(45,42,38,0.4));
}

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

.page-banner .badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-radius: 9999px;
  font-family: var(--font-handwritten);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.page-banner h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.page-banner p {
  color: rgba(255,255,255,0.8);
  max-width: 42rem;
  line-height: 1.7;
}

/* Light banner variant */
.page-banner-light {
  background: var(--cream);
}

.page-banner-light .page-banner-bg .overlay {
  background: rgba(245,237,224,0.92);
}

.page-banner-light h1 {
  color: var(--ink);
}

.page-banner-light p {
  color: var(--muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--ink);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cta-section { padding: 4rem; }
}

.cta-section .cta-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
}

.cta-section .section-label {
  color: var(--rose-light);
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.cta-circles {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.cta-circles .circle {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-circles .circle-1 { width: 6rem; height: 6rem; top: 0; right: 0; }
.cta-circles .circle-2 { width: 10rem; height: 10rem; top: 4rem; right: 4rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--warm-cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-quote {
  font-family: var(--font-handwritten);
  font-size: 1rem;
  color: var(--muted);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-cta-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.footer-cta-box p {
  font-family: var(--font-handwritten);
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }
}

.footer-tagline {
  font-family: var(--font-handwritten);
  font-size: 0.85rem;
}

/* ============================================
   SIDEBAR (Psych 101 page)
   ============================================ */
.sidebar-box {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.sidebar-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 0.5rem;
}

.sidebar-list li a {
  font-size: 0.875rem;
  color: var(--muted);
}

.sidebar-list li a:hover {
  color: var(--teal);
}

.sidebar-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.sidebar-detail svg {
  width: 1rem;
  height: 1rem;
  color: var(--teal);
}

/* ============================================
   LAYOUT — SIDEBAR + CONTENT
   ============================================ */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
  }
}

.sidebar-sticky {
  position: sticky;
  top: 6rem;
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.filter-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--ink);
  background: var(--warm-cream);
}

.filter-btn.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ============================================
   SEARCH BAR (Vocabulary)
   ============================================ */
.search-bar {
  position: relative;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.search-bar input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: all 0.2s ease;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,139,139,0.15);
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-bar .search-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   LETTER GROUP (Vocabulary)
   ============================================ */
.letter-group {
  margin-bottom: 2.5rem;
}

.letter-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.letter-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.letter-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-hero { grid-template-columns: 1fr 1fr; }
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-feature-img,
.about-image-wrap img {
  width: 100%;
  max-width: 20rem;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about-feature-img,
  .about-image-wrap img {
    max-width: 24rem;
  }
}

.about-image-placeholder {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 3/4;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .about-image-placeholder {
    max-width: 24rem;
  }
}

.about-lead {
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 500;
}

.about-annotation {
  position: absolute;
  bottom: -1rem;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-family: var(--font-handwritten);
  font-size: 0.875rem;
  color: var(--teal);
  transform: rotate(2deg);
}

.about-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Philosophy section */
.about-philosophy-section {
  max-width: 48rem;
  margin: 0 auto;
}

.philosophy-block {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.philosophy-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 639px) {
  .philosophy-block {
    flex-direction: column;
  }
}

.philosophy-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.philosophy-block p {
  color: var(--muted);
  line-height: 1.7;
}

/* Mission content */
.mission-content {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  text-align: center;
}

.mission-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Value cards */
.value-card {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.value-card .icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Offering items */
.offering-item {
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 2px solid var(--margin-red);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.offering-item .offering-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.offering-item .offering-tag {
  font-family: var(--font-handwritten);
  font-size: 0.85rem;
  color: var(--teal);
}

.offering-item p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   BLOG / SINGLE POST
   ============================================ */
.post-content {
  max-width: 48rem;
  margin: 0 auto;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.post-content ul, .post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image img {
  border-radius: var(--radius);
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--warm-cream);
  color: var(--ink);
}

.pagination .current {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-warm-cream { background: var(--warm-cream); }
.text-teal { color: var(--teal); }
.text-rose { color: var(--rose); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ============================================
   V2: LESSON PAGE — HEADER
   ============================================ */
.lesson-header-section {
  padding: 2rem 0 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.lesson-header-inner {
  max-width: 48rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--teal);
}

.lesson-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.lesson-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 9999px;
  font-family: var(--font-handwritten);
  font-size: 0.9rem;
  font-weight: 500;
}

.lesson-module {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lesson-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.lesson-duration svg {
  width: 0.875rem;
  height: 0.875rem;
}

.lesson-title {
  margin-bottom: 0.5rem;
}

.lesson-header-inner .lesson-excerpt {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 36rem;
}

/* ============================================
   V2: LESSON PAGE — VIDEO EMBED
   ============================================ */
.lesson-video-section {
  padding: 2rem 0;
  background: var(--cream);
}

.lesson-video-wrap {
  max-width: 56rem;
  margin: 0 auto;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  background: var(--ink);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   V2: LESSON PAGE — CONTENT LAYOUT
   ============================================ */
.lesson-content-section {
  padding: 2.5rem 0 var(--section-padding);
}

.lesson-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .lesson-content-layout {
    grid-template-columns: 1fr 20rem;
    gap: 3rem;
  }
}

@media (min-width: 1280px) {
  .lesson-content-layout {
    grid-template-columns: 1fr 22rem;
  }
}

.lesson-main {
  min-width: 0;
}

/* Transcript block */
.lesson-transcript {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--warm-cream);
  border-bottom: 1px solid var(--border);
}

.transcript-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  margin: 0;
}

.transcript-header h2 svg {
  color: var(--teal);
}

.transcript-header .annotation {
  font-family: var(--font-handwritten);
  font-size: 0.85rem;
  color: var(--muted);
}

.transcript-body {
  padding: 1.5rem;
}

.transcript-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.transcript-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.transcript-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.transcript-body ul, .transcript-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.transcript-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Tags section */
.lesson-tags {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 0.125rem;
  flex-shrink: 0;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Lesson navigation */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.lesson-nav-prev,
.lesson-nav-next {
  max-width: 50%;
}

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

.nav-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.lesson-nav a {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ============================================
   V2: SIDEBAR CARDS
   ============================================ */
.lesson-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .lesson-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.sidebar-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* ============================================
   V2: INSTRUCTOR BIO CARD
   ============================================ */
.instructor-card {
  text-align: center;
}

.instructor-photo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--teal-light);
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-cream);
  color: var(--muted);
}

.instructor-name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.instructor-title {
  font-family: var(--font-handwritten);
  font-size: 0.9rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.instructor-bio-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   V2: CTA CARD (YouTube Subscribe)
   ============================================ */
.cta-card {
  background: var(--rose-light);
  border-color: rgba(196,112,110,0.2);
}

.cta-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--rose);
}

.cta-card h3 {
  color: var(--ink);
}

.cta-card p {
  color: var(--ink);
  opacity: 0.75;
}

/* ============================================
   V2: EMAIL SIGNUP CARD (Sidebar)
   ============================================ */
.email-card {
  background: var(--teal-light);
  border-color: rgba(61,139,139,0.2);
}

.email-card h3 {
  color: var(--ink);
}

.email-card p {
  color: var(--ink);
  opacity: 0.75;
}

.email-signup-placeholder {
  padding: 0.75rem;
  background: rgba(255,255,255,0.4);
  border-radius: var(--radius);
  text-align: center;
}

/* ============================================
   V2: RELATED LESSONS LIST
   ============================================ */
.related-lessons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-lessons-list li {
  margin-bottom: 0.5rem;
}

.related-lessons-list li a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 0.875rem;
}

.related-lessons-list li a:hover {
  background: var(--warm-cream);
}

.related-lesson-num {
  font-family: var(--font-handwritten);
  font-size: 0.8rem;
  color: var(--teal);
  flex-shrink: 0;
  padding-top: 0.125rem;
}

.related-lesson-title {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================
   V2: EMAIL SIGNUP BANNER (Footer)
   ============================================ */
.email-signup-section {
  background: var(--ink);
  padding: 2.5rem 0;
}

.email-signup-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .email-signup-inner {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }
}

.email-signup-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(61,139,139,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
}

.email-signup-text {
  flex: 1;
  min-width: 0;
}

.email-signup-text h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.email-signup-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.email-signup-form {
  flex-shrink: 0;
  width: 100%;
  max-width: 20rem;
}

.email-signup-placeholder-footer {
  padding: 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.2);
}

.email-signup-placeholder-footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.5;
}

.email-signup-placeholder-footer strong {
  color: rgba(255,255,255,0.85);
}

/* Jetpack form styling overrides */
.email-signup-section .wp-block-jetpack-subscriptions__container,
.email-signup-section #subscribe-email input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: var(--radius);
}

.email-signup-section #subscribe-email input::placeholder {
  color: rgba(255,255,255,0.5);
}

.email-signup-section .wp-block-jetpack-subscriptions__submit,
.email-signup-section #subscribe-submit input {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.email-signup-section .wp-block-jetpack-subscriptions__submit:hover,
.email-signup-section #subscribe-submit input:hover {
  opacity: 0.9;
}

/* Sidebar Jetpack form styling */
.email-card .wp-block-jetpack-subscriptions__container,
.email-card #subscribe-email input {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(61,139,139,0.3);
  border-radius: var(--radius);
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.email-card .wp-block-jetpack-subscriptions__submit,
.email-card #subscribe-submit input {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
}

/* ============================================
   V2: ABOUT PAGE — INSTRUCTOR SECTION
   ============================================ */
.instructor-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .instructor-section {
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
}

.instructor-section-photo {
  display: flex;
  justify-content: center;
}

.instructor-section-photo img {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--teal-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.instructor-photo-placeholder-large {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: var(--warm-cream);
  border: 4px solid var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.instructor-section-info .section-label {
  margin-bottom: 0.5rem;
}

.instructor-section-info h2 {
  margin-bottom: 0.25rem;
}

.instructor-credentials {
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.instructor-bio-long {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* About page sidebar layout */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr 18rem;
    gap: 3rem;
  }
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .about-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

/* Large instructor card for about page */
.instructor-card-large {
  text-align: center;
}

.instructor-photo-large {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--teal-light);
}

.instructor-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About stats */
.about-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-stats li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.about-stats li:last-child {
  border-bottom: none;
}

.about-stats li svg {
  color: var(--teal);
  flex-shrink: 0;
}

.about-stats li strong {
  color: var(--ink);
  font-size: 1.125rem;
}

/* ============================================
   V2: PAGE HERO (generic inner pages)
   ============================================ */
.page-hero {
  padding: 3rem 0 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .page-hero { padding: 4rem 0 2.5rem; }
}

.page-hero .section-label {
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42rem;
}

/* ============================================
   V2: HERO OVERLAY — Dynamic opacity
   ============================================ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245,237,224,0.95), rgba(245,237,224,0.80), rgba(245,237,224,0.40));
  /* opacity is set inline via Customizer */
}

/* ============================================
   V2: ANNOTATION HELPER
   ============================================ */
.annotation {
  font-family: var(--font-handwritten);
  color: var(--muted);
}

/* ============================================
   ABOUT PAGE v2.2 — REDESIGNED
   ============================================ */

/* --- Header Banner --- */
.about-header-banner {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .about-header-banner {
    height: 26rem;
  }
}

.about-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(58, 50, 42, 0.55) 0%,
    rgba(58, 50, 42, 0.7) 100%
  );
}

.about-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  max-width: 40rem;
}

.about-banner-content h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .about-banner-content h1 {
    font-size: 3rem;
  }
}

.about-banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 32rem;
  margin: 0 auto;
}

/* --- Beliefs Grid --- */
.about-beliefs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-beliefs-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.about-beliefs-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-beliefs-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-beliefs-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Mission Visual --- */
.about-mission-visual {
  text-align: center;
  margin-bottom: 2rem;
}

.mission-illustration {
  width: 100%;
  max-width: 48rem;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto;
}

.about-mission-text {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.about-mission-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.about-mission-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* --- Value Stack --- */
.value-stack {
  max-width: 48rem;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.value-stack-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  border-left: 3px solid var(--border);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.value-stack-item:hover {
  border-left-color: var(--teal);
  background: var(--paper);
}

.value-stack-item:first-child {
  border-top-left-radius: var(--radius);
}

.value-stack-item:last-child {
  border-bottom-left-radius: var(--radius);
}

.value-stack-number {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  padding-top: 0.25rem;
  width: 2rem;
  text-align: center;
  transition: color 0.3s ease;
}

.value-stack-item:hover .value-stack-number {
  color: var(--teal);
}

.value-stack-content {
  flex: 1;
}

.value-stack-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.value-stack-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-stack-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.value-stack-subtitle {
  font-family: var(--font-handwritten);
  font-size: 0.95rem;
  color: var(--teal);
  margin: 0;
}

.value-stack-content > p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 639px) {
  .value-stack-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
  }

  .value-stack-number {
    width: auto;
    text-align: left;
  }

  .value-stack-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- Toolkit Image --- */
.about-toolkit-image {
  text-align: center;
  margin: 2rem 0 2.5rem;
}

.toolkit-illustration {
  width: 100%;
  max-width: 40rem;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* --- Offer Cards Grid --- */
.offer-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .offer-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.offer-card {
  display: block;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--paper);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.25s ease;
}

.offer-card-teal::before {
  background: var(--teal);
}

.offer-card-rose::before {
  background: var(--rose);
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.offer-card:hover::before {
  height: 6px;
}

.offer-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.offer-card-teal .offer-card-icon {
  background: var(--teal-light);
  color: var(--teal);
}

.offer-card-rose .offer-card-icon {
  background: var(--rose-light);
  color: var(--rose);
}

.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.offer-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.offer-card-cta {
  font-family: var(--font-handwritten);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.offer-card-teal .offer-card-cta {
  color: var(--teal);
}

.offer-card-rose .offer-card-cta {
  color: var(--rose);
}

.offer-card:hover .offer-card-cta {
  text-decoration: underline;
}

/* --- Button teal variant --- */
.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-teal:hover {
  background: #4a9e96;
  border-color: #4a9e96;
}
