/* ===============================
   GENERAL STYLES
   =============================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #d9534f;
    text-decoration: none;
}



/* ===============================
   HEADER & NAVIGATION
   =============================== */
.main-header {
    background: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav a {
    color: #555;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #d9534f;
}

.header-actions .btn {
    background: #d9534f;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 15px;
}

.header-actions .cart-icon {
    font-weight: bold;
}

/* ===============================
   MAIN CONTENT & FOOTER
   =============================== */
.main-content {
    padding: 40px 0;
}

.main-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}



/* ===============================
   MENU PAGE STYLES
   =============================== */
.menu-page h1 {
    text-align: center;
    margin-bottom: 10px;
}

.menu-page p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.category-list {
    display: grid;
    /* Create a responsive grid: 1 column on small screens, 2 on medium, 3 on large */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Space between the cards */
}

.category-card {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px); /* Lift the card up slightly on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.category-card h2 {
    margin-top: 0;
    color: #333;
}

.category-card p {
    color: #555;
    margin-bottom: 20px;
}

.category-card .btn {
    background: #5cb85c;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block; /* Allows padding and other properties to work */
}



/* ===============================
   MENU ITEMS PAGE STYLES
   =============================== */
.menu-items-page h1 {
    text-align: center;
    margin-bottom: 20px;
}

.menu-items-page p {
    text-align: center;
    margin-bottom: 40px;
}

.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.item-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensures the image corners are rounded */
    display: flex;
    flex-direction: column;
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.item-details {
    padding: 20px;
    flex-grow: 1; /* Allows this section to grow and push the button to the bottom */
    display: flex;
    flex-direction: column;
}

.item-details h3 {
    margin: 0 0 10px 0;
}

.item-description {
    color: #666;
    flex-grow: 1; /* Pushes the price and button down */
    margin-bottom: 15px;
}

.item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.btn-add-to-cart {
    background: #d9534f;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-add-to-cart:hover {
    background: #c9302c;
}



/* ===============================
   ITEM OPTIONS STYLES
   =============================== */
.item-options-container {
    margin-bottom: 15px;
}

.option-group {
    margin-top: 10px;
}

.option-group h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.option-group label {
    display: block; /* Puts each option on a new line */
    margin-bottom: 5px;
    font-size: 0.95rem;
    cursor: pointer;
}

.option-group label input {
    margin-right: 8px;
}



/* ===============================
   FORM STYLES (for Login & Register)
   =============================== */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Important for padding to not affect width */
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #c9302c;
}

.form-switch {
    text-align: center;
    margin-top: 20px;
}

/* For displaying success/error messages */
#form-messages {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    display: none; /* Hidden by default */
}
#form-messages.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    display: block;
}
#form-messages.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    display: block;
}



/* ===============================
   ITEM PURCHASE CONTROLS
   =============================== */
.item-purchase-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-selector label {
    font-weight: bold;
    margin-right: 10px;
}

.quantity-selector input[type="number"] {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}



/* ===============================
   CART PAGE STYLES
   =============================== */
.cart-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: #f8f8f8;
}

.cart-item-image {
    width: 100px;
    border-radius: 5px;
}

.cart-item-options {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: #666;
}
.cart-item-options li::before {
    content: '- ';
}

.btn-remove {
    color: #d9534f;
    font-size: 0.9rem;
}
.btn-remove:hover {
    text-decoration: underline;
}

.cart-summary {
    text-align: right;
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.btn.btn-checkout {
    background-color: #5cb85c;
    color: #fff;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 5px;
}
.btn.btn-checkout:hover {
    background-color: #4cae4c;
}


/* ===============================
   SIDE CART STYLES
   =============================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.side-cart.is-open {
    transform: translateX(0);
}

.side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.side-cart-header h3 {
    margin: 0;
}
.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.side-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 20px;
}
.empty-cart-message {
    text-align: center;
    margin-top: 40px;
    color: #888;
}

.side-cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.side-cart-item:last-child {
    border-bottom: none;
}
.side-cart-item .item-info strong {
    display: block;
}
.side-cart-item .item-info small {
    color: #777;
}
.side-cart-item .item-price {
    font-weight: bold;
}

.side-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f8f8;
}
.side-cart-footer .subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.side-cart-footer .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.side-cart-footer .btn-secondary {
    background-color: #6c757d;
    color: #fff;
}


/* ===============================
   CHECKOUT PAGE STYLES
   =============================== */
.checkout-page h1 {
    text-align: center;
    margin-bottom: 40px;
}
.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.order-summary {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    height: fit-content;
}
.order-summary h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.summary-item, .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.summary-item .item-name {
    color: #555;
}
.summary-total {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    font-size: 1.2rem;
}
.checkout-form {
    flex: 2;
    min-width: 400px;
}
.checkout-form .form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #777;
}
.checkout-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
}
.checkout-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}


