/*
 * Sally Baking Delights - Main Stylesheet
 * Inspired by Sally's Baking Addiction
 */

:root {
    --sb-primary: #b33951;
    --sb-primary-hover: #962a3f;
    --sb-primary-light: #fbebee;
    --sb-gold: #f5a623;
    --sb-dark: #232323;
    --sb-text: #374151;
    --sb-text-muted: #6b7280;
    --sb-bg: #ffffff;
    --sb-bg-soft: #faf6f2;
    --sb-bg-alt: #fffaf7;
    --sb-border: #ebdcd5;
    --sb-border-light: #f3ece8;
    --sb-font-script: 'Great Vibes', cursive;
    --sb-font-heading: 'Playfair Display', Georgia, serif;
    --sb-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sb-shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
    --sb-shadow-md: 0 6px 18px rgba(0,0,0,0.07);
    --sb-shadow-lg: 0 12px 28px rgba(0,0,0,0.11);
    --sb-radius: 8px;
    --sb-container: 1180px;
}

/* Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sb-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--sb-text);
    background-color: var(--sb-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--sb-primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-heading);
    color: var(--sb-dark);
    font-weight: 700;
    line-height: 1.25;
}

.site-container {
    max-width: var(--sb-container);
    margin: 0 auto;
    padding: 0 20px;
}

.page-spacing {
    padding-top: 40px;
    padding-bottom: 60px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   1. SALLY'S EXACT SCALLOPED TOP PROMO BAR (Dusty Blush Pink + Cookbook)
   ========================================================================== */
.sally-scallop-top-bar {
    position: relative;
    background-color: #F8E4DF;
    padding: 7px 0 11px;
    z-index: 105;
}

.scallop-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scallop-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #222222;
    transition: opacity 0.2s ease;
}

.scallop-promo-link:hover {
    opacity: 0.88;
}

.scallop-book-img {
    width: 26px;
    height: 32px;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
    display: block;
}

.scallop-promo-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #222222;
    letter-spacing: 0.3px;
}

.scallop-pill-btn {
    background-color: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.scallop-promo-link:hover .scallop-pill-btn {
    background-color: #333333;
    transform: scale(1.04);
}

.scallop-lace-divider {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath fill='%23F8E4DF' d='M0,0 L20,0 C17,7 13,8 10,8 C7,8 3,7 0,0 Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 20px 8px;
    z-index: 106;
    pointer-events: none;
}

/* ==========================================================================
   2. SALLY'S EXACT UNIFIED MAIN HEADER (Logo Left, Center Icons, Circles Right)
   ========================================================================== */
.sally-exact-header {
    background-color: #ffffff;
    border-bottom: 1px solid #ECECEC;
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.sally-header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Left: Logo Column */
.sally-logo-col {
    flex-shrink: 0;
}

.sally-brand-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.sally-brand-logo-img {
    height: 40px;
    width: auto;
    max-width: 280px;
    display: block;
}

/* Center: Navigation With Icons Above Text Labels */
.sally-icon-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.sally-icon-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 0;
    padding: 0;
}

.sally-icon-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 4px 6px;
    position: relative;
    transition: all 0.2s ease;
}

.nav-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.nav-ico-rose { color: #DC7766; }
.nav-ico-teal { color: #4A7C77; }
.nav-ico-tan  { color: #C59E85; }
.nav-ico-berry { color: #9C2844; }

.nav-label-text {
    font-family: var(--sb-font-body);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #222222;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-icon-link:hover .nav-icon-svg {
    transform: translateY(-2px) scale(1.08);
}

.nav-icon-link:hover .nav-label-text,
.current-menu-item .nav-icon-link .nav-label-text {
    color: var(--sb-primary);
}

.nav-icon-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--sb-primary);
    transition: width 0.2s ease;
}

.nav-icon-link:hover::after,
.current-menu-item .nav-icon-link::after {
    width: 80%;
}

/* Right: Circular Action Buttons (Search & Menu) */
.sally-actions-col {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sally-circle-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #222222;
    background: transparent;
    color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.sally-circle-action-btn:hover {
    border-color: #DC7766;
    color: #DC7766;
    background-color: #FFF9F7;
    transform: scale(1.06);
}

.menu-item-with-mega {
    position: static;
}

/* SALLY'S LUXURY MEGA MENU DROPDOWN */
.sally-mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: var(--sb-container);
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--sb-border);
    border-top: 3px solid var(--sb-primary);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.13), 0 6px 16px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: 999;
}

.menu-item-has-mega-menu:hover .sally-mega-menu-dropdown,
.menu-item-with-mega:hover .sally-mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
    gap: 28px;
    padding: 28px 32px;
    text-align: left;
}

