/* ================================================================
   LOCAL FONTS REGISTRATION (GDPR Compliant & Fast)
   ================================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-bold.woff2') format('woff2');
}

/* ================================================================
   OPR PROFESSIONAL RECIPE PAGE — Complete Redesign v4.0
   Single Recipe: Instructions, Ingredients, Nutrition, Layout
   ================================================================ */

/* ----------------------------------------------------------------
   BASE PAGE LAYOUT & TYPOGRAPHY
   ---------------------------------------------------------------- */
body.single-recipe {
  background: #f6f8f5;
}

.recipe-layout-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.recipe-layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ----------------------------------------------------------------
   ARTICLE CARD WRAPPER
   ---------------------------------------------------------------- */
.recipe-article,
article.recipe-article {
  background: #ffffff !important;
  border: 1px solid #e4ede4 !important;
  border-radius: 24px !important;
  padding: 40px !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.02) !important;
}

/* ----------------------------------------------------------------
   RECIPE TITLE & META HEADER
   ---------------------------------------------------------------- */
.recipe-top-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f5f0;
}

.recipe-title,
h1.recipe-title {
  font-family: var(--ff-serif, 'Playfair Display', Georgia, serif) !important;
  font-size: clamp(1.75rem, 3vw, 2.4rem) !important;
  font-weight: 900 !important;
  color: #1b4332 !important;
  line-height: 1.2 !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.025em !important;
}

/* Author / Date Row */
.recipe-meta-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 auto 28px !important;
  padding: 0 4px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  white-space: nowrap !important;
}
.recipe-meta-row::-webkit-scrollbar {
  display: none !important;
}

.recipe-rating-display,
.recipe-author-info,
.recipe-date,
.recipe-date-modified {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f4f8f5 !important;
  border: 1px solid #d8e8dc !important;
  border-radius: 99px !important;
  padding: 6px 14px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #2d6a4f !important;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.04) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  height: 34px !important;
  box-sizing: border-box !important;
}

.recipe-author-info {
  color: #1b4332 !important;
  font-weight: 800 !important;
}

.author-avatar {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  border: 1.5px solid #52b788 !important;
  object-fit: cover !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.recipe-date,
.recipe-date-modified {
  color: #5a7a5a !important;
}

.recipe-top-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin: 0 auto 28px !important;
}

.btn-jump-to-recipe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(45,106,79,0.3);
  transition: all 0.25s;
}
.btn-jump-to-recipe:hover {
  box-shadow: 0 8px 22px rgba(45,106,79,0.45);
  transform: translateY(-2px);
}

.btn-print-recipe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #f4f7f4;
  color: #2d6a4f !important;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1.5px solid #d0e8d0;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-print-recipe:hover {
  background: #2d6a4f;
  color: #fff !important;
  border-color: #2d6a4f;
}

