/* ==========================================================================
   General Page Styles
   ========================================================================== */

/* Page Headers */
.page-header {
  background: #f8f9fa;
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  background: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  color: #666;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: #ccc;
}

.breadcrumb-item a {
  color: #007cba;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #005a87;
}

/* Page Content */
.page-content {
  padding: 0 15px;
  max-width: 100%;
  margin: 0 auto;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-bottom: 20px;
  color: #333;
  line-height: 1.3;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.page-content h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 25px;
}

.page-content h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.page-content ul,
.page-content ol {
  margin-bottom: 25px;
  padding-left: 30px;
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #555;
}

.page-content blockquote {
  border-left: 4px solid #007cba;
  padding: 20px 30px;
  margin: 30px 0;
  background: #f8f9fa;
  font-style: italic;
  color: #666;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
}

/* Sidebar */
.page-sidebar {
  background: #f8f9fa;
  padding: 40px 30px;
  border-radius: 15px;
  margin-top: 40px;
}

.sidebar-widget {
  margin-bottom: 40px;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007cba;
}

.widget-content {
  color: #666;
  line-height: 1.6;
}

.widget-content ul {
  list-style: none;
  padding: 0;
}

.widget-content li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.widget-content li:last-child {
  border-bottom: none;
}

.widget-content a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget-content a:hover {
  color: #007cba;
}

/* Two Column Layout */
.two-column-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Archive Pages */
.archive-header {
  background: #f8f9fa;
  padding: 60px 0 40px;
  text-align: center;
  margin-bottom: 60px;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.archive-description {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.post-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-thumbnail {
  height: 200px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 30px;
}

.post-meta {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.post-date {
  color: #007cba;
  font-weight: 600;
}

.post-title {
  margin-bottom: 15px;
}

.post-title a {
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #007cba;
}

.post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  color: #007cba;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #005a87;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e9ecef;
}

.pagination a:hover {
  background: #007cba;
  color: #fff;
  border-color: #007cba;
}

.pagination .current {
  background: #007cba;
  color: #fff;
  border: 2px solid #007cba;
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 80px 0;
}

.error-404 h1 {
  font-size: 4rem;
  color: #007cba;
  margin-bottom: 20px;
}

.error-404 h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.error-404 p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-control.error {
  border-color: #dc3545;
}

.form-error {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 5px;
}

.form-success {
  color: #28a745;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Tables */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-table th,
.content-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.content-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table tr:hover {
  background: #f8f9fa;
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .page-content {
    padding: 40px 0;
  }
  
  .page-content h1 {
    font-size: 2rem;
  }
  
  .page-content h2 {
    font-size: 1.5rem;
  }
  
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .archive-title {
    font-size: 2rem;
  }
  
  .error-404 h1 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 40px 0 30px;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .page-content {
    padding: 30px 0;
  }
  
  .page-sidebar {
    padding: 30px 20px;
  }
}