/* General Page Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9; /* Light background for the whole page */
}

/* Page Header - if you have a specific one for the menu page */
.menu-page-header {
    background: #333 url('../img/menu-banner.jpg') no-repeat center center/cover; /* Example banner - ensure path is correct */
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.menu-page-header h1 {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Sticky Sub-Navigation for Menu Categories */
.menu-sub-nav {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 0;
    position: sticky;
    top: 60px; /* Adjust based on your main navbar height when sticky */
    z-index: 1010; /* Below main navbar (1020), above content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-sub-nav .nav {
    justify-content: center;
}

.menu-sub-nav .nav-link {
    color: #555;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.menu-sub-nav .nav-link:hover,
.menu-sub-nav .nav-link.active {
    color: #fff;
    background-color: #F4931E; /* Theme color */
}

/* Menu Section Styling */
.menu-section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.menu-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: #F4931E; /* Theme color */
}

/* Individual Menu Item Styling */
.menu-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.3rem;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    height: 100%; /* Ensures items in a row have same height if content varies */
}

.menu-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.menu-item-img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Cover to fill, might crop */
    border-radius: 0.25rem; 
    margin-bottom: 1rem; 
}

.menu-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows text content to fill remaining space */
}

.menu-item h5 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: #F4931E; /* Theme color for item name */
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item .price {
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.menu-item p.description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
    flex-grow: 1; /* Allows description to take available space before badges/buttons etc */
}

.menu-item .badge {
    align-self: flex-start; /* Align badge to the start if item is flex */
    margin-top: 0.5rem; /* Space above badge if description is short */
}

/* Dietary Note Section */
.dietary-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
    text-align: center;
}

.dietary-note p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

/* Navbar specific styles - for #navbarIFM */
#navbarIFM .btn-primary {
    background-color: #F4931E; /* GIHR Orange */
    border-color: #F4931E;
}

#navbarIFM .btn-primary:hover {
    background-color: #d98307; /* Darker Orange */
    border-color: #d98307;
}

/* Active state for navbar items */
#navbarIFM .navbar-nav .nav-item.active .nav-link {
    color: #F4931E !important; /* Theme color for active parent */
    font-weight: bold;
}

#navbarIFM .dropdown-menu .dropdown-item.active {
    background-color: #F4931E;
    color: #fff !important;
}

/* Responsive adjustments for menu */
@media (max-width: 991px) { /* Adjust breakpoint if needed */
    .menu-item {
        margin-bottom: 1.5rem;
    }
    .menu-item-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .menu-page-header h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .menu-sub-nav {
        top: 56px; /* Adjust if your mobile navbar height is different */
    }
    .menu-sub-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .menu-item h5 {
        font-size: 1.2rem;
    }
    .menu-item .price {
        font-size: 1.1rem;
    }
    .menu-item-img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .menu-sub-nav .nav {
        flex-wrap: wrap; /* Allow wrapping on very small screens */
    }
     .menu-sub-nav .nav-link {
        margin-bottom: 0.25rem; /* Space if they wrap */
    }
    .menu-item-img {
        height: 120px;
    }
    .menu-item {
        padding: 1rem;
    }
}