.spinner, .spinner:before, .spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999em;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  transform: translateZ(0);
}
.spinner:before, .spinner:after {
  position: absolute;
  content: '';
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #c9302c;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  transform-origin: 10.4px 10.2px;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #c9302c;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  transform-origin: 0px 10.2px;
  animation: loading 2s infinite ease;
}
@keyframes loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.hidden { display: none; }



/* ===============================
   PROMOTION DISPLAY STYLES
   =============================== */
.item-image-container {
    position: relative;
}

.promotion-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

.price-display {
    text-align: right;
}

.price-display .item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.price-display .promo-price {
    color: #e74c3c; /* Make discounted price red to stand out */
}

.price-display .old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}


#reservation-messages.success {
background-color: #dff0d8;
color: #3c763d;
border: 1px solid #d6e9c6;
display: block;
}
#reservation-messages.error {
background-color: #f2dede;
color: #a94442;
border: 1px solid #ebccd1;
display: block;
}

/* Add this to the end of admin/css/style.css */

.current-image-preview {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
    display: block;
}

/* Add to the end of admin/css/style.css */
.low-stock-warning {
    color: #e74c3c;
    font-weight: bold;
}



/* ===============================
   CONTACT PAGE
   =============================== */
.contact-page h1 { text-align: center; }
.contact-page > p { text-align: center; margin-bottom: 40px; }

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-container-contact {
    width: 80%;
    max-width: 500px;
    margin: auto 186px 0px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.info-container h3 { margin-top: 0; }
.info-container p { line-height: 1.7; }
#message_body{
   width:100%;
    padding: 10px;
   
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    box-sizing: border-box;
    resize: none; /* Prevent resizing */
    overflow: hidden; /* Hide scrollbars if content overflows */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}


/* Styles for the contact form message box */
#contact-messages {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    display: none;
}
#contact-messages.success {
    background-color: #dff0d8; color: #3c763d; border: 1px solid #d6e9c6;
}
#contact-messages.error {
    background-color: #f2dede; color: #a94442; border: 1px solid #ebccd1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1150px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
     .form-container-contact {
        padding: 20px;
        margin: auto ;
      
    }
}
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
      .form-container-contact {
        padding: 20px;
        margin: auto 13px;
      
    }
}


/* Add this to the end of assets/css/style.css */

/* ===============================
   HOMEPAGE HERO & SLIDER
   =============================== */
.homepage-hero {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
}
.homepage-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.btn-primary-hero {
    display: inline-block;
    background-color: #d9534f;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.btn-primary-hero:hover {
    background-color: #c9302c;
}

.slider-container {
    text-align: center;
    padding: 40px 0;
}
.slider-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Pure CSS Slider */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 3)); } /* Slide width * number of slides */
}

.slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 400px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.slider::before,
.slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 200px;
    z-index: 2;
}
.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}
.slider::before {
    left: 0;
    top: 0;
}
.slider .slide-track {
    animation: scroll 20s linear infinite;
    display: flex;
    width: calc(350px * 6); /* Slide width * number of slides (doubled) */
}
.slider .slide {
    height: 400px;
    width: 350px;
    padding: 15px;
    box-sizing: border-box;
}
.slider .slide img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    border-radius: 5px;
}
.slider .slide-caption {
    text-align: center;
    padding-top: 15px;
}
.slider .slide-caption h3 {
    margin-top: 0;
}



/* =============================================================
   IMPROVED, PROFESSIONAL IMAGE PLACEHOLDER STYLES
   ============================================================= */
