/*RECIPE STYLING*/

.recipe-container {
    border: 1px solid #334E32;
    border-top: 4px solid #334E32;
    margin: 50px auto !important;
}

.recipe-header img {
    max-width: 100%;
}

.recipe-header {
    background-color: #EDEDED;
    padding: 2.5rem 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.recipe-header ul {
    display: flex;
}

.recipe-header ul li {
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0;
    flex-wrap: wrap;
}

.recipe-header ul li:first-child  {
    padding-left: 0;
}

.recipe-header ul li span {
    display: block;
    font-weight: 700;
}

.recipe-body {
    padding: 2.5rem 1.25rem 1.25rem;
}

.recipe-header h2 {
    color: #334E32;
}

/*BLOG LANDING && FILTERS STYLING*/

.blog-parent-container {
    padding: 3rem 1.25rem;
}

.posts-container {
    max-width: 100%;
    display: grid;
    grid-gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

.posts-container h2 {
    font-family: lexend-regular;
    font-size: 1.25rem;
    line-height: 25px;
    color: #221904;
    text-transform: uppercase;
}

.no-posts {
    padding: 3rem 1.25rem;
}

.posts-container a {
    text-decoration: none;
}

.post-date, .podcast-date {
    text-transform: uppercase;
    color: #334E32;
}

.post-thumbnail {
    aspect-ratio: 1 / 1;
}

.posts-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    padding: 3rem 1.25rem;
}

#search-submit {
    position: relative;
    display: flex;
    justify-content: flex-start;
}

#category-filter-form input {
    border: 1px solid #C1C1C1;
    border-radius: 26px;
    padding: .75rem;
    font-size: 1.25rem;
}

#category-filter-form button {
    background-color: #334E32;
    border-radius: 24px;
    font-size: 1rem;
    padding: 1rem;
    text-transform: uppercase;
    border: none;
    color: #ffffff;
    box-shadow: 0px 0px 6px #00000029;
}

#category-filter-form #filter-menu ul {
    display: block;
}

#category-filter-form #filter-menu ul li {
    display: flex;
    flex-direction: column;
    flex-basis: 22%;
    margin: 0;
    text-align: center;
    padding: .5rem;
    margin-bottom: .5rem;
    background-color: #EBC771;
}

#category-filter-form #filter-menu .child-category {
    display: none;
}

#filter-menu {
    position: absolute;
    top: 3rem;
    left: 1.25rem;
    right: 1.25rem;
    max-width: 100%;
    max-height: 0; /* Start with max-height at 0 */
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    border: 1px solid #221904;
    padding: 1.5rem;
    z-index: -1;
}

#filter-menu.open {
    max-height: 800px;
    opacity: 1;
    z-index: 999;
    background-color: #56743F;
    transition: all 0.5s ease-in-out;
    color: black;
}

.close-menu {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    background-color: #ffffff;
    padding: 3px;
}

#filter-menu button[type="submit"] {
    display: block;
    margin: 2rem 0 0 auto;
}

.text-center {
    text-align: center;
    margin: 3rem 0 !important;
}

#search-submit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*PODCAST STYLING*/

.podcast-container .single-podcast {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#podcast-filter-menu {
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
}

#podcast-filter-menu h3 {
    margin-bottom: 0 !important;
}

#podcast-filter-menu input[type="checkbox"] {
    display: none;
}

#podcast-filter-menu label {
    display: inline-block;
    padding: 1rem;
    background-color: #ffffff;
    text-transform: uppercase;
    color: #334E32;
    font-size: 1rem;
    border-radius: 1.5rem;
    border: 2px solid #334E32;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0px 0px 6px #00000029;
}

#podcast-filter-menu input[type="checkbox"]:checked + label {
    background-color: #334E32;
    color: #ffffff;
}

.podcast-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.podcast-container .single-podcast a {
    text-decoration: none;
}

#podcast-filter-button {
    cursor: pointer;
}

.podcast-date-title .podcast-date {
    margin-top: 0;
}

.podcast-date-title h2 {
    font-family: lexend-regular;
    font-size: 1.25rem;
    line-height: 25px;
    color: #221904;
    text-transform: uppercase;
    margin-bottom: .75rem !important;
}

.podcast-container .podcast-thumbnail {
    aspect-ratio: 16 / 9;
    max-width: 300px;
}

.podcast-container .podcast-thumbnail img {
    height: 100%;
    width: 100%;
}

#category-filter-form.podcast-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.podcast-landing-container {
    padding: 3rem 1.25rem;
}



@media (min-width: 768px) {
    .recipe-body ul {
        column-count: 2;
    }
    
    .recipe-header img {
        max-width: 250px;
    }

    .recipe-header {
        flex-wrap: nowrap;
    }

    .recipe-header ul li:not(:last-child) {
        border-right: 1px solid #334E32;
    }

    .recipe-header ul li {
        padding: 0 1rem;
        flex-wrap: nowrap;
    }

    .recipe-container, .recipe-container + .wp-block-buttons {
        margin: 100px auto !important;
    }

    #category-filter-form {
        margin-bottom: 100px;
    }

    #category-filter-form input[type="text"] {
        min-width: 312px;
    }

    #podcast-filter-menu {
        flex-wrap: nowrap;
        flex-direction: row;
    }

    .posts-container {
        max-width: 100%;
        display: grid;
        grid-gap: 1.5rem;
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
    }

    #category-filter-form.podcast-form #search-submit {
        justify-content: flex-start;
    }

    #search-submit {
        justify-content: space-between;
    }

    #category-filter-form #filter-menu ul {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    #category-filter-form #filter-menu ul li {
        text-align: left;
        background-color: transparent;
    }

    #category-filter-form #filter-menu .child-category {
        display: block;
    }

    #filter-menu.open {
        background-color: #ffffff;
    }

    .close-menu {
        display: none;
    }
    
    #search-submit {
        flex-direction: row;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .podcast-container .single-podcast {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1200px) {
    .single-post-content {
        padding: 0;
    }

    .single-post-content p {
        max-width: unset;
    }

    #podcast-filter-menu {
        align-items: center;
    }

    #category-filter-form {
        padding: 0;
    }
}