/* ==========================================================
   SV ESSAYS v3.3.0 - FIXED Single Column  
   No sidebars - ready for Essay Reading Assistant
========================================================== */

/* ==========================================================
   SECTION 1: CORE ESSAY CONTENT
========================================================== */

body.single-essay {
  background-image: url('/wp-content/uploads/sites/27/2026/01/mid-vineyard-regular-bkg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.single-essay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 0;
}

body.single-essay .site-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

body.single-essay .essay-content-container {
  background: rgba(239, 230, 211, 0.98);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 60px;
}

/* Also target if GP wraps it differently */
body.single-essay article.essay-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Ensure all content sections have proper styling */
body.single-essay .essay-contact-box,
body.single-essay .essay-newsletter-box,
body.single-essay .essay-author-box,
body.single-essay .essay-related-box {
  background: rgba(239, 230, 211, 0.98);
}

body.single-essay .entry-content {
  font-family: Georgia, 'Georgia Pro', serif;
  font-size: 18px;
  line-height: 1.8;
  color: #1a1a1a;
  max-width: 800px;
  margin: 0 auto;
}

/* Essay content headings - Garamond */
.essay-content h1,
.essay-content h2,
.essay-content h3,
.essay-content h4,
.essay-content h5,
.essay-content h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
}

/* Essay content body text - Georgia */
.essay-content p,
.essay-content li,
.essay-content blockquote,
.entry-content p,
.entry-content li,
.entry-content blockquote {
  font-family: Georgia, 'Georgia Pro', serif;
}

.essay-olive-divider {
  display: block;
  margin: 0 auto 24px;
  width: 80px;
  height: auto;
  opacity: 0.7;
}

.essay-title {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
  font-size: 48px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 16px;
}

.essay-subtitle {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  text-align: center;
  color: rgba(26, 26, 26, 0.8);
  margin-bottom: 24px;
}

.essay-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 15px;
  color: rgba(26, 26, 26, 0.6);
  margin-bottom: 40px;
  text-align: center;
  flex-wrap: wrap;
}

.essay-page-indicator {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.7);
  padding: 20px 0 40px;
  margin-bottom: 20px;
}

/* ==========================================================
   SECTION 2: CONTACT BOX
========================================================== */

.essay-contact-box {
  background: rgba(239, 230, 211, 0.98);
  border: 2px solid rgba(107, 127, 91, 0.3);
  border-radius: 12px;
  padding: 40px;
  margin: 60px auto;
  text-align: center;
  max-width: 800px;
}

.essay-contact-box h2 {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
  font-size: 28px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.essay-contact-box p {
  font-family: Georgia, 'Georgia Pro', serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.8);
  margin-bottom: 24px;
}

.essay-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #6B7F5B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.essay-btn:hover {
  background: #5a6b4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 127, 91, 0.3);
  color: #fff;
}

.essay-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================
   SECTION 3: NEWSLETTER SIGNUP
========================================================== */

.essay-newsletter-box {
  background: linear-gradient(135deg, rgba(107, 127, 91, 0.1), rgba(107, 127, 91, 0.05));
  border: 2px solid rgba(107, 127, 91, 0.2);
  border-radius: 12px;
  padding: 40px;
  margin: 60px auto;
  text-align: center;
  max-width: 800px;
}

.essay-newsletter-box h2 {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
  font-size: 28px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.essay-newsletter-box p {
  font-family: Georgia, 'Georgia Pro', serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.8);
  margin-bottom: 24px;
}

.essay-privacy-note {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.6);
  font-style: italic;
  margin-top: 16px;
}

/* ==========================================================
   SECTION 4: ABOUT AUTHOR
========================================================== */

.essay-author-box {
  background: rgba(239, 230, 211, 0.98);
  border-left: 4px solid #6B7F5B;
  border-radius: 8px;
  padding: 30px;
  margin: 60px auto;
  display: flex;
  gap: 24px;
  max-width: 800px;
}

.essay-author-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
}

.essay-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.essay-author-content h3 {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
  font-size: 22px;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.essay-author-content p {
  font-family: Georgia, 'Georgia Pro', serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.8);
}

/* ==========================================================
   SECTION 5: RELATED ESSAYS
========================================================== */

.essay-related-box {
  margin: 60px auto;
  max-width: 1000px;
}

