/* Recipe collection card styling inside articles */

#z-collection-wrap .z-recipe-card {
    font-family: inherit;
    background-color: #fff;
    color: #111;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}




#z-collection-wrap .z-recipe-badge,
#z-collection-wrap .z-recipe-title,
#z-collection-wrap .z-recipe-desc,
#z-collection-wrap .z-recipe-why,
#z-collection-wrap .z-recipe-time,
#z-collection-wrap .z-recipe-nutrition,
#z-collection-wrap .z-recipe-btn,
#z-collection-wrap .z-recipe-img-wrap {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}






/* --- Element Styling --- */

/* Image */
#z-collection-wrap .z-recipe-img-wrap {
    width: 100%;
    height: 100%;
    display: block;
}




#z-collection-wrap .z-recipe-img-wrap > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; 
}

#z-collection-wrap .z-recipe-img-wrap {
    line-height: 0; /* Removes any text line-height effect */
}







#z-collection-wrap .z-recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Nutrition Info */
#z-collection-wrap .z-recipe-nutrition {
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 600;
    color: #555;
    gap: 8px;
}


@media screen and (max-width: 768px) {
  #z-collection-wrap .z-recipe-nutrition {
    white-space: normal;
    flex-wrap: wrap;
  }
}




#z-collection-wrap .z-divider { color: #ccc; }

/* Texts */
#z-collection-wrap .z-recipe-title {
    text-transform: uppercase;
    line-height: 1.3;
    font-weight: 700;
    color: #000;
    margin: 0; /* Reset theme margins */
}

#z-collection-wrap .z-recipe-desc {
    font-style: italic;
    line-height: 1.6;
    color: #444;
}

/* Main Button */
#z-collection-wrap .z-recipe-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
#z-collection-wrap .z-recipe-btn:hover {
    background-color: #333;
}

/* --- Ghost Button Style for Navigation --- */
/* Updated here to enforce the color and remove underlines */
 .z-nav-link {
    display: inline-block;
    font-size: 0.75rem;
    color: #111 !important; /* Force black color and override theme link color */
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 6px 14px;
    text-decoration: none !important; /* Force no underline */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    width: auto; 
}


.z-nav-link:hover {
    border-color: #000;
    background-color: #f9f9f9;
    color: #000 !important; /* Keep the color black on hover */
    text-decoration: none !important; /* Prevent underline from appearing on hover */
}

/* =========================================
   MOBILE LAYOUT (Max-width: 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    #z-collection-wrap .z-recipe-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-bottom: 20px;
    }
    
    /* 1. Jump Link */
  .z-link-top {
        align-self: center;
        margin-bottom: 15px;
        order: -5;
    }

    /* 2. Badge */
    #z-collection-wrap .z-recipe-badge {
        width: 100%;
        text-align: center;
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 25px;
        color: #000;
        background: transparent;
        position: static;
        order: -4;
    }

    /* 3. Title */
    #z-collection-wrap .z-recipe-title {
        text-align: center;
        font-size: 1.4rem;
        padding: 0 15px;
        margin-bottom: 15px;
        order: -3;
    }
     
    /* 4. Image */

#z-collection-wrap .z-recipe-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-bottom: 20px;
    order: -2;
    overflow: hidden;
}

#z-collection-wrap .z-recipe-img-wrap a,
#z-collection-wrap .z-recipe-img-wrap .essb-pin {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

#z-collection-wrap .z-recipe-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}


     
    /* Description */
    #z-collection-wrap .z-recipe-desc {
        text-align: center;
        padding: 0 20px;
        margin-bottom: 20px;
        font-size: 1rem;
        display: block;
    }
     
    /* Nutrition */
    #z-collection-wrap .z-recipe-nutrition {
        width: 100%;
        justify-content: center;
        margin-bottom: 25px;
        padding: 0 10px;
        gap: 4px;
        font-size: clamp(9px, 3.2vw, 13px);
    }
     
    /* Button */
    #z-collection-wrap .z-recipe-btn {
        width: calc(100% - 40px);
        margin: 0 auto 20px auto;
        padding: 16px 0;
        font-size: 0.9rem;
    }

    /* Last: Back to Top Link */
  .z-link-bottom {
        align-self: center;
        margin-bottom: 10px;
        order: 10;
    }
}

















/* =========================================
   DESKTOP LAYOUT (Min-width: 769px)
   ========================================= */
