/* Main Content Wrapper Styles */

.main-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Page Header Styles */
.page-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.page-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1a1a1a;
  font-weight: 700;
}

.archive-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.archive-description p {
  margin: 0;
}

/* Post Navigation Styles */
.post-navigation {
  margin: 48px 0;
  padding: 24px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nav-previous,
.nav-next {
  flex: 1;
  max-width: 48%;
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  background: #3b4a87;
  color: #fff;
}

.nav-subtitle {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.nav-next {
  text-align: right;
}

/* Posts Navigation (Archive pages) */
.posts-navigation {
  margin: 48px 0 0;
  text-align: center;
}

.nav-links .page-numbers {
  display: inline-block;
  padding: 12px 16px;
  margin: 0 4px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  background: #3b4a87;
  color: #fff;
}

/* 404 Error Page Styles */
.error-404 {
  text-align: center;
  padding: 40px 0;
}

.error-404 .page-header {
  margin-bottom: 32px;
}

.error-404 .page-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .page-content > p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 32px;
}

.error-404 .widget {
  margin-bottom: 32px;
  text-align: left;
}

.error-404 .widget-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.error-404 .widget ul {
  list-style: none;
  padding: 0;
}

.error-404 .widget li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.error-404 .widget li:last-child {
  border-bottom: none;
}

.error-404 .widget a {
  color: #3b4a87;
  text-decoration: none;
  transition: color 0.3s ease;
}

.error-404 .widget a:hover {
  color: #d4af37;
}

/* Search Form Styles */
.search-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto 32px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.search-field {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-submit {
  padding: 12px 20px;
  background: #3b4a87;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.search-submit:hover {
  background: #2c3a6b;
}

/* Responsive Design */
@media (max-width: 767px) {
  .main-content-wrapper {
    padding: 40px 20px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .nav-links {
    flex-direction: column;
  }
  
  .nav-previous,
  .nav-next {
    max-width: 100%;
  }
  
  .nav-next {
    text-align: left;
  }
}