.essay-related-box h2 {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
  color: #1a1a1a;
}

.essay-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.essay-related-card {
  background: rgba(239, 230, 211, 0.98);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.essay-related-card h3 {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
  font-size: 18px;
  margin-bottom: 12px;
}

.essay-related-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.essay-related-card h3 a:hover {
  color: #6B7F5B;
}

.essay-related-card p {
  font-family: Georgia, 'Georgia Pro', serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 16px;
}

.essay-related-link {
  color: #6B7F5B;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.essay-related-link:hover {
  text-decoration: underline;
}

/* ==========================================================
   SECTION 6: RESPONSIVE
========================================================== */

/* ==========================================================
   SECTION 7: PAGINATION
========================================================== */

.essay-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 60px 0 40px;
  padding: 24px 0;
  border-top: 2px solid rgba(26, 26, 26, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.essay-pagination-info {
  font-size: 15px;
  color: rgba(26, 26, 26, 0.7);
  font-weight: 500;
}

.essay-pagination-buttons {
  display: flex;
  gap: 12px;
}

.essay-pagination-btn {
  padding: 12px 24px;
  background: #6B7F5B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.essay-pagination-btn:hover:not(:disabled) {
  background: #5a6b4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 127, 91, 0.3);
}

.essay-pagination-btn:disabled {
  background: rgba(107, 127, 91, 0.3);
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================
   SECTION 8: RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  .essay-title {
    font-size: 32px;
  }
  
  body.single-essay .content-area {
    padding: 30px 24px;
  }
  
  body.single-essay .entry-content {
    font-size: 16px;
  }
  
  .essay-author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .essay-author-avatar {
    margin: 0 auto;
  }
  
  .essay-related-grid {
    grid-template-columns: 1fr;
  }
  
  .essay-contact-box,
  .essay-newsletter-box,
  .essay-author-box {
    padding: 24px;
  }
}
/* ==========================================================
   ESSAY READING ASSISTANT v3.0
========================================================== */

/* ==========================================================
   STICKY HEADER
========================================================== */

.essay-assistant {
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(239, 230, 211, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: top 0.3s ease;
}

.essay-assistant.visible {
  top: 0;
}

.essay-assistant-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  gap: 20px;
}

/* ==========================================================
   LEFT SECTION: Title & Info
========================================================== */

.essay-assistant-left {
  flex: 1;
  min-width: 0;
}

.essay-assistant-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.assistant-icon {
  width: 20px;
  height: auto;
  opacity: 0.7;
}

#assistantTitleText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.essay-assistant-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(26, 26, 26, 0.6);
}

.assistant-separator {
  color: rgba(26, 26, 26, 0.3);
}

/* ==========================================================
   RIGHT SECTION: Tools
========================================================== */

.essay-assistant-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.assistant-tool {
  position: relative;
}

.assistant-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(107, 127, 91, 0.1);
  border: 1px solid rgba(107, 127, 91, 0.2);
  border-radius: 6px;
  color: #6B7F5B;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.assistant-btn:hover {
  background: rgba(107, 127, 91, 0.2);
  border-color: rgba(107, 127, 91, 0.4);
  transform: translateY(-1px);
}

.assistant-btn svg {
  flex-shrink: 0;
}

.assistant-btn-small {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.assistant-label {
  display: none;
}

.assistant-caret {
  transition: transform 0.2s ease;
}

.assistant-btn.active .assistant-caret {
  transform: rotate(180deg);
}

/* Font Controls */
.assistant-font-controls {
  display: flex;
  gap: 4px;
}

/* ==========================================================
   DROPDOWNS
========================================================== */

.assistant-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(239, 230, 211, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}

.assistant-dropdown.show {
  display: block;
}

/* TOC Dropdown */
.assistant-toc-dropdown {
  padding: 12px;
}

#assistantTOCContent a {
  display: block;
  padding: 8px 12px;
  color: rgba(26, 26, 26, 0.8);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

#assistantTOCContent a:hover {
  background: rgba(107, 127, 91, 0.1);
  color: #6B7F5B;
}

#assistantTOCContent a.toc-h3 {
  padding-left: 24px;
  font-size: 13px;
  color: rgba(26, 26, 26, 0.6);
}

