/* 
 * GLEN CANYON UNCOVERED - DESIGN SYSTEM & STYLESHEET
 * Timeless, trustworthy, scholarly, adventurous, and visually beautiful.
 * Palette: Sandstone orange, Canyon red, Desert tan, River blue, Deep sky blue.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

:root {
  /* Color Palette Variables */
  --color-sandstone-orange: #d97736;
  --color-sandstone-dark: #b85c1e;
  --color-canyon-red: #8f341d;
  --color-canyon-dark: #702613;
  --color-desert-tan: #dfc299;
  --color-desert-light: #f7ede2;
  --color-river-blue: #1c507c;
  --color-river-dark: #123757;
  --color-sky-blue: #4299e1;
  
  /* Neutral Palette */
  --bg-warm-cream: #faf6f0;
  --bg-off-white: #fdfbf7;
  --bg-light-sandstone: #f4eae1;
  --text-dark: #2d2621;
  --text-muted: #6e645a;
  --text-light: #faf6f0;
  --border-color: #e6dbcf;
  --border-focus: #b85c1e;
  
  /* Typography */
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout & Spacing */
  --container-max-width: 1200px;
  --transition-speed: 0.3s;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(45, 38, 33, 0.05);
  --shadow-md: 0 4px 12px rgba(45, 38, 33, 0.08);
  --shadow-lg: 0 12px 24px rgba(45, 38, 33, 0.12);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-warm-cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.85rem;
  border-bottom: 2px solid var(--color-desert-tan);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: var(--text-dark);
}

a {
  color: var(--color-river-blue);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--color-sandstone-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-canyon-red);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--color-canyon-dark);
  color: var(--text-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-river-blue);
  border: 2px solid var(--color-river-blue);
}

.btn-secondary:hover {
  background-color: var(--color-river-blue);
  color: var(--text-light);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--bg-off-white);
  border: 2px solid var(--bg-off-white);
}

.btn-outline-white:hover {
  background-color: var(--bg-off-white);
  color: var(--text-dark);
}

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

/* Header & Navigation */
.site-header {
  background-color: var(--bg-off-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.site-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-canyon-red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.8rem;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-canyon-red);
  border-bottom-color: var(--color-canyon-red);
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  padding: 4rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  color: var(--bg-off-white);
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

.hero p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  color: var(--bg-light-sandstone);
  font-weight: 300;
}

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

/* Page Intro/Header Section */
.page-header {
  background-color: var(--bg-light-sandstone);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.75rem;
  color: var(--color-canyon-red);
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* General Layout Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Home Intro Section */
.home-intro {
  padding: 4rem 0;
  background-color: var(--bg-off-white);
  border-bottom: 1px solid var(--border-color);
}

.intro-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-canyon-red);
  margin: 2rem 0;
  line-height: 1.5;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/* Cards & Archives (Reusable) */
.card {
  background-color: var(--bg-off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-light-sandstone);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-sandstone-orange);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  color: var(--color-canyon-red);
}

.card-link::after {
  content: ' →';
  transition: transform var(--transition-speed) ease;
}

.card:hover .card-link::after {
  transform: translateX(4px);
}

/* Featured Areas (Home Grid) */
.featured-areas {
  padding: 4rem 0;
}

/* About Author Preview */
.author-preview {
  background-color: var(--bg-light-sandstone);
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.author-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}

.author-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 4px solid var(--bg-off-white);
  box-shadow: var(--shadow-sm);
  background-color: var(--border-color);
}

/* Archives Filters & Search UI */
.archive-filters {
  background-color: var(--bg-off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.filter-label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-select, .search-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-warm-cream);
  color: var(--text-dark);
  outline: none;
  min-width: 180px;
}

.filter-select:focus, .search-input:focus {
  border-color: var(--border-focus);
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding-right: 2.5rem;
}

/* Journal Timeline (Exploration Journal design) */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto 4rem auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 4rem;
  position: relative;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  left: 100%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-canyon-red);
  border: 3px solid var(--bg-warm-cream);
  transform: translateX(-50%);
  z-index: 10;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: 0;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-canyon-red);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background-color: var(--bg-off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  display: flex;
  gap: 1rem;
}

.timeline-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  margin: 1rem 0;
}

/* Book Layout */
.book-showcase {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

.book-cover-container {
  position: sticky;
  top: 100px;
}

.book-cover-placeholder {
  width: 100%;
  height: 520px;
}

.book-cover-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.book-cover-sub {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-top: 1rem;
  font-weight: 300;
  opacity: 0.9;
}

.book-cover-author {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.purchase-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-light-sandstone);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  text-align: center;
}

