/* ===================================
   BLOG PAGE STYLES
   =================================== */

/* Page Hero */
.page-hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Category Filter */
.category-filter {
  display: inline-flex;
  gap: 1rem;
  background: white;
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
}

.filter-btn:hover {
  color: var(--color-primary);
  background: rgba(16, 185, 129, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Featured Section */
.featured-section {
  padding: 80px 0;
  background: white;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, #f9fafb 0%, white 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.featured-image {
  position: relative;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post:hover .featured-image img {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 2;
}

.category-badge.tips {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.category-badge.industry {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.category-badge.updates {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.featured-content {
  padding: 3rem;
}

.featured-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.featured-content h2 a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-content h2 a:hover {
  color: var(--color-primary);
}

.excerpt {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author span {
  font-weight: 600;
  color: var(--color-text-primary);
}

.date,
.read-time {
  color: #9ca3af;
  font-size: 0.9375rem;
}

/* Icons removed as per request */

/* Blog Section */
.blog-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f9fafb 0%, white 100%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.card-content h3 a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-content h3 a:hover {
  color: var(--color-primary);
}

.card-content > p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: auto;
  font-size: 0.9375rem;
}

.card-content .post-meta {
  margin-bottom: 0;
  margin-top: 1.5rem;
  gap: 1rem;
  justify-content: space-between;
}

.author-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-small img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-small span {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.meta-right .date,
.meta-right .read-time {
  font-size: 0.8125rem;
}

/* Load More */
.load-more {
  text-align: center;
}

.btn-large {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-box h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.newsletter-box > p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  color: var(--color-text-primary);
}

.newsletter-form input::placeholder {
  color: #9ca3af;
}

.newsletter-form .btn-primary {
  background: var(--color-text-primary);
  color: white;
  white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
  background: #1f2937;
  transform: translateY(-2px);
}

.privacy-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.privacy-note a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}

/* Filter Animation */
.blog-card.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-hero h1 {
    font-size: 2.75rem;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 300px;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 60px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .category-filter {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .featured-section,
  .blog-section,
  .newsletter-section {
    padding: 60px 0;
  }

  .featured-content {
    padding: 2rem;
  }

  .featured-content h2 {
    font-size: 1.75rem;
  }

  .excerpt {
    font-size: 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .card-content h3 {
    font-size: 1.25rem;
  }

  .newsletter-box h2 {
    font-size: 1.75rem;
  }

  .newsletter-box > p {
    font-size: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn-primary {
    width: 100%;
  }
}