.mega-col-title {
    font-family: var(--sb-font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sb-primary);
    border-bottom: 2px solid var(--sb-border-light);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.mega-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-links-list li a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 10px !important;
    border-radius: 6px;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--sb-dark) !important;
    transition: all 0.18s ease;
}

.mega-links-list li a::after {
    display: none !important;
}

.mega-links-list li a:hover {
    background-color: var(--sb-bg-alt);
    color: var(--sb-primary) !important;
    transform: translateX(4px);
}

.mega-ico {
    font-size: 16px;
}

/* Spotlight Card in Mega Menu */
.mega-spotlight-col {
    background: var(--sb-bg-soft);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--sb-border);
}

.mega-spotlight-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.spotlight-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--sb-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
}

.spotlight-thumb {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    display: block;
}

.spotlight-thumb img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spotlight-thumb:hover img {
    transform: scale(1.05);
}

.spotlight-title {
    font-size: 15px;
    font-family: var(--sb-font-heading);
    margin-bottom: 10px;
    line-height: 1.35;
}

.spotlight-title a {
    color: var(--sb-dark);
}

.spotlight-title a:hover {
    color: var(--sb-primary);
}

.spotlight-index-btn {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sb-primary);
    border-top: 1px solid var(--sb-border);
    padding-top: 8px;
    margin-top: auto;
    display: block;
}

.nav-menu.primary-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 12px 0;
}

.nav-menu.primary-menu li a {
    color: var(--sb-dark);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 4px;
    position: relative;
}

.nav-menu.primary-menu li a:hover,
.nav-menu.primary-menu li.current-menu-item a {
    color: var(--sb-primary);
}

.nav-menu.primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sb-primary);
    transition: width 0.2s ease;
}

.nav-menu.primary-menu li a:hover::after,
.nav-menu.primary-menu li.current-menu-item a::after {
    width: 100%;
}

/* CATEGORY RIBBON (Sally's signature sub-nav) */
.category-ribbon {
    background-color: var(--sb-bg-soft);
    border-bottom: 1px solid var(--sb-border);
    padding: 8px 0;
    overflow-x: auto;
}

.cat-ribbon-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    white-space: nowrap;
}

.cat-ribbon-list li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cat-ribbon-list li a:hover {
    color: var(--sb-primary);
    background-color: #ffffff;
}

.cat-ribbon-list li a.all-recipes-btn {
    background-color: var(--sb-primary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
}

.cat-ribbon-list li a.all-recipes-btn:hover {
    background-color: var(--sb-primary-hover);
}

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
    color: var(--sb-dark);
}

.search-overlay-content {
    max-width: 650px;
    width: 100%;
    text-align: center;
}

.search-overlay-title {
    font-size: 28px;
    margin-bottom: 24px;
}

