/* ========================================
   BLOGS CSS - News Magazine Style
   ======================================== */

/* === Variables === */
:root {
    --blog-text: #1a1a2e;
    --blog-text-light: #4a5568;
    --blog-text-muted: #718096;
    --blog-border: #e2e8f0;
    --blog-bg: #f7f8fc;
    --blog-white: #ffffff;
    --blog-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --blog-shadow-hover: 0 10px 40px rgba(0,0,0,0.12);
    --blog-radius: 8px;
    --blog-radius-lg: 16px;
}

/* === Page Header === */
.news-page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary1) 100%);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.news-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.news-page-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.news-page-header-content {
    position: relative;
    z-index: 1;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.news-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.news-breadcrumb a:hover {
    color: #fff;
}

.news-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.news-breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

.news-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-page-title i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.news-page-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

.news-page-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
}

.news-page-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.news-page-meta-item i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.news-page-meta-item.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 0.3rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

/* === Page Layout === */
.news-page {
    background: var(--blog-bg);
    min-height: 100vh;
    padding: 2rem 0 3rem;
}

/* === Hero Section - Featured Posts === */
.news-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.news-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
    min-height: 480px;
}

.news-hero-main {
    position: relative;
    border-radius: var(--blog-radius-lg);
    overflow: hidden;
    background: #000;
}

.news-hero-main-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.news-hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.5s ease;
}

.news-hero-main:hover .news-hero-main-image {
    transform: scale(1.05);
    opacity: 0.8;
}

.news-hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
}

.news-hero-main-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-hero-main-category:hover {
    background: var(--primary1);
    color: #fff;
}

.news-hero-main-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
    color: #fff;
}

.news-hero-main-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.news-hero-main-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Hero Side Posts */
.news-hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-hero-side-item {
    flex: 1;
    position: relative;
    border-radius: var(--blog-radius);
    overflow: hidden;
    background: #000;
}

.news-hero-side-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.news-hero-side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: all 0.4s ease;
}

.news-hero-side-item:hover .news-hero-side-image {
    transform: scale(1.08);
    opacity: 0.85;
}

.news-hero-side-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.news-hero-side-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    margin-bottom: 0.625rem;
    text-decoration: none;
}

.news-hero-side-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hero-side-meta {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* === Section Headers === */
.news-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--blog-text);
}

.news-section-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--blog-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.news-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.news-section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-section-link:hover {
    gap: 0.625rem;
    color: var(--primary1);
}

/* === News Grid === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* === News Card - Vertical === */
.news-card {
    background: var(--blog-white);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blog-shadow-hover);
}

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

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

.news-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-thumbnail {
    transform: scale(1.08);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 2.5rem;
}

.news-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    z-index: 2;
}

.news-card-featured {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 2;
}

.news-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--blog-text);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--blog-text-light);
    margin: 0 0 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--blog-border);
    margin-top: auto;
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-card-author-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blog-text);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--blog-text-muted);
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* === News Card - Horizontal === */
.news-card-horizontal {
    background: var(--blog-white);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: all 0.3s ease;
}

.news-card-horizontal:hover {
    box-shadow: var(--blog-shadow-hover);
}

.news-card-horizontal-link {
    display: grid;
    grid-template-columns: 280px 1fr;
    text-decoration: none;
    min-height: 180px;
}

.news-card-horizontal-image {
    position: relative;
    overflow: hidden;
}

.news-card-horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-card-horizontal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.news-card-horizontal-category {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.625rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 0.625rem;
}

.news-card-horizontal-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--blog-text);
    margin: 0 0 0.625rem;
    transition: color 0.2s ease;
}

.news-card-horizontal:hover .news-card-horizontal-title {
    color: var(--primary);
}

.news-card-horizontal-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--blog-text-light);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-horizontal-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--blog-text-muted);
}

.news-card-horizontal-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* === Sidebar === */
.news-sidebar {
    position: sticky;
    top: 100px;
}

/* Sidebar Widget */
.news-widget {
    background: var(--blog-white);
    border-radius: var(--blog-radius-lg);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--blog-border);
}

.news-widget-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.03) 100%);
    border-bottom: 1px solid var(--blog-border);
}

.news-widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.news-widget-body {
    padding: 1.25rem;
}

/* Search Widget */
.news-search-form {
    display: flex;
    gap: 0;
}

.news-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--blog-border);
    border-right: none;
    border-radius: var(--blog-radius) 0 0 var(--blog-radius);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    background: var(--blog-bg);
}

.news-search-input:focus {
    border-color: var(--primary);
    background: var(--blog-white);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.news-search-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary1));
    border: none;
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Categories Widget */
.news-categories-list {
    display: flex;
    flex-direction: column;
}

