/* Blog Index Page */
.blog-index-page {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  min-height: 100vh;
}

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  padding: 4rem 0 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.blog-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #4a5568;
  position: relative;
  margin-bottom: 0;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card--featured {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.blog-card--featured .blog-card-title {
  font-size: 1.75rem;
}

.blog-card-content {
  position: relative;
  z-index: 1;
}

.blog-card-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-card-date,
.blog-card-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4a5568;
}

.blog-card-date i,
.blog-card-reading-time i {
  color: #667eea;
  font-size: 1rem;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card-link {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.blog-card-link:hover {
  color: #667eea;
}

.blog-card-description {
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.blog-card-read-more i {
  transition: transform 0.3s ease;
}

.blog-card-read-more:hover {
  color: #764ba2;
  gap: 0.75rem;
}

.blog-card-read-more:hover i {
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .blog-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .blog-hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .blog-hero-subtitle {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .blog-index-page .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .blog-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .blog-card-meta {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .blog-card-date,
  .blog-card-reading-time {
    font-size: 0.8rem;
  }

  .blog-card-date i,
  .blog-card-reading-time i {
    font-size: 0.875rem;
  }

  .blog-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.875rem;
  }

  .blog-card--featured .blog-card-title {
    font-size: 1.5rem;
  }

  .blog-card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .blog-card-read-more {
    font-size: 0.9rem;
  }

  .blog-card:hover {
    transform: translateY(-4px);
  }
}

/* Extra small devices optimization */
@media (max-width: 575px) {
  .blog-hero {
    padding: 2rem 0.5rem 1.5rem;
  }

  .blog-hero-title {
    font-size: 1.75rem;
  }

  .blog-hero-subtitle {
    font-size: 0.875rem;
  }

  .blog-card {
    padding: 1rem;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .blog-card--featured .blog-card-title {
    font-size: 1.35rem;
  }

  .blog-card-description {
    font-size: 0.9rem;
  }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
  .blog-card {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
  }

  .blog-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .blog-card-link:active {
    color: #764ba2;
  }

  .blog-card-read-more:active {
    color: #764ba2;
  }
}

/* Blog post styles */
.blog-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.blog-content h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #222;
}

.blog-content h2 {
  font-size: 2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  font-weight: 600;
  color: #333;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #444;
}

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

.blog-content ul {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

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

.blog-content strong {
  font-weight: 600;
  color: #222;
}

.blog-content em {
  font-style: italic;
}

.blog-content a {
  color: #0d6efd;
  text-decoration: underline;
}

.blog-content a:hover {
  color: #0a58ca;
}

.blog-post header {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 1rem;
}

/* Blog index card styles */
.blog-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