.search-form-full {
    display: flex;
    border-bottom: 2px solid var(--sb-primary);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.search-field-large {
    flex: 1;
    border: none;
    background: none;
    font-size: 20px;
    font-family: var(--sb-font-heading);
    outline: none;
}

.search-submit-large {
    background-color: var(--sb-primary);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.search-popular-tags {
    font-size: 14px;
    color: var(--sb-text-muted);
}

.search-popular-tags a {
    margin: 0 6px;
    text-decoration: underline;
    color: var(--sb-text);
}

/* ==========================================================================
   MOBILE DRAWER & NAVIGATION
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background-color: #ffffff;
    z-index: 10000;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.2);
    transition: left 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    left: 0;
}

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

.mobile-drawer-brand {
    display: inline-flex;
    align-items: center;
}

.sally-mobile-logo-svg {
    height: 32px;
    width: auto;
    max-width: 190px;
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--sb-dark);
    cursor: pointer;
    padding: 2px 6px;
}

.mobile-search-wrap {
    margin-bottom: 18px;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    border: 1.5px solid #E5E7EB;
    border-radius: 25px;
    padding: 4px 6px 4px 14px;
    background-color: #F9FAFB;
    transition: border-color 0.2s ease;
}

.mobile-search-form:focus-within {
    border-color: #DC7766;
    background-color: #ffffff;
}

.mobile-search-input {
    border: none;
    background: transparent;
    font-size: 13.5px;
    width: 100%;
    outline: none;
    font-family: inherit;
    color: #222222;
}

.mobile-search-submit {
    border: none;
    background-color: #DC7766;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.mobile-search-submit:hover {
    background-color: #C55E4E;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-menu li a {
    display: block;
    padding: 11px 6px;
    font-size: 15px;
    font-weight: 700;
    color: #222222;
    border-bottom: 1px solid var(--sb-border-light);
    text-decoration: none;
    transition: color 0.18s ease;
}

.mobile-nav-menu li a:hover {
    color: var(--sb-primary);
}

.mobile-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 11px 6px;
    font-size: 15px;
    font-weight: 700;
    color: #222222;
    border-bottom: 1px solid var(--sb-border-light);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: color 0.18s ease;
}

.mobile-accordion-toggle:hover {
    color: var(--sb-primary);
}

.mobile-accordion-toggle .accordion-chevron {
    transition: transform 0.25s ease;
}

.mobile-accordion-toggle.is-active .accordion-chevron {
    transform: rotate(180deg);
}

.mobile-submenu-collapse {
    display: none;
    padding: 12px 14px;
    background-color: #FAF6F4;
    border-radius: 8px;
    margin: 8px 0;
}

.mobile-submenu-collapse.is-open {
    display: block;
}

.mobile-subgroup {
    margin-bottom: 14px;
}

.subgroup-title {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #DC7766;
    margin-bottom: 6px;
}

.mobile-subgroup-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-subgroup-links li a {
    display: block;
    padding: 6px 4px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    border-bottom: none !important;
}

.mobile-subgroup-links li a:hover {
    color: #DC7766 !important;
    transform: translateX(4px);
}

.mobile-all-index-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #DC7766 !important;
    padding-top: 6px;
    text-decoration: underline !important;
    border-bottom: none !important;
}

.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--sb-border-light);
}

.mobile-follow-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sb-text-muted);
    margin-bottom: 8px;
}

.mobile-social-row {
    display: flex;
    gap: 8px;
}

.mob-social-btn {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    background-color: #F3F4F6;
    border-radius: 15px;
    color: #374151;
    text-decoration: none;
    transition: all 0.18s ease;
}

.mob-social-btn:hover {
    background-color: #DC7766;
    color: #ffffff;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* HERO FEATURED SECTION */
.hero-featured-section {
    padding: 35px 0 25px;
    background-color: #ffffff;
}

.hero-seo-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.hero-kicker {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--sb-primary);
    background-color: var(--sb-primary-light);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.hero-main-h1 {
    font-size: 38px;
    color: var(--sb-dark);
    margin-bottom: 10px;
    line-height: 1.25;
}

.hero-subtext {
    font-size: 16px;
    color: var(--sb-text-muted);
    max-width: 680px;
    margin: 0 auto;
}

.hero-featured-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
}

.featured-main-card {
    background-color: var(--sb-bg-alt);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    overflow: hidden;
    box-shadow: var(--sb-shadow-sm);
    display: flex;
    flex-direction: column;
}

.featured-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.featured-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-main-card:hover .featured-hero-img {
    transform: scale(1.03);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--sb-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: var(--sb-shadow-sm);
}

.featured-main-content {
    padding: 24px 28px;
}

.recipe-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.recipe-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sb-primary);
}

.recipe-stars {
    color: var(--sb-gold);
    font-size: 14px;
    letter-spacing: 2px;
}

.featured-main-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.featured-main-title a {
    color: var(--sb-dark);
}

.featured-main-excerpt {
    font-size: 15px;
    color: var(--sb-text-muted);
    margin-bottom: 16px;
}

.btn-read-recipe {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sb-primary);
    border-bottom: 2px solid var(--sb-primary);
    padding-bottom: 2px;
}

.featured-side-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-stack-header h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sb-text-muted);
    border-bottom: 2px solid var(--sb-primary);
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.featured-side-card {
    display: flex;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid var(--sb-border-light);
    border-radius: var(--sb-radius);
    padding: 12px;
    box-shadow: var(--sb-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-side-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sb-shadow-md);
}

.side-card-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.side-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sb-primary);
}

.side-card-title {
    font-size: 16px;
    margin: 4px 0 6px;
}

.side-card-title a {
    color: var(--sb-dark);
}

.side-card-rating {
    color: var(--sb-gold);
    font-size: 12px;
    letter-spacing: 1px;
}

/* POPULAR CATEGORIES BUBBLES */
.popular-cats-section {
    padding: 40px 0;
    background-color: var(--sb-bg-soft);
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.sub-heading {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sb-text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.main-section-title {
    font-size: 30px;
}

.title-divider {
    width: 50px;
    height: 3px;
    background-color: var(--sb-primary);
    margin: 10px auto 0;
}

.popular-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

.cat-card-bubble {
    background-color: #ffffff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--sb-shadow-sm);
}

.cat-card-bubble:hover {
    transform: translateY(-4px);
    box-shadow: var(--sb-shadow-md);
    border-color: var(--sb-primary);
}

.cat-bubble-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.cat-bubble-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-dark);
}

/* LAYOUT WITH SIDEBAR */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 45px;
}

.recipes-list-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--sb-border);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.latest-heading {
    font-size: 26px;
}