.news-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: var(--blog-radius);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.news-category-link:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.1);
    transform: translateX(4px);
}

.news-category-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary1));
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.news-category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blog-text);
    transition: color 0.2s ease;
}

.news-category-link:hover .news-category-name {
    color: var(--primary);
}

.news-category-link.active .news-category-name {
    color: #fff;
}

.news-category-link.active .news-category-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.news-category-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

/* Popular Posts Widget */
.news-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-popular-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem;
    border-radius: var(--blog-radius);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.news-popular-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.1);
    transform: translateX(4px);
}

.news-popular-number {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary1));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

.news-popular-content {
    flex: 1;
    min-width: 0;
}

.news-popular-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blog-text);
    line-height: 1.4;
    margin: 0 0 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-popular-item:hover .news-popular-title {
    color: var(--primary);
}

.news-popular-meta {
    font-size: 0.75rem;
    color: var(--blog-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Active Filters === */
.news-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blog-white);
    padding: 1rem 1.25rem;
    border-radius: var(--blog-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--blog-shadow);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.news-filters-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-filter-label {
    font-size: 0.875rem;
    color: var(--blog-text-muted);
}

.news-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.news-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--blog-bg);
    color: var(--blog-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--blog-radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-clear-btn:hover {
    background: #e2e8f0;
    color: var(--blog-text);
}

/* === Pagination === */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blog-white);
    padding: 1rem 1.25rem;
    border-radius: var(--blog-radius);
    margin-top: 2rem;
    box-shadow: var(--blog-shadow);
    flex-wrap: wrap;
    gap: 1rem;
}

.news-pagination-info {
    font-size: 0.875rem;
    color: var(--blog-text-muted);
}

/* === Empty State === */
.news-empty {
    background: var(--blog-white);
    border-radius: var(--blog-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--blog-shadow);
}

.news-empty-icon {
    font-size: 4rem;
    color: var(--blog-border);
    margin-bottom: 1.5rem;
}

.news-empty-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--blog-text);
    margin: 0 0 0.5rem;
}

.news-empty-desc {
    font-size: 1rem;
    color: var(--blog-text-muted);
    margin: 0 0 1.5rem;
}

.news-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--blog-radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-empty-btn:hover {
    background: var(--primary1);
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   BLOG DETAIL PAGE - Article Style
   ======================================== */

/* === Article Header === */
.article-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.article-header-content {
    max-width: 800px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.article-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-breadcrumb-separator {
    color: rgba(255,255,255,0.4);
    margin: 0 0.25rem;
}

.article-breadcrumb-current {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.article-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 1.25rem;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.article-author-info {
    display: flex;
    flex-direction: column;
}

.article-author-name {
    font-weight: 600;
    color: #fff;
}

.article-author-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* === Article Body === */
.article-container {
    background: var(--blog-white);
    border-radius: var(--blog-radius-lg);
    box-shadow: var(--blog-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-thumbnail {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-content-wrapper {
    padding: 2.5rem;
}

/* Excerpt */
.article-excerpt {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0.02));
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
}

.article-excerpt-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.article-excerpt p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--blog-text-light);
    margin: 0;
    font-style: italic;
}

/* Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--blog-text);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--blog-text);
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--blog-radius);
    margin: 2rem 0;
}

.article-content blockquote {
    background: var(--blog-bg);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--blog-text-light);
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--blog-radius);
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.article-content code {
    background: var(--blog-bg);
    color: #e11d48;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    text-decoration: none;
}

/* === Article Footer === */
.article-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
    margin-top: 2rem;
}

/* Tags */
.article-tags {
    margin-bottom: 2rem;
}

.article-tags-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 0.75rem;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--blog-bg);
    color: var(--blog-text-light);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tag:hover {
    background: var(--primary);
    color: #fff;
}

/* Share */
.article-share {
    margin-bottom: 2rem;
}

.article-share-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 0.75rem;
}

