/* ==========================================================================
   QazaqStory — Multi-Page Canva Replica & Audio Reader System
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #0097b2;
  --primary-dark: #00738a;
  --accent-gold: #eab308;
  --bg-main: #ffffff;
  --text-main: #000000;
  --text-muted: #333333;
  --border-color: #e5e7eb;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.canva-page-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* MULTI-PAGE VIEWS (SPA Router + Native CSS Hash Fallback) */
.page-view {
  display: none;
}

.page-view.active {
  display: block !important;
  animation: pageFadeIn 0.35s ease-out forwards;
}

/* Native CSS Hash Routing Fallback (100% Reliable over file://) */
#page-home:target,
#page-writers:target,
#page-stories:target,
#page-characters:target,
#page-research:target {
  display: block !important;
}

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

/* Header & Canva Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  height: 5rem;
}

.canva-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.canva-logo-graphic {
  display: flex;
  align-items: center;
}

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

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0097b2;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-title span {
  color: #eab308;
}

.brand-subtitle {
  font-size: 0.725rem;
  font-weight: 600;
  color: #555555;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #000000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.25rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
}

/* SECTION 1: HERO (Canva Page 0) */
.hero-canva-section {
  padding: 5rem 0 4rem 0;
  background: #ffffff;
  text-align: center;
}

.canva-hero-title {
  font-family: var(--font-serif);
  font-size: 3.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 5px;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
}

.canva-author-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: #000000;
}

/* SECTION 2: SCHOLARS & GENRE (Canva Page 1) */
.scholars-canva-section {
  padding: 4.5rem 0 5rem 0;
  background: #ffffff;
}

.genre-top-definition {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.55;
  text-align: center;
  color: #000000;
  max-width: 850px;
  margin: 0 auto 4rem auto;
}

.scholars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
}

.scholar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scholar-portrait-wrapper {
  width: 220px;
  height: 250px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scholar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scholar-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #000000;
  max-width: 290px;
  margin-top: 0.5rem;
}

.center-title-col {
  text-align: center;
}

.center-genre-word {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 8px;
  color: #000000;
  text-transform: uppercase;
}

/* SECTION 3: FIRST STORIES (Canva Page 2) */
.first-stories-canva-section {
  padding: 4.5rem 0 5rem 0;
  background: #ffffff;
}

.canva-page-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 5px;
  text-align: center;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.first-stories-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.first-intro-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: #000000;
  margin-bottom: 2rem;
}

.altynsarin-books-block {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: #000000;
}

.books-list-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.books-list {
  list-style: none;
  padding-left: 0;
}

.books-list li {
  margin-bottom: 0.35rem;
}

.altynsarin-illustration-wrapper {
  display: flex;
  justify-content: center;
}

.altynsarin-img {
  max-width: 360px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* SECTION 4: WRITERS PAGE */
.writer-subview {
  display: none;
}

.writer-subview.active {
  display: block;
  animation: fadeIn 0.35s ease forwards;
}

.writers-canva-section {
  padding: 5rem 0 4rem 0;
  background: #ffffff;
}

.canva-writers-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.canva-writer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.canva-writer-photo-link {
  display: block;
  width: 300px;
  height: 420px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.canva-writer-photo-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.15);
}

.canva-writer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.canva-writer-name-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: var(--transition);
}

.canva-writer-name-link:hover {
  color: var(--primary);
}

.writer-profile-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.writer-profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: flex-start;
  max-width: 1050px;
  margin: 0 auto;
}

.writer-profile-photo-col {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.writer-profile-info-col {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.25rem;
}

.profile-bio {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #222222;
  margin-bottom: 2rem;
}

/* SECTION 5: CANVA STORIES PAGE (Matching Screenshots) */
.canva-stories-page {
  padding: 4rem 0 6rem 0;
}

.canva-story-group {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.margin-top-xl {
  margin-top: 5rem;
}

.group-header {
  margin-bottom: 3rem;
}

.group-title {
  font-family: var(--font-sans);
  font-size: 2.4rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.25;
}

/* Vertical Book Cards Grid */
.canva-vertical-books-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.canva-book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.canva-book-card:hover {
  transform: translateY(-6px);
}

.book-cover-wrapper {
  width: 250px;
  height: 350px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.25rem;
}

.book-cover-wrapper.horizontal {
  width: 380px;
  height: 220px;
}

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

/* Gradient Pill Button "Оқу" */
.canva-read-pill-btn {
  background: linear-gradient(90deg, #0097b2 0%, #7ed957 100%);
  color: #000000;
  border: none;
  border-radius: 9999px;
  padding: 0.6rem 3.5rem;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 151, 178, 0.25);
  transition: var(--transition);
}

.canva-read-pill-btn.cyan {
  background: #0097b2;
  color: #000000;
}

.canva-read-pill-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 151, 178, 0.4);
}

