.featured-posts__hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    width: 100%;

    .featured-post-img-wrapper {
        position: relative;
        width: 100%;
        height: 975px;

        img {
            height: 100% !important;
            object-fit: cover;
        }

        &:before, &:after {
            content:'';
            position: absolute;
            left: 0;
            right: 0;
            width: 100%;
            height: 50%;
            z-index: 0;
        }
        &:after {
            bottom: 0;
            height: 50%;
            background: linear-gradient(to top, #000000, #00000000);
        }
        &:before {
            top: 0;
            background: linear-gradient(to bottom, #000000, #00000000);
        }
    }

    .post-info {
        max-width: 1280px;
        width: 100%;
        margin-top: -350px;
        position: relative;
        z-index: 5;

        h1 {
            color: #fff;
            text-transform: uppercase;
            max-width: 80%;
            width: 100%;
            font-weight: 600;
            margin: 20px 0 10px 0;
        }

        .post-meta {
            display: grid;
            grid-template-columns: 1fr .35fr;
            align-items: end;
            gap: 65px;

            p {
                color: #fff;
                font-size: 18px;
                line-height: 1.3;
                font-weight: 300;
            }

            span {
                width: 40px;
                display: block;
            }

            .mobile-icon {
                display: none;
            }
        }
    }

    .selected-posts {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 22px;
        max-width: 1280px;
    
        .post-item {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 12px;
            transition: all .3s ease;
    
            &:hover {
                img {
                    transform: scale(1.2);
                }
            }
    
            .thumbnail-wrapper {
                border: 4px solid #fff;
                border-radius: 8px;
                overflow:hidden;
                height: 213px;
                display: block;
    
                img {
                    border-radius: 4px;
                    object-fit: cover;
                    height: 100% !important;
                    transition: all .3s ease;
                }
            }
    
            .post-info { 
                display: flex;
                flex-direction: column;
                gap: 12px;
            }
    
            .post-category {
                position: absolute;
                top: 15px;
                left: 15px;
                font-weight: 600;
            }
    
            .post-title {
                text-transform: uppercase;
                font-size: 25px;
                font-weight: 600;
                margin-bottom: 12px;
                
                a {
                    color: #000000;
                }
            }
    
            .post-excerpt {
                color: #000;
                font-size: 18px;
                line-height: 1.3;
                font-weight: 300;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
        }
    }
}

@media screen and (max-width: 1280px) {
    .featured-posts__hero {
        .post-info {
            padding: 0 20px;
        }
    }
}



@media screen and (max-width: 1024px) {
    .featured-posts__hero {
        .featured-post-img-wrapper {
            &:before {
                height: 70%;
                background: linear-gradient(to bottom, #000000 30%, #00000000);
            }
        }

        .selected-posts {
            grid-template-columns: 1fr 1fr;
        }
    }
}

@media screen and (max-width: 768px) {
    .featured-posts__hero {

        .post-info {
            background-color: #F3F2EA;
            padding: 20px;
            border-radius: 8px;
            max-width: 94.5%;

            h1 {
                color: #000;
                font-size: 24px;
            }

            .post-meta {
                grid-template-columns: 1fr;
                gap: 10px;

                p {
                    color: #000;
                    font-size: 16px;
                }

                span {
                    justify-self: end;
                }
                
                .desktop-icon {
                    display: none;
                }

                .mobile-icon {
                    display: flex;
                    width: 30px;
                }
            }
        }
        .selected-posts {
            grid-template-columns: 1fr 1fr;
            padding: 0 20px;
    
            .post-item {
                background: #F3F2EA;
                padding-bottom: 20px;
                border-radius: 8px;
    
                .thumbnail-wrapper {
                    border: none;
                }
    
                .post-title {
                    font-size: 20px;
                    padding: 0 20px;
                }
    
                .post-excerpt {
                    font-size: 16px;
                    padding: 0 20px;
                }
    
                .post-category {
                    font-size: 15px;
                }
            }
        }
    }
    
}

@media screen and (max-width: 565px) {
    .featured-posts__hero {
        .featured-post-img-wrapper {
            &:before {
                height: 70%;
                background: linear-gradient(to bottom,rgba(0, 0, 0, 0.9) 50%, #00000000);
            }
        }
        .post-info {
            max-width: 90%;
        }
        .selected-posts {
            grid-template-columns: 1fr;
        }
    }
}