/* Intro excerpt */
.recipe-excerpt-intro {
  background: linear-gradient(135deg, #f0f8f3, #e8f5ee);
  border-left: 4px solid #52b788;
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  margin: 20px 0;
  color: #2d4a2d;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.recipe-excerpt-intro p { margin: 0; }

/* ----------------------------------------------------------------
   QUICK INFO BAR — 4×2 Grid
   ---------------------------------------------------------------- */
.quick-info-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  background: linear-gradient(135deg, #f2f8f4 0%, #eaf5ef 100%) !important;
  border: 1.5px solid rgba(45,106,79,0.1) !important;
  border-radius: 20px !important;
  padding: 20px !important;
  margin: 28px 0 !important;
}

.quick-info-item {
  background: #ffffff !important;
  border: 1px solid #e4ede4 !important;
  border-radius: 14px !important;
  padding: 14px 10px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
  transition: all 0.25s ease !important;
}

.quick-info-item:hover {
  border-color: #52b788 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(45,106,79,0.1) !important;
}

.quick-info-icon {
  font-size: 1.4rem !important;
  line-height: 1 !important;
}

.quick-info-label {
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #8da68d !important;
  margin-top: 2px !important;
}

.quick-info-value {
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  color: #1b4332 !important;
  line-height: 1.2 !important;
}

/* ----------------------------------------------------------------
   TABLE OF CONTENTS
   ---------------------------------------------------------------- */
.recipe-toc-container {
  margin: 0 0 28px !important;
}

.sidebar-widget-toc {
  background: #fff !important;
  border: 1.5px solid #e4ede4 !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

.toc-grid-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.toc-grid-link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f4f8f5 !important;
  border: 1px solid #e0ece0 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  color: #1b4332 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
}

.toc-grid-link:hover {
  background: #2d6a4f !important;
  color: #fff !important;
  border-color: #2d6a4f !important;
  transform: translateY(-1px) !important;
}

.btn-toggle-toc {
  background: #f4f8f5;
  border: 1.5px solid #d0e8d0;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #5a7a5a;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-toggle-toc:hover {
  background: #2d6a4f;
  color: #fff;
  border-color: #2d6a4f;
}

/* ----------------------------------------------------------------
   INGREDIENTS SECTION — Professional Checklist
   ---------------------------------------------------------------- */
.recipe-ingredients {
  background: #fff;
  border: 1.5px solid #e4ede4;
  border-radius: 20px;
  padding: 28px;
  margin: 0 0 28px;
}

.recipe-ingredients__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f5f0;
}

.recipe-ingredients__title {
  font-family: var(--ff-serif, 'Playfair Display', serif) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #1b4332 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recipe-ingredients__title::before {
  content: '🛒';
}

/* Scaler & Cook Mode */
.recipe-ingredients__scaler {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2f8f4;
  border: 1px solid #d0e8d0;
  border-radius: 999px;
  padding: 6px 14px;
}

.recipe-ingredients__scaler-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5a7a5a;
}

.btn-scale {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2d6a4f;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}
.btn-scale:hover { background: #1b4332; transform: scale(1.1); }

.recipe-ingredients__servings-num {
  font-size: 1rem;
  font-weight: 800;
  color: #1b4332;
  min-width: 20px;
  text-align: center;
}

.cook-mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cook-mode-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5a7a5a;
}
.cook-mode-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.cook-mode-switch input { opacity: 0; width: 0; height: 0; }
.cook-mode-slider {
  position: absolute;
  inset: 0;
  background: #dde8dd;
  border-radius: 999px;
  cursor: pointer;
  transition: .3s;
}
.cook-mode-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  left: 3px; top: 3px;
  transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.cook-mode-switch input:checked + .cook-mode-slider { background: #52b788; }
.cook-mode-switch input:checked + .cook-mode-slider::before { transform: translateX(18px); }

/* Ingredients List — Premium Checklist */
.recipe-ingredients__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.recipe-ingredients__section-header h4 {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  font-weight: 800;
  color: #8da68d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e4ede4;
}

.recipe-ingredients__item {
  list-style: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  transform: none !important;
}
.recipe-ingredients__item::before { display: none !important; }

.recipe-ingredients__checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fbf8;
  border: 1px solid #e4ede4;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.recipe-ingredients__checkbox-label:hover {
  background: #fff;
  border-color: #52b788;
  transform: translateX(3px);
}

.recipe-ingredients__checkbox { display: none; }

.recipe-ingredients__checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #c0d8c0;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.recipe-ingredients__checkbox:checked ~ .recipe-ingredients__checkbox-custom {
  background: #52b788;
  border-color: #52b788;
}
.recipe-ingredients__checkbox:checked ~ .recipe-ingredients__checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.recipe-ingredients__checkbox:checked ~ .recipe-ingredients__text {
  text-decoration: line-through;
  opacity: 0.5;
}

.recipe-ingredients__text {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  transition: all 0.2s;
}

.recipe-ingredients__amount {
  font-weight: 800;
  color: #1b4332;
  font-size: 0.9375rem;
}
.recipe-ingredients__unit {
  font-weight: 600;
  color: #2d6a4f;
  font-size: 0.875rem;
}
.recipe-ingredients__name {
  color: #2d4a2d;
  font-size: 0.9375rem;
}

