/* All Posts Template Styles */

.all-posts-wrapper {
    margin: 3rem 0;
}

/* Header styles */
.page-header {
    margin: 80px 0 2.5rem 0; /* Added top margin to push below header */
    text-align: center;
    background: linear-gradient(135deg, #3498db, #1d6fa5); /* Blue gradient background */
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #fff; /* White text for better contrast */
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff; /* Changed to white for contrast */
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #fff; /* White underline for contrast */
    border-radius: 2px;
}

.page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.post-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-top: 1rem;
}

.all-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.post-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .entry-title a:hover {
    color: #0056b3;
}

.post-card .entry-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.post-card .entry-meta i {
    margin-right: 0.25rem;
}

.post-card .entry-summary {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.post-card .read-more-link {
    display: inline-flex;
    align-items: center;
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .read-more-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.post-card .read-more-link:hover {
    color: #003d82;
}

.post-card .read-more-link:hover i {
    transform: translateX(5px);
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-container .page-numbers.current {
    background-color: #0056b3;
    color: #fff;
}

.pagination-container .page-numbers:hover:not(.current) {
    background-color: #e0e0e0;
}

.pagination-container .prev,
.pagination-container .next {
    font-size: 0.8rem;
}

.pagination-container .dots {
    background-color: transparent;
    width: auto;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .all-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header {
        margin-top: 70px;
        padding: 2rem 1.25rem;
    }
    
    .post-count {
        font-size: 1.1rem;
        padding: 0.45rem 0.9rem;
    }
}

@media (max-width: 768px) {
    .all-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .page-header {
        margin-top: 60px;
        padding: 1.75rem 1rem;
    }
    
    .post-count {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .all-posts-wrapper {
        margin: 2rem 0;
    }
    
    .post-card-content {
        padding: 1.25rem;
    }
    
    .post-card .entry-title {
        font-size: 1.1rem;
    }
    
    .post-card .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
    
    .page-header {
        margin-top: 50px;
        padding: 1.5rem 0.75rem;
    }
    
    .post-count {
        font-size: 0.9rem;
        padding: 0.35rem 0.7rem;
        margin-top: 0.5rem;
    }
} 