/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.category-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.category-hero .hero-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.category-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.95;
    flex-wrap: wrap;
}

.category-badge,
.posts-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-badge:hover,
.posts-count:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-badge i,
.posts-count i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Main Section */
.category-main {
    padding: 4rem 0;
    background: #f8f9fa;
}

.category-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail a {
    display: block;
    position: relative;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.category-link {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.category-link:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-1px);
}

.post-card-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta i {
    color: #3498db;
    font-size: 0.75rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3498db;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(52, 152, 219, 0.1);
}

.read-more-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(3px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.post-views i {
    color: #3498db;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    margin: 0 0.2rem;
    background: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-posts-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.no-posts h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.no-posts p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Sidebar */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    font-weight: 600;
}

.sidebar-widget h3 i {
    color: #3498db;
    font-size: 1.2rem;
}

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

.sidebar-widget ul li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e9ecef;
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sidebar-widget ul li a:hover {
    color: #3498db;
}

/* Popular Posts */
.popular-posts .post-views {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.popular-posts .post-views i {
    color: #3498db;
}

/* Categories Widget */
.categories-widget ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-widget ul li::after {
    content: attr(data-count);
    background: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Recent Posts */
.recent-posts .post-date {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.3rem;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-align: center;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.contact-cta h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.contact-cta h3 i {
    color: white;
}

.contact-cta p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.contact-cta .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.contact-cta .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-cta .btn-primary {
    background: white;
    color: #3498db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-cta .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.contact-cta .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.contact-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .category-sidebar {
        position: static;
        top: auto;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 2rem 0;
    }
    
    .category-hero .container {
        padding: 0 1.5rem;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .category-meta {
        gap: 1rem;
    }
    
    .category-badge,
    .posts-count {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .category-main {
        padding: 3rem 0;
    }
    
    .category-main .container {
        padding: 0 1.5rem;
    }
    
    .posts-grid {
        gap: 1.5rem;
    }
    
    .post-card-content {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .category-hero {
        padding: 1.5rem 0;
    }
    
    .category-hero .container {
        padding: 0 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .category-badge,
    .posts-count {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .post-card-content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
}


















