/*
Theme Name: sambagels
Theme URI: https://sambagels.co.il/
Author: sambagels
Author URI: https://sambagels.co.il/
Description: תבנית וורדפרס קולינרית יוקרתית לאתר מתכונים, בייגלס, מאפים, כריכים וקינוחים, בהשראת מגזיני האוכל המובילים. כוללת תמיכה מלאה בתפריטי וורדפרס, עמודי מתכון אינטראקטיביים, מצרכים ברי-סימון, כפתור הדפסה ייעודי, רספונסיביות מלאה, ועיצוב מותאם RTL.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sambagels
Tags: food-and-drink, recipes, blog, rtl-language-support, custom-menu, featured-images, one-column, two-columns, full-width-template
*/

/* ==============================================================
   1. GLOBAL STYLES & STRICT SINGLE FONT
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #d9532f;
  --primary-hover: #b83d1c;
  --primary-light: #fef0eb;
  --secondary: #2c221e;
  --secondary-light: #473934;
  --accent: #e59838;
  --accent-light: #fef7ed;
  --bg-page: #faf7f2;
  --card-bg: #ffffff;
  --text-main: #25211e;
  --text-muted: #6e645e;
  --border-light: #ece3d8;
  --border-dark: #ded2c3;
  --link-blue: #1a73e8;
  --link-blue-hover: #0b57d0;
  --shadow-sm: 0 2px 8px rgba(44, 34, 30, 0.05);
  --shadow-md: 0 4px 16px rgba(44, 34, 30, 0.08);
  --shadow-lg: 0 10px 30px rgba(44, 34, 30, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --container-max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Assistant', sans-serif !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1.05rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Texture */
.site-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background-image: linear-gradient(to bottom, rgba(250, 247, 242, 0.88), rgba(250, 247, 242, 0.98)), url('assets/images/culinary-bg.jpg');
  background-size: cover;
  background-position: center top;
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==============================================================
   2. TOP BAR & HEADER
   ============================================================== */
.top-bar {
  background-color: var(--secondary);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.top-announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffdda1;
  font-weight: 500;
}

.top-announcement-badge {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-social-links a {
  color: #d1c7c2;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.top-social-links a:hover {
  color: var(--accent);
}

.site-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo-img {
  height: 52px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo-img:hover {
  transform: scale(1.03);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.search-toggle-btn:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
  padding: 5px;
}

/* Main Navigation */
.main-navigation {
  background: #fff;
  border-top: 1px solid var(--border-light);
}

.nav-menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.primary-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.primary-menu > li {
  position: relative;
}

.primary-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  transition: color 0.2s ease;
}

.primary-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.primary-menu > li:hover > a {
  color: var(--primary);
}

.primary-menu > li:hover > a::after,
.primary-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Dropdown Menus */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  padding: 8px 0;
}

.primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu li a {
  display: block;
  padding: 9px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background 0.2s ease, color 0.2s ease, padding-right 0.2s ease;
}

.primary-menu .sub-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-right: 25px;
}

/* ==============================================================
   3. HERO SECTION & FEATURED SPOTLIGHT
   ============================================================== */
.hero-spotlight {
  margin: 30px 0 40px;
}

.hero-spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--secondary);
  color: #fff;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.hero-spotlight-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-spotlight-card:hover .hero-spotlight-img {
  transform: scale(1.04);
}

.hero-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 12, 0.92) 0%, rgba(20, 14, 12, 0.45) 50%, rgba(20, 14, 12, 0.1) 100%);
  z-index: 1;
}

.hero-spotlight-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 760px;
}

.recipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.recipe-badge.badge-gold {
  background: var(--accent);
  color: var(--secondary);
}

.hero-spotlight-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-spotlight-title a {
  color: #fff;
}

.hero-spotlight-title a:hover {
  color: var(--accent);
}

.hero-spotlight-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  color: #eeddc8;
  margin-bottom: 20px;
}

.hero-spotlight-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-spotlight-desc {
  font-size: 1.1rem;
  color: #f0ebe4;
  margin-bottom: 22px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(217, 83, 47, 0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 83, 47, 0.5);
}

/* ==============================================================
   4. CATEGORY SPOTLIGHT BOXES
   ============================================================== */
.category-boxes-section {
  margin-bottom: 45px;
}

.category-boxes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-box-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  box-shadow: var(--shadow-sm);
  display: block;
  background: var(--secondary);
}

.cat-box-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-box-card:hover img {
  transform: scale(1.08);
}

.cat-box-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 20, 17, 0.88) 0%, rgba(28, 20, 17, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 20px;
  color: #fff;
  transition: background 0.3s ease;
}

.cat-box-card:hover .cat-box-overlay {
  background: linear-gradient(to top, rgba(184, 61, 28, 0.92) 0%, rgba(28, 20, 17, 0.3) 100%);
}

.cat-box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.cat-box-count {
  font-size: 0.85rem;
  color: #ffd699;
}

/* ==============================================================
   5. POPULAR RECIPES CAROUSEL
   ============================================================== */