.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa; /* A very light, clean grey */
    display: flex;
    flex-direction: column; /* Stack the icon and text vertically */
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #e9ecef; /* A subtle border */
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Add a subtle cross-hatch pattern for texture */
.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, #e9ecef 25%, transparent 25%), 
        linear-gradient(-45deg, #e9ecef 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e9ecef 75%),
        linear-gradient(-45deg, transparent 75%, #e9ecef 75%);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* SVG Icon for "image" - URL-encoded for direct use in CSS */
.image-placeholder::after {
    content: '';
    position: relative; /* To appear above the pattern */
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ced4da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-image'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    margin-bottom: 10px;
}

.image-placeholder-text {
    position: relative; /* To appear above the pattern */
    color: #adb5bd; /* A soft, muted text color */
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 0 10px;
    font-family: sans-serif;
}



/* ===============================
   HOMEPAGE HERO SLIDER
   =============================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh; /* 70% of the viewport height */
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    background-color: #333; /* Fallback color */
}

.hero-slider .slides .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slider .slides .slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key for full-screen images */
    object-position: center;
}

/* Add a dark overlay for text readability */
.hero-slider .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-slider .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 3;
    width: 90%;
    max-width: 800px;
}

.hero-slider .slide-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.hero-slider .slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn-primary-hero {
    display: inline-block;
    background-color: #d9534f;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}
.btn-primary-hero:hover {
    background-color: #c9302c;
    transform: scale(1.05);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 4;
    transition: background-color 0.3s;
}
.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}
.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}
.slider-dots .dot.active {
    background-color: #fff;
}


/* ===============================
   ABOUT PAGE
   =============================== */
.about-hero {
    position: relative;
    text-align: center;
    color: white;
}
.about-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}
.about-hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    padding: 20px 40px;
    border-radius: 5px;
}
.about-hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

.about-content {
    background: #fff;
    padding: 40px;
    margin-top: -80px; /* Pull the content up over the hero image */
    position: relative;
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.about-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}
.about-content p {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}
.mission-item img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}
.mission-item h3 {
    text-align: center;
}
.about-actions {
    text-align: center;
    margin-top: 40px;
}
.about-actions .btn-primary-hero {
    margin: 0 10px;
}
@media (max-width: 768px) {
    .about-mission {
        grid-template-columns: 1fr;
    }
}



/* ==================================================================
   ==================================================================
   ==                 RESPONSIVE DESIGN (MOBILE-FRIENDLY)
   ==================================================================
   ================================================================== */

/* Prevent horizontal scroll on all elements */
html, body {
    overflow-x: hidden;
}

/* ------------------------------------------------------------------
   ## MEDIUM SCREENS (Tablets, smaller desktops) - 992px and below
   ------------------------------------------------------------------ */
@media (max-width: 992px) {
    .container {
        padding: 0 15px; /* Reduce padding on tablets */
    }

    /* Make grid layouts single-column for reports on admin */
    .menu-charts-container {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------
   ## SMALL SCREENS (Tablets in portrait, large phones) - 768px and below
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* --- GENERAL LAYOUT --- */
    .main-content {
        padding: 20px 0;
    }

    /* --- NAVIGATION --- */


/* --- RESPONSIVE NAVIGATION (HAMBURGER MENU) --- */
.hamburger-menu {
    display: none; /* Hidden by default on large screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Must be on top of other content */
    order: 2; /* Position between logo/actions */
}
.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex; /* Show the hamburger on small screens */
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px; /* Width of the slide-out menu */
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 80px; /* Space for the header */
    }

    .nav-container.is-active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .main-nav ul li {
        margin-left: 0;
    }
    .main-nav a {
        font-size: 1.2rem;
    }

    /* Animate the hamburger icon into an "X" */
    .hamburger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg);
    }
}
    /* --- HOMEPAGE SLIDER --- */
    .hero-slider {
        height: 50vh; /* Make slider shorter on mobile */
    }
    .hero-slider .slide-content h1 {
        font-size: 2rem;
    }
    .hero-slider .slide-content p {
        font-size: 1rem;
    }
    .slider-container {
        padding: 20px 0;
    }
    .slider {
        height: 350px;
    }

    /* --- ABOUT PAGE --- */
    .about-mission {
        grid-template-columns: 1fr;
    }
    .about-content {
        margin-top: 0;
        border-radius: 0;
    }
    .about-hero img {
        border-radius: 0;
    }

    /* --- CHECKOUT PAGE --- */
    .checkout-container {
        flex-direction: column; /* Stack summary and form vertically */
    }

    /* --- CONTACT PAGE --- */
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------
   ## EXTRA SMALL SCREENS (Most phones) - 576px and below
   ------------------------------------------------------------------ */
