/* Estilos para as tabs de categorias */
.posts-list-container {
  margin-top: -50px;
  z-index: 10;
  position: relative;
}

.posts-categories-tabs {
  margin-bottom: 0;
}

.posts-categories-tabs .categories-tabs {
  display: flex;
  gap: 0;
  border-radius: 8px;
  padding: 4px;
  overflow-x: auto;
  margin-left: 110px;
}

@media screen and (max-width: 768px) {
  .posts-categories-tabs .categories-tabs {
    margin-left: 16px;
  }
}

.posts-categories-tabs .category-tab {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 20px !important;
  color: #ffffff50 !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.posts-categories-tabs .category-tab:hover {
  color: #ecf0f1;
  background: rgba(255, 255, 255, 0.1);
}

.posts-categories-tabs .category-tab.active {
  color: var(--e-global-color-accent) !important;
}

.posts-categories-tabs .category-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--e-global-color-accent);
}

.category-name {
  font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
  .posts-categories-tabs .categories-tabs {
    padding: 2px;
  }

  .posts-categories-tabs .category-tab {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 100px;
  }
}

/* Loading e estados de erro */
.loading,
.error,
.no-posts {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
  font-style: italic;
}

.error {
  color: #e74c3c;
}

/* Melhorias no Swiper */
.swiper.posts-list {
  margin-top: 1rem;
}

.posts-list .post-item {
  background: #FFFFFF;
  padding: 20px;
  border-radius: 20px;
  left: 0;
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  font-family: var(--e-global-typography-text-font-family);
  border: 1px solid transparent;
}

.posts-list .post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--e-global-color-accent);
}

.posts-list .post-item .post-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.posts-list .post-item h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: #000000;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.posts-list .post-item:hover h2 {
  color: var(--e-global-color-accent);
}

.posts-list .post-item h2 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.posts-list .post-item h2 a:hover {
  color: #e67e22;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.post-meta span {
  display: flex;
  align-items: center;
}

.post-excerpt p {
  margin: 0;
  color: #5a6c7d;
  line-height: 1.6;
}

.excerpt-two-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em; /* 2 linhas * 1.4 line-height */
}

.post-item .read-more {
  color: var(--e-global-color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: 1rem;
  display: inline-block;
}

.post-item .read-more:hover {
  color: #e67e22;
}

.container-post {
  max-width: 1296px;
  margin: 0 auto;
  margin-top: 32px;
  font-family: var(--e-global-typography-text-font-family);
}

.container-post .breadcrumbs {
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 2rem;
  font-weight: 300;
}

.container-post .breadcrumbs a {
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.container-post .breadcrumbs a:hover {
  color: var(--e-global-color-accent);
}

.container-post .breadcrumbs .current-page {
  color: var(--e-global-color-accent);
}

.post-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container-post .post-header h1 {
  font-size: 40px;
  font-weight: 400;
  color: #FFFFFF;
}

.container-post .post-header .post-meta {
  display: flex;
  align-items: center;
  font-size: 16px;
  width: fit-content;
  gap: 24px;
  font-weight: 300;
  border-radius: 20px;
  color: #FFFFFF;
  padding: 20px 14px;
}

.post-meta .author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.container-post .post-header .post-meta .author-info-container {
  display: flex;
  gap: 24px;
  align-items: center;
}

.container-post .post-header .post-meta .author {
  display: flex;
  align-items: center;
  gap: 0rem;
  font-weight: 300;
}

.container-post .post-header .post-meta .author-name {
  width: 100%;
  display: flex;
  gap: 4px;
}

.container-post .post-header .post-meta .author-name strong {
  color: var(--e-global-color-accent);
  font-weight: 700;
}

.container-post .post-header .post-meta .socials {
  display: flex;
  gap: 8px;
}

.container-post .post-header .post-meta .socials a {
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
}

.container-post .post-header .post-meta .socials a:hover {
  background: var(--e-global-color-accent);
  color: #FFFFFF;
}


.container-post .post-header .post-meta .date {
  font-weight: 300;
}

.container-post .post-header .post-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
}

@media screen and (max-width: 1290px) {
  .container-post {
    padding: 0 24px;
  }
}

@media screen and (max-width: 768px) {
  .container-post {
    padding: 0 24px;
  }

  .container-post .post-header .post-meta {
    width: 100%;
  }

  .container-post .post-header .post-meta .author-info-container {
    flex-direction: column;
  }
  
  .container-post .post-header h1 {
    font-size: 32px;
  }

  .container-post .post-header .post-meta {
    font-size: 14px;
  }
}