/* ----------------------------------------------------------------
   INSTRUCTIONS SECTION — Clean Timeline (NO CSS counters)
   ---------------------------------------------------------------- */
.recipe-instructions {
  background: #fff;
  border: 1.5px solid #e4ede4;
  border-radius: 20px;
  padding: 28px;
  margin: 0 0 28px;
}

.recipe-instructions__title {
  font-family: var(--ff-serif, 'Playfair Display', serif) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #1b4332 !important;
  margin: 0 0 24px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f5f0;
}
.recipe-instructions__title::before { content: '👨‍🍳'; }

/* Fix: remove CSS counter — use PHP badge only */
.recipe-instructions__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  counter-reset: none !important;
}

/* Vertical connector line */
.recipe-instructions__list::before {
  content: '' !important;
  position: absolute !important;
  left: 18px !important;
  top: 22px !important;
  bottom: 22px !important;
  width: 2px !important;
  background: linear-gradient(180deg, #52b788 0%, rgba(82,183,136,0.1) 100%) !important;
  border-radius: 2px !important;
}

.recipe-instructions__item {
  list-style: none !important;
  position: relative !important;
  padding: 0 0 32px 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* Kill all CSS pseudo-numbering on this list */
.recipe-instructions__list > li {
  counter-increment: none !important;
}
.recipe-instructions__list > li::before {
  display: none !important;
  content: none !important;
}

.recipe-instructions__item:last-child {
  padding-bottom: 0 !important;
}

.recipe-instructions__section-header {
  list-style: none !important;
  padding: 0 0 0 56px !important;
  margin: 4px 0 12px !important;
}
.recipe-instructions__section-header h4 {
  font-size: 0.75rem;
  font-weight: 800;
  color: #8da68d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e4ede4;
}

/* Step badge from PHP */
.recipe-instructions__step-badge {
  position: relative !important;
  z-index: 1 !important;
  flex-shrink: 0 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #52b788, #2d6a4f) !important;
  color: #fff !important;
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(45,106,79,0.35) !important;
  font-family: var(--ff-sans) !important;
  line-height: 1 !important;
}

/* Step content wrapper */
.recipe-instructions__item > div:first-child {
  display: flex !important;
  gap: 16px !important;
  align-items: flex-start !important;
}

.recipe-instructions__text {
  flex: 1;
  background: #f8fbf8;
  border: 1px solid #e4ede4;
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.2s;
}

.recipe-instructions__item:hover .recipe-instructions__text {
  border-color: #b2d8b2;
  background: #f0f8f3;
  box-shadow: 0 4px 14px rgba(45,106,79,0.06);
}

.recipe-instructions__step-title {
  margin: 0 0 8px !important;
  font-family: var(--ff-sans) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1b4332 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recipe-instructions__text p {
  margin: 0 !important;
  line-height: 1.75 !important;
  color: #3d5a3d !important;
  font-size: 0.9375rem !important;
}

/* Step image */
.recipe-instructions__step-image {
  margin-left: 54px !important;
  max-width: 440px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  border: 1px solid #e4ede4 !important;
  cursor: zoom-in !important;
}

.recipe-instructions__step-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}
.recipe-instructions__step-image:hover img {
  transform: scale(1.04) !important;
}

/* ----------------------------------------------------------------
   NUTRITION SECTION
   ---------------------------------------------------------------- */
.recipe-nutrition {
  background: linear-gradient(135deg, #f0f8f4, #e8f5ef) !important;
  border: 1.5px solid rgba(45,106,79,0.12) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  margin: 0 0 28px !important;
}

.recipe-nutrition__title {
  font-family: var(--ff-serif, 'Playfair Display', serif) !important;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  color: #1b4332 !important;
  margin: 0 0 20px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-nutrition__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
}

.recipe-nutrition__item {
  background: #fff;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.recipe-nutrition__item:hover { transform: translateY(-2px); }

.recipe-nutrition__item--calories {
  background: linear-gradient(135deg, #fff7ed, #fef3e2);
  border: 1px solid rgba(249,115,22,0.15);
}

.recipe-nutrition__icon { font-size: 1.4rem; }

.recipe-nutrition__value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1b4332;
  line-height: 1;
}

.recipe-nutrition__item--calories .recipe-nutrition__value {
  background: linear-gradient(135deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.recipe-nutrition__unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8da68d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recipe-nutrition__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a7a5a;
}

/* Macro bars */
.recipe-nutrition__macros { margin-top: 4px; }
.recipe-nutrition__macros-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #5a7a5a;
  margin: 0 0 10px;
}
.recipe-nutrition__bar-stack {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e4ede4;
  margin-bottom: 10px;
}
.macro-bar { height: 100%; transition: width 0.8s ease; }
.macro-bar--fat     { background: linear-gradient(90deg, #f97316, #fb923c); }
.macro-bar--carbs   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.macro-bar--protein { background: linear-gradient(90deg, #22c55e, #4ade80); }

.recipe-nutrition__macro-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.macro-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5a7a5a;
}
.macro-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.macro-legend-item--fat     .macro-dot { background: #f97316; }
.macro-legend-item--carbs   .macro-dot { background: #3b82f6; }
.macro-legend-item--protein .macro-dot { background: #22c55e; }

/* Details accordion */
.recipe-nutrition__details {
  margin-top: 16px;
  border-top: 1px solid rgba(45,106,79,0.12);
  padding-top: 14px;
}
.recipe-nutrition__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d6a4f;
  padding: 4px 0;
  user-select: none;
}
.recipe-nutrition__summary::-webkit-details-marker { display: none; }
.recipe-nutrition__summary-text { display: flex; align-items: center; gap: 6px; }
.recipe-nutrition__summary-arrow { transition: transform 0.25s; }
details[open] .recipe-nutrition__summary-arrow { transform: rotate(180deg); }

.recipe-nutrition__detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.recipe-nutrition__detail-item {
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.recipe-nutrition__detail-label {
  font-size: 0.75rem;
  color: #8da68d;
  font-weight: 600;
}
.recipe-nutrition__detail-value {
  font-size: 0.875rem;
  font-weight: 800;
  color: #1b4332;
}

.recipe-nutrition__disclaimer {
  font-size: 0.75rem;
  color: #a0b8a0;
  margin: 14px 0 0;
  font-style: italic;
}

/* ----------------------------------------------------------------
   RATING WIDGET
   ---------------------------------------------------------------- */
.recipe-rating-widget {
  background: #fff !important;
  border: 1.5px solid #e4ede4 !important;
  border-radius: 20px !important;
  padding: 32px !important;
  text-align: center !important;
  margin: 0 0 28px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

.recipe-rating-widget h3 {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: #1b4332;
  margin: 0 0 16px;
}

.rating-stars-input {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.rating-stars-input .star {
  font-size: 2rem !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
  display: inline-block !important;
  filter: grayscale(60%);
}

.rating-stars-input .star:hover,
.rating-stars-input .star.active {
  transform: scale(1.35) !important;
  filter: grayscale(0%) drop-shadow(0 2px 6px rgba(251,191,36,0.5)) !important;
}

/* ----------------------------------------------------------------
   SIDEBAR — Kitchen Timer & Widgets
   ---------------------------------------------------------------- */
.recipe-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid #e4ede4;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Jump to Recipe CTA widget */
.sidebar-widget[style*="background:var(--clr-primary)"],
.sidebar-widget[style*="background: var(--clr-primary)"] {
  background: linear-gradient(135deg, #2d6a4f, #1b4332) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(45,106,79,0.25) !important;
}

/* Kitchen timer */
.kitchen-timer-widget {
  text-align: center;
}

/* ----------------------------------------------------------------
   AUTHOR BOX
   ---------------------------------------------------------------- */
.author-box {
  background: linear-gradient(135deg, #f2f8f4, #eaf5ef);
  border: 1.5px solid rgba(45,106,79,0.1);
  border-radius: 20px;
  padding: 28px;
  margin: 0 0 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-box__avatar img {
  border-radius: 50%;
  border: 3px solid #52b788;
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.author-box__name {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 800;
  color: #1b4332;
  margin: 0 0 6px;
}

.author-box__bio {
  font-size: 0.875rem;
  color: #5a7a5a;
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------------
   RELATED RECIPES
   ---------------------------------------------------------------- */
.recipe-related {
  margin: 0 0 28px;
}

.recipe-related__title {
  font-family: var(--ff-serif) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #1b4332 !important;
  margin: 0 0 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f0f5f0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Social Share Bar */
.social-share {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  padding: 16px 20px !important;
  background: #f8fbf8 !important;
  border: 1px solid #e4ede4 !important;
  border-radius: 20px !important;
  margin: 0 auto 28px !important;
}

.social-share__label {
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #8da68d !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-right: 4px !important;
}

.social-share__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 99px !important;
  padding: 8px 20px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  transition: all 0.25s ease !important;
  height: 38px !important;
  box-sizing: border-box !important;
  border: none !important;
  cursor: pointer !important;
}

.social-share__btn--pinterest {
  background: #e60023 !important;
  color: #fff !important;
}
.social-share__btn--pinterest:hover {
  background: #b80018 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.2) !important;
}

.social-share__btn--whatsapp {
  background: #25d366 !important;
  color: #fff !important;
}
.social-share__btn--whatsapp:hover {
  background: #128c7e !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2) !important;
}

.social-share__btn--facebook {
  background: #1877f2 !important;
  color: #fff !important;
}
.social-share__btn--facebook:hover {
  background: #0c5dc7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2) !important;
}

.social-share__btn--copy {
  background: #fff !important;
  border: 1px solid #d0e8d0 !important;
  color: #2d6a4f !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}
.social-share__btn--copy:hover {
  background: #2d6a4f !important;
  color: #fff !important;
  border-color: #2d6a4f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2) !important;
}

.copy-toast {
  position: fixed !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(20px) !important;
  background: #1b4332 !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 99px !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
  z-index: 99999 !important;
}
.copy-toast.visible {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}


/* ----------------------------------------------------------------
   RESPONSIVE — Mobile
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .recipe-layout-grid {
    grid-template-columns: 1fr;
  }
  .recipe-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .recipe-article,
  article.recipe-article {
    padding: 22px !important;
    border-radius: 16px !important;
  }

  .quick-info-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 16px !important;
  }

  .recipe-nutrition__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .toc-grid-list {
    grid-template-columns: 1fr !important;
  }

  .recipe-instructions__step-image {
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  .recipe-instructions__list::before {
    display: none !important;
  }

  .author-box {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .quick-info-bar {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .recipe-nutrition__detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .recipe-top-actions {
    flex-direction: column;
  }
  .btn-jump-to-recipe,
  .btn-print-recipe {
    justify-content: center;
  }
}

/* ============================================================
   HEADER COOK MODE TOGGLE BUTTON
   ============================================================ */
.cook-mode-header-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f4f8f5;
  border: 1.5px solid #d0e8d0;
  border-radius: 99px;
  padding: 8px 18px;
  height: 38px;
  box-sizing: border-box;
  transition: all 0.25s ease;
  user-select: none;
}
.cook-mode-header-toggle:hover {
  border-color: #52b788;
  background: #fff;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.08);
}
.cook-mode-header-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d6a4f;
}

/* ============================================================
   PREMIUM FLOATING DARK MODE SWITCH
   ============================================================ */
.dark-mode-toggle-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 106, 79, 0.2);
  color: #1b4332;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark-mode-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  background: #fff;
  box-shadow: 0 12px 40px rgba(82, 183, 136, 0.25);
}
html.dark-mode .dark-mode-toggle-btn {
  background: rgba(22, 27, 34, 0.85);
  border-color: rgba(255,255,255,0.1);
  color: #f4a261;
}

/* ============================================================
   MOBILE GLASSMORPHIC BOTTOM DOCK (Mobile Only)
   ============================================================ */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.05);
}
html.dark-mode .mobile-bottom-dock {
  background: rgba(13, 17, 23, 0.8);
  border-color: rgba(255,255,255,0.08);
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #8da68d;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  transition: all 0.2s;
}
.dock-item:hover, .dock-item.active {
  color: #2d6a4f;
}
html.dark-mode .dock-item:hover, html.dark-mode .dock-item.active {
  color: #74c69d;
}
.dock-icon {
  font-size: 1.25rem;
}
@media (max-width: 768px) {
  .mobile-bottom-dock { display: flex; }
  body { padding-bottom: 64px !important; }
}

/* ============================================================
   COOK FOCUS MODE OVERLAY
   ============================================================ */
body.focus-mode-active .recipe-sidebar,
body.focus-mode-active .site-header,
body.focus-mode-active .opr-footer,
body.focus-mode-active .recipe-hero,
body.focus-mode-active .social-share {
  opacity: 0.15 !important;
  pointer-events: none !important;
  filter: blur(2px);
  transition: all 0.5s ease;
}
body.focus-mode-active .recipe-article {
  box-shadow: 0 0 50px rgba(82, 183, 136, 0.2) !important;
  transform: scale(1.01);
  transition: all 0.5s ease;
}

/* ============================================================
   KITCHEN TIMER ALERT ANIMATION
   ============================================================ */
.timer-pulse-alert {
  animation: timerAlertPulse 1s infinite alternate !important;
}
@keyframes timerAlertPulse {
  0% { background-color: #1b4332; box-shadow: 0 0 10px rgba(82, 183, 136, 0.4); }
  100% { background-color: #ef4444; box-shadow: 0 0 30px rgba(239, 68, 68, 0.8); }
}

/* ============================================================
   RATING FEEDBACK TOAST
   ============================================================ */
.rating-success-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -50px);
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  color: #fff;
  padding: 14px 28px;
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(45, 106, 79, 0.3);
  font-weight: 700;
  z-index: 100000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rating-success-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   FORCE PREMIUM LAYOUT WIDTH & GOLDEN RATIO COLUMNS
   ============================================================ */
.single-recipe .container {
  max-width: 1280px !important;
  width: 100% !important;
}

.single-recipe-layout {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 40px !important;
  align-items: start !important;
}

@media (max-width: 960px) {
  .single-recipe-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* ============================================================
   INTERACTIVE READING PROGRESS BAR
   ============================================================ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #52b788 0%, #2d6a4f 50%, #1b4332 100%) !important;
  z-index: 99999;
  transition: width 0.1s ease-out;
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   BUTTONS MAGNET OVERLAY & GLOW EFFECTS
   ============================================================ */
.btn-jump-to-recipe,
.btn-print-recipe,
.cook-mode-header-toggle,
.social-share__btn,
.sidebar-widget .btn-scale {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-jump-to-recipe:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.35) !important;
}

.btn-print-recipe:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.15) !important;
}

/* ============================================================
   LAZY IMAGES SHIMMER LOADER
   ============================================================ */
.lazy-load-shimmer {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmerLoader 1.5s infinite;
}
@keyframes shimmerLoader {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   GRID & HERO SPLIT FEATURED CARDS OVERLAP FIX
   ============================================================ */
.grid.grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}

/* Ensure recipe-card--featured spans 2 columns in the grid, preventing overlaps */
.recipe-card.recipe-card--featured {
  grid-column: span 2 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: 380px !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e4ede4 !important;
  position: relative !important;
  margin: 0 !important;
}

.recipe-card.recipe-card--featured .recipe-card-image {
  width: 55% !important;
  height: 100% !important;
  flex-shrink: 0 !important;
  position: relative !important;
  display: block !important;
}

.recipe-card.recipe-card--featured .recipe-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.recipe-card.recipe-card--featured .recipe-card-body {
  width: 45% !important;
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.recipe-card.recipe-card--featured .recipe-card-title a {
  color: #1b4332 !important;
  font-family: var(--ff-serif) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

/* Fallback for smaller screens to stack neatly */
@media (max-width: 960px) {
  .grid.grid-3 {
    grid-template-columns: 1fr 1fr !important;
  }
  .recipe-card.recipe-card--featured {
    grid-column: span 2 !important;
  }
}

@media (max-width: 640px) {
  .grid.grid-3 {
    grid-template-columns: 1fr !important;
  }
  .recipe-card.recipe-card--featured {
    grid-column: span 1 !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .recipe-card.recipe-card--featured .recipe-card-image,
  .recipe-card.recipe-card--featured .recipe-card-body {
    width: 100% !important;
  }
  .recipe-card.recipe-card--featured .recipe-card-image {
    height: 240px !important;
  }
}

/* ============================================================
   ULTIMATE GRID FEATURED LAYOUT & COLLISION PREVENTER
   ============================================================ */
.grid.grid-3 {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 30px !important;
}

.recipe-card.recipe-card--featured {
  grid-column: span 1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
  border: 1px solid #e4ede4 !important;
  min-height: 420px !important;
  position: relative !important;
  margin: 0 !important;
}

.recipe-card.recipe-card--featured .recipe-card-image {
  width: 55% !important;
  height: 100% !important;
  position: relative !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.recipe-card.recipe-card--featured .recipe-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.recipe-card.recipe-card--featured .recipe-card-body {
  width: 45% !important;
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  position: static !important;
}

.recipe-card.recipe-card--featured .recipe-card-body * {
  position: static !important;
}

.recipe-card.recipe-card--featured .recipe-card-title a {
  color: #1b4332 !important;
  font-family: var(--ff-serif) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

@media (max-width: 960px) {
  .grid.grid-3 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .recipe-card.recipe-card--featured {
    flex-direction: column !important;
    min-height: auto !important;
  }
  .recipe-card.recipe-card--featured .recipe-card-image,
  .recipe-card.recipe-card--featured .recipe-card-body {
    width: 100% !important;
  }
  .recipe-card.recipe-card--featured .recipe-card-image {
    height: 240px !important;
  }
}

/* ============================================================
   GRID SPATIAL SYSTEM COLLISION PREVENTER
   ============================================================ */
.grid.grid-3 {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 32px !important;
  align-items: stretch !important;
}

.grid.grid-3 > div {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
}

.grid.grid-3 > div .recipe-card {
  margin: 0 !important;
  width: 100% !important;
}

.recipe-card.recipe-card--featured {
  grid-column: span 1 !important;
  margin: 0 !important;
}

/* ============================================================
   GRID SYSTEM & COLLISION PREVENTER (RESET TO 3 COLUMNS)
   ============================================================ */
.grid.grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}

.recipe-card.recipe-card--featured {
  grid-column: span 2 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e4ede4 !important;
  min-height: 400px !important;
  position: relative !important;
  margin: 0 !important;
}

.recipe-card.recipe-card--featured .recipe-card-image {
  width: 50% !important;
  height: 100% !important;
  position: relative !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.recipe-card.recipe-card--featured .recipe-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.recipe-card.recipe-card--featured .recipe-card-body {
  width: 50% !important;
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  position: static !important;
}

.grid.grid-3 > div {
  width: 100% !important;
  margin: 0 !important;
}

.grid.grid-3 > div .recipe-card:not(.recipe-card--featured) {
  width: 100% !important;
  grid-column: span 1 !important;
}

@media (max-width: 960px) {
  .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .recipe-card.recipe-card--featured {
    grid-column: span 2 !important;
  }
}

@media (max-width: 640px) {
  .grid.grid-3 {
    grid-template-columns: 1fr !important;
  }
  .recipe-card.recipe-card--featured {
    grid-column: span 1 !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .recipe-card.recipe-card--featured .recipe-card-image,
  .recipe-card.recipe-card--featured .recipe-card-body {
    width: 100% !important;
  }
  .recipe-card.recipe-card--featured .recipe-card-image {
    height: 240px !important;
  }
}

/* ============================================================
   EXPLICIT CARD AVATAR & GRID OVERLAP FIXES
   ============================================================ */
.recipe-card .recipe-card-author {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.recipe-card .recipe-card-author img.avatar,
.recipe-card .recipe-card-author img.author-avatar,
.recipe-card .recipe-card-author img,
.recipe-card .recipe-card-author .avatar-24 {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #52b788 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.grid.grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

.recipe-card.recipe-card--featured {
  grid-column: span 2 !important;
  margin: 0 !important;
}

.grid.grid-3 > div {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   PREMIUM PERSONA EXPERT CARDS REDESIGN
   ============================================================ */
.persona-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  border: 1px solid #eef5f1 !important;
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 460px !important;
  box-shadow: 0 10px 30px rgba(45, 106, 79, 0.03) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
  box-sizing: border-box !important;
}

.persona-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(45, 106, 79, 0.08) !important;
  border-color: #d8ebd8 !important;
}

.persona-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
  position: relative !important;
}

.persona-avatar-wrap {
  position: relative !important;
  width: 72px !important;
  height: 72px !important;
  flex-shrink: 0 !important;
}

.persona-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  border: 3px solid #52b788 !important;
  object-fit: cover !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}

.persona-badge {
  position: absolute !important;
  bottom: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #1b4332 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  border: 1.5px solid #ffffff !important;
}

.persona-badge.persona-badge--alt {
  background: #e76f51 !important;
}

.persona-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.persona-name {
  font-family: var(--ff-serif) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #1b4332 !important;
  margin: 0 !important;
}

.persona-role {
  font-size: 13px !important;
  color: #748e7e !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.persona-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
}

.persona-article-title {
  font-family: var(--ff-sans) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #2d6a4f !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.4 !important;
}

.persona-text {
  font-size: 14px !important;
  color: #556b5c !important;
  line-height: 1.6 !important;
  margin: 0 0 24px 0 !important;
}

.persona-card .btn.btn--outline.btn--sm {
  width: 100% !important;
  text-align: center !important;
  display: block !important;
  background: transparent !important;
  border: 2px solid #52b788 !important;
  color: #2d6a4f !important;
  padding: 12px 24px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.persona-card .btn.btn--outline.btn--sm:hover {
  background: #52b788 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(82, 183, 136, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* ============================================================
   HIGH-SPECIFICITY PERSONA EXPERT LAYOUT FIXES
   ============================================================ */
body.home .persona-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  border: 1px solid #eef5f1 !important;
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 480px !important;
  box-shadow: 0 10px 30px rgba(45, 106, 79, 0.03) !important;
  box-sizing: border-box !important;
  transition: all 0.4s ease !important;
}

body.home .persona-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(45, 106, 79, 0.08) !important;
  border-color: #d8ebd8 !important;
}

body.home .persona-avatar-wrap {
  position: relative !important;
  width: 72px !important;
  height: 72px !important;
  margin-right: 15px !important;
  display: block !important;
}

body.home .persona-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  border: 3px solid #52b788 !important;
  object-fit: cover !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
  display: block !important;
}

body.home .persona-badge {
  position: absolute !important;
  bottom: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #1b4332 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  border: 1.5px solid #ffffff !important;
  z-index: 10 !important;
}

body.home .persona-badge.persona-badge--alt {
  background: #e76f51 !important;
}

body.home .persona-card a.btn.btn--outline {
  width: 100% !important;
  text-align: center !important;
  display: block !important;
  background: #ffffff !important;
  border: 2px solid #52b788 !important;
  color: #2d6a4f !important;
  padding: 12px 24px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

body.home .persona-card a.btn.btn--outline:hover {
  background: #52b788 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(82, 183, 136, 0.25) !important;
  transform: translateY(-2px) !important;
}
