/* Category Archive Styles */

/* Category Header Section */
.category-header-section {
  padding: 20px 0 0 0;
  background: #fff;
}

.category-header-section .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.category-title {
  margin: 0;
  flex: 0 0 auto;
}

.category-breadcrumb {
  margin: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.category-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-breadcrumb .breadcrumb-item {
  font-size: 14px;
  color: #666;
}

.category-breadcrumb .breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-breadcrumb .breadcrumb-item a:hover {
  color: #ea7a2b;
}

.category-breadcrumb .breadcrumb-item.active {
  color: #333;
  font-weight: 500;
}

.category-breadcrumb .breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: #999;
}

/* Remove Bootstrap's default breadcrumb separator if exists */
.category-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  display: none !important;
  content: none !important;
  padding: 0 !important;
}

.category-title {
  font-size: 32px;
  font-weight: 700;
  color: #0f2264;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

/* Category Navigation */
.category-nav-section {
  background: #fff;
  padding: 0;
  margin-top: 20px;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid #e9e7e7;
  border-radius: 8px;
  padding: 10px 15px;
  background: #f4f3f3;
}

.category-nav-item {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.category-nav-item:hover {
  color: #ea7a2b;
}

.category-nav-item.active {
  color: #ea7a2b;
}

.category-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ea7a2b;
}

/* Featured Posts Section */
.category-featured-section {
  padding: 0 0 40px 0;
  background: #fff;
}

.category-featured-section .featured-content-wrapper {
  border-bottom: 1px solid #e9e7e7;
  padding-bottom: 40px;
}

.category-featured-section .row {
  align-items: flex-start;
  margin-top: 0;
}

/* Latest Posts Slider */
.latest-posts-slider {
  margin-bottom: 0;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.latest-posts-slider .owl-stage-outer {
  width: 100%;
  overflow: hidden !important;
  position: relative;
}

.latest-posts-slider .owl-stage {
  width: 100% !important;
}

.latest-posts-slider .owl-item {
  width: 100% !important;
  min-width: 100%;
  max-width: 100%;
}

.latest-posts-slider .owl-stage {
  display: flex;
}

.latest-posts-slider .owl-item {
  width: 100%;
  flex-shrink: 0;
}

.featured-post-card {
  background: #f4f3f3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  border-left: none;
  border-right: none;
}

.featured-post-image {
  width: 100%;
  height: 365px;
  overflow: hidden;
}

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

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

.featured-post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.featured-post-meta {
  margin-bottom: 0;
}

.post-date {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-date i {
  color: #ea7a2b;
}

.featured-post-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.featured-post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post-title a:hover {
  color: #ea7a2b;
}

.featured-post-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Latest Posts Slider Dots */
.latest-posts-slider .owl-dots {
  margin-top: 20px;
  text-align: center;
}

.latest-posts-slider .owl-dots .owl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ddd;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.latest-posts-slider .owl-dots .owl-dot.active {
  background: #f1af00;
  border-color: #f1af00;
}

.latest-posts-slider .owl-dots .owl-dot span {
  display: none !important;
}

/* Search Form */
.category-search-form {
  margin-bottom: 30px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: #fff;
}

.search-input:focus {
  outline: none;
  border-color: #ea7a2b;
}

.search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #ea7a2b;
  color: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-submit:hover {
  background: #d66a1f;
}

/* Popular Posts */
.latest-posts-slider {
}

.latest-posts-slider .owl-stage-outer,
.latest-posts-slider .owl-stage,
.latest-posts-slider .owl-item {
}

.latest-posts-slider .owl-item {
  display: flex;
}

/* Popular Posts */
.popular-posts-section {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Author Info Section */
.author-info-section {
  background: #f4f3f3;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.author-info-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f2264;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9e7e7;
}

.author-description {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.author-description p {
  margin-bottom: 10px;
}

.author-description p:last-child {
  margin-bottom: 0;
}

.popular-posts-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f2264;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  position: relative;
  border-bottom: 2px solid #e9e7e7;
}

.popular-posts-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 110px;
  height: 4px;
  background: #f1af00;
}

.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-post-item {
  background: #f4f3f3;
  padding: 15px;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popular-post-date {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.popular-post-date i {
  color: #ea7a2b;
  font-size: 14px;
}

.popular-post-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.popular-post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.popular-post-title a:hover {
  color: #ea7a2b;
}

/* Posts Grid */
.category-posts-section {
  padding: 0 0 60px;
  background: #fff;
}

/* Search page and service archive specific */
body.search .category-posts-section,
body.post-type-archive-service .category-posts-section {
  padding: 40px 0 60px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

.post-card-date {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-card-date i {
  color: #ea7a2b;
  font-size: 14px;
}

.post-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.post-card-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card-title a:hover {
  color: #ea7a2b;
}

.post-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #ea7a2b;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.post-card-link:hover {
  gap: 10px;
  color: #d66a1f;
}

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

.category-pagination .pagination,
.category-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.category-pagination .pagination li,
.category-pagination .nav-links > * {
  margin: 0;
  list-style: none;
  display: inline-block;
}

.category-pagination .pagination .page-numbers,
.category-pagination .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #f8f9fa;
  transition: all 0.3s ease;
  border: none;
}

.category-pagination .pagination .page-numbers:hover,
.category-pagination .pagination .page-numbers.current,
.category-pagination .nav-links .page-numbers:hover,
.category-pagination .nav-links .page-numbers.current {
  background: #ea7a2b;
  color: #fff;
}

.category-pagination .pagination .page-numbers.prev,
.category-pagination .pagination .page-numbers.next,
.category-pagination .nav-links .page-numbers.prev,
.category-pagination .nav-links .page-numbers.next {
  width: auto;
  padding: 0 15px;
}

/* Responsive */
@media (max-width: 991px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .featured-post-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .category-nav {
    gap: 20px;
  }

  .category-nav-item {
    font-size: 14px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-post-card .row {
    flex-direction: column;
  }

  .featured-post-image {
    height: 250px;
  }

  .popular-posts-section {
    padding: 0;
  }
}