@media screen and (min-width: 769px) {




    #z-collection-wrap .z-recipe-title,
    #z-collection-wrap .z-recipe-desc,
    #z-collection-wrap .z-recipe-nutrition,
    #z-collection-wrap .z-recipe-btn{
        min-width: 0;
    }


   .z-nav-link {
        min-width: 0;
    }

    #z-collection-wrap .z-recipe-card {
        display: grid;
        grid-template-columns: 1fr 1fr; /* This fixes hidden card overflow */
        grid-template-rows: repeat(20, auto);
        gap: 0 40px;
        align-items: center;
        padding-right: 40px;
    }

    /* Image area */
    #z-collection-wrap .z-recipe-img-wrap {
        grid-column: 1 / 2;
        grid-row: 1 / -1; /* Spans all defined rows and keeps the image aligned with the column height even when content is injected */
        height: 100%;
        min-height: 450px;
        position: relative;
        align-self: stretch; /* Ensures the image stretches to match the text column height and prevents the button from jumping below the image */
    }

    /* Badge */
    #z-collection-wrap .z-recipe-badge {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        z-index: 10;
        background-color: #000;
        color: #fff;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        font-weight: bold;
        justify-self: start;
        align-self: start;
        margin-top: -15px;
        margin-left: -15px;
    }

    /* Text Column Alignment */
    #z-collection-wrap .z-recipe-title,
    #z-collection-wrap .z-recipe-desc,
    #z-collection-wrap .z-recipe-why,
    #z-collection-wrap .z-recipe-nutrition,
    #z-collection-wrap .z-recipe-btn,
    #z-collection-wrap .z-recipe-time
   {
        grid-column: 2 / 3;
        text-align: left;
    }


      .z-nav-link {
        grid-column: 2 / 3;
        text-align: left;
    }

    /* Top Link Placement */
.z-link-top {
        margin-bottom: 10px;
        align-self: end;
    }

    #z-collection-wrap .z-recipe-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    #z-collection-wrap .z-recipe-desc {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    /* Nutrition Info */
    #z-collection-wrap .z-recipe-nutrition {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 30px;
        white-space: nowrap;
        flex-wrap: nowrap;
        font-size: 11px;
        gap: 6px;
        width: 100%;
        color: #555;
    }

    #z-collection-wrap .z-recipe-btn {
        justify-self: start;
        padding: 14px 40px;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    /* Bottom Link Placement */
 .z-link-bottom {
        justify-self: start;
        margin-top: 5px;
    }
}



.recipetitlelink {
    text-decoration: none !important;     /* Force remove underline */
    color: inherit !important;            /* Force inherit color */
    box-shadow: none !important;          /* Some themes use shadow as an underline */
    border-bottom: none !important;       /* Some themes use borders as an underline */
}

.recipetitlelink:hover {
    text-decoration: underline !important; /* Restore underline on hover */
    color: inherit !important;             /* Keep the same color on hover */
    opacity: 0.8;
}



/* 1. Time styling, shared for mobile and desktop */
#z-collection-wrap .z-recipe-time {
    color: #d35400;          /* Attractive burnt orange color */
    font-weight: 800;        /* Bold font */
    font-size: 1rem;         /* Clear font size */
    margin-top: 8px;         /* Space above to separate it from the previous paragraph */
    margin-bottom: 15px;     /* Space below to separate it from the nutrition info */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 2. Mobile-specific styling, centered */
@media screen and (max-width: 768px) {
    #z-collection-wrap .z-recipe-time {
        justify-content: center; /* Center the time on mobile */
        width: 100%;
        margin-top: 5px;
        margin-bottom: 18px;
    }
}
















/* =========================================
   "Why it fits a diab"
   ========================================= */


/* Simple clean note */
#z-collection-wrap .z-recipe-why {
    background: transparent;
    border: 0;
    border-top: 1px solid #e6ded4;
    border-bottom: 1px solid #e6ded4;
    border-radius: 0;
    box-shadow: none;
    color: #3b3b3b;
    font-style: normal;
    line-height: 1.65;
}

#z-collection-wrap .z-recipe-why strong {
    display: inline;
    color: #111;
    font-weight: 700;
    font-size: inherit;
    letter-spacing: 0;
    margin: 0;
}

/* If a checkmark was added earlier, this removes it */
#z-collection-wrap .z-recipe-why strong::before {
    content: none !important;
}

/* Mobile */
@media screen and (max-width: 768px) {
    #z-collection-wrap .z-recipe-why {
        margin: 0 24px 22px 24px;
        padding: 14px 0;
        font-size: 0.88rem;
        text-align: left;
    }
}

