/* =================================================
   GLOBAL RESET & BASE
   ================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  color: #3a3a3a;
  background-color: #f5f3ee;
}

/* Prevent image dragging */
img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* =================================================
   TYPOGRAPHY (GLOBAL)
   ================================================= */

h1, h2, h3 {
  color: #4a3f2a;
}

/* =================================================
   SITE HEADER (UNIVERSAL)
   ================================================= */

.site-header {
  text-align: center;
  padding: 36px 16px 28px;
  background-color: #f5f3ee;
}

.site-title,
.course-title {
  font-size: 2.2em;
  margin: 0;
  color: #4a3f2a;
}

.site-subtitle,
.course-subtitle {
  margin-top: 6px;
  font-weight: bold;
  font-size: 1.15em;
  color: #6b5e44;
}

.site-divider,
.divider {
  width: 140px;
  height: 4px;
  background-color: #c9b27c;
  margin: 20px auto 28px;
  border-radius: 2px;
}

/* =================================================
   NAVIGATION
   ================================================= */

.site-menu {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Shared button */
.menu-btn {
  min-width: 140px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;

  background-color: #c9b27c;
  color: #000;
  font-weight: bold;
  font-size: 0.95em;

  border-radius: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.menu-btn:hover {
  background-color: #b8a46b;
}

/* Dropdown */
.menu-dropdown {
  position: relative;
  display: inline-flex;
}

.menu-dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;

  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  z-index: 1000;
}

.menu-dropdown-content a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
  text-align: left;
}

.menu-dropdown-content a:hover {
  background-color: #faf8f3;
}

.menu-dropdown:hover .menu-dropdown-content {
  display: block;
}

/* =================================================
   BOTTOM NAV (GLOBAL BASE – DO NOT MODIFY PER PAGE)
   ================================================= */

.bottom-nav {
  max-width: 900px;
  margin: 60px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* =================================================
   LAYOUT WRAPPERS
   ================================================= */

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 10px;
}

