/* Header Section */
.tag-header {
    background: #FF6B35;
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.tag-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tag-header h1::before {
    content: '#';
    opacity: 0.7;
    margin-right: 0.3rem;
}

.tag-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Blog Grid */
.blog-grid {
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.post-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-card-footer {
    padding: 0 1.5rem 1.5rem;
}

/* Read More - WCAG AA Contrast Compliant */
.read-more {
    color: #C75000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: #a34200;
    gap: 0.8rem;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #FF6B35;
}

.trending-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.trending-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.trending-post-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.trending-post-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.trending-post-content h4 a:hover {
    color: #FF6B35;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list a:hover {
    color: #FF6B35;
}

.category-count {
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Pagination - Modern Minimalist Style */
.pagination-wrapper {
    margin-top: 4rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    background: transparent;
    border: none;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pagination .page-link:hover {
    background: #FFF5F2;
    color: #FF6B35;
    transform: scale(1.05);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #ddd;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination .page-item.disabled .page-link:hover {
    background: transparent;
    transform: none;
}

.pagination .page-link svg {
    width: 16px;
    height: 16px;
}

/* Previous/Next text styling */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    padding: 0 1rem;
    font-weight: 600;
}

/* Dots for ellipsis */
.pagination .page-item .page-link[rel="..."] {
    pointer-events: none;
    font-weight: 700;
    letter-spacing: 2px;
}
