/* Blog Archive & Category Pages - Tailwind-inspired */

/* Breadcrumb Section */
.breadcrumb-section {
  padding: 15px 0;
  background: #f8f9fa;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-nav a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #111827;
  font-weight: 500;
}

/* Archive Header */
.archive-header-section {
  padding: 30px 0;
  text-align: center;
}

.custom-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.archive-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0px;
}

.category-description {
  margin-top: 20px;
}

.category-description p {
  font-size: 16px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Child Categories Grid */
.child-categories-section {
  padding: 40px 0;
}

.child-categories-grid {
  margin-bottom: 20px;
}

.cat-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.cat-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.cat-item a {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

.cat-item .name h2 {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.cat-item:hover .name h2 {
  color: var(--primary-color);
}

.cat-item .post-count {
  font-size: 14px;
  color: #6b7280;
}

/* Content Section */
.archive-content-section {
  padding: 0 0 60px 0;
}

/* Sticky Sidebar */
.blog-sidebar-sticky {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Featured Posts Section */
.blog-featured-posts {
  margin-bottom: 10px;
}

.featured-posts-grid {
  margin-bottom: 20px;
}

/* Blog Post Cards */
.blog-post-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
}

.blog-post-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.blog-post-card .post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Featured Large Post */
.blog-post-card.featured-large {
  height: auto;
}

.featured-large .post-image {
  height: 280px;
  overflow: hidden;
}

.featured-large .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-large:hover .post-image img {
  transform: scale(1.05);
}

.featured-large .post-content {
  padding: 20px;
}

.featured-large .post-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 12px;
}

.featured-large .post-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0px;
}

/* Featured Small Posts */
.featured-small-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-post-card.featured-small {
  margin-bottom: 0;
}

.featured-small .post-image {
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
}

.featured-small .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-small .post-content {
  padding: 15px;
}

.featured-small .post-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.featured-small .post-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: hidden;
}

/* Regular Posts Grid */
.blog-posts-grid {
  margin-bottom: 40px;
}

.blog-post-card.regular .post-image {
  height: 200px;
  overflow: hidden;
}

.blog-post-card.regular .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card.regular:hover .post-image img {
  transform: scale(1.05);
}

.blog-post-card.regular .post-content {
  padding: 20px;
}

.blog-post-card.regular .post-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-post-card.regular .post-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0px;
}

/* Post Meta */
.post-meta {
  margin-bottom: 12px;
  font-size: 14px;
}

.post-date {
  color: #6b7280;
  font-size: 12px;
}

/* Pagination */
.blog-pagination {
  margin-top: 60px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 4px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: 50px;
}

/* No Posts Found */
.no-posts-found {
  text-align: center;
  padding: 60px 20px;
}

.no-posts-found p {
  font-size: 18px;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .child-categories-grid .row > .col {
    margin-bottom: 20px;
  }

  .featured-posts-grid .row {
    gap: 20px 0;
  }
}

@media (max-width: 768px) {
  .archive-header-section {
    padding: 30px 0;
  }

  .archive-main-title {
    font-size: 2rem;
  }

  .child-categories-section {
    padding: 30px 0;
  }

  .archive-content-section {
    padding: 40px 0;
  }

  .featured-small-posts {
    gap: 15px;
  }

  .blog-posts-grid {
    margin-bottom: 30px;
  }

  .blog-pagination {
    margin-top: 40px;
  }

  /* Disable sticky on mobile */
  .blog-sidebar-sticky {
    position: static;
    top: auto;
    height: auto;
  }

  /* Mobile Featured Posts - Convert to regular post style */
  .featured-posts-layout {
    display: block;
  }

  .featured-main,
  .featured-sidebar {
    margin-bottom: 20px;
  }

  .featured-sidebar {
    display: block;
  }

  .featured-small-posts {
    display: block;
    gap: 0;
  }

  .blog-post-card.featured-large,
  .blog-post-card.featured-small {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .blog-post-card.featured-large:hover,
  .blog-post-card.featured-small:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }

  .featured-large .post-image,
  .featured-small .post-image {
    height: 200px;
    overflow: hidden;
  }

  .featured-large .post-image img,
  .featured-small .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .featured-large:hover .post-image img,
  .featured-small:hover .post-image img {
    transform: scale(1.05);
  }

  .featured-large .post-content,
  .featured-small .post-content {
    padding: 20px;
  }

  .featured-large .post-title,
  .featured-small .post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .featured-large .post-excerpt,
  .featured-small .post-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  /* Override featured small layout on mobile */
  .featured-small-layout {
    display: block;
    grid-template-columns: unset;
    gap: 0;
    align-items: unset;
  }

  .featured-small .post-meta {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .archive-main-title {
    font-size: 1.75rem;
  }

  .blog-post-card {
    margin-bottom: 20px;
  }

  .featured-large .post-content,
  .blog-post-card.regular .post-content {
    padding: 16px;
  }

  .featured-large .post-title {
    font-size: 1rem;
  }

  .blog-post-card.regular .post-title {
    font-size: 1rem;
  }

  .cat-item a {
    padding: 16px;
  }
}