.view-all-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* RECIPE CARDS GRID */
.recipes-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.recipe-grid-card {
    background-color: #ffffff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    overflow: hidden;
    box-shadow: var(--sb-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-thumb-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

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

.recipe-thumb-fallback {
    width: 100%;
    height: 100%;
    background-color: var(--sb-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-family: var(--sb-font-heading);
    color: var(--sb-text-muted);
}

.card-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--sb-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: var(--sb-shadow-sm);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-stars-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.card-stars-line .stars {
    color: var(--sb-gold);
    letter-spacing: 1px;
}

.card-stars-line .rating-num {
    font-weight: 700;
    color: var(--sb-dark);
}

.card-time-tag {
    margin-left: auto;
    font-size: 12px;
    color: var(--sb-text-muted);
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.card-title a {
    color: var(--sb-dark);
}

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

.card-excerpt {
    font-size: 14px;
    color: var(--sb-text-muted);
    margin-bottom: 16px;
    flex: 1;
}

.card-footer-meta {
    margin-top: auto;
    border-top: 1px solid var(--sb-border-light);
    padding-top: 12px;
}

.card-read-btn {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sb-primary);
}

/* PAGINATION */
.sally-pagination ul, .sally-pagination .nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.sally-pagination a, .sally-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--sb-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-dark);
}

.sally-pagination a:hover {
    border-color: var(--sb-primary);
    color: var(--sb-primary);
}

.sally-pagination .current {
    background-color: var(--sb-primary);
    border-color: var(--sb-primary);
    color: #ffffff;
}

/* SIDEBAR & WIDGETS */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.widget {
    background-color: #ffffff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    padding: 24px;
    box-shadow: var(--sb-shadow-sm);
}

.widget-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sb-dark);
    margin-bottom: 18px;
    position: relative;
    text-align: center;
}

.widget-title span {
    background-color: #ffffff;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--sb-border);
    z-index: 0;
}

/* About Author Widget (Sally's signature) */
.widget-about-baker {
    background-color: var(--sb-bg-alt);
    border-color: var(--sb-border);
    text-align: center;
}

.about-avatar-wrap {
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--sb-primary);
    box-shadow: var(--sb-shadow-md);
}

.about-baker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-baker-name {
    font-size: 24px;
    margin-bottom: 8px;
    font-style: italic;
}

.about-baker-desc {
    font-size: 14px;
    color: var(--sb-text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.about-more-btn {
    display: inline-block;
    background-color: var(--sb-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.2s;
}

.about-more-btn:hover {
    background-color: var(--sb-primary-hover);
    color: #ffffff;
}

/* Recipe Index Promo Widget */
.recipe-index-box {
    background-color: var(--sb-bg-soft);
    border-radius: var(--sb-radius);
    padding: 16px;
    text-align: center;
}

.index-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.index-title {
    font-size: 20px;
    margin-bottom: 6px;
}

.index-desc {
    font-size: 13px;
    color: var(--sb-text-muted);
    margin-bottom: 14px;
}

.index-btn {
    display: block;
    background-color: var(--sb-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: 4px;
}

.index-btn:hover {
    background-color: var(--sb-primary);
    color: #ffffff;
}

/* Popular Recipes Widget */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.popular-rank {
    font-family: var(--sb-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--sb-primary);
    width: 20px;
    text-align: center;
}

.popular-thumb {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-info {
    flex: 1;
}

.popular-title {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.popular-title a {
    color: var(--sb-dark);
}

.popular-stars {
    color: var(--sb-gold);
    font-size: 11px;
}

/* Category list widget */
.styled-cat-list {
    list-style: none;
}

.styled-cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--sb-text);
    border-bottom: 1px solid var(--sb-border-light);
}

.styled-cat-list li a:hover {
    color: var(--sb-primary);
    padding-left: 4px;
}

.cat-count {
    color: var(--sb-text-muted);
    font-size: 12px;
}

/* SINGLE RECIPE PAGE */
.recipe-breadcrumbs {
    font-size: 13px;
    color: var(--sb-text-muted);
    margin-bottom: 20px;
}

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

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

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

.recipe-top-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.category-pill {
    background-color: var(--sb-primary-light);
    color: var(--sb-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
}

.recipe-rating-badge {
    font-size: 14px;
    color: var(--sb-dark);
}

.recipe-title {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.author-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--sb-border-light);
    border-bottom: 1px solid var(--sb-border-light);
    padding: 12px 0;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-thumb-circle {
    border-radius: 50%;
}

.author-text {
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

.recipe-quick-stats .comments-quick-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text-muted);
}

/* QUICK JUMP BUTTONS (Sally's famous jump buttons) */
.recipe-jump-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-jump-recipe, .btn-print-recipe, .btn-pin-recipe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: var(--sb-font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-jump-recipe {
    background-color: var(--sb-primary);
    color: #ffffff;
    border: none;
}

.btn-jump-recipe:hover {
    background-color: var(--sb-primary-hover);
    color: #ffffff;
}

.btn-print-recipe {
    background-color: #ffffff;
    color: var(--sb-dark);
    border: 1px solid var(--sb-border);
}

.btn-print-recipe:hover {
    border-color: var(--sb-dark);
}

.btn-pin-recipe {
    background-color: #e60023;
    color: #ffffff;
    border: none;
}

.btn-pin-recipe:hover {
    background-color: #c9001f;
    color: #ffffff;
}

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

.hero-post-img {
    width: 100%;
}

.recipe-editorial-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c2c2c;
    margin-bottom: 40px;
}

.recipe-editorial-content p {
    margin-bottom: 22px;
}

.recipe-editorial-content h2, .recipe-editorial-content h3 {
    margin-top: 35px;
    margin-bottom: 16px;
}

.recipe-editorial-content img {
    border-radius: 6px;
    margin: 25px auto;
}

/* BUILT-IN SALLY RECIPE CARD */
.sally-recipe-card-box {
    background-color: var(--sb-bg-soft);
    border: 2px solid var(--sb-border);
    border-radius: var(--sb-radius);
    padding: 35px;
    margin: 45px 0;
    box-shadow: var(--sb-shadow-sm);
    position: relative;
}

.recipe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--sb-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.recipe-card-title {
    font-size: 32px;
    margin-bottom: 8px;
}

.recipe-card-rating {
    font-size: 14px;
    color: var(--sb-dark);
}

.recipe-card-rating .stars {
    color: var(--sb-gold);
    letter-spacing: 2px;
}

.card-btn-action {
    background-color: #ffffff;
    border: 1px solid var(--sb-border);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.card-btn-action:hover {
    border-color: var(--sb-primary);
    color: var(--sb-primary);
}

/* Recipe Details Grid */
.recipe-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.detail-box {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--sb-text-muted);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--sb-dark);
}

.recipe-section-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--sb-primary);
    border-bottom: 1px solid var(--sb-border);
    padding-bottom: 6px;
}

/* Checklist Ingredients */
.ingredients-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sb-border);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.ingredients-header-row .recipe-section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.recipe-scale-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scale-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sb-text-muted);
}

