/* Blog listing styles */

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #6a4c93;
}

.blog-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.category-tag {
    padding: 8px 20px;
    border-radius: 50px;
    background-color: #f5f5f5;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid #eaeaea;
}

.category-tag:hover, .category-tag.active {
    background-color: #6a4c93;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(106, 76, 147, 0.2);
}

/* Featured post */
.featured-post {
    margin-bottom: 50px;
    background-color: #f9f7ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.featured-image {
    height: 100%;
    overflow: hidden;
}

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

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

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f3c178;
    color: #333;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    align-self: flex-start;
}

.featured-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.featured-excerpt {
    margin-bottom: 25px;
    color: #666;
}

.featured-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.featured-date {
    color: #888;
    font-size: 0.85rem;
}

.read-more {
    display: inline-block;
    padding: 10px 25px;
    background-color: #6a4c93;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    background-color: #5a3d83;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(90, 61, 131, 0.2);
}

/* Blog grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.zodiac-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background-color: #f3c178;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #888;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.card-excerpt {
    margin-bottom: 20px;
    color: #666;
    flex: 1;
    font-size: 0.95rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 8px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
    font-weight: 500;
    border: 1px solid #eaeaea;
}

.pagination-btn:hover, .pagination-btn.active {
    background-color: #6a4c93;
    color: white;
    border-color: #6a4c93;
}
.featured-image{
    max-height: 440px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .container {
        width: 95%;
        padding: 30px 15px;
    }
}

@media (max-width: 576px) {
    .blog-categories {
        gap: 8px;
    }
    
    .category-tag {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .featured-content {
        padding: 25px;
    }
    
    .featured-title {
        font-size: 1.3rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 20px;
    }
}