@media (max-width: 576px) {
    /* --- HEADER --- */
    .header-actions {
        /* Make the cart and login buttons take up more space */
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
    .welcome-user {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* --- GRID LAYOUTS --- */
    /* Ensure all grid layouts are single-column */
    .category-list,
    .item-list {
        grid-template-columns: 1fr;
    }

    /* --- CARDS --- */
    .item-card, .category-card {
        padding: 15px;
    }

    /* --- FORMS --- */
    .form-container {
        padding: 20px;
    }

    /* --- CART PAGE --- */
    /* This forces the table to not overflow the screen */
    .cart-table thead {
        display: none; /* Hide the table header */
    }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    .cart-table td {
        text-align: right; /* Align content to the right */
        padding-left: 50%; /* Create space for a label */
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }
    .cart-table td::before {
        content: attr(data-label); /* Use a data-label for the header */
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
    }
    .cart-summary {
        text-align: center;
    }

    /* --- ABOUT PAGE --- */
    .about-hero-text h1 {
        font-size: 1.8rem;
    }
    .about-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

/* ===============================
   LANGUAGE SWITCHER
   =============================== */
.language-switcher {
    margin-right: 15px;
}
.language-switcher select {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
}

/* RTL (Right-to-Left) support for Arabic */
html[dir="rtl"] {
    text-align: right;
}
html[dir="rtl"] .main-nav ul li {
    margin-left: 0;
    margin-right: 25px;
}
html[dir="rtl"] .header-actions {
    /* Reverse the order of elements */
    flex-direction: row-reverse;
}
html[dir="rtl"] .language-switcher {
    margin-right: 0;
    margin-left: 15px;
}



/* ===============================
   ACCOUNT PAGE & ORDER HISTORY
   =============================== */
.account-page h1 { text-align: center; }
.account-page > p { text-align: center; margin-bottom: 40px; color: #666; }

.order-history-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-history-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}
.card-header strong {
    font-size: 1.1rem;
    color: #333;
}
.card-header span {
    margin-left: 15px;
}

.card-body {
    padding: 20px;
}
.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.card-body li {
    padding: 5px 0;
}
.item-note {
    color: #888;
    font-size: 0.9em;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    text-align: right;
}
.btn-reorder {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn-reorder:hover {
    background-color: #2980b9;
}

/* Re-use status badges from admin panel, but maybe you want to copy them here */
.status-badge { padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; color: #fff; font-weight: bold; text-transform: capitalize; }
.status-pending, .status-preparing { background-color: #f39c12; }
.status-served, .status-ready, .status-on_the_way { background-color: #3498db; }
.status-completed { background-color: #2ecc71; }
.status-canceled { background-color: #e74c3c; }


/* ===============================
   FLASH MESSAGES
   =============================== */
.flash-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #2ecc71; /* Success green */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.flash-message.is-hidden {
    opacity: 0;
    transform: translateY(-20px);
}

.close-flash {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}


/* ===============================
   ORDER SUCCESS PAGE
   =============================== */
.success-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.success-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}
.order-summary-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}
.order-summary-box h3 {
    margin-top: 0;
    text-align: center;
}
.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.success-actions .btn-secondary {
    background-color: #6c757d;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}
/* Animated Checkmark Icon */
.success-icon svg {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 20px auto;
}
.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #2ecc71;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #2ecc71;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Add to end of assets/css/style.css */
.points-applied-message {
    color: #27ae60; /* A success green */
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: #f0fff0;
    border: 1px solid #d6e9c6;
    border-radius: 5px;
}

.header-logo-img { max-height: 50px; width: auto; } 
.track-order-prompt { margin-bottom: 30px; }

/* ===============================
   IMPROVED PROGRESS TRACKER
   =============================== */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
    width: 100%;
}
/* The main progress bar line */
.progress-tracker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    z-index: 1;
}
/* The colored line showing progress */
.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background-color: #2ecc71; /* Green success color */
    z-index: 2;
    transition: width 0.4s ease;
}

.progress-tracker .stage {
    position: relative;
    z-index: 3;
    text-align: center;
}
.progress-tracker .stage-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #e0e0e0;
    transition: background-color 0.4s ease, border-color 0.4s ease;
    font-size: 1.2rem;
}
.progress-tracker .stage-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
    font-weight: bold;
}

/* Styles for completed stages */
.progress-tracker .stage.completed .stage-icon {
    background-color: #2ecc71;
    border-color: #2ecc71;
}
.progress-tracker .stage.completed .stage-label {
    color: #333;
}

/* ===============================
   COMMUNITY RECIPES
   =============================== */
.recipes-header { text-align: center; margin-bottom: 40px; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.recipe-card { display: block; text-decoration: none; color: #333; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s; }
.recipe-card:hover { transform: translateY(-5px); }
.recipe-card-image img { width: 100%; height: 200px; object-fit: cover; }
.recipe-card-content { padding: 20px; }
.recipe-card-content h3 { margin-top: 0; }
.recipe-author { font-style: italic; color: #777; margin-bottom: 10px; }
.recipe-desc { font-size: 0.9rem; line-height: 1.5; }
.btn-back { display: inline-block; margin-bottom: 20px; font-weight: bold; }
.recipe-single-page h1 { margin-bottom: 5px; }

/* ===============================
   SINGLE RECIPE PAGE - UPGRADED UI
   =============================== */
.recipe-single-page {
    max-width: 900px;
    margin: 0 auto;
}
.recipe-single-page .btn-back {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
}

.recipe-hero-header {
    text-align: center;
    margin-bottom: 30px;
}
.recipe-hero-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}
.recipe-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #777;
    margin-bottom: 20px;
}
.meta-divider {
    color: #ddd;
}
.recipe-rating-display .rating-value {
    font-weight: bold;
    color: #f39c12; /* Gold color for rating */
}
.recipe-description-short {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.recipe-main-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
.recipe-image-full img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.recipe-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}
.recipe-ingredients-card, .recipe-instructions-card {
    line-height: 1.8;
}
.recipe-ingredients-card h3, .recipe-instructions-card h3 {
    margin-top: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.recipe-ingredients-card ul, .recipe-instructions-card ol {
    padding-left: 20px;
}
.recipe-ingredients-card ul li, .recipe-instructions-card ol li {
    margin-bottom: 10px;
}

.card-style {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
.rating-section h3 {
    text-align: center;
    margin-top: 0;
}
.rating-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    font-size: 2.5rem;
}
.star-rating input { display: none; }
.star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f39c12;
}

/* Responsive adjustments for the new layout */
@media (max-width: 768px) {
    .recipe-details-grid {
        grid-template-columns: 1fr;
    }
    .recipe-hero-header h1 {
        font-size: 2rem;
    }
}


/* ==================================================================
   SUBMIT RECIPE PAGE STYLES (Responsive)
   ================================================================== */
.submit-recipe-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}
.submit-recipe-page .page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.submit-recipe-page .page-header p {
    font-size: 1.1rem;
    color: #666;
}

.recipe-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

/* Form message styles (success/error) */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
.form-message.success {
    background-color: #e8f5e9; /* Light green */
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.form-message.error {
    background-color: #ffebee; /* Light red */
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.recipe-form .form-group {
    margin-bottom: 25px;
}
.recipe-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}
.recipe-form .form-group input[type="text"],
.recipe-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.recipe-form .form-group input[type="text"]:focus,
.recipe-form .form-group textarea:focus {
    outline: none;
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.2);
}
.recipe-form .form-group textarea {
    resize: vertical;
}

.btn-submit-recipe {
    width: 100%;
    padding: 15px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-submit-recipe:hover {
    background-color: #c9302c;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .recipe-form-container {
        padding: 20px;
    }
    .submit-recipe-page .page-header h1 {
        font-size: 2rem;
    }
}



/* ===============================
   RECIPES PAGE - FILTERS & RATINGS
   =============================== */
.filter-bar {
    background: #fff;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.filter-bar form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.filter-bar input[type="search"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.filter-bar select, .filter-bar button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f9fa;
}
.filter-bar button {
    background: #d9534f;
    color: #fff;
    border-color: #d9534f;
    cursor: pointer;
}

.recipe-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.recipe-rating-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f39c12; /* Gold color for stars */
}
.recipe-rating-display small {
    font-size: 0.9rem;
    color: #777;
    font-weight: normal;
}

/* Interactive Star Rating */
.rating-section { margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px; }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input[type="radio"] { display: none; }
.star-rating label { font-size: 2.5rem; color: #ccc; cursor: pointer; transition: color 0.2s; }
.star-rating input[type="radio"]:checked ~ label,
.star-rating:not(:checked) > label:hover,
.star-rating:not(:checked) > label:hover ~ label { color: #f39c12; }
.rating-form { display: flex; align-items: center; gap: 15px; }



/* =============================================================
   NEW DYNAMIC HOMEPAGE SECTIONS - VIBRANT UI
   ============================================================= */

/* --- General Section Styling --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
section {
    padding: 80px 0;
}

/* --- Text Block (About Us Snippet) --- */
.text-block-section {
    text-align: center;
}
.text-block-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}
.text-block-section p {
    max-width: 750px;
    margin: 0 auto 30px auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}
.btn-secondary-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-secondary-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* --- Vibrant Features Section --- */
.features-section-vibrant {
    background-color: #f8f9fa;
}
.features-grid-vibrant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card-vibrant {
    padding: 40px;
    border-radius: 10px;
    color: #fff;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.feature-card-vibrant:hover {
    transform: translateY(-10px);
}
.feature-card-vibrant h3 {
    font-family: var(--font-headings);
    font-size: 3rem;
    color: #fff;
    margin: 0 0 15px 0;
}
.feature-card-vibrant p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}
.color-1 { background: #27ae60; } /* Green */
.color-2 { background: #e74c3c; } /* Red */
.color-3 { background: #2980b9; } /* Blue */


/* ==================================================================
   FINAL HOMEPAGE SECTIONS CSS (Team Slider & Map)
   ================================================================== */

.section-subtitle {
    max-width: 600px;
    margin: -15px auto 40px auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* --- Team Section --- */
.team-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}
.team-section h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

/* --- Team SLIDER --- */
@keyframes team-scroll {
    0% { transform: translateX(0); }
    /* This needs to be updated if you change the number of team members */
    100% { transform: translateX(calc(-280px * 3)); } 
}
.team-slider {
    margin: 40px auto 0;
    overflow: hidden;
    position: relative;
    width: 90%;
    max-width: 1200px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.team-slide-track {
    display: flex;
    /* This needs to be updated if you change the number of team members (slides * 2) */
    width: calc(280px * 6); 
    animation: team-scroll 25s linear infinite;
}
.team-slide-track:hover {
    animation-play-state: paused;
}
.team-slide {
    width: 280px;
    padding: 15px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.team-member-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid var(--color-surface);
}
.team-member-card h4 { 
    margin-bottom: 5px; 
    font-size: 1.4rem; 
}
.team-member-card p { 
    color: var(--color-text-light); 
    margin: 0; 
}

/* --- Map Section --- */
.map-section {
     display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
 

}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
}
.map-info {
    padding: 50px;
    color: #fff;
        text-align: center
}
.map-info h3 {
    color: #000;
    font-size: 2.5rem;
}
.map-info p {
    color: #bdc3c7;
    font-size: 1.1rem;
}
.map-info a {
    color: #fff;
}
.map-info a:not(.btn-primary-hero) {
    text-decoration: underline;
}
.map-info a:hover:not(.btn-primary-hero) {
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .map-section {
        grid-template-columns: 1fr;
    }
    .map-info {
        grid-row: 1;
        text-align: center;
    }
}



/* ===============================
   NEW ABOUT US PAGE
   =============================== */
.about-page {
    padding: 0;
    padding-top: 0; /* Override main-content padding */
}
.about-hero {
    position: relative;
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Dark overlay for text readability */
}
.about-hero-text {
    position: relative;
    z-index: 2;
}
.about-hero-text h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
}
.about-hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    padding-top: 80px;
    padding-bottom: 80px;
}
.about-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.about-feature-row.reverse {
    direction: rtl; /* Reverses the order of grid items */
}
.about-feature-row.reverse .feature-text {
    direction: ltr; /* Resets text direction for content */
}
.feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feature-text h2 {
    font-size: 2.5rem;
}
.feature-text p {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.about-actions {
    text-align: center;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}
.about-actions h2 {
    margin-bottom: 30px;
}
.about-actions .btn-primary-hero {
    margin: 0 10px;
}

@media (max-width: 992px) {
    .about-feature-row,
    .about-feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr; /* Reset direction for mobile */
    }
}


/* ===============================
   DYNAMIC MENU TABS
   =============================== */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-border);
}
.category-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-primary);
    color: var(--color-text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}
.category-tab:hover {
    color: var(--color-secondary);
}
.category-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.item-list-loader {
    text-align: center;
    font-size: 1.5rem;
    padding: 50px;
    color: var(--color-text-light);
}
.no-items-message {
    text-align: center;
    padding: 50px;
    color: var(--color-text-light);
}

