/* 
    Table of content
    1. ACCORDION ITEM
    2. POST ITEM
    3. SEARCH FORM
*/

/* 1. ACCORDION ITEM */
.accordion-item {
    position: relative;
    padding: 2rem 0;
    border-top: .1rem solid #E6E6E6;
    font-size: 1.5rem;
    cursor: pointer;
}

.accordion-item:last-child {
    border-bottom: .1rem solid #E6E6E6;
}

.accordion-item::before {
    content: '\2b';
    position: absolute;
    z-index: -1;
    top: 1.7rem;
    right: 0;
    font-family: "Font Awesome 6 Pro";
    font-size: 1.8rem;
    color: var(--color-blue);
}

.accordion-item.active::before {
    content: '\f068';
}

.accordion-item .title {
    padding-right: 4rem;
    font-weight: 600;
    transition: .3s;
}

.accordion-item.active .title {
    font-weight: 700;
}

.accordion-item .text {
    padding: 1rem 4rem 2rem 0;
    color: var(--color-grey);
    cursor: default;
    display: none;
}

/* 2. POST ITEM */
.post-item {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    background-color: var(--color-lightgrey);
    color: inherit;
    text-decoration: none;
}

.post-item:hover {
    text-decoration: inherit;
}

.post-item::before {
    content: '\f061';
    position: absolute;
    z-index: 1;
    top: .7rem;
    right: .7rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Font Awesome 6 Pro";
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-darkblue);
    transform: rotate(-45deg);
    transition: .3s;
}

.post-item:hover::before {
    transform: rotate(0)
}

.post-item .image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 70%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-item .image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .3s;
}

.post-item:hover .image-wrapper img {
    transform: scale(1.03);
}

.post-item .label {
    position: absolute;
    z-index: 2;
    top: 1.4rem;    
    right: 5.7rem;
}

.post-item .content-wrapper {
    padding: var(--box-padding);
}

.post-item .faux-h3 {
    font-size: 2rem;
}

.post-item .text {
    font-size: 1.5rem;
    color: var(--color-grey);
}

/* 3. SEARCH FORM */
.mobile-menu form,
.search-modal form,
.search-results-header form {
    position: relative;
    width: 100%;
    height: 4.8rem;
    padding: 1rem 5.6rem 1rem 2.5rem;
    border-radius: 5rem;
    background-color: white;    
    display: flex;
    align-items: center;
}

.mobile-menu form {
    margin-top: var(--box-padding);
    background-color: var(--color-lightblue);
}

.mobile-menu input,
.search-modal input,
.search-results-header form input {
    width: 100%;
    border: 0;
    background: none;
    font-size: 1.4rem;
    white-space: nowrap;
    color: var(--color-darkgrey);
}

.mobile-menu input {
    color: var(--color-blue);
}

.mobile-menu input::placeholder {
    color: var(--color-blue);
}

.mobile-menu button,
.search-modal button,
.search-results-header form button {
    position: absolute;
    right: .4rem;
    width: 4rem;
    height: 4rem;
    border: 0;
    border-radius: 50%;
    background-color: var(--color-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Font Awesome 6 Pro";
    font-size: 1.6rem;
    line-height: 1;
    color: white;
    cursor: pointer;
    transition: .3s;
}

.mobile-menu button {
    background-color: white;
    color: var(--color-darkblue);
}

.mobile-menu button:hover {
    background-color: var(--color-blue);
    color: white;
}

/* RESIZE */
@media (max-width: 899px) {
    /* 1. ACCORDION ITEM */
    .accordion-item {
        padding: 1.2rem 0;
    }

    .accordion-item::before {
        top: 1rem;
    }

    .accordion-item .text {
        padding: .5rem 3rem 1rem 0;
    }
}