:root {
    --panel-text: #008b70;
    --input-background: #f7f7f7;
    --input-border: #b3b3b3;
    --input-placeholder: #b3b3b3;
    --panel-background: #eaf8eb;
    --input-text-color: #000;
    --title-color: #015847;
    --meta-color: #727272;
    --common-text: #000;
    --panel-title-color: #000;
    --button-primary: #0DBB99;
    --button-secondary: #ECECEC;


    --title-font: 'Roboto Slab', sans-serif;
    --common-font: 'Roboto Condensed', serif;
}

* {
    box-sizing: border-box;
}

.hover-anim:hover {
    opacity: 0.7;
}

.page {
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 5px;
}

body {
    position: relative;
    font-family: var(--common-font);
    font-size: 14px;
    color: var(--common-text);
    background-color: #fff;
    padding-top: 80px;
    /* Adjust padding to account for fixed header */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--panel-background);
    color: var(--panel-text);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;

}

.nav ul {
    display: flex;
}

.nav-item a {
    text-decoration: none;
    color: var(--panel-text);
    font-weight: 700;
    margin-right: 45px;
}

.nav-item:last-child a {
    margin-right: 0;
}

.nav-item a:hover {
    opacity: 0.7;
}

.logo-img {
    width: 100%;
    height: auto;
}

.logo {
    max-width: 70px;
}

/*placeholder for search and login section*/
.search-and-login {
    display: flex;
    align-items: center;
    position: relative;
    /* width: 277px;
    height: 49px;
    border: #000 solid 1px; */
}

.search-input {
    height: 36px;
    background-color: #C7E2C9;
    border: 1px solid #A8C9AA;
    border-radius: 10px;
    padding: 10px;
    font-family: var(--common-font);
    font-size: 14px;
    color: var(--input-text-color);
    padding-left: 2rem;
    margin-right: 16px;

}

.login-link {
    background-color: #C7E2C9;
    height: 36px;
    width: 36px;
    text-align: center;
    border-radius: 10px;
    color: rgba(0, 113, 91, 0.45);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #A8C9AA;

}



.search-input::placeholder {
    color: rgba(0, 113, 91, 0.45);
}

.search-icon {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 113, 91, 0.45);
    pointer-events: none;
}

.quote {
    font-family: var(--common-font);
    font-size: 20px;
    color: var(--panel-text);
    margin: 0 auto;
    margin-top: 46px;
    margin-bottom: 30px;
    text-align: center;

}

.black-qoute-word {
    color: var(--common-text);
}

.latest-recipes .swiper {
    height: 350px;
}

.latest-recipes .swiper-slide {

    height: 320px;
    width: 273px;
}

.recipe-img {
    height: 300px;
    width: 250px;
    overflow: hidden;
    border: 3px solid #689E94;
    border-radius: 10px;

    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.recipe-img__img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block
}

.recent-recipe {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.recipe-info {
    position: absolute;
    bottom: -10px;
    right: 10px;
    border: 3px solid #689E94;
    border-radius: 10px;
    padding: 10px;
    background-color: var(--panel-background);
    text-align: center;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));

}

.recipe-info__title {
    font-family: var(--title-font);
    font-size: 20px;
    color: var(--title-color);
    margin-bottom: 5px;
}

.recipe-info__meta {
    font-family: var(--title-font);
    font-size: 12px;
    color: var(--meta-color);
}

.title {
    text-align: center;
    font-family: var(--title-font);
    font-size: 24px;
    color: var(--title-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.categories .swiper-slide {
    height: 120px;
    width: 120px;

}

.categories-swiper {
    height: 120px;
    padding: 0 15px;


}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0;

    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.category-title {
    font-family: var(--title-font);
    font-size: 14px;
    color: var(--title-color);
    text-align: center;

}

.categories {
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 310px);
    grid-template-rows: repeat(2, 175px);
    row-gap: 20px;
    column-gap: 50px;
}

.recent-review {
    height: 100%;
    width: 310px;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--panel-background);
}

