/**
 * Blog Page Styles
 *
 * @package Worxogo
 * @since 1.0.0
 */

/* Blog Page Layout */
.worxogo-blog-page {
  width: 100%;
}

.worxogo-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.worxogo-blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.worxogo-blog-title {
  color: #212121;
  font-family: "Albert Sans", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  margin-bottom: 20px;
}

.worxogo-blog-description {
  color: #666666;
  font-family: "Albert Sans", sans-serif;
  font-size: 18px;
  line-height: 160%;
  max-width: 600px;
  margin: 0 auto;
}

.worxogo-blog-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.worxogo-blog-filter {
  margin-bottom: 132px;
}

/* Search Filter Widget Styles - Using existing widget styles */

.worxogo-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  transition: all 0.3s ease;
}

.worxogo-blog-item {
  background: #ffffff;
  border-radius: 8px;
  border-style: solid;
  border-color: #d2d2d0;
  border-width: 1px;
  padding: 32px;
  display: flex !important;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  min-width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.worxogo-blog-item.worxogo-blog-item-hidden {
  display: none !important;
}

.worxogo-blog-item-image {
  background: #d9d9d9;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  object-fit: cover;
  height: 200px;
  width: 100%;
  border-radius: 8px;
}

.worxogo-blog-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.worxogo-blog-item-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1;
  position: relative;
}