.canva-horizontal-books-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

/* SECTION 6: CHARACTERS PAGE & AUDIO PLAYER (Matching Screenshots) */
.char-subview {
  display: none;
}

.char-subview.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

.char-page-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* PREMIUM MODERN FILTER TABS */
.filter-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  margin: 1.5rem auto 0 auto;
}

.filter-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.65rem 1.65rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.filter-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.filter-btn.active {
  background: linear-gradient(135deg, #0097b2 0%, #00b4d8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 151, 178, 0.35);
  transform: translateY(-1px);
}

.char-main-heading {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.5rem;
}

.char-sub-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: #000000;
}

.char-books-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  max-width: 1050px;
  margin: 0 auto;
}

/* Character Detail View */
.char-subview.active,
.writer-subview.active {
  padding-top: 1.5rem;
}

.char-back-arrow-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.char-back-arrow-btn:hover {
  transform: translateX(-4px);
}

.char-detail-name {
  font-family: var(--font-sans);
  font-size: 3.25rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.char-detail-content-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: flex-start;
  max-width: 1050px;
  margin: 0 auto;
}

.char-photo-audio-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.char-photo-container {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.char-detail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Audio Voice Button (🔊) */
.audio-voice-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 151, 178, 0.15);
  transition: var(--transition);
}

.audio-voice-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.audio-voice-btn.playing {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  animation: pulseAudio 1.5s infinite;
}

@keyframes pulseAudio {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.char-text-col {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.75;
  color: #000000;
}

/* SECTION 7: RESEARCH POSTERS & CAROUSEL (Matching Canva Screenshots 2 & 3) */
.research-posters-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.research-poster-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.research-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.poster-img-wrapper {
  width: 100%;
  overflow: hidden;
}

.research-poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.poster-caption {
  padding: 1.75rem 2rem;
  background: #ffffff;
}

.poster-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.5rem;
}

.poster-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: #475569;
  line-height: 1.5;
}

.carousel-wrapper {
  padding: 3rem 2.5rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.carousel-track {
  position: relative;
  min-height: 250px;
}

.slide-item {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.slide-item.active {
  display: block;
}

.slide-number-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.slide-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.slide-desc {
  font-size: 1.05rem;
  color: #444444;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.slide-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slide-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  font-size: 0.975rem;
  font-weight: 600;
}

.bullet-icon {
  width: 1.4rem;
  height: 1.4rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.carousel-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  width: 24px;
  border-radius: 9999px;
  background: var(--primary);
}

/* Modal Reader Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 900px;
  height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.3s ease;
}

.modal-container.theme-warm {
  background: #fbf0d9;
  color: #433422;
}

.modal-container.theme-dark {
  background: #121826;
  color: #e2e8f0;
}

.modal-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.modal-author-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.modal-story-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.modal-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toolbar-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: 9999px;
}

.tool-btn {
  border: none;
  background: transparent;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: var(--transition);
}

.tool-btn.active, .tool-btn:hover {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reading-progress-bar {
  height: 3px;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s ease-out;
}

.modal-body {
  padding: 3rem 4rem;
  overflow-y: auto;
  flex-grow: 1;
}

.reader-content {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
  font-size: 1.125rem;
  white-space: pre-line;
}

.reader-content.font-serif {
  font-family: var(--font-serif);
}

.reader-content.font-sans {
  font-family: var(--font-sans);
}

.reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  gap: 1rem;
  color: #555555;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 151, 178, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Clean Minimal Custom Footer */
.custom-site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-title.light {
  color: #ffffff;
}

.brand-subtitle.light {
  color: #94a3b8;
}

.footer-desc-text {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 500;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.back-to-top-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.back-to-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .canva-hero-title { font-size: 3.25rem; }
  .scholars-grid { grid-template-columns: 1fr; gap: 3.5rem; text-align: center; }
  .scholar-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .scholar-portrait-wrapper { margin-bottom: 1.25rem; }
  .scholar-quote { max-width: 550px; font-size: 1.35rem; margin: 0 auto; }
  .center-genre-word { display: none; }
  .first-stories-grid { grid-template-columns: 1fr; text-align: center; }
  .canva-writers-grid { gap: 2.5rem; }
  .writer-profile-grid, .char-detail-content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .writer-profile-photo-col, .char-photo-container { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .canva-hero-title { font-size: 2.25rem; letter-spacing: 2px; }
  .canva-author-credits { flex-direction: column; gap: 0.5rem; }
  .canva-writers-grid { flex-direction: column; gap: 3rem; }
  .book-cover-wrapper.horizontal { width: 100%; height: 200px; }
  
  .mobile-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 5rem;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: var(--transition);
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}
