/* Immersive Featured Grid Styles - Uniform 3 Columns */

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 280px;
    /* Uniform height */
}

.featured-grid-item:hover {
    /* transform: translateY(-5px); Removed */
}

.featured-item-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card-image-wrapper {
    width: 100%;
    height: 100%;
}

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

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

.post-card-category-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.post-card-category-tag {
    background-color: rgba(60, 60, 60, 0.7);
    /* Dark semi-transparent pill */
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.post-card-category-tag:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.post-card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.post-card-title {
    margin: 0;
    line-height: 1.3;
}

.home-featured-grid .post-card-title a {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    font-size: 18px;
    /* Uniform title size */
}

.home-featured-grid .post-card-title a:hover {
    color: #ffffff;
    /* Ensure title stays white on hover */
    text-decoration: none;
}

.post-card-meta {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.post-card-meta span {
    margin-right: 5px;
}

@media (max-width: 992px) {
    .home-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid-item {
        height: 220px;
    }
}