/* Improved Category Page Design */
.category-page {
    min-height: 100vh;
    background: #fafafa;
}

/* Hero Section - Better Spacing */
.category-hero {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 2.5rem 0;
    margin-bottom: 0;
}

.category-hero .container {
    max-width: 1280px;
}

.category-icon-mini {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 16px rgba(192, 139, 45, 0.25);
    transition: all 0.3s ease;
}

.category-icon-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(192, 139, 45, 0.35);
}

.category-title {
    color: #1e293b;
    font-weight: 800;
    margin: 0;
}

/* Stats - Better Spacing */
.stat-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: rgba(192, 139, 45, 0.3);
}

.stat-mini i {
    font-size: 1.125rem;
}

.stat-mini-number {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.125rem;
}

.stat-mini-label {
    color: #64748b;
    font-weight: 500;
}

/* Breadcrumb - Better Spacing */
.breadcrumb-compact {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.text-primary {
    color: #C08B2D !important;
}

/* Main Content - Better Margins */
.category-page .container {
    max-width: 1280px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Section Header - Improved */
.section-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-title-simple {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    position: relative;
    padding-right: 1rem;
}

.section-title-simple::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, #C08B2D, #B22B2B);
    border-radius: 10px;
}

.articles-count {
    font-size: 0.9rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

/* Articles Grid - Better Spacing */
.articles-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* News Card - Improved Design */
.news-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(192, 139, 45, 0.15);
    border-color: rgba(192, 139, 45, 0.3);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image - Better Proportions */
.news-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-modern:hover .news-image {
    transform: scale(1.08);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

/* Badges - Better Design */
.news-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.badge-mini {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.badge-mini:hover {
    transform: scale(1.1);
}

.badge-mini.badge-breaking {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

.badge-mini.badge-featured {
    background: rgba(245, 158, 11, 0.95);
    color: white;
}

/* Content Area - Better Spacing */
.news-content-modern {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Date Badge - Improved */
.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.4rem 0.875rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    width: fit-content;
    border: 1px solid #e2e8f0;
}

.news-date i {
    font-size: 0.9rem;
    color: #C08B2D;
}

/* Title - Better Typography */
.news-title-modern {
    font-size: 1.175rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    flex: 1;
}

.news-card-modern:hover .news-title-modern {
    color: #C08B2D;
}

/* Excerpt - Better Spacing */
.news-excerpt-modern {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer - Improved */
.news-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.news-meta-item i {
    color: #cbd5e1;
    font-size: 1rem;
}

/* Pagination - Better Spacing */
.pagination-section {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

/* Empty State - Improved */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 3rem 0;
}

.empty-icon {
    font-size: 6rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.empty-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.empty-description {
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.btn-primary {
    background: linear-gradient(135deg, #C08B2D, #B22B2B);
    color: white;
    padding: 1.125rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 6px 20px rgba(192, 139, 45, 0.35);
    font-size: 1.05rem;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(192, 139, 45, 0.5);
    color: white;
}

/* Related Categories - Better Spacing */
.related-categories {
    margin-top: 5rem;
    padding: 3.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #C08B2D, #B22B2B);
    border-radius: 10px;
}

.section-line {
    display: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Category Card - Improved */
.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(192, 139, 45, 0.15);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(192, 139, 45, 0.25);
    border-color: rgba(192, 139, 45, 0.4);
}

.category-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-icon {
    transform: rotate(8deg) scale(1.15);
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-card-title {
    color: #C08B2D;
}

.category-card-count {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.category-card-arrow {
    color: #cbd5e1;
    transition: all 0.4s ease;
    font-size: 1.5rem;
    margin-right: auto;
}

.category-card:hover .category-card-arrow {
    color: #C08B2D;
    transform: translateX(-10px);
}

/* Responsive - Better Breakpoints */
@media (max-width: 1024px) {
    .category-page .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .articles-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 2rem 0;
    }
    
    .category-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .category-title {
        font-size: 2rem !important;
    }
    
    .articles-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title-simple {
        font-size: 1.5rem;
    }
    
    .related-categories {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .news-card-modern {
        margin-bottom: 0;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .stat-mini {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }
    
    .stat-mini-number {
        font-size: 1rem;
    }
}

