/* === BASE STYLES === */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9ff;
  color: #1e293b;
}

/* === HEADER === */
.blog-header {
  background: linear-gradient(to right, #4f46e5, #8b5cf6);
  padding: 60px 20px 40px;
  color: white;
  text-align: center;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.blog-header-top {
  display: flex;
  justify-content: space-between; /* Pushes logo to left, button to right */
  align-items: center;
  padding: 0 24px;
  margin-bottom: 20px;
}

.blog-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.home-button {
  text-decoration: none;
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* === CONTAINER === */
.blog-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* === BLOG CARD === */
.blog-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-info {
  padding: 20px;
}

.blog-title {
  font-size: 1.5rem;
  color: #1e40af;
  margin-bottom: 10px;
}

.blog-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 12px;
}

.blog-excerpt {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 16px;
}

.read-more {
  text-decoration: none;
  color: #4f46e5;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #3730a3;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.page-button {
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  background-color: white;
  color: #1e293b;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.page-button:hover {
  background-color: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3;
}

.page-button.active {
  background-color: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

.page-ellipsis {
  font-size: 1rem;
  color: #94a3b8;
  padding: 8px 10px;
}

/* === FOOTER === */
.blog-footer {
  background-color: #f1f5f9;
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .blog-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
