:root {
  --brand: #e6194b;
  --brand-dark: #c20f3b;
  --ink: #17181a;
  --muted: #6b7280;
  --bg-soft: #f8f7f6;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0, #fff9fb 70%, #fff 100%);
}

/* The recipe detail background is the site-wide page background. */
.recipe-single-page, .blog-single-page {
  min-height: 100vh;
  background: transparent;
}

a { text-decoration: none; }
.text-brand { color: var(--brand); }
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-outline-brand {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid #eee; background: #fff; }
.site-logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand); display: flex; align-items: center; justify-content: center;
}
.site-title { font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.site-tagline { font-size: .75rem; color: var(--muted); }
.main-nav a {
  color: var(--ink); font-weight: 500; margin: 0 .75rem; padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.main-nav a.active, .main-nav a:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Hero ---------- */
.hero-section {
  position: relative; overflow: hidden; padding: 4.5rem 0 3rem;
  background: radial-gradient(circle at 85% 15%, rgba(230,25,75,.07), transparent 45%),
              radial-gradient(circle at 8% 90%, rgba(230,25,75,.05), transparent 40%),
              #fff;
}
.hero-eyebrow {
  color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.hero-title-v2 { font-weight: 800; font-size: 2.9rem; line-height: 1.12; color: var(--ink); }
.hero-title-v2 .text-brand { color: var(--brand); }
.hero-desc-v2 { color: var(--muted); font-size: 1.05rem; max-width: 460px; }
.btn-hero { font-size: .95rem; }
.btn-outline-dark.btn-hero { border-color: #dcdcdc; color: var(--ink); }
.btn-outline-dark.btn-hero:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.hero-visual { padding: 2.5rem 1rem 3.25rem; }
.hero-featured-card { position: relative; z-index: 2; }
.hero-featured-thumb {
  position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden;
  background: #0b1220; box-shadow: 0 25px 50px rgba(0,0,0,.22);
}
.hero-featured-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero-play-btn {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 10px 25px rgba(230,25,75,.45);
}

.hero-title-card {
  position: absolute; left: 6%; right: 6%; bottom: -1.5rem; z-index: 3;
  background: #fff; border-radius: 14px; padding: .9rem 1.25rem; box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.hero-title-card-eyebrow { color: var(--brand); font-weight: 700; font-size: .68rem; letter-spacing: .08em; display: block; margin-bottom: 2px; }
.hero-title-card-title { font-weight: 700; font-size: .95rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.hero-badge {
  position: absolute; background: #fff; border-radius: 12px; padding: .6rem .9rem;
  box-shadow: 0 12px 25px rgba(0,0,0,.1); display: flex; align-items: center; gap: 10px; z-index: 1;
  min-width: 150px;
}
.hero-badge i { color: var(--brand); font-size: 1.15rem; }
.hero-badge strong { display: block; font-size: .82rem; line-height: 1.2; }
.hero-badge span { display: block; font-size: .72rem; color: var(--muted); }
.hero-badge-1 { top: -1rem; right: -1rem; z-index: 6; }
.hero-badge-2 { bottom: 4.75rem; left: -1.25rem; z-index: 5; }

@media (max-width: 991px) {
  .hero-title-v2 { font-size: 2.3rem; }
  .hero-visual { padding: 2rem .5rem 3rem; }
  .hero-badge-1 { top: -.5rem; right: 0; }
  .hero-badge-2 { left: 0; }
}

/* ---------- Search & Filters ---------- */
.search-box { max-width: 640px; margin: 0 auto; position: relative; }
.search-box input { padding-left: 2.75rem; border-radius: 50px; height: 52px; }
.search-box .bi-search { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }

.filter-pills { background: var(--bg-soft); border-radius: 50px; padding: 6px; display: inline-flex; }
.filter-pills .pill {
  border: none; background: transparent; padding: .5rem 1.25rem; border-radius: 50px; font-weight: 500; color: var(--muted);
  transition: all .15s ease;
}
.filter-pills .pill.active { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* ---------- Video Card ---------- */
.video-card { background: #fff; border-radius: 14px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.thumb-wrap {
  position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #000; display: block;
}
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.thumb-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px; letter-spacing: .04em;
}
.thumb-badge.short-badge { background: #111; }
.thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15); opacity: 0; transition: opacity .15s ease;
}
.thumb-wrap:hover .thumb-play { opacity: 1; }
.thumb-play i {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.4rem;
}
.video-card-body { padding: 14px 16px; }
.video-card-title {
  font-weight: 600; font-size: .98rem; line-height: 1.35; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.video-card-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.meta-actions { display: flex; align-items: center; gap: 14px; }
.like-btn, .share-btn { background: none; border: none; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.like-btn.liked { color: var(--brand); }
.like-btn.liked i { font-weight: 900; }
.view-count { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Video/Short single page ---------- */
.player-wrap { background: #f0f0f0; border-radius: 16px; padding: 2rem; }
.player-16x9 { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.player-16x9 iframe { width: 100%; height: 100%; border: 0; }

.phone-shell {
  position: relative; width: 300px; max-width: 80vw; margin: 0 auto; aspect-ratio: 9/19.5;
  background: #111; border-radius: 46px; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone-screen iframe { width: 100%; height: 100%; border: 0; }
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 40%; height: 22px; background: #111; border-radius: 20px; z-index: 3;
}

.share-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.share-fb { background: #1877f2; }
.share-tw { background: #000; }
.share-tt { background: #010101; }
.share-em { background: #6b7280; }

.prevnext-card { border: 1px solid #eee; border-radius: 12px; padding: 1rem; }
.prevnext-thumb { width: 90px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.prevnext-thumb.short { aspect-ratio: 9/16; width: 70px; }

/* ---------- Comments ---------- */
.comment-item { border-bottom: 1px solid #eee; padding: 1rem 0; }
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { background: #111214; color: #cfcfcf; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-right: 8px;
}
.footer-social a:hover { background: var(--brand); }

/* ---------- Misc ---------- */
.section-title { font-weight: 700; }
.empty-state { padding: 4rem 1rem; text-align: center; color: var(--muted); }
#loadMoreBtn:disabled { opacity: .6; }
.skeleton { background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0%{background-position:100% 50%} 100%{background-position:0 50%} }

@media (max-width: 767px) {
  .hero-title-v2 { font-size: 1.9rem; }
}

/* ---------- Blog ---------- */
.blog-masonry { column-count: 3; column-gap: 1.5rem; }
.blog-masonry-item { break-inside: avoid; margin-bottom: 1.5rem; }
@media (max-width: 991px) { .blog-masonry { column-count: 2; } }
@media (max-width: 575px) { .blog-masonry { column-count: 1; } }

.blog-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.blog-cover-wrap { position: relative; display: block; }
.blog-cover-wrap img { width: 100%; height: auto; display: block; }
.blog-category-badge {
  position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font-size: .7rem;
  font-weight: 700; padding: 3px 10px; border-radius: 50px; letter-spacing: .03em; text-transform: uppercase;
}
.blog-gallery-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.blog-gallery-strip img { width: 100%; height: 90px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.blog-card-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin-bottom: .5rem; }
.blog-card-excerpt { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-bottom: 1rem; }
.blog-card-meta { color: var(--muted); font-size: .78rem; margin-bottom: .75rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.blog-filter-pills { background: var(--bg-soft); border-radius: 50px; padding: 6px; display: inline-flex; flex-wrap: wrap; gap: 4px; }
.blog-filter-pills a {
  border: none; background: transparent; padding: .45rem 1.1rem; border-radius: 50px; font-weight: 500;
  color: var(--muted); font-size: .88rem; display: inline-block;
}
.blog-filter-pills a.active { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* Single blog post */
.blog-post-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .5rem; border-radius: 16px; overflow: hidden; }
.blog-post-gallery.single-image { grid-template-columns: 1fr; }
.blog-post-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-post-gallery .gallery-main { grid-row: span 2; aspect-ratio: 4/3; }
.blog-post-gallery.single-image .gallery-main { aspect-ratio: 16/9; grid-row: span 1; }
.blog-post-gallery .gallery-side { aspect-ratio: 4/3; }
.blog-post-content { max-width: none; line-height: 1.75; font-size: 1.2rem; background: #fff; border: 1px solid #f0e4e8; border-radius: 15px; box-shadow: 0 8px 28px rgba(23,24,26,.06); padding: 30px; }
.blog-post-content p, .blog-post-content li, .blog-post-content blockquote { font-size: inherit; }
.blog-post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.blog-post-content p { margin-bottom: 1.1rem; }
.lightbox-img { cursor: zoom-in; }

/* ---------- Recipes ---------- */
.recipe-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.recipe-cover-wrap { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.recipe-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-difficulty-badge {
  position: absolute; top: 12px; left: 12px; font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 50px; letter-spacing: .03em; text-transform: uppercase; color: #fff;
}
.recipe-difficulty-easy { background: #2e9e5b; }
.recipe-difficulty-medium { background: #e08b1d; }
.recipe-difficulty-hard { background: var(--brand); }
.recipe-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.recipe-card-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin-bottom: .6rem; min-height: 2.7em; }
.recipe-card-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; margin-bottom: .75rem; flex-wrap: wrap; }
.recipe-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.recipe-card-excerpt { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-bottom: 1rem; }

/* Highlights bar on the single recipe page */
.recipe-highlights { display: flex; flex-wrap: wrap; gap: 0; background: var(--bg-soft); border-radius: 14px; overflow: hidden; }
.recipe-highlight { flex: 1 1 0; min-width: 110px; text-align: center; padding: 1rem .5rem; border-right: 1px solid #eee; }
.recipe-highlight:last-child { border-right: none; }
.recipe-highlight i { font-size: 1.35rem; color: var(--brand); display: block; margin-bottom: 6px; }
.recipe-highlight .value { font-weight: 700; font-size: .95rem; display: block; }
.recipe-highlight .label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }

/* Ingredients table */
.ingredients-card { background: var(--bg-soft); border-radius: 14px; padding: 1.5rem; }
.ingredients-table { width: 100%; }
.ingredients-table tr { border-bottom: 1px solid rgba(0,0,0,.06); }
.ingredients-table tr:last-child { border-bottom: none; }
.ingredients-table td { padding: .55rem 0; vertical-align: top; }
.ingredients-table .ing-amount { font-weight: 700; white-space: nowrap; width: 1%; padding-right: 1rem; color: var(--ink); }
.ingredients-table .ing-name { color: var(--ink); }

/* Admin ingredients repeater */
.ingredient-row { display: grid; grid-template-columns: 90px 100px 1fr 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 575px) { .ingredient-row { grid-template-columns: 1fr 1fr 1fr 32px; } }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox-overlay.d-none { display: none; }
.lightbox-image { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 50%;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 575px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1rem; }
  .lightbox-close { width: 38px; height: 38px; top: .75rem; right: .75rem; }
}


/* ---------- Life with Nira v2.2 continuation ---------- */
.site-header { padding: .9rem 0; }
.header-inner { min-height: 54px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.site-brand-logo { height: 42px; width: auto; border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.header-socials { display: flex; align-items: center; gap: .45rem; }
.header-social {
  min-height: 40px; padding: .55rem .8rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  color: var(--ink); border: 1px solid #e8e8e8; background: #fff; font-size: .85rem; transition: .18s ease;
}
.header-social:hover { color: var(--brand); border-color: rgba(230,25,75,.35); background: #fff8fa; }
.header-social i { font-size: 1rem; }
.header-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; color: var(--ink); font-size: 1.45rem; align-items: center; justify-content: center; }

/* Blog archive: exactly three images in a controlled mosaic. */
.blog-archive-gallery { position: relative; overflow: hidden; background: #eee; }
.blog-archive-gallery-masonry { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(100px, 1fr)); gap: 3px; aspect-ratio: 4/3; }
.blog-archive-gallery-single { display: block; aspect-ratio: 4/3; }
.blog-archive-image { overflow: hidden; min-width: 0; min-height: 0; }
.blog-archive-image-0 { grid-row: 1 / span 2; }
.blog-archive-gallery-single .blog-archive-image { width: 100%; height: 100%; }
.blog-archive-gallery-single .blog-archive-image-0 { grid-row: auto; }
.blog-archive-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.blog-archive-gallery:hover img { transform: scale(1.035); }
.blog-archive-gallery .blog-category-badge { z-index: 2; }
.blog-gallery-strip { display: none; }

/* Header/social share icons */
.share-actions { display: inline-flex; align-items: center; gap: .45rem; }
.share-actions-label { color: var(--muted); font-size: .82rem; margin-right: .2rem; }
.share-icon-btn { flex: 0 0 auto; transition: transform .15s ease, opacity .15s ease; }
.share-icon-btn:hover { color: #fff; transform: translateY(-2px); opacity: .9; }

/* Recipe archive inspired by the approved pink gallery reference. */
.recipe-archive-page { background: linear-gradient(180deg, #fff 0, #fffafb 40%, #fff 100%); }
.recipe-archive-hero { padding: 3.5rem 0 1.6rem; }
.archive-eyebrow { display: inline-block; padding: .25rem .65rem; border-radius: 999px; background: #fff0f4; color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.archive-heading { margin: .7rem 0 .5rem; font-size: 2.6rem; line-height: 1.08; font-weight: 800; letter-spacing: -.04em; }
.archive-heading span { color: var(--brand); }
.archive-heart { color: var(--brand); font-size: 1.05rem; vertical-align: middle; margin-left: .2rem; background: #fff0f4; padding: .65rem; border-radius: 50%; }
.archive-lead { max-width: 390px; color: var(--muted); font-size: 1rem; line-height: 1.65; margin-bottom: 0; }
.recipe-search-wrap { position: relative; max-width: 600px; }
.recipe-search-wrap i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: #626a78; z-index: 2; }
.recipe-search-wrap input { width: 100%; height: 58px; border: 1px solid #e9e9ec; border-radius: 999px; padding: 0 1.25rem 0 3rem; box-shadow: 0 4px 18px rgba(20,20,30,.04); }
.recipe-search-wrap input:focus { border-color: rgba(230,25,75,.35); box-shadow: 0 0 0 .2rem rgba(230,25,75,.08); outline: none; }
.recipe-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.recipe-filter-pills { display: flex; flex-wrap: wrap; gap: .65rem; }
.recipe-filter-pills a { display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid #e8e8eb; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.recipe-filter-pills a:hover, .recipe-filter-pills a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.recipe-sort-form { flex: 0 0 auto; position: relative; }
.recipe-sort-form i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); z-index: 2; }
.recipe-sort-form select { appearance: none; min-width: 145px; height: 44px; border: 1px solid #e8e8eb; border-radius: 999px; background: #fff; padding: 0 1rem 0 2.45rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.recipe-card-v2 { border-radius: 18px; border: 1px solid #eee; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.recipe-card-v2:hover { box-shadow: 0 18px 36px rgba(0,0,0,.1); }
.recipe-card-v2 .recipe-cover-wrap { aspect-ratio: 4/3; }
.recipe-card-v2-body { padding: 1rem 1.15rem 1.15rem; }
.recipe-card-v2-title { font-size: 1.08rem; line-height: 1.3; font-weight: 700; margin: 0 0 .8rem; }
.recipe-card-v2-meta { display: flex; align-items: center; gap: .9rem; color: var(--muted); font-size: .78rem; }
.recipe-card-v2-meta span { display: inline-flex; align-items: center; gap: .28rem; }
.recipe-card-v2-meta i { color: var(--brand); }
.recipe-difficulty-text { margin-left: auto; background: #fff0f4; color: var(--brand); border-radius: 999px; padding: .3rem .65rem; font-weight: 600; }
.recipe-category-badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--brand); border-radius: 999px; padding: .35rem .75rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.recipe-heart { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.1); font-size: 1.1rem; }
.recipe-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #fff0f4; color: var(--brand); font-size: 3rem; }
.recipe-pagination { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.recipe-pagination a, .recipe-pagination span { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); border: 1px solid transparent; font-size: .85rem; }
.recipe-pagination a:hover, .recipe-pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.recipe-pagination span { color: var(--muted); }

/* Blog single hero — uses the exact same visual system as the Recipe single hero */
.blog-single-page { min-height: 100vh; }
.blog-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
.blog-hero-copy { padding: .5rem 0 1rem; }
.blog-single-category { margin-bottom: .8rem; }
.blog-hero-copy h1 { font-size: clamp(2.5rem, 5vw, 2.5rem); line-height: 1.03; font-weight: 800; letter-spacing: -.05em; margin: 0 0 1.2rem; }
.blog-intro { max-width: 650px; }
.blog-hero-actions { margin-top: 1.6rem; }
.blog-hero-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 24px; background: #eee; box-shadow: 0 25px 55px rgba(0,0,0,.13); }
.blog-hero-media > img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.blog-hero-placeholder { width: 100%; height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; background: #fff0f4; color: var(--brand); font-size: 5rem; }

/* Recipe single page */
.recipe-single-page { min-height: 100vh; background: transparent; }
.recipe-breadcrumb { display: flex; align-items: flex-start; flex-wrap: nowrap; gap: .7rem; color: var(--muted); font-size: .9rem; line-height: 1.5; margin-bottom: 2rem; min-width: 0; }
.recipe-breadcrumb a { flex: 0 0 auto; white-space: nowrap; }
.recipe-breadcrumb > i { flex: 0 0 auto; margin-top: .18rem; }
.recipe-breadcrumb > span { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.recipe-breadcrumb a { color: #4b5563; }
.recipe-breadcrumb a:hover { color: var(--brand); }

/* Shared breadcrumb treatment for content detail pages. The first two stops
   stay intact on small screens; only the current/long title is allowed to wrap. */
.content-breadcrumb {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: .7rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  min-width: 0;
}
.content-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
}
.content-breadcrumb a:hover { color: var(--brand); }
.content-breadcrumb-home { display: inline-flex; align-items: center; gap: .45rem; }
.content-breadcrumb-separator {
  flex: 0 0 auto;
  color: #9ca3af;
  margin-top: .18rem;
}
.content-breadcrumb-current {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.recipe-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
.recipe-hero-copy { padding: .5rem 0 1rem; }
.recipe-single-category { display: inline-block; color: var(--brand); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.recipe-hero-copy h1 { font-size: clamp(2.5rem, 5vw, 2.5rem); line-height: 1.03; font-weight: 800; letter-spacing: -.05em; margin: 0 0 1.2rem; }
.recipe-title-heart { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff0f4; color: var(--brand); font-size: 1rem; vertical-align: middle; margin-left: .4rem; }
.recipe-intro { color: var(--muted); font-size: 1.08rem; line-height: 1.8; max-width: 650px; margin-bottom: 1.5rem; }
.watch-video-btn { border: 0; border-radius: 999px; background: #fff; color: var(--brand); padding: .75rem 1.15rem; font-weight: 700; box-shadow: 0 8px 25px rgba(230,25,75,.12); }
.watch-video-btn i { margin-right: .4rem; }
.recipe-single-actions { margin-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.recipe-hero-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 24px; background: #eee; box-shadow: 0 25px 55px rgba(0,0,0,.13); }
.recipe-hero-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-media-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #fff0f4; color: var(--brand); font-size: 5rem; }
.recipe-media-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%; background: #fff; color: var(--brand); font-size: 2rem; box-shadow: 0 12px 30px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; }
.recipe-info-bar { margin: 3rem 0; padding: 1.4rem 1.5rem; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(230,25,75,.08); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #f5e6eb; }
.recipe-info-bar > div { min-width: 0; display: flex; align-items: center; gap: .9rem; padding: .4rem 1.25rem; border-right: 1px solid #f2dce3; }
.recipe-info-bar > div:last-child { border-right: 0; }
.recipe-info-icon { width: 56px; height: 56px; border-radius: 50%; background: #fff0f4; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; flex: 0 0 auto; }
.recipe-info-bar small { display: block; color: #4b5563; font-size: .82rem; margin-bottom: .25rem; }
.recipe-info-bar strong { display: block; color: var(--brand); font-size: 1rem; }
.recipe-body-grid { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: 2rem; align-items: start; }
.recipe-section-card { background: #fff; border: 1px solid #f1e7ea; border-radius: 22px; padding: 2rem; box-shadow: 0 8px 25px rgba(0,0,0,.04); }
.recipe-section-card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 1.5rem; }
.recipe-section-card h2 i { color: var(--brand); margin-right: .55rem; }
.recipe-ingredients-list { list-style: none; margin: 0; padding: 0; }
.recipe-ingredients-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid #f3f3f3; color: #4b5563; line-height: 1.5; }
.recipe-ingredients-list li:last-child { border-bottom: 0; }
.ingredient-check { width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; background: #fff0f4; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.recipe-content-v2 { color: #4b5563; line-height: 1.85; font-size: 1.2rem; }
.recipe-content-v2 p, .recipe-content-v2 li, .recipe-content-v2 blockquote { font-size: inherit; }
.recipe-content-v2 p { margin-bottom: 1.1rem; }
.recipe-content-v2 h2, .recipe-content-v2 h3, .recipe-content-v2 h4 { color: var(--ink); margin-top: 1.6rem; margin-bottom: .7rem; }
.recipe-content-v2 img { max-width: 100%; height: auto; border-radius: 14px; cursor: zoom-in; }
.recipe-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.recipe-gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
.recipe-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.recipe-prevnext > a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid #eee; border-radius: 14px; color: var(--ink); }
.recipe-prevnext > a.next { justify-content: flex-end; text-align: right; }
.recipe-prevnext small { display: block; color: var(--muted); margin-bottom: .2rem; }
.recipe-prevnext strong { display: block; }

.hero-actions .btn { min-height: 44px; }

@media (min-width: 992px) {
  .main-nav { display: flex !important; justify-content: center; }
}
@media (max-width: 991px) {
  .header-inner { grid-template-columns: auto auto; gap: 1rem; }
  .header-actions { justify-self: end; }
  .header-menu-toggle { display: inline-flex; }
  .header-subscribe { display: none; }
  .header-social-label { display: none; }
  .header-social { width: 42px; height: 42px; padding: 0; }
  .main-nav { grid-column: 1 / -1; width: 100%; order: 3; padding: .5rem 0 .25rem; }
  .main-nav.collapse:not(.show) { display: none; }
  .main-nav a { display: block; margin: 0; padding: .75rem .2rem; border-bottom: 0; border-top: 1px solid #f2f2f2; }
  .main-nav a:first-child { border-top: 0; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .recipe-hero-grid, .blog-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .recipe-hero-copy, .blog-hero-copy { order: 2; }
  .recipe-hero-media, .blog-hero-media { order: 1; }
  .recipe-info-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .8rem .45rem; gap: 0; }
  .recipe-info-bar > div:nth-child(4n) { border-right: 0; }
  .recipe-info-bar > div { border-bottom: 0; padding: .3rem .35rem; gap: .35rem; justify-content: center; }
  .recipe-info-icon { width: 38px; height: 38px; font-size: 1rem; }
  .recipe-info-bar small { font-size: .65rem; margin-bottom: .1rem; white-space: nowrap; }
  .recipe-info-bar strong { font-size: .72rem; white-space: nowrap; }
  .recipe-body-grid { grid-template-columns: 1fr; }
  .recipe-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .site-header { padding: .65rem 0; }
  .site-brand-logo { height: 38px; }
  .site-logo-icon { width: 38px; height: 38px; }
  .site-title { font-size: 1rem; }
  .site-tagline { font-size: .66rem; }
  .header-inner { min-height: 46px; }
  .header-actions { gap: .35rem; }
  .header-social { width: 38px; height: 38px; min-height: 38px; }
  .header-menu-toggle { width: 38px; height: 38px; }
  .recipe-archive-hero { padding-top: 2.5rem; }
  .content-breadcrumb {
    gap: .55rem;
    font-size: .86rem;
    margin-bottom: 1.5rem;
  }
  .content-breadcrumb-current {
    line-height: 1.45;
  }
  .archive-heading { font-size: 2.2rem; }
  .recipe-search-wrap { max-width: none; }
  .recipe-filter-row { align-items: flex-start; flex-direction: column; }
  .recipe-sort-form { width: 100%; }
  .recipe-sort-form select { width: 100%; }
  .recipe-filter-pills { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: .25rem; }
  .recipe-filter-pills a { flex: 0 0 auto; }
  .recipe-info-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .65rem .2rem; }
  .recipe-info-bar > div { border-right: 1px solid #f2dce3; border-bottom: 0 !important; padding: .25rem .15rem; gap: .25rem; flex-direction: column; text-align: center; }
  .recipe-info-bar > div:last-child { border-right: 0; }
  .recipe-info-icon { width: 32px; height: 32px; font-size: .9rem; }
  .recipe-info-bar small { font-size: .58rem; }
  .recipe-info-bar strong { font-size: .66rem; }
  .recipe-section-card { padding: 1.3rem; }
  .recipe-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-prevnext { grid-template-columns: 1fr; }
  .recipe-prevnext > a.next { justify-content: flex-start; text-align: left; }
  .share-actions-label { display: none; }
  .site-footer .container { justify-content: center !important; text-align: center; }
  .site-footer .footer-social { width: 100%; }
  .site-footer .footer-social a { margin: 0 3px; }
  .site-footer .container:last-of-type { flex-direction: column; }
  .blog-archive-gallery { aspect-ratio: 4/3; }
}
@media (max-width: 575px) {
  .archive-heading { font-size: 1.9rem; }
  .recipe-card-v2-title { font-size: 1rem; }
  .recipe-card-v2-meta { gap: .55rem; font-size: .72rem; }
  .recipe-hero-copy h1, .blog-hero-copy h1 { font-size: 2.5rem; }
  .recipe-title-heart { width: 40px; height: 40px; }
}

/* Advertisement placement system. Homepage intentionally does not render these slots. */
.site-ad-slot {
  width: 100%;
  margin: 1.25rem 0 2rem;
  border-radius: 14px;
  overflow: hidden;
}
.site-ad-slot-placeholder {
  min-height: 118px;
  border: 1px dashed #d9c9cf;
  background: linear-gradient(180deg, #fffafb, #fff);
}
.site-ad-placeholder-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .2rem;
  color: #9b8f95;
  text-align: center;
  padding: 1rem;
}
.site-ad-placeholder-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.site-ad-placeholder-size { font-size: .72rem; color: #b3a8ad; }
.site-ad-placeholder-note { font-size: .68rem; color: #b8adb2; }
.site-ad-slot-live { min-height: 90px; display: flex; align-items: center; justify-content: center; background: transparent; }
.site-ad-code { width: 100%; min-width: 0; text-align: center; overflow: hidden; }
.site-ad-code img, .site-ad-code iframe { max-width: 100%; }
.blog-recipe-ad-sidebar { position: relative; }
.blog-recipe-ad-sidebar .site-ad-slot { margin-top: 0; position: sticky; top: 92px; }
.blog-recipe-ad-sidebar .site-ad-slot-placeholder { min-height: 250px; }
.blog-recipe-ad-sidebar .site-ad-placeholder-inner { min-height: 250px; }
@media (max-width: 991px) {
  .blog-recipe-ad-sidebar .site-ad-slot { position: static; margin-top: .25rem; }
}
@media (max-width: 575px) {
  .site-ad-slot-placeholder { min-height: 100px; }
  .site-ad-placeholder-inner { min-height: 100px; }
  .blog-recipe-ad-sidebar .site-ad-slot-placeholder,
  .blog-recipe-ad-sidebar .site-ad-placeholder-inner { min-height: 220px; }
}

/* Blog archive uses the same hero system as the Recipe archive for visual consistency. */
.blog-archive-page .recipe-archive-hero { padding-bottom: 1.6rem; }
.blog-archive-page .recipe-filter-row { justify-content: flex-start; }
.blog-archive-page .recipe-filter-pills a { text-decoration: none; }

/* ---------- Compact homepage featured article / recipe cards ---------- */
.hero-feature-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.15rem;
  max-width: 560px;
}
.hero-mini-feature {
  display: block;
  min-width: 0;
  padding: .65rem .7rem;
  border: 1px solid rgba(232, 20, 79, .14);
  border-radius: 10px;
  background: rgba(255,255,255,.58);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.hero-mini-feature:hover {
  color: var(--ink);
  border-color: rgba(232, 20, 79, .28);
  background: #fff;
  transform: translateY(-1px);
}
.hero-mini-label {
  display: block;
  margin-bottom: .4rem;
  color: var(--brand);
  font-size: .58rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .13em;
}
.hero-mini-body {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.hero-mini-body img,
.hero-mini-placeholder {
  width: 58px;
  height: 48px;
  flex: 0 0 58px;
  border-radius: 7px;
  object-fit: cover;
  background: #f8edf1;
}
.hero-mini-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.1rem;
}
.hero-mini-text {
  display: block;
  min-width: 0;
}
.hero-mini-text strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: .74rem;
  line-height: 1.28;
  font-weight: 700;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hero-mini-text > span {
  display: block;
  margin-top: .22rem;
  color: var(--brand);
  font-size: .66rem;
  line-height: 1;
  font-weight: 600;
}
.hero-mini-text > span i { margin-left: .15rem; }

@media (max-width: 575px) {
  .hero-feature-links { grid-template-columns: 1fr; max-width: none; }
  .hero-mini-feature { width: 100%; }
}

@media (max-width: 767.98px) { .blog-post-content { padding: 22px 20px; border-radius: 15px; } }

/* Blog single-page embedded video */
.blog-post-video { padding: 30px; }
.blog-post-video .ratio { background: #111; }
.blog-post-video iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 767.98px) { .blog-post-video { padding: 20px; } }


/* Inspirational Quotes */
.quote-card { background:#fff; border:1px solid #f0e4e8; border-radius:14px; overflow:hidden; height:100%; box-shadow:0 6px 20px rgba(23,24,26,.05); transition:transform .15s ease, box-shadow .15s ease; }
.quote-card:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(23,24,26,.10); }
.quote-card-image-wrap { display:block; position:relative; background:#fff0f4; aspect-ratio:4/3; overflow:hidden; }
.quote-card-image-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.quote-card-badge { position:absolute; top:12px; left:12px; background:#fff; color:var(--brand); border-radius:999px; padding:.35rem .7rem; font-size:.68rem; font-weight:700; letter-spacing:.06em; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.quote-card-body { padding:15px 16px 16px; }
.quote-card-title { display:block; color:var(--ink); font-size:1.02rem; font-weight:700; line-height:1.35; margin-bottom:.55rem; }
.quote-card-content { color:#4b5563; font-size:.94rem; line-height:1.6; max-height:6.2em; overflow:hidden; }
.quote-card-content p:last-child { margin-bottom:0; }
.quote-card-link { display:inline-flex; align-items:center; gap:.35rem; margin-top:.8rem; color:var(--brand); font-size:.82rem; font-weight:600; text-decoration:none; }
.quote-card-link:hover { color:var(--ink); }
.quote-single-page { background:linear-gradient(180deg,#fff 0,#fff9fb 70%,#fff 100%); min-height:calc(100vh - 80px); }
.quote-single-card { background:#fff; border:1px solid #f0e4e8; border-radius:15px; box-shadow:0 8px 28px rgba(23,24,26,.06); padding:30px; }
.quote-single-image { width:100%; max-width:900px; margin:0 auto 28px; border-radius:12px; overflow:hidden; background:#fff0f4; }
.quote-single-image img { width:100%; height:auto; display:block; }
.quote-single-card h1 { font-size:clamp(2rem,4vw,2.5rem); font-weight:800; line-height:1.08; margin:0 0 1.5rem; }
.quote-single-content { margin-top:0; }
@media (max-width:767.98px){ .quote-single-card{padding:18px;} .quote-card-body{padding:13px;} .quote-card-content{font-size:.88rem;} }

/* Quotes use the same compact thumbnail/card geometry and meta controls as videos. */
.quote-video-style-card .quote-thumb-wrap { aspect-ratio: 4/3; }
.quote-video-style-card .quote-card-content { color:#4b5563; font-size:.9rem; line-height:1.5; max-height:4.5em; overflow:hidden; margin:-2px 0 10px; }
.quote-video-style-card .quote-card-content p:last-child { margin-bottom:0; }
.quote-video-style-card .quote-card-meta { margin-top: 8px; }
.quote-single-meta .like-btn, .quote-single-meta .share-btn { color: var(--muted); background:none; border:0; display:inline-flex; align-items:center; gap:5px; }
.quote-single-meta .like-btn.liked { color:var(--brand); }


/* Homepage content sorting */
.feed-sort { display: flex; justify-content: center; }
.feed-sort-select { width: auto; min-width: 145px; border-radius: 999px; border-color: #e8e8eb; padding-left: 1rem; padding-right: 2.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
@media (max-width: 575.98px) { .feed-sort-select { min-width: 135px; } }
