/* ========================================
   BLOG PAGE STYLES
   ======================================== */

/* Blog Filter Section */
.blog-filter-section {
  background: #f8f9fa;
  padding: 2rem 0;
  border-bottom: 1px solid #e9ecef;
}

.blog-filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-search-bar {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.blog-search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.blog-search-bar input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.blog-search-bar input:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-btn {
  padding: 0.625rem 1.25rem;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-btn:hover {
  border-color: #FF6B35;
  color: #FF6B35;
  background: rgba(255, 107, 53, 0.05);
}

.category-btn.active {
  background: #FF6B35;
  color: white;
  border-color: #FF6B35;
}

/* Featured Post Section */
.featured-post-section {
  padding: 3rem 0;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.featured-post-image {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.featured-post-content {
  padding: 3rem 3rem 3rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-content .blog-category {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.featured-excerpt {
  font-size: 1.05rem;
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-date {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Blog Posts Section */
.blog-posts-section {
  padding: 4rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #FF6B35;
  padding: 0.4rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.blog-date {
  display: flex;
  align-items: center;
}

.blog-date::after {
  content: '•';
  margin-left: 1rem;
}

.blog-read-time {
  display: flex;
  align-items: center;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-author .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author .author-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
}

.blog-link {
  color: #FF6B35;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-link:hover {
  color: #e55a2b;
  transform: translateX(4px);
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 10px;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #FF6B35;
  color: #FF6B35;
  background: rgba(255, 107, 53, 0.05);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-number {
  width: 40px;
  height: 40px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 8px;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-number:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

.page-number.active {
  background: #FF6B35;
  color: white;
  border-color: #FF6B35;
}

.pagination-dots {
  color: #6c757d;
  padding: 0 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.newsletter-box {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.newsletter-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.newsletter-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.newsletter-form button {
  padding: 1rem 2.5rem;
  white-space: nowrap;
}

/* Popular Topics Section */
.popular-topics-section {
  padding: 4rem 0 5rem;
}

.popular-topics-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
}

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.topic-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  color: #495057;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.topic-tag svg {
  width: 16px;
  height: 16px;
}

.topic-tag:hover {
  border-color: #FF6B35;
  color: #FF6B35;
  background: rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post-image {
    min-height: 300px;
  }

  .featured-post-content {
    padding: 2rem;
  }

  .featured-title {
    font-size: 1.75rem;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-filter-section {
    padding: 1.5rem 0;
  }

  .blog-filters-wrapper {
    gap: 1rem;
  }

  .blog-search-bar {
    max-width: 100%;
  }

  .blog-categories {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .featured-post-section {
    padding: 2rem 0;
  }

  .featured-post-image {
    min-height: 250px;
  }

  .featured-post-content {
    padding: 1.5rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-excerpt {
    font-size: 1rem;
  }

  .featured-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-posts-section {
    padding: 3rem 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-pagination {
    flex-wrap: wrap;
    margin-top: 3rem;
  }

  .pagination-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .newsletter-section {
    padding: 3rem 0;
  }

  .newsletter-box {
    padding: 2rem 1.5rem;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .newsletter-icon {
    width: 60px;
    height: 60px;
  }

  .newsletter-text h2 {
    font-size: 1.5rem;
  }

  .newsletter-text p {
    font-size: 0.95rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .popular-topics-section {
    padding: 3rem 0 4rem;
  }

  .popular-topics-title {
    font-size: 1.5rem;
  }

  .topics-grid {
    gap: 0.75rem;
  }

  .topic-tag {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .featured-title {
    font-size: 1.25rem;
  }

  .featured-excerpt {
    font-size: 0.95rem;
  }

  .blog-title {
    font-size: 1.1rem;
  }

  .blog-excerpt {
    font-size: 0.9rem;
  }

  .newsletter-text h2 {
    font-size: 1.25rem;
  }

  .popular-topics-title {
    font-size: 1.25rem;
  }
}


