/* Blog page styles */

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h1 {
  color: #0a4d68;
  margin-bottom: 1rem;
}

.blog-header p {
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

/* Blog grid layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Blog card */
.blog-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

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

.blog-card-title {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #0a4d68;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #083f56;
}

.blog-card-subtitle {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.blog-card-excerpt {
  color: #6c757d;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: auto;
}

.blog-card-date {
  display: flex;
  align-items: center;
}

.blog-card-date svg {
  margin-right: 0.25rem;
}

.blog-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e9ecef;
  border-radius: 50px;
  font-size: 0.75rem;
  color: #495057;
  text-decoration: none;
  transition: background-color 0.3s;
}

.blog-category:hover {
  background-color: #dee2e6;
}

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

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  color: #0a4d68;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-button:hover {
  background-color: #f8f9fa;
}

.pagination-button.active {
  background-color: #0a4d68;
  color: #fff;
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Blog post page */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-title {
  color: #0a4d68;
  margin-bottom: 0.5rem;
}

.blog-post-subtitle {
  color: #6c757d;
  font-size: 1.25rem;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 1rem;
  font-style: italic;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.blog-post-meta-item {
  display: flex;
  align-items: center;
}

.blog-post-meta-item svg {
  margin-right: 0.25rem;
}

.blog-post-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content {
  line-height: 1.7;
  color: #343a40;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content h2,
.blog-post-content h3 {
  color: #0a4d68;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.blog-post-content blockquote {
  border-left: 4px solid #0a4d68;
  padding-left: 1rem;
  margin-left: 0;
  color: #6c757d;
  font-style: italic;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e9ecef;
  border-radius: 50px;
  font-size: 0.75rem;
  color: #495057;
  text-decoration: none;
  transition: background-color 0.3s;
}

.blog-tag:hover {
  background-color: #dee2e6;
}

/* No posts message */
.no-posts {
  text-align: center;
  padding: 3rem 0;
  color: #6c757d;
}

.no-posts h2 {
  margin-bottom: 1rem;
  color: #0a4d68;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(10, 77, 104, 0.1);
  border-radius: 50%;
  border-top-color: #0a4d68;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    height: 180px;
  }
}