.popular-recipes-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 35px;
  margin-bottom: 50px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.carousel-nav-btns {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.popular-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.popular-carousel-track::-webkit-scrollbar {
  display: none;
}

.popular-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 250px;
  scroll-snap-align: start;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.popular-card-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.popular-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.popular-card:hover .popular-card-thumb img {
  transform: scale(1.06);
}

.popular-card-body {
  padding: 16px;
}

.popular-card-body .recipe-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.popular-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.popular-card-title a {
  color: var(--secondary);
}

.popular-card-title a:hover {
  color: var(--primary);
}

.popular-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==============================================================
   6. MAIN LAYOUT & RECIPE CARDS (2-COL WITH SIDEBAR)
   ============================================================== */
.main-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 35px;
  margin-bottom: 60px;
}

.recipes-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.recipe-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.recipe-card-thumb {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--secondary);
}

.recipe-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-card-thumb img {
  transform: scale(1.06);
}

.recipe-card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.recipe-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.recipe-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.recipe-card-title a {
  color: var(--secondary);
}

.recipe-card-title a:hover {
  color: var(--primary);
}

.recipe-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.recipe-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-card-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.recipe-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.like-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.like-btn:hover, .like-btn.liked {
  background: #ffe8e8;
  color: #e0245e;
  border-color: #ffccd5;
}

/* ==============================================================
   7. SIDEBAR & WIDGETS
   ============================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

/* Author / Chef Bio Widget */
.chef-bio-widget {
  text-align: center;
}

.chef-avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
  object-fit: cover;
  border: 4px solid var(--bg-page);
  box-shadow: var(--shadow-sm);
}

.chef-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}

.chef-subtitle {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.chef-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.chef-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.chef-socials a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.chef-socials a:hover {
  background: var(--primary);
  color: #fff;
}

/* Ranked Top Recipes Widget */
.ranked-posts-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.ranked-posts-list li:last-child {
  border-bottom: none;
}

.rank-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  width: 28px;
  text-align: center;
}

.ranked-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.ranked-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranked-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.ranked-info h4 a {
  color: var(--secondary);
}

.ranked-info h4 a:hover {
  color: var(--primary);
}

.ranked-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Categories Widget */
.categories-widget-list li {
  margin-bottom: 8px;
}

.categories-widget-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.categories-widget-list li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-right: 16px;
}

.categories-widget-list .cat-count {
  background: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #2c221e 0%, #473934 100%);
  color: #fff;
}

.newsletter-widget .widget-title {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.newsletter-widget .widget-title::after {
  background: var(--accent);
}

.newsletter-desc {
  font-size: 0.92rem;
  color: #d8cec8;
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: #a89f9a;
}

.newsletter-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: var(--primary-hover);
}

/* ==============================================================
   8. SINGLE RECIPE POST STYLING (CRITICAL: BLUE UNDERLINED ANCHORS)
   ============================================================== */
.single-recipe-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs-sep {
  opacity: 0.5;
}

.single-recipe-header {
  margin-bottom: 25px;
}

.single-recipe-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--secondary);
  margin-bottom: 16px;
}

.single-recipe-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

/* Action Bar */
.recipe-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0 30px;
  padding: 14px 20px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.recipe-quick-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btns-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-print {
  background: var(--secondary);
  color: #fff;
}

.btn-print:hover {
  background: #000;
  color: #fff;
}

.btn-share-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-share-whatsapp:hover {
  background: #1ebc59;
  color: #fff;
}

.btn-share-facebook {
  background: #1877f2;
  color: #fff;
}

.btn-share-facebook:hover {
  background: #1465cc;
  color: #fff;
}

.single-featured-image {
  margin-bottom: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.single-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Quick Info Bar */
.recipe-summary-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  background: var(--primary-light);
  border: 1px solid #f9d5cb;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 35px;
  text-align: center;
}

.summary-item .summary-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.summary-item .summary-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

/* ==============================================================
   CRITICAL REQUIREMENT: BLUE & UNDERLINED ANCHORS IN POST CONTENT
   ============================================================== */
.entry-content a,
.single-post-content a,
.recipe-instructions a,
.recipe-intro a,
.recipe-body a {
  color: #1a73e8 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1.5px !important;
  font-weight: 600 !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease !important;
}

.entry-content a:hover,
.single-post-content a:hover,
.recipe-instructions a:hover,
.recipe-intro a:hover,
.recipe-body a:hover {
  color: #0b57d0 !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: #0b57d0 !important;
}

.entry-content p {
  margin-bottom: 1.4em;
  font-size: 1.12rem;
  line-height: 1.85;
}

/* Interactive Recipe Box */
.recipe-structured-card {
  background: #fff;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 35px;
  margin: 35px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.recipe-structured-header {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 18px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-structured-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.recipe-section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 25px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ingredients Checklist */
.ingredients-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-bottom: 30px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-page);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.ingredient-item:hover {
  border-color: var(--primary);
}

.ingredient-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.ingredient-item.checked {
  background: #f0f0f0;
  color: #888;
}

.ingredient-item.checked span {
  text-decoration: line-through;
}

/* Preparation Steps */
.preparation-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Chef Pro Tips Box */
.chef-tips-box {
  background: var(--accent-light);
  border-right: 4px solid var(--accent);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin: 30px 0;
}

.chef-tips-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chef-tips-box p {
  font-size: 0.98rem;
  color: var(--secondary-light);
  margin: 0;
}

/* Author Box Below Post */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 25px;
  margin: 40px 0;
  border: 1px solid var(--border-light);
}