.scale-btn {
    background: #ffffff;
    border: 1px solid var(--sb-border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.scale-btn.active, .scale-btn:hover {
    background: var(--sb-primary);
    color: #ffffff;
    border-color: var(--sb-primary);
}

.recipe-ingredients-checklist {
    list-style: none;
    margin-bottom: 30px;
}

.ingredient-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--sb-border-light);
}

.ingredient-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
}

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

.ingredient-checkbox:checked + .ingredient-name {
    text-decoration: line-through;
    color: var(--sb-text-muted);
}

.ingredient-subheading {
    font-family: var(--sb-font-heading);
    font-size: 17px;
    color: var(--sb-dark);
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Instruction Steps */
.recipe-instructions-list {
    list-style: none;
    counter-reset: sally-steps;
    margin-bottom: 30px;
}

.instruction-step {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.step-num {
    background-color: var(--sb-primary);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sb-text);
}

/* Notes Block */
.recipe-notes-block {
    background-color: #ffffff;
    border-left: 4px solid var(--sb-primary);
    padding: 18px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.notes-heading {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--sb-dark);
}

.notes-body {
    font-size: 14px;
    color: var(--sb-text-muted);
    line-height: 1.6;
}

.recipe-card-footer {
    text-align: center;
    font-size: 13px;
    color: var(--sb-text-muted);
    border-top: 1px solid var(--sb-border);
    padding-top: 16px;
}

/* AUTHOR BIO BOX */
.author-bio-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: var(--sb-bg-alt);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    padding: 24px;
    margin: 40px 0;
}

.author-bio-avatar img {
    border-radius: 50%;
    border: 2px solid var(--sb-primary);
}

.author-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sb-text-muted);
    font-weight: 700;
}

.author-name {
    font-size: 22px;
    margin-bottom: 6px;
}

.author-desc {
    font-size: 14px;
    color: var(--sb-text-muted);
}

/* RELATED RECIPES */
.related-recipes-section {
    margin: 50px 0;
}

.related-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--sb-border);
    padding-bottom: 10px;
}

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

.related-card {
    background-color: #ffffff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-img-wrap {
    aspect-ratio: 1/1;
    overflow: hidden;
    display: block;
}

.related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-title {
    font-size: 15px;
    padding: 12px;
}

.related-card-title a {
    color: var(--sb-dark);
}

/* COMMENTS AREA */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--sb-border);
}

