.tabbed-posts-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* Header */
.tabbed-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tabbed-posts-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.tabbed-posts-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tabbed-posts-view-all:hover {
  color: #2563eb;
}

.tabbed-posts-arrow {
  transition: transform 0.3s ease;
}

.tabbed-posts-view-all:hover .tabbed-posts-arrow {
  transform: translateX(4px);
}

/* Tabs Navigation */
.tabbed-posts-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.tabbed-posts-tab {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  padding: 12px 24px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  margin-right: -1px;
}

.tabbed-posts-tab:first-child {
  border-top-left-radius: 8px;
}

.tabbed-posts-tab:last-child {
  border-top-right-radius: 8px;
  margin-right: 0;
}

.tabbed-posts-tab.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  position: relative;
  z-index: 1;
}

.tabbed-posts-tab:hover:not(.active) {
  background: #f1f5f9;
  color: #374151;
}

/* Description */
.tabbed-posts-description {
  margin-bottom: 30px;
}

.tabbed-posts-description p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Tab Content */
.tabbed-posts-content {
  position: relative;
}

.tabbed-posts-tab-content {
  display: none;
}

.tabbed-posts-tab-content.active {
  display: block;
}

/* Posts Grid */
.tabbed-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Post Card */
.tabbed-posts-post {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tabbed-posts-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* Post Image */
.tabbed-posts-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.tabbed-posts-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tabbed-posts-post:hover .tabbed-posts-image img {
  transform: scale(1.05);
}

/* Post Content */
.tabbed-posts-post-content {
  padding: 20px;
}

/* Meta */
.tabbed-posts-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tabbed-posts-category {
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tabbed-posts-date {
  color: #9ca3af;
  font-size: 0.875rem;
  position: relative;
}

.tabbed-posts-date::before {
  content: "—";
  margin-right: 8px;
  color: #d1d5db;
}

/* Post Title */
.tabbed-posts-post-title {
  margin: 0 0 15px 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.tabbed-posts-post-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tabbed-posts-post-title a:hover {
  color: #3b82f6;
}

/* Excerpt */
.tabbed-posts-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Read More Button */
.tabbed-posts-read-more-wrapper {
  margin-top: auto;
}

.tabbed-posts-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tabbed-posts-read-more:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Icon Styling for Read More Button */
.tabbed-posts-read-more-icon {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.tabbed-posts-read-more-icon i,
.tabbed-posts-read-more-icon svg {
  width: 1em;
  height: 1em;
}

/* Icon Position Specific Styles */
.tabbed-posts-read-more.icon-position-before {
  flex-direction: row;
}

.tabbed-posts-read-more.icon-position-after {
  flex-direction: row;
}

/* Icon Animation on Hover */
.tabbed-posts-read-more:hover .tabbed-posts-read-more-icon {
  transform: translateX(4px);
}

.tabbed-posts-read-more.icon-position-before:hover .tabbed-posts-read-more-icon {
  transform: translateX(-4px);
}

/* Remove old arrow styles */
.tabbed-posts-arrow {
  transition: transform 0.3s ease;
}

.tabbed-posts-read-more .tabbed-posts-arrow {
  transition: transform 0.3s ease;
}

.tabbed-posts-read-more:hover .tabbed-posts-arrow {
  transform: translateX(4px);
}

/* No Posts */
.tabbed-posts-no-posts {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tabbed-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tabbed-posts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .tabbed-posts-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tabbed-posts-tab {
    padding: 10px 16px;
    font-size: 0.875rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-right: 0;
  }

  .tabbed-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .tabbed-posts-grid {
    grid-template-columns: 1fr;
  }

  .tabbed-posts-post-content {
    padding: 15px;
  }
}
