body {
    font-family: "Cairo";
    overflow: auto;
}

/* navbar */

.navbar-brand {
    font-weight: bold;
    color: rgba(254, 119, 67, 1);
    font-family: "Cairo";
    font-weight: 600;
    font-size: 22px;
}

.nav-link.active {
    font-weight: bold;
    color: rgba(39, 63, 79, 1) !important;
}

.btn-orange {
    background-color: #f97316;
    color: white;
    border: none;
}

.btn-orange:hover {
    background-color: #ea580c;
}


.navbar-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    font-family: "Cairo";
    font-weight: 500;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5) !important;
}



nav .btn {
    color: rgba(254, 119, 67, 1);
    border-color: rgba(254, 119, 67, 1);
    border-radius: 8px;
}

nav .btn:hover {
    background-color: rgba(254, 119, 67, 1);
    color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-icons i {
    font-size: 1.5rem;
    color: gray;
    cursor: pointer;
}

.navbar-icons img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.search-container {
    position: relative;
}

.search-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.search-box {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 1000;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.bi-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

@media (max-width: 768px) {
    .search-box {
        width: 300px;
        left: 50%;
        top: auto;
    }

    .search-icon,
    .bi-cart {
        font-size: 1.2rem;
    }

    .navbar-icons img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width:768px) {
    .search-box {
        width: 300px;
        left: 50%;
        top: auto;
    }
}

/* header */

header .content {
    background: url("../Pic/7706807a485714b2bceb177d10dcd18bb7253513.jpg") no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: left;
    align-items: center;
    min-height: 50vh;
    padding: 20px;
}

header .text-content {
    max-width: 50%;
    padding: 50px;
    line-height: 2;
    color: white;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .text-content,
    .image-content {
        max-width: 100%;
    }
}

header .navbar-brand {
    color: #fff !important;
}

/* diet */

.container {
    padding: 20px;
}

.date-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.date-tab {
    background-color: #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.date-tab.active {
    background-color: #2c3e50;
    color: white;
}

.meal-card {
    background-color: rgba(39, 63, 79, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.meal-card h5 {
    margin: 0;
    font-size: 1.1rem;
}

.meal-card p {
    margin: 5px 0;
    color: #6c757d;
}

.calories {
    color: #28a745;
}

.sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.123);
    height: fit-content;
    color: rgba(39, 63, 79, 1);
}

.btn-custom {
    background-color: #e67e22;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

.btn-custom:hover {
    background-color: #d35400;
}

@media (max-width: 768px) {
    .date-tabs {
        justify-content: center;
    }

    .sidebar {
        margin-top: 20px;
    }
}

.custom-sidebar {
    background: url('../Pic/98d5888560d8958602807ef6430c1f604b344ecc.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: 20px auto;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

.custom-sidebar h5 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    line-height: 2;
}

.custom-sidebar p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.btn-custom {
    background-color: rgba(254, 119, 67, 1);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.btn-custom:hover {
    background-color: #e64a19;
}

@media (max-width: 768px) {
    .custom-sidebar {
        max-width: 100%;
        height: 350px;
    }
}

/* Recipes */
.container {
    padding: 20px;
    max-width: 1200px;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recipe-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.recipe-header a {
    color: #ff5722;
    text-decoration: none;
    font-size: 14px;
}

.recipe-header a:hover {
    text-decoration: underline;
}

.recipe-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.recipe-card {
    background-color: rgba(252, 251, 247, 1);
    border: 1px solid rgba(252, 251, 247, 1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.recipe-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.recipe-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.recipe-card p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.btn-custom {
    background-color: #ff5722;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.btn-custom:hover {
    background-color: #e64a19;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.recipe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .recipe-card {
        max-width: 100%;
    }

    .recipe-container {
        flex-direction: column;
        align-items: center;
    }
}

.container {
    padding: 20px;
    max-width: 1200px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.header a {
    color: #ff5722;
    text-decoration: none;
    font-size: 14px;
}

.header a:hover {
    text-decoration: underline;
}

.description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}


.item-card {
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    transition: 0.3s;
    background-color: #fff;
    height: 100%;
}

/* model for goal */

.goal-model .card {
    border-radius: 24px;
    border-color: rgba(226, 226, 226, 1);
}

.goal-model h5 {
    color: rgba(39, 63, 79, 1);
    font-size: 24px;
    font-weight: bold;
}

.goal-model p {
    color: rgba(39, 63, 79, 1);
    font-size: 20px;
}

.goal-model .edit-btn {
    background-color: transparent;
    border: none;
}

.goal-model .card-text {
    padding: 40px 20px;
}

.item-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.item-image {
    width: 80%;
    height: auto;
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: rgba(39, 63, 79, 1);
}

.btn-orange {
    background-color: rgba(254, 119, 67, 1) !important;
    color: white !important;
    border-color: rgba(254, 119, 67, 1) !important;
    font-size: 14px;
}

.btn-orange:hover {
    background-color: #ea580c;
}

.item-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 20px;
}

@media (max-width: 768px) {
    .item-card {
        max-width: 100%;
    }

    .item-container {
        flex-direction: column;
        align-items: center;
    }
}

/* reviews */

.reviews-section {
    max-width: 800px;
    margin: 0 auto;
}

.reviews-header {
    text-align: left;
    margin-bottom: 20px;
}

.reviews-header h2 {
    font-size: 1.8rem;
    color: #333;
}

.reviews-header p {
    color: #777;
    font-size: 0.9rem;
}

.review-card {
    background-color: rgba(246, 246, 246, 1);
    border: 1px solid rgba(246, 246, 246, 1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.review-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.user-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.review-date {
    font-size: 0.85rem;
    color: #777;
}

.rating {
    color: #f1c40f;
    margin: 10px 0;
}

.review-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.review-form {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.star-rating {
    direction: rtl;
    display: inline-block;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    margin: 0 2px;
    transition: color 0.2s;
    z-index: 1000000 !important;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #f1c40f !important;
}


.btn-submit {
    background-color: rgba(254, 119, 67, 1) !important;
    color: white !important;
    border-color: rgba(254, 119, 67, 1) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: rgb(209, 98, 54);
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 0 15px;
    }

    .review-card {
        padding: 15px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .user-name {
        font-size: 1rem;
    }

    .review-date {
        font-size: 0.8rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .review-form {
        padding: 15px;
    }

    .btn-submit {
        width: 100%;
    }
}


/* search */

.search-section {
    background: url('../Pic/901d65a6791ad743bf5d58a7ac997944f49f2462.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    top: 9rem;
}

.search-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.search-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.search-section .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.search-section .btn-join {
    background-color: rgba(254, 119, 67, 1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.search-section .btn-join:hover {
    background-color: rgb(252, 84, 17);
    color: white;
}

/* footer */

.footer {
    background-color: #f1ece5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 9rem;
}

.footer .nav-link {
    color: #1a3c5e;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer .nav-link:hover {
    color: #f4a261;
}

.footer .social-icons a {
    color: #f4a261;
    margin: 0 5px;
    font-size: 1.2rem;
}

.footer .copyright {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer .row {
        flex-direction: column;
        align-items: center;
    }

    .footer .logo {
        margin-bottom: 15px;
        justify-content: center;
    }

    .footer .nav {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .footer .nav-link {
        display: block;
        margin: 5px 0;
        font-size: 0.85rem;
    }

    .footer .social-icons {
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer .social-icons a {
        font-size: 1.1rem;
        margin: 0 8px;
    }

    .footer .copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 15px;
    }

    .footer .logo img {
        height: 24px;
        width: 24px;
    }

    .footer .logo span {
        font-size: 1.3rem;
    }

    .footer .nav-link {
        font-size: 0.8rem;
    }

    .footer .social-icons a {
        font-size: 1rem;
        margin: 0 6px;
    }

    .footer .copyright {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}