/* Share Dropdown */
.assistant-share-dropdown {
  padding: 8px;
  min-width: 180px;
}

.assistant-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  text-align: left;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.assistant-dropdown-item:hover {
  background: rgba(107, 127, 91, 0.1);
  color: #6B7F5B;
}

.assistant-dropdown-item svg {
  flex-shrink: 0;
  color: #6B7F5B;
}

/* ==========================================================
   PROGRESS BAR
========================================================== */

.essay-assistant-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(107, 127, 91, 0.2);
}

.essay-assistant-progress-fill {
  height: 100%;
  background: #6B7F5B;
  width: 0%;
  transition: width 0.2s ease;
}

/* ==========================================================
   SEARCH MODAL
========================================================== */

.essay-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.essay-search-modal.show {
  display: flex;
}

.essay-search-content {
  background: rgba(239, 230, 211, 0.98);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  padding: 24px;
  position: relative;
}

#essaySearchInput {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border: 2px solid rgba(107, 127, 91, 0.3);
  border-radius: 8px;
  background: #fff;
  font-family: Georgia, serif;
}

#essaySearchInput:focus {
  outline: none;
  border-color: #6B7F5B;
}

.essay-search-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(107, 127, 91, 0.1);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  color: #6B7F5B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.essay-search-close:hover {
  background: rgba(107, 127, 91, 0.2);
}

.essay-search-results {
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: rgba(107, 127, 91, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: rgba(107, 127, 91, 0.1);
}

.search-result-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.8);
}

.search-highlight {
  background: rgba(255, 235, 59, 0.5);
  padding: 2px 4px;
  border-radius: 2px;
}

/* ==========================================================
   AUDIO MODAL
========================================================== */

.essay-audio-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.essay-audio-modal.show {
  display: flex;
}

.essay-audio-content {
  background: rgba(239, 230, 211, 0.98);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  padding: 32px;
  text-align: center;
}

.essay-audio-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.essay-audio-player {
  margin: 24px 0;
}

#essayAudioPlayer {
  width: 100%;
}

.essay-audio-note {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.6);
  font-style: italic;
  margin-bottom: 20px;
}

.essay-audio-close {
  padding: 12px 24px;
  background: #6B7F5B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.essay-audio-close:hover {
  background: #5a6b4d;
}

/* ==========================================================
   DARK MODE
========================================================== */

body.essay-dark-mode {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.essay-dark-mode .essay-content-container {
  background: rgba(42, 42, 42, 0.98);
  color: #e0e0e0;
}

body.essay-dark-mode .essay-assistant {
  background: rgba(42, 42, 42, 0.95);
}

body.essay-dark-mode .essay-assistant-title,
body.essay-dark-mode .essay-assistant-meta,
body.essay-dark-mode #assistantTitleText,
body.essay-dark-mode #assistantPageInfo,
body.essay-dark-mode #assistantTimeRemaining {
  color: #f0f0f0;
}

body.essay-dark-mode .assistant-separator {
  color: rgba(255, 255, 255, 0.3);
}

body.essay-dark-mode .essay-content h1,
body.essay-dark-mode .essay-content h2,
body.essay-dark-mode .essay-content h3,
body.essay-dark-mode .essay-content h4,
body.essay-dark-mode .essay-title,
body.essay-dark-mode .essay-subtitle,
body.essay-dark-mode .essay-meta,
body.essay-dark-mode .essay-content p,
body.essay-dark-mode .essay-content li,
body.essay-dark-mode .essay-content blockquote {
  color: #e0e0e0 !important;
}

body.essay-dark-mode .essay-content {
  color: #e0e0e0 !important;
}

body.essay-dark-mode .entry-content,
body.essay-dark-mode article.essay-content {
  color: #e0e0e0 !important;
}

body.essay-dark-mode .essay-meta span {
  color: rgba(255, 255, 255, 0.6);
}