.purchase-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.excerpt-block {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  border-left: 4px solid var(--color-sandstone-orange);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* Lake Powell Exploration Guide Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.guide-sidebar {
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  padding-right: 1.5rem;
}

.guide-nav {
  list-style: none;
}

.guide-nav-item {
  margin-bottom: 0.5rem;
}

.guide-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.guide-nav-link:hover,
.guide-nav-link.active {
  background-color: var(--bg-light-sandstone);
  color: var(--color-canyon-red);
  font-weight: 600;
}

.guide-section {
  margin-bottom: 4rem;
}

.guide-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background-color: var(--bg-light-sandstone);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.guide-meta-item strong {
  display: block;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.guide-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.guide-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  background-color: var(--border-color);
}

/* Article Styling (Singular) */
.article-header {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.article-category {
  color: var(--color-sandstone-orange);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-body {
  max-width: 760px;
  margin: 0 auto 4rem auto;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 300;
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Comments and citations */
.article-discussions {
  max-width: 760px;
  margin: 0 auto 4rem auto;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.citations {
  background-color: var(--bg-light-sandstone);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-top: 3rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.citations ol {
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.comment-list {
  list-style: none;
  margin-top: 2rem;
}

.comment-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: var(--text-dark);
}

.comment-content {
  font-size: 0.95rem;
}

/* Form Styles */
.form-card {
  background-color: var(--bg-off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-warm-cream);
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  border-color: var(--border-focus);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Testimonials / Reviews */
.reviews-section {
  margin-top: 3rem;
}

.review-card {
  background-color: var(--bg-off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Blog Layout (Featured + list) */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  margin-bottom: 4rem;
}

.blog-featured {
  grid-column: span 2;
  margin-bottom: 2rem;
}

.featured-blog-card {
  display: grid;
  grid-template-columns: 55% 45%;
  background-color: var(--bg-off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-blog-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  background-color: var(--border-color);
}

.featured-blog-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--bg-off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
}

.sidebar-widget h3 {
  border-bottom: 2px solid var(--color-desert-tan);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.widget-list {
  list-style: none;
}

.widget-list li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.widget-list a {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.widget-list a:hover {
  color: var(--color-canyon-red);
}

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

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-off-white);
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.pagination-btn:hover,
.pagination-btn.active {
  background-color: var(--color-canyon-red);
  color: var(--text-light);
  border-color: var(--color-canyon-red);
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: var(--bg-light-sandstone);
  padding: 4rem 0 2rem 0;
  border-top: 4px solid var(--color-canyon-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--bg-off-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--border-color);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--bg-off-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--bg-light-sandstone);
  opacity: 0.8;
  font-size: 0.9rem;
  transition: opacity var(--transition-speed), color var(--transition-speed);
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-sandstone-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--border-color);
  opacity: 0.7;
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border: 4px solid var(--bg-off-white);
  border-radius: var(--border-radius-sm);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--text-light);
  font-size: 2.5rem;
  cursor: pointer;
}

.modal-caption {
  position: absolute;
  bottom: 20px;
  color: var(--text-light);
  text-align: center;
  width: 100%;
  font-family: var(--font-heading);
  padding: 0 20px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .book-cover-container {
    position: relative;
    top: 0;
    max-width: 350px;
    margin: 0 auto;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-featured {
    grid-column: span 1;
  }
  .featured-blog-card {
    grid-template-columns: 1fr;
  }
  .featured-blog-img {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-off-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  
  .site-nav.active {
    display: block;
  }
  
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-nav a {
    display: block;
    padding: 0.6rem 0;
    min-height: auto;
    text-align: left;
  }

  .hero {
      min-height: 90vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .author-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .author-image {
    max-width: 240px;
    height: 240px;
    margin: 0 auto;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 3.5rem;
    padding-right: 0;
  }
  
  .timeline-dot {
    left: 20px !important;
  }
  
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .guide-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
  
  .guide-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
  }
  
  .guide-nav-item {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Medium Desktop & Tablet Header Layout */
@media (max-width: 1200px) and (min-width: 769px) {
  .header-container {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
  }
  
  .site-nav ul {
    justify-content: center;
    flex-wrap: nowrap;
  }
  
  .site-nav a {
    font-size: 0.725rem;
    padding: 0.3rem 0.4rem;
  }
}

@media (max-width: 950px) and (min-width: 769px) {
  .site-nav a {
    font-size: 0.65rem;
    padding: 0.25rem 0.25rem;
    letter-spacing: 0.02em;
  }
  .site-nav ul {
    gap: 0.1rem;
  }
}
