/* ============================================
   TAG.CSS - COMPLETE v1.2
   Ultra Clean: No Wrappers, Flat Structure
   ============================================ */

/* ============================================
   TAG HEADER
   ============================================ */
.tag-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tag-breadcrumb {
    font-family: 'Manrope', sans-serif;
    font-size: 14px; color: #666;
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.tag-breadcrumb a { color: #555; text-decoration: none; transition: color 0.2s; }
.tag-breadcrumb a:hover { color: #d90000; }
.tag-breadcrumb .breadcrumb-separator { color: #999; font-size: 12px; }
.tag-breadcrumb .breadcrumb-current { color: #d90000; font-weight: 600; }

/* ✅ Title Row (Clean & Flat) */
.tag-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-title-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background-color: #d90000; border-radius: 10px; flex-shrink: 0;
}
.tag-title-icon svg { width: 28px; height: 28px; }

.tag-title {
    font-family: 'Manrope', sans-serif;
    font-size: 32px; font-weight: 800; color: #111;
    margin: 0; padding: 0; line-height: 1.2;
}

.tag-description {
    font-family: 'Manrope', sans-serif;
    font-size: 14px; color: #666; line-height: 1.6; margin: 0; max-width: 800px;
}

.tag-article-count {
    font-family: 'Manrope', sans-serif;
    display: inline-flex; align-items: center;
    padding: 8px 16px; background-color: #f5f5f5; border-radius: 20px;
    font-size: 14px; font-weight: 600; color: #111;
    white-space: nowrap; align-self: flex-start;
}

/* ============================================
   TAG ARTICLES LIST
   ============================================ */
.tag-articles-list { display: flex; flex-direction: column; gap: 40px; }

.tag-article-item {
    display: flex; gap: 24px; padding: 0;
    background-color: transparent; border: none; border-radius: 0;
    transition: transform 0.2s;
}
.tag-article-item:hover .tag-article-title a { color: #d90000; }

.tag-article-thumb {
    flex: 0 0 220px; width: 220px; height: 150px;
    overflow: hidden; border-radius: 10px; flex-shrink: 0; background-color: #f5f5f5;
}
.tag-article-thumb a { display: block; width: 100%; height: 100%; }
.tag-article-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: 10px; transition: transform 0.3s;
}
.tag-article-item:hover .tag-article-thumb img { transform: scale(1.05); }

.tag-article-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tag-article-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.tag-article-cat {
    font-family: 'Manrope', sans-serif;
    font-size: 12px; font-weight: 700; color: #d90000;
    text-transform: capitalize; letter-spacing: 0.3px;
}
.tag-article-cat a { color: #d90000; text-decoration: none; transition: color 0.2s; }
.tag-article-cat a:hover { color: #a80000; }

.tag-article-date {
    font-family: 'Manrope', sans-serif;
    font-size: 12px; color: #999; font-weight: 400;
}

.tag-article-title {
    font-family: 'Manrope', sans-serif;
    font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0; color: #111;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}
.tag-article-title a { color: #111; text-decoration: none; transition: color 0.2s; }

.tag-article-excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 15px; font-weight: 500; color: #555; line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}

.tag-article-author {
    font-family: 'Manrope', sans-serif;
    font-size: 13px; color: #999; margin-top: 4px;
}
.tag-article-author .author-label { font-weight: 500; }
.tag-article-author .author-name { font-weight: 600; color: #111; }

/* ============================================
   PAGINATION & NO POSTS
   ============================================ */
.tag-pagination { margin-top: 50px; padding-top: 30px; border-top: 1px solid #f0f0f0; }
.tag-pagination .pagination-links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tag-pagination .pagination-links .page-numbers {
    font-family: 'Manrope', sans-serif;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px;
    color: #111; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.tag-pagination .pagination-links .page-numbers:hover { background-color: #f5f5f5; border-color: #d90000; color: #d90000; }
.tag-pagination .pagination-links .page-numbers.current { background-color: #d90000; border-color: #d90000; color: #ffffff; }
.tag-pagination .pagination-links .pagination-arrow { font-size: 16px; font-weight: 700; }

.tag-no-posts { text-align: center; padding: 60px 20px; background-color: #ffffff; border: 1px solid #f0f0f0; border-radius: 12px; }
.tag-no-posts .no-posts-icon { margin-bottom: 20px; }
.tag-no-posts .no-posts-icon svg { width: 64px; height: 64px; }
.tag-no-posts .no-posts-title { font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800; color: #111; margin: 0 0 12px 0; }
.tag-no-posts .no-posts-text { font-family: 'Manrope', sans-serif; font-size: 15px; color: #666; margin: 0 0 24px 0; line-height: 1.6; }
.tag-no-posts .no-posts-back {
    font-family: 'Manrope', sans-serif;
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
    background-color: #d90000; color: #ffffff; text-decoration: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; transition: background-color 0.2s;
}
.tag-no-posts .no-posts-back:hover { background-color: #a80000; color: #ffffff; }
.tag-no-posts .no-posts-back svg { width: 16px; height: 16px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .tag-title { font-size: 26px; }
    .tag-article-item { flex-direction: column; gap: 16px; }
    .tag-article-thumb { flex: 0 0 auto; width: 100%; height: 220px; }
    .tag-article-title { font-size: 20px; }
}

@media (max-width: 600px) {
    .tag-title { font-size: 22px; }
    .tag-title-icon { width: 40px; height: 40px; }
    .tag-title-icon svg { width: 24px; height: 24px; }
    .tag-articles-list { gap: 30px; }
    .tag-article-item { padding: 0; gap: 16px; }
    .tag-article-thumb { height: 180px; }
    .tag-article-title { font-size: 18px; -webkit-line-clamp: 3; }
    .tag-article-excerpt { font-size: 14px; -webkit-line-clamp: 3; }
    .tag-pagination .pagination-links .page-numbers { min-width: 36px; height: 36px; font-size: 13px; }
}