/* Modern Blog Styles with 3D Effects */
.ppwp-blog-container {
    max-width: 1170px !important;
    margin: 0 auto;
    padding: 2rem;
}

/* 3D Animated Header */
.ppwp-blog-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    margin-bottom: 3rem;
}

.animate-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform-style: preserve-3d;
    animation: floatTitle 6s ease-in-out infinite;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #2196F3, #E91E63);
    transform-style: preserve-3d;
    animation: rotateBg 20s linear infinite;
    z-index: -1;
}

@keyframes floatTitle {
    0%, 100% { transform: translateZ(0px); }
    50% { transform: translateZ(50px); }
}

@keyframes rotateBg {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Breadcrumb */
.ppwp-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.ppwp-breadcrumb a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ppwp-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #666;
}

/* Categories Navigation */
.ppwp-categories-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.category-link {
    padding: 0.5rem 1.5rem;
    background: #fff;
    border-radius: 30px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.category-link:hover {
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Blog Grid */
.ppwp-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ppwp-blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.ppwp-blog-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

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

.ppwp-blog-card:hover .blog-image img {
    transform: scale(1.1);
}


.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-meta {
    font-size: 0.9rem;
    color: #999;
}

/* Single Blog Post */
.ppwp-single-blog {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-featured-image {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: inherit;
    padding: 1.5rem;
    width: 100%;
    text-align: justify;
}

.author-link{
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ppwp-blog-header {
        height: 200px;
    }

    .animate-title {
        font-size: 2.5rem;
    }

    .ppwp-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.ppwp-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}