/* blogs.css - Premium Blog Styles - Centered Layout */
:root {
  --blue1: #007bff;
  --blue2: #00c6ff;
  --bg: #f7f9fc;
  --text: #222;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  
  /* Extended variables for premium styling */
  --primary: #007bff;
  --primary-dark: #0066cc;
  --secondary: #00c6ff;
  --accent: #00a8e8;
  --text-primary: #222;
  --text-secondary: #555;
  --text-muted: #777;
  --bg-primary: #fff;
  --bg-secondary: #f7f9fc;
  --bg-gradient: linear-gradient(135deg, var(--blue1) 0%, var(--blue2) 100%);
  --border-light: #e6f2ff;
  --shadow-sm: 0 2px 8px rgba(0, 123, 255, 0.1);
  --shadow-md: 0 8px 25px rgba(0, 123, 255, 0.15);
  --shadow-lg: 0 15px 35px rgba(0, 123, 255, 0.2);
  --radius-lg: 20px;
}

/* Reset and center everything */
body {
  background: var(--bg);
}

/* Centered Blog Layout */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 1rem;
  text-align: center;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  width: 100%;
}

.lead {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  width: 100%;
}

/* Premium Blog Post Cards - Centered */
.post-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--bg-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue1);
}

.post-card:hover::before {
  opacity: 1;
}

.post-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  gap: 0;
  flex-direction: row;
  width: 100%;
}

.post-thumb {
  width: 220px;
  min-width: 220px;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
  position: relative;
}

.post-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 198, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover .post-thumb::after {
  opacity: 1;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.post-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.post-card:hover .post-title {
  background: linear-gradient(135deg, var(--blue1) 0%, var(--blue2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-excerpt {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.meta-item:first-child::before {
  display: none;
}

.read-time {
  background: var(--bg-gradient);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}

/* Category Tags */
.category-tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card {
  animation: fadeInUp 0.6s ease-out;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }

/* Centered content grid - SINGLE COLUMN */
.content-grid {
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  width: 100%;
}

/* Hide sidebar completely */
.sidebar {
  display: none !important;
}

/* Ensure blog list takes full centered width */
.blog-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main page centering */
main.page {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .post-link {
    flex-direction: column;
  }
  
  .post-thumb {
    width: 100%;
    min-width: 100%;
    height: 200px;
  }
  
  .post-body {
    padding: 1.5rem;
  }
  
  .post-title {
    font-size: 1.375rem;
  }
  
  .post-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .read-time {
    margin-left: 0;
  }
  
  .content-grid {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
  
  .post-body {
    padding: 1.25rem;
  }
  
  .post-title {
    font-size: 1.25rem;
  }
  
  .post-excerpt {
    font-size: 0.9375rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .meta-item::before {
    display: none;
  }
  
  .content-grid {
    padding: 0 0.75rem;
  }
}

/* Ensure everything stays centered */
.blog-list > * {
  width: 100%;
  text-align: left;
}

/* Center alignment for all text content */
.page-title,
.lead {
  text-align: center;
}