body.essay-dark-mode .essay-contact-box,
body.essay-dark-mode .essay-newsletter-box,
body.essay-dark-mode .essay-author-box,
body.essay-dark-mode .essay-related-card {
  background: rgba(42, 42, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

body.essay-dark-mode .essay-contact-box h2,
body.essay-dark-mode .essay-newsletter-box h2,
body.essay-dark-mode .essay-author-box h3,
body.essay-dark-mode .essay-related-box h2,
body.essay-dark-mode .essay-related-card h3 {
  color: #f0f0f0;
}

body.essay-dark-mode .essay-contact-box p,
body.essay-dark-mode .essay-newsletter-box p,
body.essay-dark-mode .essay-author-content p,
body.essay-dark-mode .essay-related-card p {
  color: rgba(255, 255, 255, 0.7);
}

body.essay-dark-mode .essay-related-card h3 a {
  color: #f0f0f0;
}

body.essay-dark-mode .essay-privacy-note {
  color: rgba(255, 255, 255, 0.5);
}

body.essay-dark-mode .assistant-dropdown,
body.essay-dark-mode .essay-search-content,
body.essay-dark-mode .essay-audio-content {
  background: rgba(42, 42, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
}

body.essay-dark-mode #assistantTOCContent a,
body.essay-dark-mode .assistant-dropdown-item {
  color: rgba(255, 255, 255, 0.8);
}

body.essay-dark-mode #assistantTOCContent a:hover,
body.essay-dark-mode .assistant-dropdown-item:hover {
  color: #9db88a;
  background: rgba(157, 184, 138, 0.15);
}

body.essay-dark-mode .essay-search-content h3,
body.essay-dark-mode .essay-audio-content h3 {
  color: #f0f0f0;
}

body.essay-dark-mode #essaySearchInput {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0f0f0;
}

body.essay-dark-mode .search-result-text {
  color: rgba(255, 255, 255, 0.8);
}

body.essay-dark-mode .essay-pagination-info {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {
  .assistant-label {
    display: none !important;
  }
  
  .essay-assistant-tools {
    gap: 4px;
  }
  
  .assistant-btn {
    padding: 8px;
  }
}

@media (max-width: 768px) {
  .essay-assistant-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  
  .essay-assistant-left {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .essay-assistant-tools {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  
  .essay-assistant-title {
    font-size: 14px;
  }
  
  .assistant-btn {
    padding: 6px;
    min-width: 36px;
  }
}

@media (min-width: 1200px) {
  .assistant-label {
    display: inline;
  }
}

/* ==========================================================
   PRINT STYLES
========================================================== */

@media print {
  /* Hide Reading Assistant completely */
  .essay-assistant,
  .essay-search-modal,
  .essay-audio-modal {
    display: none !important;
  }
  
  /* Hide pagination controls */
  .essay-pagination {
    display: none !important;
  }
  
  /* Show all content */
  #essayContent p,
  #essayContent h2,
  #essayContent h3,
  #essayContent h4,
  #essayContent blockquote,
  #essayContent ul,
  #essayContent ol {
    display: block !important;
  }
  
  /* Clean print layout */
  body.single-essay {
    background: white !important;
  }
  
  body.single-essay::before {
    display: none !important;
  }
  
  .essay-content-container {
    background: white !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  
  /* Page breaks */
  .essay-content h2 {
    page-break-after: avoid;
  }
  
  .essay-content h3 {
    page-break-after: avoid;
  }
  
  .essay-content p {
    page-break-inside: avoid;
  }
}

/* ==========================================================
   ESSAY GRID PAGINATION CONTROLS
========================================================== */

.essay-grid-wrapper {
  margin: 60px auto;
  max-width: 1000px;
}

.essay-grid-title {
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", Georgia, serif;
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
  color: #1a1a1a;
}

.essay-grid-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.essay-grid-prev,
.essay-grid-next {
  background: #6B7F5B;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.essay-grid-prev:hover:not(:disabled),
.essay-grid-next:hover:not(:disabled) {
  background: #5a6b4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 127, 91, 0.3);
}

.essay-grid-prev:disabled,
.essay-grid-next:disabled {
  background: rgba(26, 26, 26, 0.15);
  color: rgba(26, 26, 26, 0.4);
  cursor: not-allowed;
}

.essay-grid-page-info {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.7);
  font-weight: 500;
}

.essay-grid-current-page {
  font-weight: 700;
  color: #1a1a1a;
}

/* Responsive */
@media (max-width: 600px) {
  .essay-grid-pagination {
    flex-direction: column;
    gap: 12px;
  }
  
  .essay-grid-prev,
  .essay-grid-next {
    width: 100%;
  }
}