.comments-title {
    font-size: 26px;
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment-body {
    background-color: var(--sb-bg-soft);
    border-radius: var(--sb-radius);
    padding: 20px;
    margin-bottom: 18px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata a {
    color: var(--sb-text-muted);
}

.comment-content {
    font-size: 15px;
}

.reply a {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Comment Form */
#respond {
    background-color: var(--sb-bg-alt);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    padding: 28px;
}

#reply-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--sb-border);
    border-radius: 4px;
    font-family: var(--sb-font-body);
    font-size: 14px;
}

.comment-form input[type="submit"] {
    background-color: var(--sb-primary);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
}

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

/* ARCHIVE & SEARCH BANNERS */
.archive-header-banner {
    background-color: var(--sb-bg-soft);
    border-bottom: 1px solid var(--sb-border);
    padding: 45px 0;
    text-align: center;
}

.archive-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sb-primary);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.archive-page-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.archive-page-desc, .search-count {
    max-width: 600px;
    margin: 0 auto;
    color: var(--sb-text-muted);
    font-size: 15px;
}

/* 404 PAGE */
.error-404-box {
    text-align: center;
    max-width: 550px;
    margin: 60px auto;
    padding: 40px;
}

.error-emoji {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.error-title {
    font-size: 32px;
    margin-bottom: 14px;
}

.error-message {
    color: var(--sb-text-muted);
    margin-bottom: 24px;
}

.btn-back-home {
    display: inline-block;
    background-color: var(--sb-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 20px;
    margin-top: 15px;
}

/* PRE-FOOTER NEWSLETTER */
.footer-newsletter-section {
    background-color: var(--sb-bg-soft);
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
    padding: 60px 0;
    margin-top: 50px;
}

.newsletter-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    color: var(--sb-primary);
    margin-bottom: 14px;
}

.newsletter-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.newsletter-subtitle {
    font-size: 15px;
    color: var(--sb-text-muted);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto 12px;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--sb-border);
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--sb-font-body);
}

.newsletter-submit-btn {
    background-color: var(--sb-primary);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

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

.newsletter-privacy-note {
    font-size: 12px;
    color: var(--sb-text-muted);
}

/* FOOTER */
.site-footer {
    background-color: #ffffff;
    padding: 60px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid var(--sb-border-light);
    padding-bottom: 40px;
    margin-bottom: 25px;
}

.footer-widget-title {
    font-size: 18px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--sb-primary);
}

.footer-about-text {
    font-size: 14px;
    color: var(--sb-text-muted);
    line-height: 1.7;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: var(--sb-text);
}

.footer-links-list li a:hover {
    color: var(--sb-primary);
    padding-left: 4px;
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--sb-text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-bottom a {
    color: var(--sb-dark);
    font-weight: 600;
}

/* PRINT STYLESHEET (Printing recipe only) */
@media print {
    .top-announcement-bar,
    .site-header,
    .category-ribbon,
    .recipe-jump-buttons,
    .sidebar-area,
    .footer-newsletter-section,
    .site-footer,
    .comments-area,
    .related-recipes-section,
    .author-bio-box,
    .search-overlay,
    .mobile-drawer {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
    }

    .layout-with-sidebar {
        display: block !important;
    }

    .sally-recipe-card-box {
        border: 1px solid #333 !important;
        box-shadow: none !important;
        padding: 20px !important;
        page-break-inside: avoid;
    }

    .btn-jump-recipe, .btn-print-recipe, .btn-pin-recipe, .card-btn-action {
        display: none !important;
    }
}

/* SALLY'S EXACT BRANDING & COMPONENTS */

/* Centered Logo & Sub-tagline (Sally's Authentic Brand Identity) */
.sally-brand-center {
    text-align: center;
    padding: 26px 0 16px;
}

.sally-brand-logo-wrap {
    display: inline-block;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.2s ease;
}

.sally-brand-logo-wrap:hover {
    transform: scale(1.025);
    opacity: 0.95;
}

.sally-main-logo-svg {
    width: 360px;
    max-width: 90vw;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sally-mobile-logo-svg {
    width: 190px;
    height: auto;
    display: block;
}

.sally-subtagline {
    font-family: var(--sb-font-heading);
    font-style: italic;
    font-size: 14.5px;
    color: #555555;
    margin-top: 10px;
    letter-spacing: 0.6px;
    display: inline-block;
    position: relative;
}

.sally-subtagline::before, .sally-subtagline::after {
    content: '—';
    margin: 0 8px;
    color: #d8c2b8;
}

/* Sally Navigation Bar with Integrated Search */
.sally-nav-bar {
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
    background: #ffffff;
}

.nav-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-links-wrap {
    flex: 1;
}

.nav-recipe-index-link {
    color: var(--sb-primary) !important;
}

.nav-search-box {
    display: flex;
    align-items: center;
}

.nav-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--sb-border);
    border-radius: 25px;
    padding: 4px 8px 4px 14px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.nav-search-form:focus-within {
    border-color: var(--sb-primary);
    background: #ffffff;
    box-shadow: 0 0 0 2px var(--sb-primary-light);
}

.nav-search-input {
    border: none;
    background: transparent;
    font-size: 13px;
    width: 170px;
    outline: none;
    font-family: var(--sb-font-body);
}

.nav-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: #666666;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s;
}

