
/* styles.css */
@font-face{font-family:'menu-cart';src:url('../font/menu-cart.eot');src:url('../font/menu-cart.eot') format('embedded-opentype'),url('../font/menu-cart.ttf') format('truetype'),url('../font/menu-cart.woff') format('woff'),url('../font/menu-cart.svg') format('svg');font-weight:normal;font-style:normal}.mp-menu-cart-li .mprm-cart-font,.form-table .mprm-cart-font{font-family:'menu-cart' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:.25em}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cartzero:before,.form-table .mprm-cart-font.icon-mprm-cartzero:before{content:"\e900"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart1:before,.form-table .mprm-cart-font.icon-mprm-cart1:before{content:"\e901"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart2:before,.form-table .mprm-cart-font.icon-mprm-cart2:before{content:"\e906"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart3:before,.form-table .mprm-cart-font.icon-mprm-cart3:before{content:"\e902"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart4:before,.form-table .mprm-cart-font.icon-mprm-cart4:before{content:"\e903"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart5:before,.form-table .mprm-cart-font.icon-mprm-cart5:before{content:"\e907"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart6:before,.form-table .mprm-cart-font.icon-mprm-cart6:before{content:"\e905"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart7:before,.form-table .mprm-cart-font.icon-mprm-cart7:before{content:"\e908"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart8:before,.form-table .mprm-cart-font.icon-mprm-cart8:before{content:"\e909"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart9:before,.form-table .mprm-cart-font.icon-mprm-cart9:before{content:"\e90a"}.mp-menu-cart-li .mprm-cart-font.icon-mprm-cart10:before,.form-table .mprm-cart-font.icon-mprm-cart10:before{content:"\e904"}.mp-menu-cart-contents.mp-menu-cart-amount:before{content:'-';margin:0 .25em}.mp-cart-display-right{float:right !important}.mp-cart-display-left{float:left !important}
/* --- Final Modal Cart System Styles (v5) --- */
/* --- Final Modal Cart System Styles (v6 - Definitive) --- */

 *, *::before, *::after {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #f5f5f5;
    }

    /* outer wrapper */
    .menu-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1rem;
    }

    /* centered heading */
    .menu-container h1 {
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 2rem;
      color: #333;
      font-family: 'Josefin Sans', sans-serif;
    }

    .menu-container h2 {
      text-align: center;
      font-size: 2rem;
      margin-top: 2.5rem;
      margin-bottom: 1.5rem;
      color: #444;
      font-family: 'Josefin Sans', sans-serif;
    }

    .menu-container ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .menu-container ul li {
        font-size: 1.1rem;
        color: #555;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    /* grid of horizontal cards */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 1.5rem;
    }

   /*
  Relevant CSS to show the full image in a landscape container on the left.
  Replace the existing '.card' and '.card img' styles with these.
*/


/* Header Alignment & Cart Bubble */
.mad-header-items { flex-wrap: nowrap !important; align-items: center; }
#cart-icon-trigger { position: relative; }
#cart-count { position: absolute; top: -8px; right: -8px; background-color: #ebe117; color: #232223; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; font-family: 'Lato', sans-serif; transform: scale(0); transition: transform 0.2s ease-out; }
#cart-count.has-items { transform: scale(1); }

/* Modal Overlay & Content */
.cart-modal-overlay { display: none; position: fixed; z-index: 99998; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); }
.cart-modal-content { background-color: #fefefe; margin: 5% auto; padding: 2rem; border-radius: 1.5rem; width: 90%; max-width: 650px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.cart-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eaeaea; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.cart-modal-title { font-family: 'Josefin Sans', sans-serif; font-size: 1.875rem; color: #232223; margin: 0; }
.cart-modal-close-btn { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }

/* Product Modal Specifics */
.product-modal-body { display: flex; gap: 1.5rem; flex-wrap: wrap; }
#product-modal-img { width: 200px; height: 200px; object-fit: cover; border-radius: 1rem; flex-shrink: 0; }
.product-modal-details { display: flex; flex-direction: column; width: 100%; flex: 1; min-width: 250px; }
#product-modal-price { font-family: 'Josefin Sans', sans-serif; font-size: 1.75rem; font-weight: bold; color: #eb0029; margin: 0 0 1rem 0; }
.quantity-selector { display: flex; align-items: center; margin-bottom: 1rem; }
#product-modal-quantity {
    width: 60px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #232223 !important;
    background-color: #fff;
    border: 2px solid #e6e6e6;
    height: 44px;
    -moz-appearance: textfield;
    /* --- FIX STARTS HERE --- */
    padding: 0; /* Override the theme's large padding */
    border-left: none; /* Remove the border to connect with buttons */
    border-right: none;
    border-radius: 0; /* Remove radius to fit flush with buttons */
    /* --- FIX ENDS HERE --- */
}
#product-modal-quantity::-webkit-outer-spin-button, #product-modal-quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-btn { width: 44px; height: 44px; border: 2px solid #e6e6e6; background-color: #f8f8f8; font-size: 1.5rem; cursor: pointer; color: #575457; }
#quantity-minus { border-radius: 22px 0 0 22px; border-right: none; }
#quantity-plus { border-radius: 0 22px 22px 0; border-left: none; }

/* Add-ons Section Styling */
.addons-section { 
    display: flex; 
    flex-direction: column; 
    min-height: 150px; 
    margin-bottom: 1.5rem; 
}
.addons-title { font-family: 'Josefin Sans', sans-serif; font-size: 1.1rem; color: #232223; margin: 0 0 0.75rem 0; flex-shrink: 0; }
.addons-list { display: block !important; flex-grow: 1 !important; overflow-y: auto !important; border: 1px solid #e6e6e6; border-radius: 1rem; padding: 0.5rem; }
.addon-item { display: flex; align-items: center; padding: 0.5rem; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.addon-item:not(:last-child){ margin-bottom: 5px; }

/* NEW/CRITICAL: VISUAL FEEDBACK FOR SELECTION */
.addon-item.selected {
    background-color: #fef2f4 !important; /* A light red to indicate selection */
    border-color: #eb0029;
}
.addon-item input[type="checkbox"] { display: none; /* We don't need to see the broken checkbox */ }
.addon-item label { display: flex; justify-content: space-between; width: 100%; cursor: pointer; font-size: 1rem; color: #575457; align-items: center; }
.addon-item .addon-price { font-weight: bold; color: #232223; }

/* Cart View Modal Styles */
.cart-view-modal { max-width: 700px; }
.cart-modal-item-list { max-height: 50vh; overflow-y: auto; padding-right: 10px; }
.cart-modal-item { display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #f0f0f0; }
.cart-modal-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 1rem; }
.cart-modal-item-info { flex-grow: 1; }
.cart-modal-item-title { font-weight: bold; font-size: 1.1rem; color: #232223; }
.cart-modal-item-price { font-size: 0.9rem; color: #575457; }
.cart-modal-item-quantity { font-weight: bold; font-size: 1.1rem; color: #232223; padding: 0 1rem; }
.cart-modal-item-addons { font-size: 0.85rem; color: #575457; list-style-type: none; padding-left: 15px; margin-top: 5px; }
.cart-modal-item-addons li::before { content: ' '; }
.cart-modal-item-remove { background: none; border: none; color: #eb0029; font-size: 1.5rem; cursor: pointer; }
.cart-modal-footer { border-top: 2px solid #ebe117; padding-top: 1.5rem; margin-top: 1rem; }
.cart-modal-total { display: flex; justify-content: space-between; font-family: 'Josefin Sans', sans-serif; font-size: 1.75rem; color: #232223; margin-bottom: 1.5rem; }

.addon-item label {
    position: relative;
    padding-left: 35px; /* Make space for the custom checkbox */
}

/* Style for the custom checkbox box */
.addon-item label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #e6e6e6;
    background-color: #fff;
    border-radius: 6px;
    transition: all 0.2s;
}

/* Style for the checkmark inside the box */
.addon-item.selected label::after {
    content: '✔';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #eb0029; /* Red checkmark */
}

/* Change box border when selected */
.addon-item.selected label::before {
    border-color: #eb0029;
}



/* --- RESPONSIVE HEADER FINAL FIX V4 --- */
@media (max-width: 991px) {
    /* Completely hide the navigation link area on mobile, we use the off-canvas toggle. */
    .mad-header-item.header-item_navigation {
        display: none !important;
    }

    /* Keep the remaining items on a single, compact line */
    .mad-header-items {
        flex-wrap: nowrap !important;
        justify-content: space-between;
        padding: 0.5rem 1rem !important; /* Reduced padding */
    }
    
    /* Adjust sizes for a compact look */
    .mad-logo img {
        max-height: 40px; /* Smaller logo */
    }

    .mad-header-item.header-item_actions {
        /* We need space for the phone info, cart, and the new hamburger button */
        display: flex;
        align-items: center;
        gap: 1rem; 
        flex-grow: 1; /* Allow it to take up more space next to the logo */
        justify-content: flex-end; /* Push content to the right edge */
    }

    .mad-our-info .mad-info {
        align-items: center;
        display: none; /* Hide for very small screens, keeping only phone number visible via original theme CSS if needed */
    }
    
    .mad-our-info .mad-info > i {
        font-size: 1.25rem;
        margin-right: 0.3rem;
    }

    .mad-our-info .mad-info-content span {
        display: block; /* Show "Call us for ordering" */
        font-size: 0.65rem; /* Make it smaller */
        line-height: 1;
    }
    
    .mad-our-info .mad-info-title {
        font-size: 0.9rem !important;
        line-height: 1;
        /* Force display of the number by setting inline block */
        display: inline-block !important; 
    }

    /* Adjust cart icon size */
    .mad-actions .mad-item-link {
        width: 38px;
        height: 38px;
    }

    .mad-actions .mad-item-link i {
        font-size: 1.2rem;
        line-height: 38px;
    }

    #cart-count {
        top: -4px;
        right: -4px;
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* --- Show the Call Info clearly in the header actions block --- */
    .mad-header-item.header-item_actions .mad-our-info.type-2 {
        display: flex !important; /* Force flex display to lay out phone icon and text */
        margin-right: 1rem; /* Space before cart icon */
    }

    /* Hide the text content for the smallest screens to save space */
    @media (max-width: 480px) {
        .mad-our-info .mad-info-content span,
        .mad-our-info .mad-info-content .mad-info-title {
            font-size: 0.8rem !important;
        }
        .mad-our-info .mad-info-content span {
            display: none !important; /* Only show number on tiny screens */
        }
    }
}


/* --- RESPONSIVE HEADER FINAL FIX V4 --- */
@media (max-width: 991px) {
    /* Completely hide the navigation link area on mobile, we use the off-canvas toggle. */
    .mad-header-item.header-item_navigation {
        display: none !important;
    }

    /* Keep the remaining items on a single, compact line */
    .mad-header-items {
        flex-wrap: nowrap !important;
        justify-content: space-between;
        padding: 0.5rem 1rem !important; /* Reduced padding */
    }
    
    /* Adjust sizes for a compact look */
    .mad-logo img {
        max-height: 40px; /* Smaller logo */
    }

    .mad-header-item.header-item_actions {
        /* We need space for the phone info, cart, and the new hamburger button */
        display: flex;
        align-items: center;
        gap: 1rem; 
        flex-grow: 1; /* Allow it to take up more space next to the logo */
        justify-content: flex-end; /* Push content to the right edge */
    }
    
    /* --- CRUCIAL FIX: HIDE THE UNWANTED ICON-LIKE ELEMENT --- */
    /* This rule hides any extraneous direct child elements. */
    .mad-header-item.header-item_actions > :not(.mad-our-info):not(.mad-actions):not(.mad-mobile-nav-btn) {
        display: none !important;
    }
    /* ----------------------------------------------------- */

    .mad-our-info .mad-info {
        align-items: center;
        display: flex; 
    }
    
    .mad-our-info .mad-info > i {
        font-size: 1.25rem;
        margin-right: 0.3rem;
    }

    .mad-our-info .mad-info-content span {
        display: block; /* Show "Call us for ordering" */
        font-size: 0.65rem; 
        line-height: 1;
    }
    
    .mad-our-info .mad-info-title {
        font-size: 0.9rem !important;
        line-height: 1;
        display: block !important; 
    }

    /* Adjust cart icon size */
    .mad-actions .mad-item-link {
        width: 38px;
        height: 38px;
    }

    .mad-actions .mad-item-link i {
        font-size: 1.2rem;
        line-height: 38px;
    }

    #cart-count {
        top: -4px;
        right: -4px;
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* --- Show the Call Info clearly in the header actions block --- */
    .mad-header-item.header-item_actions .mad-our-info.type-2 {
        display: flex !important; 
        margin-right: 1rem; 
    }

    /* Hide the text content for the smallest screens to save space */
    @media (max-width: 480px) {
        .mad-our-info .mad-info-content span {
            display: none !important; /* Only show number on tiny screens */
        }
        .mad-our-info .mad-info-content .mad-info-title {
            font-size: 0.9rem !important;
        }
    }
}



/* ========== HAMBURGER MENU STYLES - Aesthetic Fix ========== */

/* 1. Hamburger Icon Visibility and Aesthetic */
.mad-mobile-nav-btn {
    display: none; /* Hidden by default on desktop */
    background-color: #ebe117; /* Theme yellow for contrast */
    color: #232223; /* Theme dark color for the icon */
    border: none;
    border-radius: 8px;
    width: 38px; 
    height: 38px; 
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1; 
}

/* --- THE NEW CRUCIAL FIX FOR THE UNWANTED ::AFTER ELEMENT --- */
.mad-mobile-nav-btn::after {
    content: none !important;
    background-color: transparent !important;
    width: 0 !important;
    height: 0 !important;
    position: static !important;
    display: none !important;
}
/* ----------------------------------------------------------- */

.mad-mobile-nav-btn i {
    font-size: 1.5rem; 
    line-height: 1; 
}

@media (max-width: 991px) {
    .mad-mobile-nav-btn {
        display: flex; 
    }
    
    /* Ensure the cart is slightly separated from the hamburger */
    .mad-actions {
        margin-right: 0.5rem; 
    }
    
    /* 2. Reposition and Style the Navigation for Mobile (Off-Canvas Menu) */
    /* Inside @media (max-width: 991px) */
    .mad-header-item.header-item_navigation {
        display: block !important;
        position: fixed;
        top: 0;
        left: -100%; 
        width: 80%;
        max-width: 360px; /* <--- INCREASED VALUE */
        height: 100%;
        background-color: #232223; 
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        padding-top: 60px; 
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }

    /* 3. "Open" State for the Navigation */
    .mad-header-item.header-item_navigation.is-open {
        left: 0;
    }

    /* 4. Style the Navigation Links for Vertical Layout */
    .mad-navigation-container {
        display: block;
        width: 100%;
    }

    .mad-navigation--horizontal {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin: 0;
    }

    .mad-navigation > li {
        width: 100%;
        padding: 0;
    }

    .mad-navigation > li > a {
        padding: 15px 25px;
        width: 100%;
        border-bottom: 1px solid #3a393a;
        font-size: 1.1rem;
        color: #fff; /* Ensure text is visible on dark background */
    }

    .mad-navigation > li:hover > a, 
    .mad-navigation > li.current-menu-item > a {
        color: #ebe117; /* Highlight hover/active state */
    }


    /* 5. Handle Sub-Menus in Mobile View -- CORRECTED */
.mad-navigation > li.menu-item-has-children > a {
    display: flex;
    justify-content: space-between; /* This creates the space */
    align-items: center;
}

.mad-navigation .sub-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: none; 
    box-shadow: none;
    background-color: rgba(0,0,0,0.2);
    margin-top: 0;
    border-radius: 0;
    padding: 10px 0 10px 30px; 
}

.mad-navigation li.menu-item-has-children.is-open > .sub-menu {
    display: block; 
}

.mad-navigation .sub-menu a {
    color: #fff; 
    padding: 10px 0;
    display: block;
    font-size: 1rem;
    border-bottom: none;
}

.mad-navigation > li.menu-item-has-children > a::after {
    float: right; 
    transition: transform 0.3s ease;
}

.mad-navigation > li.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg); 
}
    
   
}


/* --- MOBILE HEADER COMPACT FIX (For 360px - 576px screens) --- */
@media (max-width: 576px) {
    
    /* 1. Reduce Header Padding to create more internal space */
    .mad-header-items {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* 2. Shrink the Logo */
    .mad-logo img {
        max-height: 35px !important; /* Smaller logo */
        width: auto;
    }

    /* 3. Compact the Phone Number Section */
    /* Hide the "Call us for ordering" text, keep only the number and icon */
    .mad-our-info .mad-info-content span {
        display: none !important; 
    }
    
    /* Make the phone number smaller */
    .mad-our-info .mad-info-title {
        font-size: 0.8rem !important; 
        white-space: nowrap;
    }
    
    /* Make the phone icon smaller and reduce margin */
    .mad-our-info .mad-info > i {
        font-size: 1rem !important;
        margin-right: 3px !important;
    }
    
    /* 4. Tighten the Action Buttons Container */
    /* Reduce gap between Phone, Cart, and Menu */
    .mad-header-item.header-item_actions {
        gap: 5px !important; 
    }
    
    /* Reduce margin around the cart icon container */
    .mad-header-item.header-item_actions .mad-our-info.type-2 {
        margin-right: 2px !important;
    }
    .mad-actions {
        margin-right: 2px !important;
    }

    /* 5. Shrink the Cart and Menu Buttons */
    .mad-actions .mad-item-link,
    .mad-mobile-nav-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
    }

    /* Center the icons inside the smaller buttons */
    .mad-actions .mad-item-link i,
    .mad-mobile-nav-btn i {
        font-size: 1.2rem !important;
        line-height: 32px !important;
    }

    /* Adjust Cart Count Bubble position */
    #cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -3px;
        right: -3px;
    }
}

/* --- MOBILE HEADER ALIGNMENT FIX --- */
@media (max-width: 768px) {
    
    /* 1. Main Container: Flexbox to center items vertically */
    .mad-header-items {
        display: flex !important;
        align-items: center !important; /* Vertically center everything */
        justify-content: space-between !important;
        padding: 10px 15px !important; /* Clean padding */
        height: auto !important;
        min-height: 60px;
    }

    /* 2. Logo: Limit height so it doesn't stretch the header */
    .mad-header-item.header-item_logo {
        flex: 0 0 auto;
        margin-right: auto; /* Push everything else to the right */
    }
    
    .mad-logo img {
        max-height: 40px !important;
        width: auto !important;
        display: block;
        margin: 0;
    }

    /* 3. Right Side Group (Phone + Cart + Menu): Flex container */
    .mad-header-item.header-item_actions {
        display: flex !important;
        align-items: center !important; /* Vertically center these items */
        justify-content: flex-end !important;
        gap: 10px !important; /* Even space between Phone, Cart, and Menu */
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    /* 4. Phone Number Section Alignment */
    .mad-our-info.type-2 {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .mad-our-info .mad-info {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Phone Icon - Fix Gap */
    .mad-our-info .mad-info > i {
        font-size: 16px !important;
        margin-right: 4px !important; /* Tiny gap between icon and number */
        margin-left: 0 !important;    /* Remove left margin */
        min-width: auto !important;   /* CRITICAL: Removes the default wide spacing */
        width: auto !important;       /* Ensure it wraps tight to the icon */
        display: inline-block !important;
        line-height: 1 !important;
    }

    /* Phone Text */
    .mad-our-info .mad-info-title {
        font-size: 11px !important; /* Slightly smaller to fit */
        margin: 0 !important;
        line-height: 1 !important;
        font-weight: bold;
        white-space: nowrap;
    }
    
    /* Hide the 'Call us' text to save space, keep only number */
    .mad-our-info .mad-info-content span {
        display: none !important;
    }

    /* 5. Cart & Menu Buttons Uniformity */
    .mad-actions {
        margin: 0 !important;
        padding: 0 !important;
    }

    .mad-actions .mad-item {
        padding: 0 !important;
    }

    /* Force buttons to be square and centered */
    .mad-actions .mad-item-link,
    .mad-mobile-nav-btn {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        margin: 0 !important;
        line-height: 0 !important;
    }

    /* Icon size inside buttons */
    .mad-actions .mad-item-link i,
    .mad-mobile-nav-btn i {
        font-size: 18px !important;
        line-height: 0 !important;
    }
}


/* --- 1. Product Title: Fixed to 2 Lines --- */
.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.4rem;
  
  /* Logic for 2 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* Allow exactly 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* Height Calculation: line-height (1.3) * 2 lines = 2.6em */
  line-height: 1.3;
  height: 2.6em;                /* Forces fixed height to keep cards aligned */
}

/* --- 2. Description: Fixed to 2 Lines --- */
.card-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  
  /* Logic for 2 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* Allow exactly 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* Height Calculation: line-height (1.3) * 2 lines = 2.6em */
  line-height: 1.3;
  height: 2.6em; 
}