/* ==========================================================================
   BLOG ARCHIVE V2 - PREMIUM BRANDING
   ========================================================================== */

.blog-archive-v2 {
    background: #fdfdfd;
}

/* Hero Section */
.blog-archive-v2__hero {
    position: relative;
    background: #000c1f;
    /* Dark brand blue base */
    color: var(--color-white);
    padding: var(--space-5) 0;
    overflow: hidden;
    text-align: center;
}

@media (min-width: 1024px) {
    .blog-archive-v2__hero {
        padding: 6rem 0;
        text-align: left;
    }
}

.blog-archive-v2__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.blog-archive-v2__hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-archive-v2__hero-desc {
    font-size: 1.2rem;
    opacity: 0.85;
    line-height: 1.6;
}

.blog-archive-v2__breadcrumbs {
    font-size: 0.9rem;
    opacity: 0.7;
}

.blog-archive-v2__breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.blog-archive-v2__hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 102, 0, 0.15), transparent 40%);
    z-index: 1;
}

/* Category Filters - Modern Tab Style */
.blog-archive-v2__filters {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.blog-archive-v2__category-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-archive-v2__category-bar::before {
    content: "Chuyên mục:";
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-right: 15px;
    letter-spacing: 1px;
}

.category-pill {
    white-space: nowrap;
    padding: 6px 18px;
    background: transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.category-pill:hover {
    background: #f1f3f5;
    color: var(--color-primary);
}

.category-pill.active {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.25);
}

/* Blog Grid V2 - Denser */
.blog-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Post Card V2 - Compact & Brighter */
.post-card-v2 {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.post-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 102, 0, 0.15);
}

.post-card-v2__image-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card-v2__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card-v2:hover .post-card-v2__image {
    transform: scale(1.08);
}

.post-card-v2__category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffae00;
    /* Default Orange */
    color: var(--color-white);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Category Specific Colors */
.cat-tiep-thi {
    background: #ff6600 !important;
}

/* Marketing Orange */
.cat-bao-bi {
    background: #0056b3 !important;
}

/* Packaging Blue */
.cat-in-an {
    background: #28a745 !important;
}

/* Printing Green */
.cat-thiet-ke {
    background: #6f42c1 !important;
}

/* Design Purple */
.cat-tin-tuc {
    background: #17a2b8 !important;
}

/* News Cyan */
.cat-xu-huong {
    background: #e83e8c !important;
}

/* Trends Pink */
.cat-van-phong {
    background: #fd7e14 !important;
}

/* Office Bright Orange */

.post-card-v2__body {
    padding: 1.5rem;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.post-card-v2__meta {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card-v2__meta-divider {
    opacity: 0.4;
}

.post-card-v2__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.post-card-v2__title a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-v2__title a:hover {
    color: var(--color-primary);
}

.post-card-v2__excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    min-height: 2.7em;
    /* approx 2 lines to keep height consistent even with less content */
}

.post-card-v2__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f5;
}

.post-card-v2__readmore {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.post-card-v2:hover .post-card-v2__readmore {
    gap: 10px;
}

/* Featured Post Horizontal Style */
.post-card-v2--featured {
    border: 1px solid rgba(255, 102, 0, 0.15);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.05);
}

@media (min-width: 1024px) {
    .post-card-v2--featured {
        flex-direction: row;
        min-height: 380px;
    }
    
    .post-card-v2--featured .post-card-v2__image-container {
        width: 50%;
        aspect-ratio: auto;
    }
    
    .post-card-v2--featured .post-card-v2__body {
        width: 50%;
        padding: 2.5rem;
        justify-content: center;
    }
    
    .post-card-v2--featured .post-card-v2__title {
        font-size: 1.6rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-top: 0.5rem;
    }
    
    .post-card-v2--featured .post-card-v2__excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        min-height: auto;
        margin-bottom: 1.5rem;
    }
}

/* Pagination V2 */
.blog-pagination-v2 ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.blog-pagination-v2 .page-numbers {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.blog-pagination-v2 .page-numbers:hover,
.blog-pagination-v2 .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

/* Common Icons */
.u-icon-clock::before {
    content: '⏱';
}

.u-icon-arrow-right-short::before {
    content: '→';
}


/* Keep existing Single Post Styles below */

/* Advanced Single Post Layout */
.container--wide {
    max-width: 1300px;
    margin: 0 auto;
    width: 94%;
}

.post-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    /* Fixes sticky sidebar by not stretching the sidebar column */
}

@media (min-width: 1024px) {
    .post-layout-wrapper {
        grid-template-columns: 1fr 320px;
    }
}

.post-entry-card {
    background: var(--color-bg-surface);
    padding: var(--space-3);
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
    .post-entry-card {
        padding: var(--space-5);
    }
}

.post-header-internal {
    text-align: left;
    border-left: 5px solid var(--color-primary);
    padding-left: 1.5rem;
}

.post-title-internal {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-secondary);
    margin: 0.5rem 0 0;
}

.post-category-tag {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.post-breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
}

.post-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: var(--color-primary);
}

.post-breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.post-breadcrumb .current {
    opacity: 0.6;
    display: inline-block;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.post-navigation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.nav-btn:hover {
    background: var(--color-bg-surface);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-next {
    text-align: right;
}

.btn-primary-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Sidebar Styles */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 160px;
    z-index: 10;
}

.sidebar-widget {
    background: var(--color-bg-surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--color-primary);
}

.related-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.related-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

.related-title a {
    color: var(--color-text-main);
    text-decoration: none;
}



.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.8rem;
}

.sidebar-menu a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    padding-left: 18px;
}

/* Content Styles - Balanced & Professional */
.entry-content {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-text-main);
}

.entry-content p {
    margin-bottom: 1.3rem;
}

/* Constrain content headers - Hide H1 in content to avoid duplicates with Page Title */
.entry-content h1 {
    display: none;
}

.entry-content h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--color-text-main);
}

.entry-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.8rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    line-height: 1.3;
    font-weight: 800;
}

/* Hierarchical Lists */
.entry-content ul,
.entry-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    list-style-type: circle;
    /* Sub-level marks */
}

.img-responsive {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    /* Constrain featured image height */
    object-fit: cover;
    border-radius: 12px;
}

/* Constrain all images in content */
.entry-content img {
    max-width: 100%;
    height: auto;
    max-height: 700px;
    border-radius: 12px;
    margin: 3rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}