.nav-search-submit:hover {
    color: var(--sb-primary);
}

/* Category Ribbon Pills */
.cat-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-dot {
    font-size: 14px;
}

/* Centered Button Styling (User explicit request) */
.center-btn-wrap {
    text-align: center;
    margin: 35px 0 20px;
}

.sally-center-btn {
    display: inline-block;
    background-color: #ffffff;
    border: 2px solid var(--sb-dark);
    color: var(--sb-dark) !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 34px;
    border-radius: 30px;
    transition: all 0.25s ease;
    box-shadow: var(--sb-shadow-sm);
}

.sally-center-btn:hover {
    background-color: var(--sb-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--sb-shadow-md);
}

.sally-btn-large {
    padding: 14px 44px;
    font-size: 14px;
}

/* MOST POPULAR SECTION (Sally's Popular Now) */
.most-popular-section {
    padding: 45px 0 25px;
    background-color: var(--sb-bg-soft);
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
}

.most-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 25px;
}

.popular-recipe-card {
    background: #ffffff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    overflow: hidden;
    box-shadow: var(--sb-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.popular-card-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

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

.popular-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sb-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.popular-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pop-cat-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sb-primary);
    margin-bottom: 4px;
    display: block;
}

.pop-card-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.35;
    flex: 1;
}

.pop-card-title a {
    color: var(--sb-dark);
}

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

.pop-meta-stars {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pop-meta-stars .stars {
    color: var(--sb-gold);
}

/* SALLY'S BAKING CHALLENGE BANNER (Exact replica for 3StepRecipes) */
.challenge-section {
    padding: 20px 0;
}

.sally-challenge-banner-card {
    background: #fff6f2;
    border: 2px solid #ecdcd5;
    border-radius: 12px;
    padding: 45px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--sb-shadow-sm);
}

.challenge-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--sb-primary);
    display: block;
    margin-bottom: 8px;
}

.challenge-title {
    font-size: 36px;
    margin-bottom: 6px;
    color: var(--sb-dark);
}

.challenge-subtitle {
    font-family: var(--sb-font-heading);
    font-size: 20px;
    font-style: italic;
    color: var(--sb-primary);
    margin-bottom: 16px;
}

.challenge-description {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

.btn-enter-challenge {
    display: inline-block;
    background-color: var(--sb-primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 13px 30px;
    border-radius: 30px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(179, 57, 81, 0.25);
}

.btn-enter-challenge:hover {
    background-color: var(--sb-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(179, 57, 81, 0.35);
}

.challenge-img-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sb-shadow-md);
}

.challenge-scone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.challenge-tag-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

/* RESPONSIVE BREAKPOINTS */
/* ==========================================================================
   MOBILE DRAWER & ACCORDION NAVIGATION (Sally's Organized Mobile Menu)
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -360px;
    width: 85vw;
    max-width: 350px;
    height: 100%;
    background-color: #ffffff;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transition: left 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    left: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--sb-border);
    background-color: var(--sb-bg-soft);
}

.mobile-drawer-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.mobile-logo-script {
    font-family: var(--sb-font-script);
    font-size: 38px;
    color: var(--sb-primary);
    line-height: 0.9;
}

.mobile-logo-serif {
    font-family: var(--sb-font-heading);
    font-size: 11px;
    letter-spacing: 5px;
    font-weight: 700;
    color: var(--sb-dark);
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--sb-dark);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer-body {
    padding: 20px 22px;
    flex: 1;
    overflow-y: auto;
}

/* Mobile Search */
.mobile-search-wrap {
    margin-bottom: 22px;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--sb-border);
    border-radius: 25px;
    padding: 6px 10px 6px 14px;
    background-color: #fafafa;
}

.mobile-search-form:focus-within {
    border-color: var(--sb-primary);
    background: #ffffff;
}

.mobile-search-input {
    border: none;
    background: transparent;
    font-size: 14px;
    flex: 1;
    outline: none;
    font-family: var(--sb-font-body);
}

.mobile-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sb-primary);
    padding: 4px;
    display: flex;
}

/* Mobile Nav Menu */
.mobile-nav-menu {
    list-style: none;
    margin: 0 0 25px;
    padding: 0;
}

.mobile-nav-menu > li > a {
    display: block;
    padding: 13px 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sb-dark);
    border-bottom: 1px solid var(--sb-border-light);
    transition: color 0.2s;
}

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

.mobile-highlight-link {
    color: var(--sb-primary) !important;
}

/* Mobile Accordion for RECIPES */
.mobile-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 13px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--sb-border-light);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sb-dark);
    cursor: pointer;
    font-family: var(--sb-font-body);
}