.post-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}

.post-author-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Related Recipes */
.related-recipes-section {
  margin-top: 50px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* ==============================================================
   9. CATEGORY & ARCHIVE PAGES
   ============================================================== */
.archive-header-banner {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 25px 0 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.archive-header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/culinary-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.archive-header-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.archive-header-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.archive-header-desc {
  font-size: 1.1rem;
  color: #f2e9e2;
  line-height: 1.6;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination .page-numbers {
  display: flex;
  gap: 6px;
}

.page-numbers a, .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.page-numbers a:hover,
.page-numbers.current,
span.page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==============================================================
   10. SEARCH MODAL & OVERLAY
   ============================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 17, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  width: 90%;
  max-width: 620px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  position: relative;
}

.search-modal-overlay.active .search-modal-box {
  transform: translateY(0);
}

.search-modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--bg-page);
  border: none;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.search-modal-close:hover {
  background: #f0f0f0;
  color: var(--secondary);
}

.search-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 20px;
}

.modal-search-form {
  position: relative;
}

.modal-search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 1.15rem;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-search-input:focus {
  border-color: var(--primary);
}

.modal-search-submit {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ==============================================================
   11. MOBILE DRAWER NAVIGATION
   ============================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
  transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close {
  background: var(--bg-page);
  border: none;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-menu {
  padding: 20px;
}

.drawer-menu li {
  margin-bottom: 12px;
}

.drawer-menu li a {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  padding: 8px 0;
}

.drawer-menu li a:hover {
  color: var(--primary);
}

.drawer-menu .sub-menu {
  padding-right: 15px;
  margin-top: 6px;
}

.drawer-menu .sub-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==============================================================
   12. FOOTER SECTION & MANDATORY PARTNER LINKS
   ============================================================== */
.site-footer {
  background: #1e1714;
  color: #d1c7c2;
  margin-top: 60px;
  border-top: 4px solid var(--primary);
  font-size: 0.95rem;
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 35px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-col p {
  color: #b8aba4;
  line-height: 1.65;
  margin-bottom: 15px;
}

.footer-links-list li {
  margin-bottom: 8px;
}

.footer-links-list li a {
  color: #b8aba4;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list li a:hover {
  color: var(--accent);
  padding-right: 6px;
}

/* Footer Bottom Bar */
.footer-bottom {
  background: #140f0d;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.88rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal-links a {
  color: #a89f9a;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #fff;
}

.footer-credits {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-credits a {
  color: #ffd699;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credits a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Floating Back To Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

/* ==============================================================
   13. COMMENTS SECTION
   ============================================================== */
.comments-area {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.comments-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 20px;
}

.comment-list .comment {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.comment-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author-name {
  font-weight: 700;
  color: var(--secondary);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 25px;
}

.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.95rem;
  outline: none;
}

.comment-form textarea:focus, .comment-form input:focus {
  border-color: var(--primary);
}

.form-submit input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit input[type="submit"]:hover {
  background: var(--primary-hover);
}

/* ==============================================================
   14. PRINT STYLESHEET
   ============================================================== */
@media print {
  .site-header, .top-bar, .site-footer, .site-sidebar, .recipe-action-bar,
  .search-modal-overlay, .mobile-drawer, .back-to-top-btn, .comments-area,
  .related-recipes-section, .post-author-box {
    display: none !important;
  }
  
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .single-recipe-wrapper {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  
  .single-recipe-title {
    font-size: 20pt !important;
    color: #000 !important;
  }
  
  .recipe-structured-card {
    border: 1pt solid #000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  
  .ingredient-item {
    background: none !important;
    border: none !important;
    padding: 2px 0 !important;
  }
  
  .step-item {
    background: none !important;
    border: none !important;
    page-break-inside: avoid;
  }
  
  .step-num {
    background: #333 !important;
    color: #fff !important;
  }
}

/* ==============================================================
   15. RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================================== */
@media (max-width: 1024px) {
  .main-content-layout {
    grid-template-columns: 1fr;
  }
  
  .category-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .popular-card {
    flex: 0 0 calc(50% - 10px);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .recipes-feed-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-spotlight-card {
    min-height: 400px;
  }
  
  .hero-spotlight-content {
    padding: 25px;
  }
  
  .hero-spotlight-title {
    font-size: 1.8rem;
  }
  
  .ingredients-checklist {
    grid-template-columns: 1fr;
  }
  
  .recipe-summary-box {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .category-boxes-grid {
    grid-template-columns: 1fr;
  }
  
  .popular-card {
    flex: 0 0 85%;
  }
  
  .single-recipe-wrapper {
    padding: 20px;
  }
  
  .single-recipe-title {
    font-size: 1.6rem;
  }
}
