/* 
    Table of content
    1. BLOGITEM
    2. FAQITEM
    3. HERO USPS
*/

/* 1. BLOGITEM */
.blogitem {
    text-decoration: none;
    color: var(--color-black);
}

.blogitem:hover {
    color: var(--color-black);
}

.blogitem .image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.blogitem .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blogitem .label {
    position: absolute;
    top: 3rem;
    left: 3rem;
    padding: .75rem 1.25rem;
    border-radius: .6rem;
    background-color: var(--color-black);
    font-family: "Archivo", sans-serif; 
    font-optical-sizing: auto;
    font-size: 1.4rem;
    font-weight: 500;    
    line-height: 1.3;
    color: white;
    transition: .3s;
}

.blogitem:hover .label {
    background-color: var(--color-purple);
}

.blogitem .content-wrapper {
    padding: 3rem;
    border: .1rem solid #ddd;
    border-top: 0;
    border-radius: 0 0 1rem 1rem;
    background-color: white;
    transition: .3s;
}

.blogitem:hover .content-wrapper {
    border-color: var(--color-purple);
}

.blogitem h4 {
    margin-bottom: 0;
    font-size: 2.4rem;
}

.blogitem .read-wrapper {
    position: relative;
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 2. FAQITEM */
.faq-item {
    padding: 1.8rem 7.3rem 1.8rem 2.3rem;
    border: .1rem solid white;
    border-radius: 1rem;
    background-color: white;
    transition: .3s;
}

.faq-item:not(:first-child) {
    margin-top: 1rem;
}

.faq-item.active {
    border: .1rem solid var(--color-purple);
}

.faq-item h5 {
    position: relative;
    margin-bottom: 0;
    cursor: pointer;
}

.faq-item h5::before {
    content: '\2b';
    position: absolute;
    top: -.5rem;
    right: -5rem;
    font-family: "Font Awesome 5 Pro";
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
}

.faq-item.active h5::before {
    content: '\f068';
    top: .3rem;
    font-size: 2rem;
}

.faq-item .text-wrapper {
    margin-top: .5rem;
    font-size: 1.6rem;
    line-height: 1.5;
    display: none;
}

/* 3. HERO USPS */
.hero-usps .container {
    padding: 12rem 5rem 9rem 0;
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    grid-gap: 15rem;
}

.hero-usps .item {
    display: flex;
    gap: 2rem;
}

.hero-usps .item img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    object-position: center;
    transition: .3s;
}

.hero-usps .item:hover img {
    transform: scale(1.15);
}

.hero-usps h4 {
    margin-top: -.5rem;
}

.hero-usps .text-wrapper {
    font-size: 1.6rem;
    line-height: 1.5;
}

/* RESIZE */
@media (max-width: 1340px) {
    /* 3. HERO USPS */
    .hero-usps .container {
        grid-gap: 10rem;
    }
}

@media (max-width: 1024px) {
    /* 3. HERO USPS */
    .hero-usps .container {
        padding: 7rem 0;
        grid-gap: 5rem;
    }
}

@media (max-width: 899px) {
    /* 1. BLOGITEM */
    .blogitem h4 {
        font-size: 2rem;
    }    
}

@media (max-width: 767px) {
    /* 1. BLOGITEM */
    .blogitem .label {
        top: 2rem;
        left: 2rem;
    }

    .blogitem .content-wrapper {
        padding: 2rem;
    }

    .blogitem .read-wrapper {
        margin-top: 2rem;
    }

    /* 2. FAQITEM */
    .faq-item {
        padding: 1.5rem 7rem 1.5rem 2rem;
    }

    .faq-item h5::before {
        top: -.2rem;
        right: -5rem;
        font-size: 2.4rem;
    }

    /* 3. HERO USPS */
    .hero-usps {
        display: none;
    }
}