.article-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--blog-radius);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.article-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-share-btn.facebook { background: #1877f2; color: #fff; }
.article-share-btn.twitter { background: #1da1f2; color: #fff; }
.article-share-btn.linkedin { background: #0077b5; color: #fff; }
.article-share-btn.copy { background: var(--blog-text); color: #fff; }

/* Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.article-nav-item {
    padding: 1.25rem;
    background: var(--blog-bg);
    border-radius: var(--blog-radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-nav-item:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.article-nav-item.prev {
    border-left: 4px solid var(--primary);
}

.article-nav-item.next {
    border-right: 4px solid var(--primary);
    text-align: right;
}

.article-nav-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.article-nav-item.next .article-nav-label {
    justify-content: flex-end;
}

.article-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blog-text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Related Posts === */
.related-posts {
    margin-top: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* === Responsive === */
@media (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .news-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .news-hero-main {
        min-height: 350px;
    }
    
    .news-hero-side {
        flex-direction: row;
    }
    
    .news-hero-side-item {
        min-height: 200px;
    }
    
    .news-card-horizontal-link {
        grid-template-columns: 200px 1fr;
    }
    
    .news-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .news-hero {
        padding: 1.5rem 0;
    }
    
    .news-hero-main {
        min-height: 280px;
    }
    
    .news-hero-main-title {
        font-size: 1.5rem;
    }
    
    .news-hero-side {
        flex-direction: column;
    }
    
    .news-hero-side-item {
        min-height: 160px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card-horizontal-link {
        grid-template-columns: 1fr;
    }
    
    .news-card-horizontal-image {
        height: 180px;
    }
    
    .news-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .article-header {
        padding: 2rem 0;
    }
    
    .article-title {
        font-size: 1.625rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-content-wrapper {
        padding: 1.5rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
    
    .article-nav-item.next {
        border-right: none;
        border-left: 4px solid var(--primary);
        text-align: left;
    }
    
    .article-nav-item.next .article-nav-label {
        justify-content: flex-start;
    }
    
    .article-share-buttons {
        flex-direction: column;
    }
    
    .article-share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .news-page-header {
        padding: 1.5rem 0;
    }
    
    .news-page-title {
        font-size: 1.5rem;
    }
    
    .news-page-title i {
        font-size: 1.25rem;
    }
    
    .news-page-desc {
        font-size: 0.9rem;
    }
    
    .news-page-meta {
        gap: 0.75rem;
    }
    
    .news-page-meta-item {
        font-size: 0.8rem;
    }
}

/* ========================================
   DARK MODE - Blogs & News
   ======================================== */

/* === Dark Mode Variables Override === */
[data-theme="dark"] {
    --blog-text: #f1f5f9;
    --blog-text-light: #cbd5e1;
    --blog-text-muted: #94a3b8;
    --blog-border: #334155;
    --blog-bg: #0f172a;
    --blog-white: #1e293b;
    --blog-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --blog-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* === Page Header - Dark Mode === */
[data-theme="dark"] .news-page-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* === Hero Section - Dark Mode === */
[data-theme="dark"] .news-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* === News Page Background === */
[data-theme="dark"] .news-page {
    background: var(--blog-bg);
}

/* === Section Headers - Dark Mode === */
[data-theme="dark"] .news-section-header {
    border-bottom-color: var(--blog-border);
}

[data-theme="dark"] .news-section-title {
    color: var(--blog-text);
}

[data-theme="dark"] .news-section-link {
    color: var(--primary);
}

[data-theme="dark"] .news-section-link:hover {
    color: var(--primary1);
}

/* === News Card (Vertical) - Dark Mode === */
[data-theme="dark"] .news-card {
    background: var(--blog-white);
    box-shadow: var(--blog-shadow);
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .news-card:hover {
    box-shadow: var(--blog-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
}

[data-theme="dark"] .news-card-placeholder {
    background: linear-gradient(135deg, #374151, #4b5563);
}

[data-theme="dark"] .news-card-title {
    color: var(--blog-text);
}

[data-theme="dark"] .news-card:hover .news-card-title {
    color: var(--primary);
}

[data-theme="dark"] .news-card-excerpt {
    color: var(--blog-text-light);
}

[data-theme="dark"] .news-card-footer {
    border-top-color: var(--blog-border);
}

[data-theme="dark"] .news-card-author-name {
    color: var(--blog-text);
}

[data-theme="dark"] .news-card-meta {
    color: var(--blog-text-muted);
}

/* === News Card (Horizontal) - Dark Mode === */
[data-theme="dark"] .news-card-horizontal {
    background: var(--blog-white);
    box-shadow: var(--blog-shadow);
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .news-card-horizontal:hover {
    box-shadow: var(--blog-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
}

[data-theme="dark"] .news-card-horizontal-category {
    background: rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .news-card-horizontal-title {
    color: var(--blog-text);
}

[data-theme="dark"] .news-card-horizontal:hover .news-card-horizontal-title {
    color: var(--primary);
}

[data-theme="dark"] .news-card-horizontal-excerpt {
    color: var(--blog-text-light);
}

[data-theme="dark"] .news-card-horizontal-footer {
    color: var(--blog-text-muted);
}

/* === Sidebar Widgets - Dark Mode === */
[data-theme="dark"] .news-widget {
    background: var(--blog-white);
    box-shadow: var(--blog-shadow);
    border-color: var(--blog-border);
}

[data-theme="dark"] .news-widget-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-bottom-color: var(--blog-border);
}

[data-theme="dark"] .news-widget-title {
    color: var(--primary);
}

/* Search Widget - Dark Mode */
[data-theme="dark"] .news-search-input {
    background: #0f172a;
    border-color: var(--blog-border);
    color: var(--blog-text);
}

[data-theme="dark"] .news-search-input::placeholder {
    color: var(--blog-text-muted);
}

[data-theme="dark"] .news-search-input:focus {
    background: #1e293b;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Categories Widget - Dark Mode */
[data-theme="dark"] .news-category-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .news-category-name {
    color: var(--blog-text-light);
}

[data-theme="dark"] .news-category-link:hover .news-category-name {
    color: var(--primary);
}

[data-theme="dark"] .news-category-count {
    background: rgba(var(--primary-rgb), 0.2);
}

/* Popular Posts Widget - Dark Mode */
[data-theme="dark"] .news-popular-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .news-popular-title {
    color: var(--blog-text);
}

[data-theme="dark"] .news-popular-item:hover .news-popular-title {
    color: var(--primary);
}

[data-theme="dark"] .news-popular-meta {
    color: var(--blog-text-muted);
}

/* === Filters - Dark Mode === */
[data-theme="dark"] .news-filters {
    background: var(--blog-white);
    box-shadow: var(--blog-shadow);
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .news-filter-label {
    color: var(--blog-text-muted);
}

[data-theme="dark"] .news-filter-tag {
    background: rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .news-clear-btn {
    background: #0f172a;
    color: var(--blog-text-muted);
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .news-clear-btn:hover {
    background: #374151;
    color: var(--blog-text);
}

/* === Pagination - Dark Mode === */
[data-theme="dark"] .news-pagination {
    background: var(--blog-white);
    box-shadow: var(--blog-shadow);
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .news-pagination-info {
    color: var(--blog-text-muted);
}

/* === Empty State - Dark Mode === */
[data-theme="dark"] .news-empty {
    background: var(--blog-white);
    box-shadow: var(--blog-shadow);
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .news-empty-icon {
    color: #475569;
}

[data-theme="dark"] .news-empty-title {
    color: var(--blog-text);
}

[data-theme="dark"] .news-empty-desc {
    color: var(--blog-text-muted);
}

/* ========================================
   DARK MODE - Blog Detail / Article
   ======================================== */

/* === Article Header - Dark Mode === */
[data-theme="dark"] .article-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* === Article Container - Dark Mode === */
[data-theme="dark"] .article-container {
    background: var(--blog-white);
    box-shadow: var(--blog-shadow);
    border: 1px solid var(--blog-border);
}

/* === Article Excerpt - Dark Mode === */
[data-theme="dark"] .article-excerpt {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
}

[data-theme="dark"] .article-excerpt p {
    color: var(--blog-text-light);
}

/* === Article Content - Dark Mode === */
[data-theme="dark"] .article-content {
    color: var(--blog-text-light);
}

[data-theme="dark"] .article-content h1,
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .article-content h4,
[data-theme="dark"] .article-content h5,
[data-theme="dark"] .article-content h6 {
    color: var(--blog-text);
}

[data-theme="dark"] .article-content blockquote {
    background: #0f172a;
    color: var(--blog-text-light);
    border-left-color: var(--primary);
}

[data-theme="dark"] .article-content pre {
    background: #0f172a;
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .article-content code {
    background: #0f172a;
    color: #f472b6;
}

[data-theme="dark"] .article-content a {
    color: var(--primary);
}

/* === Article Footer - Dark Mode === */
[data-theme="dark"] .article-footer {
    border-top-color: var(--blog-border);
}

/* Tags - Dark Mode */
[data-theme="dark"] .article-tags-label {
    color: var(--blog-text);
}

[data-theme="dark"] .article-tag {
    background: #0f172a;
    color: var(--blog-text-light);
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .article-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Share - Dark Mode */
[data-theme="dark"] .article-share-label {
    color: var(--blog-text);
}

[data-theme="dark"] .article-share-btn.copy {
    background: #475569;
}

/* Navigation - Dark Mode */
[data-theme="dark"] .article-nav-item {
    background: #0f172a;
    border: 1px solid var(--blog-border);
}

[data-theme="dark"] .article-nav-item:hover {
    background: #374151;
    border-color: rgba(var(--primary-rgb), 0.3);
}

[data-theme="dark"] .article-nav-item.prev {
    border-left: 4px solid var(--primary);
}

[data-theme="dark"] .article-nav-item.next {
    border-right: 4px solid var(--primary);
}

[data-theme="dark"] .article-nav-title {
    color: var(--blog-text);
}

/* === Related Posts Section - Dark Mode === */
[data-theme="dark"] .related-posts .news-section-header {
    border-bottom-color: var(--blog-border);
}

[data-theme="dark"] .related-posts .news-section-title {
    color: var(--blog-text);
}
