﻿:root {
    --ng-blue: #2275bc;
    --ng-blue-dark: #1a5a94;
    --ng-blue-light: #e8f4fc;
    --ng-red: #e63946;
    --ng-red-dark: #c1121f;
    --ng-dark: #0f172a;
    --ng-gray-900: #1e293b;
    --ng-gray-700: #334155;
    --ng-gray-600: #475569;
    --ng-gray-500: #64748b;
    --ng-gray-300: #cbd5e1;
    --ng-gray-100: #f1f5f9;
    --ng-white: #ffffff;
    --ng-card-radius: 16px;
    --ng-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero */
.ng-blog-hero {
    background: linear-gradient(135deg, var(--ng-blue-dark) 0%, var(--ng-blue) 100%);
    color: var(--ng-white);
    padding: 80px 20px;
    text-align: center;
}

.ng-blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.ng-blog-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.ng-breadcrumbs {
    background: var(--ng-gray-100);
    padding: 20px;
    border-bottom: 1px solid var(--ng-gray-300);
}

.ng-breadcrumbs-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--ng-gray-600);
}

.ng-breadcrumbs a {
    color: var(--ng-blue);
    text-decoration: none;
}

.ng-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Main Container */
.ng-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Smart Grid - 3 columns */
.ng-posts-smart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .ng-posts-smart-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ng-posts-smart-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Card */
.ng-smart-card {
    background: var(--ng-white);
    border-radius: var(--ng-card-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--ng-transition);
    border: 1px solid var(--ng-gray-300);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ng-smart-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--ng-blue);
}

.ng-smart-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.ng-smart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ng-smart-card:hover .ng-smart-image img {
    transform: scale(1.05);
}

.ng-smart-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--ng-red);
    color: var(--ng-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--ng-transition);
}

.ng-smart-category:hover {
    background: var(--ng-red-dark);
}

.ng-smart-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ng-smart-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--ng-gray-500);
    margin-bottom: 12px;
}

.ng-smart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ng-gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.ng-smart-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.ng-smart-title a:hover {
    color: var(--ng-blue);
}

.ng-smart-excerpt {
    color: var(--ng-gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ng-smart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--ng-gray-100);
}

.ng-read-btn {
    color: var(--ng-blue);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--ng-transition);
}

.ng-read-btn:hover {
    color: var(--ng-blue-dark);
    gap: 10px;
}

.ng-read-time {
    font-size: 0.8rem;
    color: var(--ng-gray-500);
    background: var(--ng-gray-100);
    padding: 4px 10px;
    border-radius: 12px;
}

/* No Image Placeholder */
.ng-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ng-blue) 0%, var(--ng-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Pagination */
.ng-smart-pagination {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ng-smart-pagination a,
.ng-smart-pagination span {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--ng-transition);
}

.ng-smart-pagination a {
    background: var(--ng-white);
    color: var(--ng-blue);
    border: 2px solid var(--ng-gray-300);
}

.ng-smart-pagination a:hover {
    background: var(--ng-blue);
    color: var(--ng-white);
    border-color: var(--ng-blue);
}

.ng-smart-pagination .current {
    background: var(--ng-blue);
    color: var(--ng-white);
}

/* Empty State */
.ng-empty-blog {
    text-align: center;
    padding: 80px 20px;
    background: var(--ng-white);
    border-radius: var(--ng-card-radius);
    grid-column: 1 / -1;
}

.ng-empty-blog-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.ng-empty-blog h2 {
    color: var(--ng-gray-900);
    margin-bottom: 10px;
}

.ng-empty-blog p {
    color: var(--ng-gray-600);
}
	.ng-blog-hero {
    background: linear-gradient(135deg, var(--ng-blue-dark) 0%, var(--ng-blue) 100%);
    background-size: cover;
    background-position: center;
    color: var(--ng-white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

/* Overlay when featured image exists */
.ng-hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 3, 9, 0.95) 0%, rgba(43, 58, 103, 0.85) 100%);
    z-index: 1;
}

.ng-blog-hero h1,
.ng-blog-hero p {
    position: relative;
    z-index: 2;
}

