/* ==================== BLOG SECTION ==================== */
#blog {
  padding: 5rem 5%;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured Blog Post */
.featured-post {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.blog-post-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 350px;
}

.featured-post .blog-post-image {
  height: 100%;
}

.blog-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.blog-post:hover .blog-image-placeholder {
  transform: scale(1.05);
}

.blog-icon {
  font-size: 4rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
}

.featured-badge {
  background: linear-gradient(135deg, #333333 0%, #000000 100%);
  color: white;
}

.coming-soon-badge {
  background: #6c757d;
  color: white;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.blog-post {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
}

.blog-grid .blog-post:nth-child(1) { animation-delay: 0.3s; }
.blog-grid .blog-post:nth-child(2) { animation-delay: 0.4s; }
.blog-grid .blog-post:nth-child(3) { animation-delay: 0.5s; }
.blog-grid .blog-post:nth-child(4) { animation-delay: 0.6s; }
.blog-grid .blog-post:nth-child(5) { animation-delay: 0.7s; }

.blog-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.blog-grid .blog-post-image {
  height: 200px;
}

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

.featured-post .blog-post-content {
  padding: 0;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.blog-date,
.blog-reading-time,
.blog-category {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-category {
  color: var(--primary-color);
  font-weight: 600;
}

.blog-post-title {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: var(--primary-color);
}

.featured-post .blog-post-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.blog-grid .blog-post-title {
  font-size: 1.3rem;
}

.blog-post-excerpt {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex: 1;
}

.featured-post .blog-post-excerpt {
  font-size: 1.05rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-tag {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.blog-read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.blog-read-more:hover {
  gap: 1rem;
}

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

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

/* Newsletter Section */
.blog-newsletter {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  color: white;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.newsletter-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.newsletter-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-note {
  font-size: 1.1rem;
  margin: 0;
}

.newsletter-note a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.newsletter-note a:hover {
  opacity: 0.8;
}

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