/* ===========================================
   BLOG STYLES - Trigaicotsong.pro
   SEO-optimized Blog Categories
   =========================================== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #f8f5f0 0%, #e8e0d5 100%);
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.blog-hero-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.8rem;
    color: #2d3a2e;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    color: #5a6b5c;
    font-style: italic;
}

/* Blog Categories Section */
.blog-categories {
    padding: 60px 0;
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Category Card */
.category-card {
    display: block;
    background: #fff;
    border: 1px solid #e0d8cd;
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #4a7c59;
}

.category-card.featured {
    border-color: #4a7c59;
    background: linear-gradient(135deg, #f8faf8 0%, #e8f0e8 100%);
}

.category-card.featured::before {
    content: '⭐ Nổi bật';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4a7c59;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    color: #2d3a2e;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.category-topics {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.category-topics li {
    font-size: 0.85rem;
    color: #5a6b5c;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.category-topics li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4a7c59;
}

.category-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a7c59;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-cta i {
    transition: transform 0.3s ease;
}

.category-card:hover .category-cta i {
    transform: translateX(5px);
}

/* Featured Posts Section */
.featured-posts {
    padding: 60px 0;
    background: #f8f5f0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.post-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(74, 124, 89, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-content h3 a {
    color: #2d3a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: #4a7c59;
}

.post-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #888;
}

.post-meta i {
    margin-right: 5px;
    color: #4a7c59;
}

.posts-note {
    text-align: center;
    margin-top: 30px;
    color: #888;
    font-size: 0.9rem;
}

/* SEO Content Section */
.seo-content {
    padding: 40px 0;
    background: #fff;
}

.seo-content h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: #2d3a2e;
    text-align: center;
    margin-bottom: 25px;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.keyword-tags span {
    background: #f5f0e8;
    color: #5a6b5c;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    border: 1px solid #e0d8cd;
    transition: all 0.3s ease;
}

.keyword-tags span:hover {
    background: #4a7c59;
    color: #fff;
    border-color: #4a7c59;
}

/* Category Page Styles */
.category-hero {
    background: linear-gradient(135deg, #f8f5f0 0%, #e8e0d5 100%);
    padding: 80px 0 50px;
    text-align: center;
    margin-top: 70px;
}

.category-hero-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-hero-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: #2d3a2e;
    margin-bottom: 15px;
}

.category-hero-desc {
    font-size: 1.1rem;
    color: #5a6b5c;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #e0d8cd;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-list a {
    color: #4a7c59;
    text-decoration: none;
}

.breadcrumb-list span {
    color: #888;
}

.breadcrumb-list i {
    color: #ccc;
    font-size: 0.7rem;
}

/* Article List */
.article-list {
    padding: 50px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0d8cd;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #4a7c59;
}

.article-image {
    width: 200px;
    min-height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.article-body h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-body h3 a {
    color: #2d3a2e;
    text-decoration: none;
}

.article-body h3 a:hover {
    color: #4a7c59;
}

.article-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
}

/* Sidebar */
.blog-sidebar {
    background: #f8f5f0;
    padding: 25px;
    border-radius: 12px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h4 {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: #2d3a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a7c59;
}

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

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5a6b5c;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-links a:hover {
    background: #fff;
    color: #4a7c59;
}

.sidebar-links a.active {
    background: #4a7c59;
    color: #fff;
}

/* Coming Soon Placeholder */
.coming-soon {
    text-align: center;
    padding: 80px 20px;
    background: #f8f5f0;
    border-radius: 12px;
    margin: 30px 0;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.coming-soon h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    color: #2d3a2e;
    margin-bottom: 15px;
}

.coming-soon p {
    color: #666;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Back to Blog Link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a7c59;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    color: #2d3a2e;
}

.back-to-blog i {
    transition: transform 0.3s ease;
}

.back-to-blog:hover i {
    transform: translateX(-5px);
}

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

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 180px;
        min-height: unset;
    }
    
    .category-hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 1.6rem;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .keyword-tags span {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