/* Desktop */
@media screen and (min-width: 769px) {
    #z-collection-wrap .z-recipe-why {
        margin: 0 0 25px 0;
        padding: 16px 0;
        font-size: 0.98rem;
    }
}









/* =========================================
   ROBUSTNESS FIXES - Plugin &amp; WordPress Injections
   Fixes that keep the layout stable despite WordPress and plugin injections
   AdSense ads inside the card, buttons automatically wrapped in , Pinterest "Keep it" button
   ========================================= */

/* 1. Any direct child of the card, except the image wrapper and badge, is automatically placed in the second column.
      This catches: the  wrapping the GET THE RECIPE button, AdSense ads (.code-block), and any future element.
      Desktop only. Mobile uses flex column and does not need this. */
@media screen and (min-width: 769px) {
    #z-collection-wrap .z-recipe-card > *:not(.z-recipe-img-wrap):not(.z-recipe-badge) {
        grid-column: 2 / 3;
        text-align: left;
    }
}

/* 2. Hide any  inside the image wrapper, sometimes added by WordPress or lazy-loading */
#z-collection-wrap .z-recipe-img-wrap br {
    display: none;
}

/* 3. Support for the Pinterest "Easy Social Share Buttons" plugin:
      The plugin places the  inside .essb-pin and adds the "Keep it" button as an absolute-positioned sibling.
      We need to ensure:
      - .essb-pin has position: relative, which acts as the positioning reference for the button
      - .essb-pin fills the full width and height of .z-recipe-img-wrap, overriding inline max-width
      - The  inside it covers the container correctly
      All properties use !important to prevent CSS plugin styles or inline styles from overriding them */
#z-collection-wrap .z-recipe-img-wrap .essb-pin {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;   /* Override style="max-width: 402.312px" added by the plugin */
    height: 100% !important;
    display: block !important;
}

#z-collection-wrap .z-recipe-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4. Force the "Keep it" button to appear over the image, top right.
      Issue: the plugin CSS (.essb_pos_top-right) sometimes does not load in time,
      so the button falls back to the default position: static and appears below the image in the document flow.
      Fix: force position: absolute explicitly with !important, so it works whether the plugin CSS loads or not. */


#z-collection-wrap .z-recipe-img-wrap .essb_links {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important; /* Disable any left positioning from the plugin */
    margin: 0 !important; /* Prevent the plugin from shifting the button with negative margins */
    transform: none !important; /* Stop any transform effect that could move the button outside */
    z-index: 5;
}

















/* =========================================
   STYLE: HAND-DRAWN RECIPE BOOK
   Hand-drawn recipe book design, warm and artistic
   ========================================= */

/* 1. Main container */
.z-features-list {
    list-style: none !important;
    padding: 0;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Comfortable spacing */
    max-width: 900px;
    font-family: 'Amiri', 'Traditional Arabic', serif; /* Prefer using a beautiful Naskh-style font */
}

/* 2. Item with a hand-drawn look */
.z-features-list li {
    position: relative;
    background-color: #fff;
    color: #444;
    padding: 15px 25px;
    font-size: 1.1rem; /* Slightly larger text for comfortable reading */
    line-height: 1.7;
     
    /* The magic is here: irregular borders to make it look hand-drawn */
    border: 2px solid #444; 
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
     
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    background-image: linear-gradient(#fdfbf7, #fdfbf7); /* Very light old-paper color */
}

/* 3. Highlighter effect for important bold words */
.z-features-list li strong {
    font-weight: 700;
    color: #000;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 5px;
}

/* Draw a random-looking yellow background behind important words */
.z-features-list li strong::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 40%; /* Covers the lower half of the word */
    background-color: #ffd54f; /* Warm mustard yellow */
    opacity: 0.6;
    z-index: -1;
    transform: rotate(-2deg); /* Slight tilt to look handmade */
    border-radius: 4px;
}

