/**
 * Blog Templates Styles
 * Extracted from archive-blog.html and single-blog.html
 * 
 * @package kmtheme
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary: #2e438f;
    --bg-light: #f6f7f8;
    --bg-dark: #101922;
    --text-dark: #0d141b;
    --text-muted: #4e6797;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --emerald-600: #059669;
    --amber-600: #d97706;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --accent-blue: #0068ff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

}

/* ========================================
   Base Styles
   ======================================== */
.blog-page {
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-sans);
    transition: background-color 300ms, color 300ms;
}

.dark .blog-page {
    background: var(--bg-dark);
    color: var(--slate-50);
}

.blog-site-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.blog-main-content {
    flex: 1 1 0%;
    max-width: 1230px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-main-content ul {
    font-size: 13px;
    margin-top: -15px;
    padding: 0 0 0 25px;
}

/* ========================================
   Archive: Hero Section
   ======================================== */
.hero-section {
    margin-bottom: 3rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: row;
}

.dark .hero-card {
    background: var(--slate-900);
    border-color: var(--slate-800);
}

.hero-image {
    width: 60%;
    height: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover .hero-image {
    transform: scale(1.02);
}

.hero-content {
    width: 40%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(17, 115, 212, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 1rem;
    width: fit-content;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.dark .hero-title {
    color: #ffffff;
}

.hero-description {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

.dark .hero-description {
    color: var(--slate-400);
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-500);
    font-size: 0.875rem;
}

.meta-separator {
    margin: 0 0.5rem;
}

.meta-author {
    font-weight: 500;
    color: var(--slate-700);
}

.dark .meta-author {
    color: var(--slate-300);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary:hover {
    gap: 0.75rem;
    color: #ffffff;
}

/* ========================================
   Archive: Content Layout
   ======================================== */
.content-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.articles-column {
    flex: 1 1 0%;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ========================================
   Archive: Article Cards
   ======================================== */
.article-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}



.dark .article-card {
    background: var(--slate-900);
    border-color: var(--slate-800);
}

.article-image {
    height: 12rem;
    background-size: cover;
    background-position: center;
}

.article-body {
    padding: 1.25rem;
}

.article-tag {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.tag-primary {
    color: var(--primary);
}

.tag-emerald {
    color: var(--emerald-600);
}

.tag-amber {
    color: var(--amber-600);
}

.article-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.75rem;
}

.dark .article-title {
    color: #ffffff;
}

.article-excerpt {
    color: var(--slate-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.dark .article-excerpt {
    color: var(--slate-400);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--slate-500);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-badge {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* ========================================
   Archive: Pagination
   ======================================== */
.pagination {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-btn {
    margin: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-200);
    background: transparent;
    color: var(--slate-500);
    cursor: pointer;
    transition: background-color 300ms, color 300ms, border-color 300ms;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--slate-100);
}

.page-btn.page-number {
    color: var(--slate-600);
    font-weight: 500;
}

.page-btn.active,
.page-btn.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--slate-400);
}

.dark .page-btn {
    border-color: var(--slate-700);
    color: var(--slate-500);
}

.dark .page-btn:hover {
    background: var(--slate-800);
}

.dark .page-btn.page-number {
    color: var(--slate-400);
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    width: 360px;
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 20px;
    box-shadow: 0 4px 12px 0 rgba(28, 30, 34, .08);
    border: 1px solid #e2e8f0;
}

.register-form-widget .km-premium-form-wrapper {
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

.register-form-widget .km-fake-placeholder {
    position: absolute;
    left: 16px;
    top: 40%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.dark .sidebar-card {
    background: var(--slate-900);
    border-color: var(--slate-800);
}

.sidebar-title {
    font-size: 1.125rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hot-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
}

.hot-thumb {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background-size: cover;
    background-position: center;
}

.hot-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hot-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .hot-title {
    color: #ffffff;
}

.hot-item:hover .hot-title {
    color: var(--primary);
}

.hot-time {
    font-size: 12px;
    color: var(--slate-500);
}

/* ========================================
   Single: Breadcrumbs
   ======================================== */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.dark .breadcrumb-link {
    color: var(--gray-400);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 700;
}

.dark .breadcrumb-current {
    color: #ffffff;
}

/* ========================================
   Single: Article Header
   ======================================== */
.article-header {
    max-width: 800px;
    margin-bottom: 2.5rem;
}

.tag-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tag-badge {
    background: rgba(23, 84, 207, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.single-article-title {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
}

.dark .single-article-title {
    color: #ffffff;
}

.article-meta-single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e7ebf3;
    border-bottom: 1px solid #e7ebf3;
    padding: 1rem 0;
}

.dark .article-meta-single {
    border-color: var(--gray-800);
}

.author-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.author-block:hover {
    opacity: 0.8;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(23, 84, 207, 0.2);
}

.author-text {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0;
}

.dark .author-name {
    color: #ffffff;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.dark .author-role {
    color: var(--gray-400);
}

.meta-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dark .meta-details {
    color: var(--gray-400);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ========================================
   Single: Article Content
   ======================================== */
.article-main {
    flex: 1 1 0%;
    max-width: 800px;
}

.article-content {
    max-width: none;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.75;
}

.dark .article-content {
    color: var(--gray-300);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-hero {
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
}

.article-hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.article-content .article-caption {
    font-style: italic;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0;
    background: var(--gray-50);
    color: var(--gray-500);
    margin: 0;
}

.dark .article-caption {
    background: var(--gray-800);
}

.lead-paragraph {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.625;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.dark .lead-paragraph {
    color: #ffffff;
}

.highlight-box {
    background: rgba(23, 84, 207, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    margin-bottom: 2rem;
}

.highlight-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-list li+li {
    margin-top: 0.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.highlight-check {
    color: var(--primary);
    font-weight: 700;
    margin-top: 0.25rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    font-family: var(--font-display);
}

.dark .section-title {
    color: #ffffff;
}

.detail-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 2rem;
}

.detail-list li+li {
    margin-top: 0.5rem;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.grid-image {
    border-radius: 0.5rem;
    height: 16rem;
    width: 100%;
    object-fit: cover;
}

.tag-section {
    display: flex;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e7ebf3;
    flex-wrap: wrap;
}

.dark .tag-section {
    border-color: var(--gray-800);
}

.tag-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
}

.tag-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.tag-link:hover {
    text-decoration: underline;
}

/* ========================================
   Single: Sidebar Sticky
   ======================================== */
.sidebar-sticky {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: #ffffff;
    border: 1px solid #e7ebf3;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.dark .card {
    background: var(--bg-dark);
    border-color: var(--gray-800);
}

/* Profile Card */
.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 4px rgba(23, 84, 207, 0.1);
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem;
}

.dark .profile-name {
    color: #ffffff;
}

.profile-quote {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
}

.action-call {
    background: var(--primary);
}

.action-zalo {
    background: var(--accent-blue);
}

/* TOC Card */
.toc-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.dark .toc-title {
    border-color: var(--gray-800);
}

.toc-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-link {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: color 150ms ease;
    text-decoration: none;
}

.toc-link:hover {
    color: var(--primary);
}

.dark .toc-link {
    color: var(--gray-400);
}

.toc-link-active {
    color: var(--primary);
    font-weight: 700;
}

/* Related News Sidebar */
.related-news {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.dark .section-label {
    border-color: var(--gray-800);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.related-thumb {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.related-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.375;
    margin: 0;
    transition: color 150ms ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--text-dark);
}

.dark .related-title {
    color: #ffffff;
}

.related-item:hover .related-title {
    color: var(--primary);
}

/* ========================================
   Single: Related Articles Section
   ======================================== */
.related-section {
    background: #f0f2f7;
    padding: 10px;
    margin-top: 5rem;
}

.dark .related-section {
    background: #0b0e14;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.related-block {
    margin: 3rem 0;
}

.related-heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 2rem;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 150ms ease;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
}

.dark .related-card {
    background: var(--bg-dark);
}

.related-card-image {
    height: 12rem;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.related-card-body {
    padding: 1.25rem;
}

.related-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.related-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--text-dark);
}

.dark .related-card-title {
    color: #ffffff;
}

.related-card-date {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

/* ========================================
   Utility Classes
   ======================================== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    color: inherit;
    vertical-align: middle;
}

.icon::before {
    font-size: 16px;
    line-height: 1;
}

.icon-calendar::before,
.icon-arrow::before {
    font-size: 18px;
}

.icon-lg::before {
    font-size: 1.125rem;
}

.icon-sm::before {
    font-size: 0.875rem;
}

.clamp-2,
.clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-2 {
    -webkit-line-clamp: 2;
}

.clamp-3 {
    -webkit-line-clamp: 3;
}

/* ========================================
   Responsive Breakpoints
   ======================================== */
@media (max-width: 768px) {
    .blog-main-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-article-title {
        font-size: 24px;
    }

    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .hero-card {
        flex-direction: column;
    }

    .hero-image {
        width: 100%;
        height: 20rem;
    }

    .hero-content {
        width: 100%;
    }



    .related-container {
        padding: 0;
    }
}

/* ========================================
   Blog Home Page
   ======================================== */
.blog-hero {
    border-radius: 1rem;
    text-align: left;
}

.blog-hero-content {

    margin: 0 auto;
}

.blog-hero-title {
    color: #1e5bb8;
    font-size: 1.5rem;
    line-height: 1.875rem;
    letter-spacing: -.54px;
    font-weight: 700;
}

.blog-hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* Category Filter Tabs — text-only style */
.category-filter {
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0.4rem 0;
    flex-wrap: wrap;
}

/* Separator | */
.cat-sep {
    color: #cbd5e1;
    font-size: 13px;
    padding: 0 8px;
    user-select: none;
    line-height: 1;
}

/* Tab link — text only, no border, no background */
.category-tab {
    display: inline-block;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 150ms ease;
    line-height: 1.6;
}

.category-tab:hover {
    color: #2e438f;
    background: none;
    border: none;
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

.category-tab.active {
    color: #2e438f;
    font-weight: 700;
    background: none;
    border: none;
    box-shadow: none;
}

/* ========================================
   Featured + List Layout (Side by Side)
   ======================================== */
.featured-list-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Card (Left Side - 65-70%) */
.featured-card {
    /* background: #ffffff; */
    border-radius: 10px;
    overflow: hidden;
    /* border: 1px solid rgba(0, 0, 0, 0.06); */
}



.featured-image-link {
    display: block;
}

.featured-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.blog-ft-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 12px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-ft-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 200ms ease;
    font-size: 16px;
}

.blog-ft-title a:hover {
    color: var(--primary, #0066cc);
    text-decoration: underline;
}

.blog-ft-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-ft-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.blog-ft-meta .author-info {
    display: none;
}

.blog-ft-tag {
    color: var(--primary, #0066cc);
    text-decoration: none;
    font-weight: 500;
}

.blog-ft-tag:hover {
    text-decoration: underline;
}

.blog-ft-meta .meta-date::before {
    content: "•";
    color: #aab7ca;
    margin: 0 6px;
}

.blog-ft-meta .meta-date {
    color: #9ca3af;
}

/* Posts List (Right Side - 30-35%) */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    gap: 12px;
    /* background: #ffffff; */
    border-radius: 10px;
    /* border: 1px solid rgba(0, 0, 0, 0.06); */
    padding: 8px;
    transition: box-shadow 200ms ease;
}



.list-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 93px;
    border-radius: 8px;
    overflow: hidden;
}

.list-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-list-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-list-title a {
    font-size: 16px;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 200ms ease;
}

.blog-list-title a:hover {
    color: var(--primary, #0066cc);
    text-decoration: underline;
}

.blog-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.blog-list-tag {
    color: var(--primary, #0066cc);
    text-decoration: none;
    font-weight: 500;
}

.blog-list-tag:hover {
    text-decoration: underline;
}

.blog-list-meta .meta-date::before {
    content: "•";
    color: #aab7ca;
    margin: 0 6px;
}

.blog-list-meta .meta-date {
    color: #9ca3af;
}

/* Dark mode */
.dark .featured-card,
.dark .list-item {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .blog-ft-title a,
.dark .blog-list-title a {
    color: #f5f5f5;
}

.dark .blog-ft-title a:hover,
.dark .blog-list-title a:hover {
    color: var(--primary, #4d9fff);
}

.dark .blog-ft-excerpt {
    color: #aaa;
}

.dark .blog-ft-meta,
.dark .blog-list-meta {
    color: #999;
}

.dark .blog-ft-tag,
.dark .blog-list-tag {
    color: var(--primary, #4d9fff);
}

/* Responsive Layout */
@media (max-width: 767px) {
    .blog-ft-title {
        font-size: 18px;
    }

    .blog-list-title {
        font-size: 14px;
    }

    .featured-list-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   Additional List Section (Posts 5-8 on Page 1)
   ======================================== */
.additional-list-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #e2e8f0;
    padding: 1em 0;
}

.additional-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 10px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}



.additional-thumbnail {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.additional-image {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.additional-list-item:hover .additional-image {
    transform: scale(1.05);
}

.additional-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.additional-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.additional-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.additional-title a:hover {
    color: #0066cc;
}

.additional-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.additional-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.additional-tag {
    color: var(--primary, #0066cc);
    text-decoration: none;
    font-weight: 500;
}

.additional-tag:hover {
    text-decoration: underline;
}

.additional-meta .meta-date::before {
    content: "•";
    margin-right: 12px;
    color: #aab7ca;
}

/* ========================================
   List Only Section (Page 2+)
   ======================================== */
.list-only-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-only-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}



.list-only-thumbnail {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.list-only-image {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.list-only-item:hover .list-only-image {
    transform: scale(1.05);
}

.list-only-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-only-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.list-only-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.list-only-title a:hover {
    color: #0066cc;
}

.list-only-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-only-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.list-only-tag {
    color: var(--primary, #0066cc);
    text-decoration: none;
    font-weight: 500;
}

.list-only-tag:hover {
    text-decoration: underline;
}

.list-only-meta .meta-date::before {
    content: "•";
    margin-right: 12px;
    color: #aab7ca;
}

/* Responsive */
@media (max-width: 768px) {

    .additional-list-item,
    .list-only-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .additional-image,
    .list-only-image {
        height: 200px;
    }

    .related-card-date {
        font-size: 11px;
        color: var(--gray-500);
        margin: 0;
    }

    .related-card-title {
        font-size: 16px;

    }
}

/* Mobile Override (max-width: 1023px) */
@media (max-width: 1023px) {
    .content-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex: 1 1 auto;
        position: static;
        top: auto;
        align-self: auto;
    }
}

@media (max-width: 550px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}