.review-img {
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
}

.review-img img {
    width: 35px;
    height: 35px;
    object-fit: cover;

}

.review-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-title-text {
    font-family: var(--title-font);
    font-size: 16px;
    color: #000;

}

.recent-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.review-text {
    font-family: var(--common-font);
    font-size: 14px;
    color: var(--common-text);

    margin-bottom: 15px;
}

.recent-reviews a {
    text-decoration: none;

}

.review-meta {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;


}

.daily-meals-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    grid-template-rows: repeat(3, 100px);
    row-gap: 20px;
    column-gap: 20px;
    margin: 0 auto;

}

.daily-meals-grid a {
    text-decoration: none;
    color: var(--common-text);
}

.daily-meal {
    background-color: var(--panel-background);
    border-radius: 10px;
    display: flex;
    align-items: center;

}

.daily-meals {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 100px;
}

.meal-img {
    width: 94px;
    height: 94px;
    border-radius: 10px;
    overflow: hidden;
    padding: 5px;
}

.meal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.daily-meal-title h3 {
    font-family: var(--title-font);
    font-size: 14px;
    color: var(--common-text);

}

.daily-meal-title {
    margin-bottom: 8px;
}

.daily-meal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 10px 0;
    margin-left: 5px;
}

.ingredients-list {
    /* columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2; */
    margin-left: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 3px;
    column-gap: 8px;
    padding: 0;
}

.ingredients-list li {
    margin-right: 5px;
}


.footer {
    background-color: var(--panel-background);
    color: var(--panel-text);
    width: 100%;
    height: 150px;
    text-align: center;
    z-index: 1000;


}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;

    height: 100%;
    padding: 0 20px;
}

.footer-nav {
    margin-top: 35px;
}

.footer-links {
    display: flex;
    justify-content: center;
}

.footer-links li {
    list-style: none;
    margin-right: 60px;
    text-decoration: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--panel-text);
    font-size: 16px;
}

.footer-links a:hover {
    opacity: 0.7;
}

hr {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--panel-text);
    margin: 20px 0;
}


.copyright {
    font-family: var(--common-font);
    font-size: 14px;
    color: var(--panel-text);
    margin-top: 20px;
}

.meta {
    font-family: var(--common-font);
    font-size: 12px;
    color: var(--meta-color);

}

/* Terms.php */
.terms-title {
    text-align: start;
}

.terms-of-use p {
    font-family: var(--common-font);
    font-size: 14px;
    color: var(--common-text);
    margin-bottom: 20px;
}

.terms-of-use {
    margin-top: 46px;
}

.terms-of-use p:first-of-type {
    text-align: center;

}

/* contact.php */
.contact {
    margin-top: 46px;
}

.contact p {
    font-family: var(--common-font);
    font-size: 14px;
    color: var(--common-text);
    margin-bottom: 20px;
    text-align: center;
}

