/* Index Page Specific Styles */

/* Main Container */
.pp-index-container-fluid {
    padding: 0;
    background: #fff;
}

/* Main Row Layout */
.pp-index-main-row {
    margin: 0;
    min-height: calc(100vh - 200px); /* Account for header and footer */
    background-color: #f8f9fa;
}

/* Category Column (Left Sidebar) */
.pp-index-cat-col {
    padding: 15px 10px;
    min-height: 100%;
}

/* Recent Posts Column */
.pp-index-recent-col {
    background-color: #ffffff;
    padding: 20px 15px;
    border: 1px solid #f8f9fa;
}

/* Right Column */
.pp-index-right-col {
    padding: 15px 10px;
    min-height: 100%;
}

/* Post Card Styles */
.pp-index-rp-col {
    margin-bottom: 25px;
    padding: 0 10px;
}

.pp-index-rp-col .pp-index-post-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pp-index-rp-col .pp-index-post-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pp-index-rp-col .pp-index-post-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.pp-index-rp-col .pp-index-post-img:hover img {
    transform: scale(1.05);
}

.pp-index-rp-col .pp-index-post-desc {
    padding: 15px 0;
    text-align: center;
}

.pp-index-rp-col .pp-index-post-desc h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp-index-rp-col .pp-index-post-desc p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp-index-rp-col .pp-index-post-desc a {
    text-decoration: none;
    color: inherit;
}

.pp-index-rp-col .pp-index-post-desc a:hover {
    text-decoration: none;
}

.pp-index-rp-col .pp-index-post-desc a:hover h4 {
    color: #3469af;
}

/* Responsive Design */
@media (max-width: 991px) {
    .pp-index-cat-col {
        display: none;
    }
    
    .pp-index-recent-col {
        width: 100%;
        padding: 15px 10px;
    }
    
    .pp-index-right-col {
        display: none;
    }
    
    .pp-index-rp-col {
        padding: 0 5px;
    }
    
    .pp-index-rp-col .pp-index-post-img img {
        height: 180px;
    }
    
    .pp-index-rp-col .pp-index-post-desc h4 {
        font-size: 16px;
        min-height: 44px;
    }
    
    .pp-index-rp-col .pp-index-post-desc p {
        font-size: 13px;
        min-height: 39px;
    }
}

@media (max-width: 767px) {
    .pp-index-recent-col {
        padding: 10px 5px;
    }
    
    .pp-index-rp-col {
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .pp-index-rp-col .pp-index-post-img img {
        height: 160px;
    }
    
    .pp-index-rp-col .pp-index-post-desc {
        padding: 12px 0;
    }
    
    .pp-index-rp-col .pp-index-post-desc h4 {
        font-size: 15px;
        min-height: 40px;
    }
    
    .pp-index-rp-col .pp-index-post-desc p {
        font-size: 12px;
        min-height: 36px;
    }
}

@media (max-width: 575px) {
    .pp-index-recent-col {
        padding: 8px 2px;
    }
    
    .pp-index-rp-col {
        margin-bottom: 15px;
        padding: 0 2px;
    }
    
    .pp-index-rp-col .pp-index-post-img img {
        height: 140px;
    }
    
    .pp-index-rp-col .pp-index-post-desc {
        padding: 10px 0;
    }
    
    .pp-index-rp-col .pp-index-post-desc h4 {
        font-size: 14px;
        min-height: 38px;
    }
    
    .pp-index-rp-col .pp-index-post-desc p {
        font-size: 11px;
        min-height: 33px;
    }
}

/* Loading States */
.pp-index-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for post cards */
@keyframes pp-index-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pp-index-rp-col {
    animation: pp-index-fadeInUp 0.6s ease-out;
}

/* Stagger animation for multiple cards */
.pp-index-rp-col:nth-child(1) { animation-delay: 0.1s; }
.pp-index-rp-col:nth-child(2) { animation-delay: 0.2s; }
.pp-index-rp-col:nth-child(3) { animation-delay: 0.3s; }
.pp-index-rp-col:nth-child(4) { animation-delay: 0.4s; }
.pp-index-rp-col:nth-child(5) { animation-delay: 0.5s; }
.pp-index-rp-col:nth-child(6) { animation-delay: 0.6s; }

/* Custom scrollbar for better UX */
.pp-index-recent-col::-webkit-scrollbar {
    width: 6px;
}

.pp-index-recent-col::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pp-index-recent-col::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.pp-index-recent-col::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