.accordion-chevron {
    transition: transform 0.25s ease;
    color: var(--sb-text-muted);
}

.mobile-accordion-toggle.is-active .accordion-chevron {
    transform: rotate(180deg);
    color: var(--sb-primary);
}

.mobile-submenu-collapse {
    display: none;
    padding: 14px 0 10px;
    animation: fadeIn 0.2s ease;
}

.mobile-submenu-collapse.is-open {
    display: block;
}

.mobile-subgroup {
    background: var(--sb-bg-soft);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--sb-border-light);
}

.subgroup-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--sb-primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.mobile-subgroup-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-subgroup-links li a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sb-dark);
    display: block;
    padding: 4px 0;
}

.mobile-subgroup-links li a:hover {
    color: var(--sb-primary);
}

.mobile-all-index-link {
    display: block;
    text-align: center;
    background: var(--sb-primary);
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

/* Mobile Drawer Footer */
.mobile-drawer-footer {
    border-top: 1px solid var(--sb-border-light);
    padding-top: 18px;
}

.mobile-follow-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--sb-text-muted);
    display: block;
    margin-bottom: 10px;
}

.mobile-social-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mob-social-btn {
    border: 1px solid var(--sb-border);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-text);
}

.mob-social-btn:hover {
    border-color: var(--sb-primary);
    color: var(--sb-primary);
}

/* Header Mobile Bar */
.header-mobile-bar {
    display: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile Organization & Desktop Parity)
   ========================================================================== */
@media (max-width: 992px) {
    .sally-icon-navigation {
        display: none !important;
    }

    .sally-brand-logo-img {
        max-height: 36px;
        max-width: 220px;
    }

    .scallop-promo-title {
        font-size: 12px;
    }

    .scallop-pill-btn {
        font-size: 10px;
        padding: 3px 10px;
    }

    .sally-challenge-banner-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .most-popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-featured-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    /* Mobile Header Row */
    .header-mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-bottom: 12px;
    }

    .menu-toggle {
        display: flex;
        padding: 6px;
    }

    .mobile-search-btn {
        background: none;
        border: 1px solid var(--sb-border);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--sb-dark);
        cursor: pointer;
    }

    .sally-brand-center {
        padding: 10px 0 12px;
    }

    .sally-main-logo-svg {
        width: 260px;
        max-width: 80vw;
    }

    .sally-subtagline {
        font-size: 12.5px;
        margin-top: 6px;
    }

    /* Horizontal Category Ribbon on Mobile */
    .category-ribbon {
        padding: 8px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-ribbon::-webkit-scrollbar {
        display: none;
    }

    .cat-ribbon-list {
        justify-content: flex-start;
        padding: 0 15px;
        gap: 10px;
    }

    .cat-pill-item, .cat-ribbon-list li a.all-recipes-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* Hero Section on Mobile */
    .hero-seo-header {
        margin-bottom: 20px;
    }

    .hero-main-h1 {
        font-size: 26px;
        line-height: 1.25;
    }

    .hero-subtext {
        font-size: 14px;
    }

    .featured-main-card {
        border-radius: 8px;
    }

    .featured-main-content {
        padding: 18px 20px;
    }

    .featured-main-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .featured-side-card {
        padding: 10px;
        gap: 12px;
    }

    .side-card-img {
        width: 80px;
        height: 80px;
    }

    .side-card-title {
        font-size: 14px;
    }

    /* Challenge Banner on Mobile */
    .sally-challenge-banner-card {
        padding: 22px 18px;
        gap: 20px;
    }

    .challenge-title {
        font-size: 26px;
    }

    .challenge-subtitle {
        font-size: 17px;
    }

    .challenge-description {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .btn-enter-challenge {
        display: block;
        text-align: center;
        width: 100%;
        padding: 12px 20px;
        font-size: 12.5px;
    }

    /* Most Popular Grid on Mobile */
    .most-popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pop-card-title {
        font-size: 14px;
    }

    /* Latest Feed Grid on Mobile */
    .recipes-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-title {
        font-size: 18px;
    }

    /* Centered Buttons on Mobile */
    .center-btn-wrap {
        margin: 25px 0 15px;
    }

    .sally-center-btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Single Post & Footer on Mobile */
    .recipe-title {
        font-size: 26px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .recipe-jump-buttons {
        flex-direction: column;
    }

    .recipe-card-header {
        flex-direction: column;
        gap: 12px;
    }

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

@media (max-width: 480px) {
    .scallop-book-img {
        display: none;
    }

    .scallop-promo-title {
        font-size: 11px;
    }

    .sally-brand-logo-img {
        max-height: 28px;
        max-width: 165px;
    }

    .sally-circle-action-btn {
        width: 34px;
        height: 34px;
    }

    .most-popular-grid {
        grid-template-columns: 1fr;
    }

    .popular-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