/* 4. Mouse interaction, slight shake and shape change */
.z-features-list li:hover {
    transform: rotate(1deg) scale(1.02); /* Very slight rotation and scale */
    border-color: #d35400; /* Change border color to burnt orange, an appetizing color */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.08);
     
    /* Slightly change the border shape on hover to make it feel alive */
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

/* Icon or emoji styling */
.z-features-list li span.icon,
.z-features-list li::first-letter {
    font-size: 1.5rem;
    margin-left: 15px;
    filter: sepia(0.5); /* Softens emoji colors to match the vintage style */
}

/* =========================================
   DESKTOP LAYOUT (Min-width: 769px)
   ========================================= */
@media screen and (min-width: 769px) {
    .z-features-list {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .z-features-list li {
        flex: 1;
        flex-direction: column; /* Icon above text */
        text-align: center;
        justify-content: center;
        padding: 30px 20px;
    }

    /* Adjust the icon for vertical layout */
    .z-features-list li span.icon,
    .z-features-list li::first-letter {
        margin-left: 0;
        margin-bottom: 15px;
        display: block;
        font-size: 2rem;
    }
}



#z-collection-wrap .z-recipe-card {
    box-sizing: border-box;
    margin: 40px auto;
    padding: 0;
}









/* Jump-to-recipe button styling, customized for Pinterest visitors

Also styles the author and date area at the top to make room for the jump-to-recipe button beside them

*/








/* =========================================
   OTHER RECIPES — Compact cards (no image)
   Pairs with DIRECTIVE 14 in the article prompt.
   HTML:
     
       N
       [Name]
       [45–65 word description]
       GET THE RECIPE
     
   Badge numbering continues from RecipesDetails (e.g., 8, 9, 10).
   Separate consecutive entries with .
   ========================================= */

/* Reset */
.z-other-recipe,
.z-other-recipe .z-recipe-badge,
.z-other-recipe-title,
.z-other-recipe-desc,
.z-other-recipe .z-recipe-btn {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Container — paper background, burnt-orange top accent */
.z-other-recipe {
    font-family: inherit;
    background-color: #fdfbf7;
    color: #111;
    max-width: 1100px;
    margin: 35px auto;
    padding: 32px 38px;
    border-top: 3px solid #d35400;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.z-other-recipe:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* Badge — same DNA as main card badge */
.z-other-recipe .z-recipe-badge {
    display: inline-flex;
    background-color: #000;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 16px;
}

/* Title */
.z-other-recipe-title {
    text-transform: uppercase;
    line-height: 1.3;
    font-weight: 700;
    color: #000;
    font-size: 1.55rem;
    margin: 0 0 12px 0;
}

.z-other-recipe-title a {
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.z-other-recipe-title a:hover {
    text-decoration: underline !important;
    color: inherit !important;
    opacity: 0.8;
}

/* Description — italic, matches main card tone */
.z-other-recipe-desc {
    font-style: italic;
    line-height: 1.65;
    color: #444;
    font-size: 1.05rem;
    margin: 0 0 24px 0;
}

/* Button — identical to main card button */
.z-other-recipe .z-recipe-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 14px 36px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.z-other-recipe .z-recipe-btn:hover {
    background-color: #333;
    color: #fff;
}

/* =========================================
   MOBILE LAYOUT (max-width: 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    .z-other-recipe {
        padding: 26px 22px;
        margin: 26px auto;
        text-align: center;
    }
    
    .z-other-recipe .z-recipe-badge {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
        margin: 0 auto 18px auto;
    }
    
    .z-other-recipe-title {
        font-size: 1.25rem;
        padding: 0 5px;
        margin-bottom: 12px;
    }
    
    .z-other-recipe-desc {
        font-size: 0.98rem;
        padding: 0 4px;
        margin-bottom: 22px;
    }
    
    .z-other-recipe .z-recipe-btn {
        display: flex;
        width: 100%;
        padding: 15px 0;
    }
}



/* Time element inside Other Recipes — mirrors main card time, scoped to this container */
.z-other-recipe .z-recipe-time {
    color: #d35400;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media screen and (max-width: 768px) {
    .z-other-recipe .z-recipe-time {
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
}




/* Nutrition strip inside Other Recipes — mirrors main card, scoped here */
.z-other-recipe .z-recipe-nutrition {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: 600;
    color: #555;
    margin: 0 0 22px 0;
    font-size: 11px;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.z-other-recipe .z-divider {
    color: #ccc;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .z-other-recipe .z-recipe-nutrition {
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
        width: 100%;
        padding: 0 10px;
        gap: 4px;
        font-size: clamp(9px, 3.2vw, 13px);
        margin-bottom: 24px;
    }
}











/*       Source Links, And Related Posts Styling          */





.related-reading {
  background: transparent;
  border-inline-start: 2px solid #e5e7eb;
  padding: 8px 0 8px 12px;
  margin: 14px 0 26px;
  font-size: 0.92em;
  line-height: 1.5;
}

.related-reading strong {
  font-weight: 600;
}



.source-link {
  font-weight: 300;
}
