.contact a {
    text-decoration: none;
    color: var(--panel-text);
    font-size: 16px;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.address {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.faq {
    margin-top: 46px;
}

.faq-question {
    font-family: var(--title-font);
    font-size: 24px;
    color: var(--title-color);
    margin-bottom: 10px;
}

.faq-answer {
    font-family: var(--common-font);
    font-size: 14px;
    color: var(--common-text);
    margin-bottom: 20px;
}

.faq-answer a {
    text-decoration: none;
    color: var(--panel-text);
    font-size: 16px;
}

.login__inner {
    margin-top: 46px;
}

.input input {
    width: 100%;
    max-width: 400px;
    height: 40px;
    background-color: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px;
    font-family: var(--common-font);
    font-size: 14px;
    color: var(--input-text-color);
}

.form label {
    font-size: 16px;

}

.input {
    margin-bottom: 20px;
}

.login-choice a {
    text-decoration: none;
    color: var(--panel-text);
    font-size: 16px;

}

.btn {
    font-size: 14px;
    font-family: var(--common-font);
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--button-primary);
    height: 35px;
    max-width: 225px;
}

.login-text__notice p {
    font-size: 16px;
    margin-bottom: 10px;
}

.login__inner .title {
    text-align: start;
}

.terms-checkbox {
    margin-bottom: 10px;
}

.terms-link {
    text-decoration: none;
    color: var(--panel-text);

}

.recovery-info {
    margin-bottom: 10px;
}

label span {
    color: #015847;
    /* Example: make the asterisk red */
    font-weight: bold;
}

.reset-info {
    margin-bottom: 10px;
}

.account-block .title {
    text-align: start;
}

.btn-secondary {
    background-color: var(--button-secondary);
    height: 35px;
    max-width: 225px;
    color: var(--common-text);
}

.account-block {
    font-size: 16px;
}

.account-block td {
    padding: 10px;
    margin-top: 20px;
}

.account-title {
    margin-top: 46px;
}

.change-user-btns {
    margin-bottom: 20px;
}

.a-back {
    text-decoration: none;
    color: var(--panel-text);

}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--panel-text);
}

.catalog {
    margin-top: 46px;
    display: flex;
}

.catalog-recipe {
    display: block;
    width: 200px;
}

.catalog-recipe__image {
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 5px;
}

.catalog-recipe__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-recipe__title {
    font-family: var(--title-font);
    color: var(--title-color);
    font-size: 14px;
    text-align: center;
    margin-bottom: 5px;
}

.catalog-recipe__info {
    text-align: center;
}

.catalog-items {
    width: 800px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 25px;
    row-gap: 40px;
    margin-right: 80px;
}

.filters-container {
    position: relative;

}

.filters {
    position: fixed;
    height: 454px;
    width: 230px;
    padding: 15px;
    background-color: var(--panel-background);
    border-radius: 10px;
}

.filters__title {
    font-family: var(--title-font);
    color: var(--common-text);
    font-size: 14px;
    margin-bottom: 12px;
}

.filters__search {
    position: relative;
    width: 100%;
}

.filters__search .search-input {
    margin-right: 0;
    width: 200px;
    
}

.filters-checkboxes ul{
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 3px;
    column-gap: 8px;
    padding: 0;
    max-height: 100px;
    overflow-y: auto; 
    margin-top: 10px;
    margin-bottom: 15px;
   
}

.filters-checkboxes ul li{
    font-family: var(--common-font);
    font-size: 14px;
    padding: 5px;
}

.filters-form .btn{
    width: 200px;
}
@media (max-width: 768px){
    
    .catalog-items{
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        margin-right: 0;
    }
    
}
@media (max-width: 900px) {


    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background-color: var(--panel-background);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        border-top: 1px solid #0DBB99;
    }

    .nav-item a {
        margin-right: 0;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .footer {
        height: auto;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .footer-inner {
        /* padding: 10px 0; */
        padding: 20px 0;
    }

    .footer-nav {
        margin-top: 0;
    }

    .daily-meals-grid {
        grid-template-columns: repeat(1, 300px);
        grid-template-rows: repeat(6, 100px);
    }


}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .recent-review {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 1200px) {
    .catalog{
        flex-direction: column-reverse;
        align-items: center;
        margin-bottom: 46px;
    }
    .filters{
        position: static;
        margin-bottom: 46px;
    }
    .catalog-items{
        margin-right: 0;
        justify-items: center;
        align-items: center;
        padding: 5px;
    }
    .catalog-recipe{
        display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    }
}
@media (max-width: 465px){
    .catalog-recipe{
        width: 150px;
        
    }
}

@media (max-width: 400px){
    .catalog-items{
        width: 100%;
        grid-template-columns: 1fr;
        margin-right: 0;
    }
}