/* Tag Archive Header */
.tag-archive-header {
    background: linear-gradient(135deg, #111d31 0%, #273039 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
}

.tag-archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 29, 49, 0.8) 0%, rgba(39, 48, 57, 0.8) 100%);
    z-index: 1;
}

.tag-archive-header .container {
    position: relative;
    z-index: 2;
}

.tag-archive-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(189, 214, 83, 0.2);
    color: #bdd653;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    margin-bottom: 2rem;
}

.tag-badge i {
    font-size: 0.9rem;
}

.tag-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.tag-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tag-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.post-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-count i {
    color: #bdd653;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-date {
    color: #bdd653;
    font-weight: 500;
}

.blog-category {
    color: #6c757d;
    font-weight: 500;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.blog-title a {
    color: #273039;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #bdd653;
}

.blog-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-link {
    color: #273039;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.blog-link:hover {
    color: #bdd653;
    gap: 0.75rem;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a {
    background: white;
    color: #273039;
    border: 2px solid #e9ecef;
}

.pagination a:hover {
    background: #bdd653;
    color: white;
    border-color: #bdd653;
}

.pagination .current {
    background: #bdd653;
    color: white;
    border: 2px solid #bdd653;
}

/* No Posts Found */
.no-posts-found {
    padding: 4rem 0;
}

.no-posts-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.no-posts-found h2 {
    color: #273039;
    margin-bottom: 1rem;
}

.no-posts-found p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Post Tags Section - exact copy from single post */
.post-tags-section {
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 2rem 30px 0;
    border-top: 1px solid #e6e6e6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-tags-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #273039;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.post-tags-label i {
    color: #666;
    font-size: 0.9rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1;
}

.post-tag-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.post-tag-pill:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
}

/* CTA Section */
.tag-cta-section {
    background: #bdd653;
    color: #273039;
}

.tag-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tag-cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tag-title {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .tags-cloud {
        gap: 0.5rem;
    }
    
    .tag-pill {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