.worxogo-blog-item-category {
  color: #4000a9;
  text-align: center;
  font-family: "Albert Sans", sans-serif;
  font-size: 20px;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.worxogo-blog-item-title {
  color: #212121;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 20px;
  line-height: 60% !important;
  letter-spacing: -0.02em;
  font-weight: 600;
  position: relative;
  align-self: stretch;
  margin: 0;
}

.worxogo-blog-item-title a {
  color: #212121;
  text-decoration: none;
  font-family: "Albert Sans", sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 20px !important;
}

.worxogo-blog-item-title a:hover {
  color: #4000a9;
}

.worxogo-blog-item-date {
  color: #4c4c4c;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 20px;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  margin-bottom: 0;
}

.worxogo-blog-item-excerpt {
  color: #666666;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 20px;
  line-height: 160%;
  letter-spacing: -0.01em;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  margin-top: 8px;
  margin-bottom: auto;
}

.worxogo-blog-item-button {
  border-radius: 60px;
  border-style: solid;
  border-color: #323232;
  border-width: 1px;
  padding: 20px 40px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 48px;
  min-width: 100px;
  position: relative;
  color: #323232;
  text-align: center;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.worxogo-blog-item-button:hover {
  background: #323232;
  color: #ffffff !important;
}

.worxogo-blog-item-button:hover .worxogo-blog-item-button-icon img {
  filter: brightness(0) invert(1);
}

.worxogo-blog-item-button-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.worxogo-blog-item-button-icon img {
  height: auto;
  position: absolute;
  left: 0px;
  top: 5.16px;
  overflow: visible;
  width: 100%;
  object-fit: contain;
}

/* Pagination */
.worxogo-blog-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.worxogo-blog-pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.worxogo-blog-pagination a,
.worxogo-blog-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d2d2d0;
  border-radius: 4px;
  color: #323232;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.worxogo-blog-pagination a:hover {
  background: #4000a9;
  color: #ffffff;
  border-color: #4000a9;
}

.worxogo-blog-pagination .current {
  background: #4000a9;
  color: #ffffff;
  border-color: #4000a9;
}

/* No Posts */
.worxogo-blog-no-posts {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #d2d2d0;
}

.worxogo-blog-no-posts h3 {
  color: #212121;
  font-family: "Albert Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.worxogo-blog-no-posts p {
  color: #666666;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 160%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .worxogo-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .worxogo-blog-page {
    padding: 20px 0;
  }

  .worxogo-blog-filter {
    margin-bottom: 80px;
  }

  .worxogo-blog-title {
    font-size: 36px;
  }

  .worxogo-blog-description {
    font-size: 16px;
  }

  .worxogo-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .worxogo-blog-item {
    padding: 24px;
    gap: 16px;
  }

  .worxogo-blog-item-image {
    height: 200px;
  }

  .worxogo-blog-item-category {
    font-size: 18px;
    width: 100%;
  }

  .worxogo-blog-item-title,
  .worxogo-blog-item-date {
    font-size: 18px;
  }

  .worxogo-blog-item-excerpt {
    font-size: 13px;
    margin-top: 6px;
  }

  .worxogo-blog-item-button {
    padding: 16px 32px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .worxogo-blog-page {
    padding: 40px 0;
  }

  .worxogo-blog-filter {
    margin-bottom: 60px;
  }

  .worxogo-blog-title {
    font-size: 28px;
  }

  .worxogo-blog-item {
    padding: 20px;
  }

  .worxogo-blog-item-image {
    height: 180px;
  }

  .worxogo-blog-item-category {
    font-size: 16px;
  }

  .worxogo-blog-item-title,
  .worxogo-blog-item-date {
    font-size: 16px;
  }

  .worxogo-blog-item-excerpt {
    font-size: 12px;
    margin-top: 4px;
  }

  .worxogo-blog-item-button {
    padding: 14px 28px;
    font-size: 14px;
    width: 100%;
  }
}

/* Single Post Styles */
.worxogo-single-post {
  padding: 80px 0;
  background: transparent;
  z-index: 3 !important;
}

.worxogo-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.worxogo-single-article {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #d2d2d0;
  padding: 40px;
  margin-bottom: 40px;
}

.worxogo-single-header {
  margin-bottom: 40px;
}

.worxogo-single-category {
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.worxogo-single-title {
  color: #212121;
  font-family: "Albert Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 120%;
  margin-bottom: 20px;
}

.worxogo-single-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.worxogo-single-date,
.worxogo-single-author {
  color: #666666;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.worxogo-single-featured-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

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

.worxogo-single-body {
  color: #323232;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 180%;
  margin-bottom: 40px;
}

.worxogo-single-body h2,
.worxogo-single-body h3,
.worxogo-single-body h4 {
  color: #212121;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.worxogo-single-body h2 {
  font-size: 28px;
}

.worxogo-single-body h3 {
  font-size: 24px;
}

.worxogo-single-body h4 {
  font-size: 20px;
}

.worxogo-single-body p {
  margin-bottom: 20px;
}

.worxogo-single-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid #d2d2d0;
}

.worxogo-single-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.worxogo-single-tags-label {
  color: #666666;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.worxogo-single-tag {
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #4000a9;
  border-radius: 4px;
  padding: 4px 8px;
  transition: all 0.3s ease;
}

.worxogo-single-tag:hover {
  background: #4000a9;
  color: #ffffff;
}

.worxogo-single-share {
  display: flex;
  gap: 12px;
  align-items: center;
}

.worxogo-single-share-label {
  color: #666666;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.worxogo-single-share-link {
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.worxogo-single-share-link:hover {
  color: #290074;
}

/* Related Posts */
.worxogo-single-related {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
}

.worxogo-single-related-title {
  color: #212121;
  font-family: "Albert Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.worxogo-single-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.worxogo-single-related-item {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #d2d2d0;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.worxogo-single-related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.worxogo-single-related-image {
  width: 100%;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.worxogo-single-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.worxogo-single-related-title-item {
  margin: 0 0 8px 0;
  font-size: 16px;
  line-height: 130%;
}

.worxogo-single-related-title-item a {
  color: #212121;
  text-decoration: none;
  font-family: "Albert Sans", sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
}

.worxogo-single-related-title-item a:hover {
  color: #4000a9;
}

.worxogo-single-related-date {
  color: #666666;
  font-family: "Albert Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

/* Sidebar */
.worxogo-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.worxogo-sidebar-widget {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
}

.worxogo-sidebar-widget-title {
  color: #212121;
  font-family: "Albert Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.worxogo-sidebar-search {
  display: flex;
  gap: 8px;
}

.worxogo-sidebar-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d2d2d0;
  border-radius: 4px;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.worxogo-sidebar-search-input:focus {
  outline: none;
  border-color: #4000a9;
}

.worxogo-sidebar-search-button {
  background: #4000a9;
  border: none;
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.worxogo-sidebar-search-button:hover {
  background: #290074;
}

.worxogo-sidebar-search-button img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.worxogo-sidebar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.worxogo-sidebar-category {
  margin-bottom: 8px;
}

.worxogo-sidebar-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #323232;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  transition: color 0.3s ease;
}

.worxogo-sidebar-category-link:hover {
  color: #4000a9;
}

.worxogo-sidebar-category-count {
  background: #e9ecef;
  color: #666666;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 12px;
}

.worxogo-sidebar-recent {
  list-style: none;
  margin: 0;
  padding: 0;
}

.worxogo-sidebar-recent-item {
  margin-bottom: 16px;
}

.worxogo-sidebar-recent-link {
  color: #323232;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 140%;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.worxogo-sidebar-recent-link:hover {
  color: #4000a9;
}

.worxogo-sidebar-recent-date {
  color: #666666;
  font-family: "Albert Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.worxogo-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worxogo-sidebar-tag {
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #4000a9;
  border-radius: 4px;
  padding: 4px 8px;
  transition: all 0.3s ease;
}

.worxogo-sidebar-tag:hover {
  background: #4000a9;
  color: #ffffff;
}

/* Comments */
.worxogo-single-comments {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 40px;
}

/* Responsive Design for Single Post */
@media (max-width: 1024px) {
  .worxogo-single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .worxogo-single-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .worxogo-single-post {
    padding: 60px 0;
  }

  .worxogo-single-article {
    padding: 24px;
  }

  .worxogo-single-title {
    font-size: 28px;
  }

  .worxogo-single-featured-image {
    height: 250px;
  }

  .worxogo-single-footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .worxogo-single-related {
    padding: 24px;
  }

  .worxogo-single-related-grid {
    grid-template-columns: 1fr;
  }

  .worxogo-single-comments {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  .worxogo-single-post {
    padding: 40px 0;
  }

  .worxogo-single-article {
    padding: 20px;
  }

  .worxogo-single-title {
    font-size: 24px;
  }

  .worxogo-single-featured-image {
    height: 200px;
  }

  .worxogo-single-meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