.container {
  max-width: 980px;
  margin: auto;
  padding: 56px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* Assignments page override */
body.assignments-page .content-wrapper {
  background: transparent;
  box-shadow: none;
  padding: 40px;
}

/* =================================================
   CONTENT HEADINGS
   ================================================= */

.content-wrapper h2,
.container h2 {
  font-size: 1.6em;
  font-weight: bold;
  margin: 0 0 12px;
}

.content-wrapper h3,
.container h3 {
  font-size: 1.3em;
  font-weight: bold;
  margin: 20px 0 14px;
}

.content-wrapper h4,
.container h4 {
  font-size: 1.05em;
  font-weight: normal;
  margin-top: 28px;
}

/* =================================================
   MEDIA & IMAGES
   ================================================= */

.header-image img,
.section-image img,
.overview-image img,
.slide-viewer img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.section-image,
.overview-image,
.slide-viewer {
  text-align: center;
  margin: 40px 0;
}

.video-wrapper {
  text-align: center;
  margin: 40px 0;
}

video {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* =================================================
   CONTENT BLOCKS
   ================================================= */

.reading-block {
  background-color: #ffffff;
  border-left: 6px solid #c9b27c;
  border-bottom: 2px solid #e3dbc6;
  padding: 40px 44px 28px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.story-block {
  background-color: #faf8f3;
  border-left: 6px solid #c9b27c;
  padding: 40px 44px;
  border-radius: 14px;
  margin: 50px 0;
}

.note-block,
.instruction {
  background-color: #faf8f3;
  border-left: 6px solid #c9b27c;
  padding: 24px 28px;
  border-radius: 10px;
  margin-bottom: 36px;
}

.did-you-know {
  background-color: #f4f7fb;
  border-left: 6px solid #6b8fbf;
  padding: 28px 32px;
  border-radius: 12px;
  margin: 40px 0 50px;
}

.reflection-callout {
  background-color: #faf8f3;
  border-left: 6px solid #c9b27c;
  padding: 26px 32px;
  border-radius: 12px;
  margin: 36px 0 42px;
}

/* =================================================
   GROUP RESPONSE TEXTAREAS – RESTORE SIZE & READABILITY
   ================================================= */

.story-response textarea {
  width: 100%;
  min-height: 240px;              /* restores large writing area */
  padding: 18px 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05em;              /* readable, matches lesson text */
  line-height: 1.7;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  resize: vertical;
  box-sizing: border-box;
}

/* Space between stacked responses */
.story-response textarea + label,
.story-response label + textarea {
  margin-top: 18px;
}

/* =================================================
   TABLES
   ================================================= */

.comparison-table,
.insight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  margin: 32px 0;
}

.comparison-table th,
.insight-table th {
  background-color: #faf8f3;
  color: #4a3f2a;
  text-align: left;
  padding: 14px;
  border: 1px solid #ddd;
  font-weight: bold;
}

.comparison-table td,
.insight-table td {
  padding: 14px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.comparison-table tr:nth-child(even) td,
.insight-table tr:nth-child(even) td {
  background-color: #fcfbf7;
}

/* =================================================
   PRINTABLE AREAS
   ================================================= */

#print-button-wrap,
.print-button-wrap {
  text-align: right;
  margin-bottom: 24px;
}

.print-button-wrap button,
.print-response-btn {
  padding: 10px 18px;
  background-color: #4a4a4a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#print-button-wrap button:hover,
.print-button-wrap button:hover,
.print-response-btn:hover {
  background-color: #333333;
}

#homework-print-area {
  background-color: #ffffff;
  border: 2px solid #e3dbc6;
  border-radius: 14px;
  padding: 48px 56px;
  margin: 0 auto 60px;
}

/* =================================================
   PRINT BUTTON SPACING FIX (ESSAYS & RESPONSES)
   ================================================= */

.print-btn-wrap {
  margin: 30px 0 40px;   /* pushes text away */
  text-align: right;
  clear: both;           /* prevents overlap with content */
}

/* =================================================
   FOOTER
   ================================================= */

.site-footer {
  margin-top: 72px;
  text-align: center;
  font-size: 0.9em;
  color: #777;
}

/* =================================================
   PRINT OVERRIDES
   ================================================= */

@media print {
  .site-header,
  .site-menu,
  .bottom-nav,
  .overview-image,
  .print-response-btn {
    display: none !important;
  }

  textarea {
    border: none;
  }
}

/* =================================================
   CSS-BASED ICONS (SAFE, NON-BREAKING)
   ================================================= */

.reading-block,
.story-block,
.note-block,
.did-you-know,
.reflection-callout,
.instruction {
  position: relative;
  padding-left: 72px;
}

/* ICON BASE */
.reading-block::before,
.story-block::before,
.note-block::before,
.did-you-know::before,
.reflection-callout::before,
.instruction::before {
  position: absolute;
  left: 24px;
  top: 32px;
  font-size: 22px;
  line-height: 1;
}

/* ICONS BY TYPE */
.reading-block::before { content: "📖"; }
.story-block::before { content: "🧩"; }
.note-block::before,
.instruction::before { content: "💡"; }
.did-you-know::before { content: "🧠"; }
.reflection-callout::before { content: "✍️"; }

/* PRINT SAFETY */
@media print {
  .reading-block::before,
  .story-block::before,
  .note-block::before,
  .did-you-know::before,
  .reflection-callout::before,
  .instruction::before {
    opacity: 0.6;
  }
}

/* =================================================
   INSTRUCTION BLOCK TEXT NORMALIZATION
   ================================================= */

.instruction {
  font-size: 0.95em;
}

.instruction p {
  margin-top: 8px;
  font-size: 0.95em;
  line-height: 1.65;
}

/* =================================================
   DID YOU KNOW – TOGGLE (KEEP BLUE)
   ================================================= */

.did-you-know-toggle {
  background-color: #f4f7fb;
  border-left: 6px solid #6b8fbf;
  padding: 28px 32px;
  border-radius: 12px;
  margin: 40px 0 50px 0;
}

/* =================================================
   DID YOU KNOW – ICON (SAFE FOR TOGGLE)
   ================================================= */

.did-you-know-toggle {
  position: relative;
  padding-left: 72px; /* room for icon */
}

.did-you-know-toggle::before {
  content: "🧠";
  position: absolute;
  left: 24px;
  top: 28px;
  font-size: 22px;
  line-height: 1;
}
