body { font-family: system-ui, sans-serif; margin: 0; padding: 0; background: #f9f9f9; color: #222; line-height: 1.6; }

/* Navigation Styles */
nav {
  background: linear-gradient(135deg, #2a4d69, #1a3d59);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 500;
}

nav ul { 
  list-style: none; 
  display: flex; 
  gap: 0.5em; 
  padding: 0.75em 2em; 
  margin: 0; 
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

nav ul a { 
  color: #fff; 
  text-decoration: none; 
  padding: 0.5em 1em;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav ul a:hover { 
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

h1, h2, h3 { color: #2a4d69; }
section { margin: 2em 0; }
blockquote { font-style: italic; color: #555; border-left: 4px solid #2a4d69; margin: 1em; padding-left: 1em; }

/* Homepage Styles */
.homepage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5em;
  grid-template-areas: 
    "hero sidebar";
  min-height: 80vh;
}

.hero-section {
  grid-area: hero;
}

.homepage-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* Welcome Header */
.welcome-header {
  margin-bottom: 3em;
}

.welcome-header h1 {
  font-size: 2.5em;
  margin: 0 0 0.5em 0;
  color: #2a4d69;
  font-weight: 300;
}

.site-tagline {
  font-size: 1.2em;
  color: #666;
  margin: 0;
  max-width: 600px;
}

/* Featured Post Section */
.featured-post {
  background: #fff;
  padding: 2.5em;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  border: 1px solid #e9ecef;
}

.post-badge {
  display: inline-block;
  background: linear-gradient(135deg, #2a4d69, #3a5d79);
  color: white;
  padding: 0.5em 1em;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1em;
}

.post-title {
  margin: 0 0 1em 0;
  font-size: 2em;
  line-height: 1.3;
}

.post-title a {
  color: #2a4d69;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #1a3d59;
}

.post-excerpt {
  font-size: 1.1em;
  color: #555;
  margin: 0 0 2em 0;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5em;
  border-top: 1px solid #e9ecef;
}

.post-date {
  color: #666;
  font-size: 0.9em;
}

.read-more {
  background: #2a4d69;
  color: white !important;
  padding: 0.8em 1.5em;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.read-more:hover {
  background: #1a3d59;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 77, 105, 0.3);
}

.read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Quote Card - Top of Sidebar */
.quote-card {
  background: linear-gradient(135deg, #1a3d59, #2a4d69);
  color: #ffffff;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(42, 77, 105, 0.2);
  margin-top: 0;
  margin-bottom: 0;
}

.quote-card h3 {
  margin: 0 0 1em 0;
  color: #ffffff;
  font-size: 1.1em;
  font-weight: 600;
  opacity: 1;
}

.featured-quote {
  border: none;
  margin: 0;
  padding: 0;
}

.featured-quote .quote-content {
  font-size: 1em;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1em;
  color: #ffffff;
}

.featured-quote .quote-attribution {
  font-size: 0.85em;
  opacity: 0.95;
  font-style: normal;
  text-align: right;
  color: #e8f0f7;
}

.featured-quote .quote-attribution cite {
  font-style: italic;
  color: #e8f0f7;
}

/* Photo Section - More Prominent */
.photo-section {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 0;
  margin-bottom: 0;
}

.photo-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.photo-frame {
  position: relative;
}

.featured-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-frame:hover .featured-photo {
  transform: scale(1.03);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2.5em 1.5em 1.2em;
  font-size: 0.95em;
  font-weight: 500;
}

/* Thoughts Section - Compact Version */
.thoughts-section {
  background: #fff;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-top: 0;
  margin-bottom: 0;
}

.thoughts-section.compact {
  padding: 1.2em;
  background: #f8f9fa;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.thoughts-section h3 {
  margin: 0 0 1em 0;
  color: #2a4d69;
  font-size: 1.3em;
}

.thoughts-section.compact h4 {
  margin: 0 0 0.8em 0;
  color: #2a4d69;
  font-size: 1.1em;
  font-weight: 600;
}

.thoughts-preview {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.thoughts-section.compact .thoughts-preview {
  gap: 0.8em;
}

.thought-item {
  padding: 1em;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #2a4d69;
}

.thoughts-section.compact .thought-item {
  padding: 0.8em;
  background: #fff;
  border-left: 2px solid #2a4d69;
  border-radius: 6px;
}

.thought-content {
  font-size: 0.95em;
  color: #555;
  margin: 0;
}

.thoughts-section.compact .thought-content {
  font-size: 0.85em;
  color: #666;
  line-height: 1.4;
}

.view-all {
  display: inline-block;
  margin-top: 1em;
  color: #2a4d69;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.thoughts-section.compact .view-all {
  font-size: 0.8em;
  margin-top: 0.8em;
}

.view-all:hover {
  color: #1a3d59;
  text-decoration: underline;
}

/* No Content States */
.no-content {
  text-align: center;
  padding: 3em 0;
  color: #666;
}

.no-content h2 {
  margin: 0 0 0.5em 0;
  color: #999;
}

.no-content-small {
  color: #999;
  font-style: italic;
  text-align: center;
}

/* Page Layout */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
  min-height: calc(100vh - 200px);
}

/* Reusable Quote Component */
.page-quote {
  margin: 3em auto 0;
  max-width: 800px;
  padding: 0 2em;
}

.page-quote.minimal {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5em 2em;
  border-left: 4px solid #2a4d69;
}

.page-quote.sidebar {
  position: fixed;
  right: 2em;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 100;
}

.quote-block {
  border: none;
  margin: 0;
  padding: 0;
  font-style: normal;
}

.quote-text {
  font-size: 1.1em;
  font-style: italic;
  color: #555;
  margin-bottom: 1em;
  line-height: 1.5;
}

.quote-source {
  font-size: 0.9em;
  color: #666;
  font-style: normal;
  text-align: right;
}

.quote-source cite {
  font-style: italic;
}

/* Hide sidebar quote on small screens */
@media (max-width: 1400px) {
  .page-quote.sidebar {
    position: static;
    transform: none;
    width: auto;
    margin: 2em auto 0;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 1em;
  }
  
  .page-quote {
    padding: 0;
    margin: 2em 0 0;
  }
  
  .page-quote.minimal {
    padding: 1em 1.5em;
  }
  
  /* Navigation Mobile Styles */
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5em 1em;
    gap: 0.25em;
  }
  
  nav ul a {
    padding: 0.4em 0.8em;
    font-size: 0.9em;
  }
  
  /* Homepage Mobile Styles */
  .homepage-container {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "hero"
      "sidebar";
    gap: 1.5em;
    padding: 1em;
  }
  
  .welcome-header h1 {
    font-size: 2em;
  }
  
  .featured-post {
    padding: 1.5em;
  }
  
  .post-title {
    font-size: 1.6em;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 1em;
    align-items: stretch;
  }
  
  .featured-photo {
    height: 250px;
  }
  
  .quote-card {
    padding: 1.2em;
  }
  
  .quote-card h3 {
    font-size: 1em;
  }
  
  .featured-quote .quote-content {
    font-size: 0.9em;
  }
  
  .thoughts-section.compact {
    padding: 1em;
  }
  
  .thoughts-section.compact h4 {
    font-size: 1em;
  }
}

/* Thoughts Archive Styles */
.thoughts-archive { max-width: 800px; margin: 0 auto; padding: 2em; }
.thoughts-list { list-style: none; padding: 0; }
.thought-item { background: #fff; margin: 1em 0; padding: 1.5em; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.thought-content { margin-bottom: 1em; }
.thought-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; color: #666; }
.thought-date { font-weight: bold; }
.thought-tags { display: flex; gap: 0.5em; }
.tag { background: #e9ecef; padding: 0.2em 0.5em; border-radius: 4px; font-size: 0.8em; }
.archive-summary { text-align: center; color: #666; margin-bottom: 2em; }

/* Pagination Styles */
.pagination { margin: 3em 0; text-align: center; }
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 0.5em; margin-bottom: 1em; flex-wrap: wrap; }
.pagination-numbers { display: flex; gap: 0.25em; }
.pagination-link { 
  display: inline-block; 
  padding: 0.5em 0.75em; 
  text-decoration: none; 
  color: #2a4d69 !important; 
  border: 1px solid #ddd; 
  border-radius: 4px; 
  background: #fff !important; 
  transition: all 0.2s; 
}
.pagination-link:hover:not(.disabled):not(.pagination-current) { 
  background: #2a4d69 !important; 
  color: #fff !important; 
  border-color: #2a4d69;
}
.pagination-current { 
  background: #2a4d69 !important; 
  color: #fff !important; 
  font-weight: bold; 
  cursor: default; 
  border-color: #2a4d69;
}
.pagination-link.disabled { 
  color: #999 !important; 
  background: #f8f9fa !important; 
  cursor: not-allowed; 
  border-color: #e9ecef;
}
.pagination-prev, .pagination-next { padding: 0.5em 1em; }
.pagination-info { color: #666; font-size: 0.9em; margin-top: 0.5em; }

@media (max-width: 600px) {
  .pagination-controls { flex-direction: column; gap: 1em; }
  .pagination-numbers { order: 1; }
  .pagination-prev { order: 0; }
  .pagination-next { order: 2; }
}

/* Photo Gallery Styles */
.photo-gallery { max-width: 1200px; margin: 0 auto; padding: 2em; }
.gallery-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
  gap: 1.5em; 
  margin-top: 2em; 
}

.photo-thumb { 
  cursor: pointer; 
  transition: transform 0.2s ease; 
  background: #fff; 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.photo-thumb:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.thumb-container { 
  position: relative; 
  aspect-ratio: 4/3; 
  overflow: hidden; 
}
.thumb-container img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.3s ease; 
}
.photo-thumb:hover .thumb-container img { transform: scale(1.05); }

.thumb-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0,0,0,0.3); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  opacity: 0; 
  transition: opacity 0.2s ease; 
}
.photo-thumb:hover .thumb-overlay { opacity: 1; }
.view-icon { font-size: 2em; color: white; }

.photo-caption { 
  padding: 1em; 
}
.photo-caption h3 { 
  margin: 0 0 0.5em 0; 
  font-size: 1.1em; 
  color: #2a4d69; 
}
.photo-caption time { 
  font-size: 0.9em; 
  color: #666; 
}

/* Gallery-specific photo captions override */
.photo-gallery .photo-caption {
  position: static;
  background: transparent;
  color: inherit;
  padding: 1em;
}
.photo-gallery .photo-caption h3 {
  color: #2a4d69;
}
.photo-gallery .photo-caption time {
  color: #666;
}

/* Lightbox Styles */
.lightbox { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 1000; 
  display: none !important; /* Ensure lightbox is hidden by default */
}

/* Only show lightbox when it has the active class or inline display block */
.lightbox[style*="display: block"] {
  display: block !important;
}

.lightbox-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.9); 
}

.lightbox-content { 
  position: relative; 
  width: 100%; 
  height: 100%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-direction: column; 
}

.lightbox-close, .lightbox-prev, .lightbox-next { 
  position: absolute; 
  background: rgba(255,255,255,0.9); 
  border: none; 
  border-radius: 50%; 
  width: 50px; 
  height: 50px; 
  font-size: 1.5em; 
  cursor: pointer; 
  z-index: 1001; 
  transition: all 0.2s ease; 
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { 
  background: white; 
  transform: scale(1.1); 
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-image-container { 
  max-width: 90vw; 
  max-height: 70vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.lightbox-image-container img { 
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain; 
  border-radius: 4px; 
}

.lightbox-info { 
  background: rgba(255,255,255,0.95); 
  padding: 1.5em; 
  margin-top: 1em; 
  border-radius: 8px; 
  max-width: 500px; 
  text-align: center; 
}
.lightbox-info h2 { 
  margin: 0 0 0.5em 0; 
  color: #2a4d69; 
}
.lightbox-meta { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-top: 1em; 
  font-size: 0.9em; 
  color: #666; 
}

/* Individual Photo Page Styles */
.photo-page { max-width: 1000px; margin: 0 auto; padding: 2em; }

.photo-navigation { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 2em; 
  padding-bottom: 1em; 
  border-bottom: 1px solid #eee; 
}

.back-to-gallery { 
  color: #2a4d69; 
  text-decoration: none; 
  font-weight: bold; 
}
.back-to-gallery:hover { text-decoration: underline; }

.photo-nav-controls { display: flex; gap: 1em; }
.nav-prev, .nav-next { 
  color: #2a4d69; 
  text-decoration: none; 
  padding: 0.5em 1em; 
  border: 1px solid #ddd; 
  border-radius: 4px; 
  transition: all 0.2s ease; 
}
.nav-prev:hover, .nav-next:hover { 
  background: #2a4d69; 
  color: white; 
}

.photo-content { 
  display: grid; 
  grid-template-columns: 2fr 1fr; 
  gap: 3em; 
  align-items: start; 
}

.main-photo { 
  width: 100%; 
  height: auto; 
  border-radius: 8px; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); 
}

.photo-details h1 { 
  margin-top: 0; 
  color: #2a4d69; 
}

.photo-meta { 
  margin-top: 2em; 
  padding-top: 1em; 
  border-top: 1px solid #eee; 
}

.photo-date { 
  display: block; 
  font-weight: bold; 
  margin-bottom: 0.5em; 
}

.photo-location { 
  margin: 0.5em 0; 
  color: #666; 
}

.photo-tags { 
  margin-top: 1em; 
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1em; }
  .photo-content { grid-template-columns: 1fr; gap: 2em; }
  .photo-navigation { flex-direction: column; gap: 1em; align-items: stretch; }
  .photo-nav-controls { justify-content: center; }
  
  .lightbox-prev, .lightbox-next { 
    width: 40px; 
    height: 40px; 
    font-size: 1.2em; 
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  
  .lightbox-info { 
    margin: 1em; 
    padding: 1em; 
    max-width: calc(100vw - 2em); 
  }
}

/* Wishlist Archive Styles */
.wishlist-archive { max-width: 1000px; margin: 0 auto; padding: 2em; }

.wishlist-controls {
  display: flex;
  gap: 1.5em;
  margin: 2em 0;
  padding: 1.5em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  flex: 1;
  min-width: 200px;
}

.filter-controls label {
  font-weight: bold;
  color: #2a4d69;
  font-size: 0.9em;
}

.sort-select, .filter-select {
  padding: 0.5em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-select:hover, .filter-select:hover {
  border-color: #2a4d69;
}

.sort-select:focus, .filter-select:focus {
  outline: none;
  border-color: #2a4d69;
  box-shadow: 0 0 0 2px rgba(42, 77, 105, 0.1);
}

/* Wishlist list must be flex for order property to work */
.wishlist-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.wishlist-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wishlist-item-content {
  padding: 1.5em;
}

.item-title {
  margin: 0 0 0.5em 0;
}

.item-title a {
  color: #2a4d69;
  text-decoration: none;
  transition: color 0.2s;
}

.item-title a:hover {
  color: #1a3d59;
  text-decoration: underline;
}

.item-details {
  display: flex;
  gap: 1em;
  margin: 0.5em 0;
  flex-wrap: wrap;
  align-items: center;
}

.item-price {
  font-weight: bold;
  font-size: 1.2em;
  color: #2a4d69;
}

.item-priority {
  padding: 0.3em 0.8em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
}

.priority-high {
  background: #ffebee;
  color: #c62828;
}

.priority-medium {
  background: #fff3e0;
  color: #ef6c00;
}

.priority-low {
  background: #e8f5e9;
  color: #2e7d32;
}

.item-category {
  background: #e3f2fd;
  color: #1565c0;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  font-size: 0.9em;
}

.item-description {
  margin: 1em 0;
  color: #555;
}

.buy-link {
  display: inline-block;
  padding: 0.6em 1.2em;
  background: #2a4d69;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s;
  margin: 0.5em 0;
}

.buy-link:hover {
  background: #1a3d59;
}

.item-date {
  display: block;
  margin-top: 1em;
  font-size: 0.9em;
  color: #666;
}

.no-items, .no-results-message {
  text-align: center;
  padding: 3em;
  color: #666;
  font-size: 1.1em;
}

/* Individual Wishlist Item Page */
.wishlist-item article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em;
}

.item-metadata {
  display: flex;
  gap: 1.5em;
  margin: 1.5em 0;
  flex-wrap: wrap;
  padding: 1em;
  background: #f8f9fa;
  border-radius: 8px;
}

.item-content {
  margin: 2em 0;
  line-height: 1.6;
}

.item-tags {
  display: flex;
  gap: 0.5em;
  margin: 1.5em 0;
  flex-wrap: wrap;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #eee;
}

.back-link {
  color: #2a4d69;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive Wishlist Styles */
@media (max-width: 768px) {
  .wishlist-controls {
    flex-direction: column;
  }
  
  .filter-controls {
    min-width: 100%;
  }
  
  .item-details {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .item-metadata {
    flex-direction: column;
  }
  
  .item-footer {
    flex-direction: column;
    gap: 1em;
    align-items: flex-start;
  }
}

/* ========== Comment Form Styles ========== */

.comment-form-section {
  margin-top: 3em;
  padding: 2.5em;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  box-shadow: 0 4px 20px rgba(42, 77, 105, 0.08);
  position: relative;
  overflow: hidden;
}

.comment-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #2a4d69, #3a5d79);
}

.comment-form-section h3 {
  margin-top: 0;
  margin-bottom: 2em;
  color: #2a4d69;
  font-size: 1.75em;
  font-weight: 600;
  position: relative;
}

.comment-form-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #2a4d69, #3a5d79);
  border-radius: 2px;
}

.comment-form .form-group {
  margin-bottom: 1.75em;
  position: relative;
}

.comment-form label {
  display: block;
  margin-bottom: 0.75em;
  font-weight: 600;
  color: #2a4d69;
  font-size: 1em;
  transition: color 0.3s ease;
}

.comment-form .required {
  color: #e74c3c;
  font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 1em 1.25em;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fafbfc;
  color: #2c3e50;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #2a4d69;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 77, 105, 0.1);
  transform: translateY(-1px);
}

.comment-form input[type="text"]:hover:not(:focus),
.comment-form input[type="email"]:hover:not(:focus),
.comment-form textarea:hover:not(:focus) {
  border-color: #c1d0db;
  background: #fff;
}

.comment-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.comment-form .form-help {
  display: block;
  margin-top: 0.5em;
  font-size: 0.875em;
  color: #6c757d;
  font-style: italic;
}

.comment-submit-btn {
  background: linear-gradient(135deg, #2a4d69, #3a5d79);
  color: white;
  border: none;
  padding: 1em 2.5em;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42, 77, 105, 0.2);
  position: relative;
  overflow: hidden;
}

.comment-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.comment-submit-btn:hover {
  background: linear-gradient(135deg, #1a3d59, #2a4d69);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 77, 105, 0.3);
}

.comment-submit-btn:hover::before {
  left: 100%;
}

.comment-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(42, 77, 105, 0.2);
}

.comment-submit-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.comment-submit-btn:disabled::before {
  display: none;
}

.comment-form .form-notice {
  margin-top: 1.5em;
  padding: 1em;
  background: rgba(42, 77, 105, 0.05);
  border: 1px solid rgba(42, 77, 105, 0.1);
  border-radius: 6px;
  color: #6c757d;
  font-size: 0.9em;
  font-style: italic;
}

.form-message {
  padding: 1.25em 1.5em;
  margin-bottom: 2em;
  border-radius: 8px;
  font-weight: 500;
  border-left: 4px solid #2a4d69;
  background: rgba(42, 77, 105, 0.05);
  color: #2a4d69;
}

/* Success and error message variants */
.form-message.success {
  border-left-color: #27ae60;
  background: rgba(39, 174, 96, 0.05);
  color: #27ae60;
}

.form-message.error {
  border-left-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
  color: #e74c3c;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .comment-form-section {
    padding: 1.5em;
    margin-top: 2em;
  }
  
  .comment-form-section h3 {
    font-size: 1.5em;
    margin-bottom: 1.5em;
  }
  
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form textarea {
    padding: 0.875em 1em;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .comment-submit-btn {
    width: 100%;
    padding: 1em;
    font-size: 1em;
  }
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message ul {
  margin: 0;
  padding-left: 1.5em;
}

.form-message li {
  margin-bottom: 0.5em;
}

/* Thought Comment Styles */
.comment-link {
  display: inline-block;
  margin-left: 1em;
  padding: 0.25em 0.75em;
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  transition: background 0.2s;
}

.comment-link:hover {
  background: #3498db;
  color: white;
}

.thought-comment-form {
  margin-top: 1em;
  padding: 1.5em;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.thought-comment-form .comment-form-section {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
}

/* Photo Comment Modal Styles */
.comment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
}

.comment-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}

.comment-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2em;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.comment-modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: transparent;
  border: none;
  font-size: 2em;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 1.5em;
  height: 1.5em;
  line-height: 1;
  transition: color 0.2s;
}

.comment-modal-close:hover {
  color: #e74c3c;
}

.comment-modal h3 {
  margin-top: 0;
  color: #2c3e50;
}

.comment-context {
  color: #6c757d;
  font-style: italic;
  margin-bottom: 1.5em;
}

.lightbox-actions {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-comment-btn {
  display: inline-block;
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}

.lightbox-comment-btn:hover {
  background: white;
  color: #3498db;
}

/* Responsive adjustments for comment forms */
@media (max-width: 768px) {
  .comment-form-section {
    padding: 1.5em;
  }
  
  .comment-modal-content {
    padding: 1.5em;
    width: 95%;
  }
  
  .comment-submit-btn {
    width: 100%;
  }
}

/* Cookie Notice Styles */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(42, 77, 105, 0.97);
  color: white;
  padding: 1.25em 2em;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}

.cookie-notice-text {
  flex: 1;
  min-width: 300px;
  line-height: 1.5;
  font-size: 0.95em;
}

.cookie-notice-text p {
  margin: 0;
}

.cookie-notice-text a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-notice-text a:hover {
  color: #e8f4f8;
}

.cookie-accept-btn {
  background: white;
  color: #2a4d69;
  border: none;
  padding: 0.75em 2em;
  font-size: 1em;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-accept-btn:hover {
  background: #e8f4f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-accept-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .cookie-notice {
    padding: 1em 1.5em;
  }
  
  .cookie-notice-content {
    flex-direction: column;
    gap: 1em;
    text-align: center;
  }
  
  .cookie-notice-text {
    min-width: auto;
    font-size: 0.9em;
  }
  
  .cookie-accept-btn {
    width: 100%;
    padding: 1em 2em;
  }
}
