/* ==========================================================================
   Flavor Journal - Main Stylesheet
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --fj-primary: #2c2c2c;
    --fj-accent: #8B1A4A;
    --fj-yellow: #FFD600;
    --fj-text: #3a3a3a;
    --fj-text-light: #777;
    --fj-bg: #faf9f7;
    --fj-white: #ffffff;
    --fj-border: #e8e5e0;
    --fj-border-light: #f0ede8;
    --fj-footer-bg: #f5f0e8;
    --fj-body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fj-heading-font: 'Playfair Display', Georgia, serif;
    --fj-radius: 8px;
    --fj-radius-lg: 12px;
    --fj-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --fj-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --fj-transition: 0.3s ease;
    --fj-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fj-body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--fj-text);
    background-color: var(--fj-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--fj-primary);
    text-decoration: none;
    transition: color var(--fj-transition);
}

a:hover,
a:focus {
    color: var(--fj-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fj-heading-font);
    color: var(--fj-primary);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

ul, ol {
    padding-left: 1.5rem;
}

/* --- Accessibility --- */
.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;
}

.screen-reader-text:focus {
    background-color: var(--fj-white);
    clip: auto !important;
    clip-path: none;
    color: var(--fj-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 100001;
    padding: 12px 24px;
    background: var(--fj-accent);
    color: var(--fj-white);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--fj-accent);
    outline-offset: 2px;
}

/* --- Container --- */
.container {
    max-width: var(--fj-max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.header-inner.container {
    overflow: visible;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
    background: var(--fj-accent);
    color: var(--fj-white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1001;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-text {
    display: inline-block;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--fj-yellow);
    border-bottom: none;
    z-index: 1000;
    position: relative;
    transition: box-shadow var(--fj-transition);
}

.site-header.sticky-header {
    position: sticky;
    top: 0;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 20px;
}

.header-centered .header-inner {
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 0;
}

/* --- Header Branding (left) --- */
.header-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-branding .custom-logo-link img {
    max-height: 50px;
    width: auto;
}

/* --- Site Branding --- */
.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-family: var(--fj-heading-font);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.site-title-link {
    color: var(--fj-primary);
    text-decoration: none;
}

.site-title-link:hover {
    color: var(--fj-accent);
}

/* --- Navigation (center) --- */
.main-navigation {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fj-text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color var(--fj-transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--fj-accent);
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--fj-yellow);
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 var(--fj-radius) var(--fj-radius);
    padding: 8px 0;
    flex-direction: column;
    gap: 0;
    z-index: 100;
}

@media (min-width: 769px) {
    .main-navigation li:hover > ul {
        display: flex;
    }
}

.main-navigation ul ul a {
    padding: 10px 20px;
    text-transform: none;
    font-size: 0.85rem;
    color: var(--fj-primary);
}

.main-navigation ul ul a:hover {
    background: rgba(0,0,0,0.08);
}

.submenu-toggle {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fj-primary);
    transition: all var(--fj-transition);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Header Right (social icons + search) --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Header Social Icons --- */
.header-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fj-primary);
    color: var(--fj-white);
    transition: all var(--fj-transition);
}

.header-social-icon:hover {
    background: var(--fj-accent);
    color: var(--fj-white);
    transform: translateY(-1px);
}

.header-social-icon svg {
    width: 16px;
    height: 16px;
}

/* --- Header Search Toggle --- */
.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--fj-primary);
    transition: color var(--fj-transition);
}

.header-search-toggle:hover {
    color: var(--fj-accent);
}

.header-search-toggle svg {
    width: 20px;
    height: 20px;
}

/* --- Header Search Dropdown (compact, below search icon) --- */
.header-search-dropdown {
    position: absolute;
    top: 100%;
    right: 20px;
    width: 320px;
    background: #f5f0e8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px;
    display: none;
    z-index: 1001;
}

.header-search-dropdown[aria-hidden="false"],
.header-search-dropdown.active {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-search-inline {
    display: flex;
    flex: 1;
    position: relative;
    width: 100%;
}

.header-search-field {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #333;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 0.9rem;
    font-family: var(--fj-body-font);
    background: var(--fj-white);
    color: var(--fj-text);
    outline: none;
}

.header-search-field:focus {
    border-color: var(--fj-yellow);
}

.header-search-btn {
    flex-shrink: 0;
    width: 44px;
    height: 42px;
    padding: 0;
    background: var(--fj-yellow);
    color: #333;
    border: 2px solid #333;
    border-left: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--fj-transition);
}

.header-search-btn:hover {
    background: #e6c200;
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--fj-text-light);
    padding: 4px 8px;
    line-height: 1;
    transition: color var(--fj-transition);
}

.search-close:hover {
    color: var(--fj-primary);
}

/* --- Header Zigzag Decoration --- */
.header-zigzag {
    position: relative;
    height: 12px;
    background: var(--fj-bg);
    overflow: hidden;
}

.header-zigzag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(135deg, var(--fj-yellow) 33.33%, transparent 33.33%) 0 0,
                linear-gradient(225deg, var(--fj-yellow) 33.33%, transparent 33.33%) 0 0;
    background-size: 12px 12px;
    background-repeat: repeat-x;
}

/* ==========================================================================
   About / Favorites Section (Homepage)
   ========================================================================== */
.about-favorites-section {
    padding: 60px 0;
    background: var(--fj-white);
    overflow: hidden;
}

.about-favorites-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-favorites-grid.about-only {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.about-favorites-grid.favorites-only {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

/* --- About Column (left) --- */
.about-column {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    overflow: hidden;
}

.about-photo {
    overflow: hidden;
    border-radius: var(--fj-radius-lg);
}

.about-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.about-logo {
    margin-bottom: 12px;
}

.about-logo img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
}

.about-heading {
    font-family: var(--fj-heading-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fj-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.about-bio {
    font-size: 0.95rem;
    color: var(--fj-text);
    line-height: 1.7;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.about-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.about-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--fj-primary);
    color: var(--fj-white);
    transition: all var(--fj-transition);
}

.about-social-icon:hover[aria-label="Facebook"] {
    background: #1877F2;
}

.about-social-icon:hover[aria-label="Pinterest"] {
    background: #E60023;
}

.about-social-icon:hover[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.about-social-icon:hover[aria-label="TikTok"] {
    background: #000000;
}

.about-social-icon:hover[aria-label="YouTube"] {
    background: #FF0000;
}

.about-social-icon:hover {
    color: var(--fj-white);
    transform: translateY(-1px);
}

.about-social-icon svg {
    width: 18px;
    height: 18px;
}

.about-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fj-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--fj-transition);
}

.about-link:hover {
    color: var(--fj-primary);
}

/* --- Favorites Column (right) --- */
.favorites-column {
    padding-top: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.favorites-heading {
    font-family: var(--fj-heading-font);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fj-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--fj-accent);
    word-break: break-word;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--fj-border);
    text-decoration: none;
    transition: background var(--fj-transition);
    min-width: 0;
    max-width: 100%;
}

.favorite-item:last-child {
    border-bottom: none;
}

.favorite-item:hover {
    opacity: 0.85;
}

.favorite-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: var(--fj-radius);
    overflow: hidden;
    position: relative;
}

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

.favorite-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--fj-border-light);
}

.favorite-title {
    font-family: var(--fj-heading-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fj-primary);
    line-height: 1.4;
    margin: 0;
    min-width: 0;
    word-break: break-word;
}

.favorite-title a {
    color: inherit;
    text-decoration: none;
}

.favorite-item:hover .favorite-title,
.favorite-item:hover .favorite-title a {
    color: var(--fj-accent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-tagline {
    background-color: #f5f0e8;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-featured {
    min-height: 500px;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    width: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
}

.hero-featured .hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    align-items: flex-end;
    padding-bottom: 60px;
}

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

.hero-site-title {
    font-family: var(--fj-heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--fj-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.hero-tagline[style*="background-image"] .hero-site-title,
.hero-tagline[style*="background-image"] .hero-subtitle {
    color: var(--fj-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-tagline[style*="background-image"] .hero-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--fj-text-light);
    font-weight: 300;
    line-height: 1.6;
}

.hero-featured .hero-content {
    text-align: left;
    max-width: 600px;
    margin: 0;
    color: var(--fj-white);
}

.hero-featured .hero-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-featured .hero-title a {
    color: var(--fj-white);
}

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

.hero-featured .hero-excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-featured .category-badges .category-badge {
    background: var(--fj-accent);
    color: var(--fj-white);
}

.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--fj-accent);
    color: var(--fj-white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--fj-radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--fj-transition);
}

.hero-btn:hover {
    background: var(--fj-primary);
    color: var(--fj-white);
    transform: translateY(-1px);
}

/* ==========================================================================
   Section Blocks
   ========================================================================== */
.section-block {
    padding: 60px 0;
}

.section-title {
    font-family: var(--fj-heading-font);
    font-size: 2rem;
    text-align: left;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--fj-accent);
    margin: 12px 0 0;
    border-radius: 2px;
}

/* --- Featured Categories --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--fj-white);
    border: 1px solid var(--fj-border);
    border-radius: var(--fj-radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: all var(--fj-transition);
    text-decoration: none;
}

.category-card:hover {
    border-color: var(--fj-accent);
    box-shadow: var(--fj-shadow-hover);
    transform: translateY(-2px);
}

.category-card-title {
    font-family: var(--fj-heading-font);
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--fj-primary);
}

.category-card-count {
    font-size: 0.8rem;
    color: var(--fj-text-light);
}

/* ==========================================================================
   Posts Grid / Cards
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--fj-white);
    border-radius: var(--fj-radius-lg);
    overflow: hidden;
    box-shadow: var(--fj-shadow);
    transition: all var(--fj-transition);
}

.card:hover {
    box-shadow: var(--fj-shadow-hover);
    transform: translateY(-3px);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image .post-thumbnail a {
    display: block;
}

.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--fj-transition);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 220px;
    background: var(--fj-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fj-text-light);
}

.placeholder-image svg {
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.card-content {
    padding: 20px;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--fj-border-light);
    color: var(--fj-accent);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    transition: all var(--fj-transition);
}

.category-badge:hover {
    background: var(--fj-accent);
    color: var(--fj-white);
}

.card-title {
    font-family: var(--fj-heading-font);
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.card-title a:hover {
    color: var(--fj-accent);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--fj-text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

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

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

.card-meta-item svg {
    opacity: 0.6;
}

/* --- Load More --- */
.load-more-wrap {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: var(--fj-primary);
    border: 2px solid var(--fj-primary);
    font-family: var(--fj-body-font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--fj-radius);
    transition: all var(--fj-transition);
}

.load-more-btn:hover {
    background: var(--fj-primary);
    color: var(--fj-white);
}

.load-more-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Pagination --- */
.pagination {
    padding: 40px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--fj-border);
    border-radius: var(--fj-radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fj-text);
    transition: all var(--fj-transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--fj-accent);
    color: var(--fj-white);
    border-color: var(--fj-accent);
}

/* ==========================================================================
   Single Post / Recipe
   ========================================================================== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.single-layout .content-area {
    min-width: 0;
}

.full-width-page .single-layout,
.single-layout:only-child {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-header .category-badges {
    margin-bottom: 12px;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--fj-text-light);
}

.entry-meta a {
    color: var(--fj-text-light);
    font-weight: 500;
}

.entry-meta a:hover {
    color: var(--fj-accent);
}

.meta-sep {
    color: var(--fj-border);
}

.entry-featured-image {
    margin-bottom: 30px;
    border-radius: var(--fj-radius-lg);
    overflow: hidden;
    position: relative;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
}

/* --- Entry Content --- */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
}

.entry-content h3 {
    font-size: 1.35rem;
    margin: 1.5rem 0 0.75rem;
}

.entry-content h4 {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.5rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--fj-accent);
    margin: 1.5rem 0;
    padding: 20px 24px;
    background: var(--fj-border-light);
    border-radius: 0 var(--fj-radius) var(--fj-radius) 0;
    font-style: italic;
    font-size: 1.1rem;
}

.entry-content img {
    border-radius: var(--fj-radius);
    margin: 1rem 0;
}

.entry-content pre {
    background: var(--fj-primary);
    color: #e0e0e0;
    padding: 20px;
    border-radius: var(--fj-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.entry-content code {
    background: var(--fj-border-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.entry-content pre code {
    background: transparent;
    padding: 0;
}

.entry-content a {
    color: var(--fj-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--fj-primary);
}

/* --- Entry Footer --- */
.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--fj-border);
    font-size: 0.9rem;
    color: var(--fj-text-light);
}

.entry-footer a {
    color: var(--fj-accent);
}

.cat-links,
.tags-links {
    display: block;
    margin-bottom: 5px;
}

/* ==========================================================================
   Recipe Card Block
   ========================================================================== */
.recipe-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: var(--fj-border-light);
    border-radius: var(--fj-radius-lg);
    margin: 20px 0;
    justify-content: center;
}

.recipe-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.recipe-meta-item svg {
    color: var(--fj-accent);
}

.recipe-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fj-text-light);
    font-weight: 600;
}

.recipe-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fj-primary);
}

.recipe-description {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--fj-text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.recipe-card-block {
    background: var(--fj-white);
    border: 2px solid var(--fj-border);
    border-radius: var(--fj-radius-lg);
    padding: 40px;
    margin: 40px 0;
}

.recipe-card-title {
    font-family: var(--fj-heading-font);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 20px;
}

.recipe-section {
    margin-top: 30px;
}

.recipe-section h3 {
    font-family: var(--fj-heading-font);
    font-size: 1.25rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fj-accent);
    display: inline-block;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--fj-border-light);
}

.ingredient-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ingredient-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--fj-accent);
    cursor: pointer;
}

.ingredient-check input:checked + span {
    text-decoration: line-through;
    color: var(--fj-text-light);
}

.instructions-list {
    padding-left: 1.5rem;
}

.instructions-list li {
    padding: 10px 0 10px 10px;
    border-bottom: 1px solid var(--fj-border-light);
    line-height: 1.6;
}

.instructions-list li::marker {
    font-weight: 700;
    color: var(--fj-accent);
    font-size: 1.1rem;
}

.recipe-notes .notes-content {
    background: #fdf8ec;
    padding: 20px;
    border-radius: var(--fj-radius);
    border-left: 4px solid var(--fj-accent);
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */
.table-of-contents {
    background: var(--fj-border-light);
    border-radius: var(--fj-radius-lg);
    padding: 24px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc-list ol {
    list-style: decimal;
    padding-left: 1.25rem;
}

.toc-list li {
    margin-bottom: 6px;
}

.toc-list a {
    font-size: 0.9rem;
    color: var(--fj-text);
}

.toc-list a:hover {
    color: var(--fj-accent);
}

/* ==========================================================================
   Author Box
   ========================================================================== */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--fj-border-light);
    border-radius: var(--fj-radius-lg);
    margin: 40px 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-name a {
    color: var(--fj-primary);
}

.author-bio {
    font-size: 0.9rem;
    color: var(--fj-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts {
    margin: 50px 0;
}

.related-title {
    font-family: var(--fj-heading-font);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

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

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    align-self: start;
    position: sticky;
    top: 90px;
}

.widget {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--fj-white);
    border-radius: var(--fj-radius-lg);
    border: 1px solid var(--fj-border);
}

.widget-title {
    font-family: var(--fj-heading-font);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fj-accent);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--fj-border-light);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--fj-text);
    font-size: 0.9rem;
}

.widget a:hover {
    color: var(--fj-accent);
}

/* Popular Recipes Widget */
.popular-recipes-list {
    padding: 0;
}

.popular-recipe-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fj-border-light);
}

.popular-recipe-item:last-child {
    border-bottom: none;
}

.popular-recipe-thumb {
    flex-shrink: 0;
}

.popular-recipe-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--fj-radius);
}

.popular-recipe-title {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 3px;
}

.popular-recipe-date {
    font-size: 0.75rem;
    color: var(--fj-text-light);
}

/* Newsletter Widget */
.newsletter-widget {
    text-align: center;
}

.newsletter-widget-title {
    font-family: var(--fj-heading-font);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.newsletter-widget-text {
    font-size: 0.85rem;
    color: var(--fj-text-light);
    margin-bottom: 15px;
}

/* Search Widget */
.widget .search-form {
    display: flex;
}

.widget .search-field {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--fj-border);
    border-right: none;
    border-radius: var(--fj-radius) 0 0 var(--fj-radius);
    font-size: 0.9rem;
    font-family: var(--fj-body-font);
}

.widget .search-submit {
    padding: 10px 16px;
    background: var(--fj-accent);
    color: var(--fj-white);
    border: none;
    border-radius: 0 var(--fj-radius) var(--fj-radius) 0;
    cursor: pointer;
    font-family: var(--fj-body-font);
    font-weight: 600;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
    background: var(--fj-border-light);
}

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

.newsletter-heading {
    font-family: var(--fj-heading-font);
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-text {
    font-size: 1rem;
    color: var(--fj-text-light);
    margin-bottom: 25px;
}

.newsletter-form input[type="email"] {
    padding: 14px 20px;
    border: 1px solid var(--fj-border);
    border-radius: var(--fj-radius);
    font-size: 1rem;
    width: 100%;
    max-width: 350px;
    font-family: var(--fj-body-font);
    margin-bottom: 10px;
}

.newsletter-form button,
.newsletter-form input[type="submit"] {
    padding: 14px 30px;
    background: var(--fj-accent);
    color: var(--fj-white);
    border: none;
    border-radius: var(--fj-radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--fj-body-font);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background var(--fj-transition);
}

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

.newsletter-setup-msg {
    font-size: 0.9rem;
    color: var(--fj-text-light);
    font-style: italic;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--fj-border);
}

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

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--fj-border-light);
}

.comment-list .comment-body {
    display: flex;
    gap: 15px;
}

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

.comment-list .comment-author .fn {
    font-weight: 600;
    font-size: 0.95rem;
}

.comment-list .comment-metadata {
    font-size: 0.8rem;
    color: var(--fj-text-light);
    margin-bottom: 8px;
}

.comment-list .comment-content p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin: 30px 0 15px;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--fj-border);
    border-radius: var(--fj-radius);
    font-size: 0.95rem;
    font-family: var(--fj-body-font);
    margin-bottom: 15px;
    transition: border-color var(--fj-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--fj-accent);
}

.comment-form .form-submit input {
    padding: 12px 30px;
    background: var(--fj-accent);
    color: var(--fj-white);
    border: none;
    border-radius: var(--fj-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--fj-body-font);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background var(--fj-transition);
}

.comment-form .form-submit input:hover {
    background: var(--fj-primary);
}

/* ==========================================================================
   Archive / Search
   ========================================================================== */
.archive-header,
.search-header {
    text-align: center;
    padding: 40px 0;
}

.archive-title,
.search-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.search-title span {
    color: var(--fj-accent);
}

.archive-description {
    font-size: 1rem;
    color: var(--fj-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Category Archive Layout (with sidebar) --- */
.category-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding-top: 20px;
    padding-bottom: 60px;
}

.category-content-area {
    min-width: 0;
    overflow: hidden;
}

.category-archive-header {
    text-align: left;
    padding: 30px 0 20px;
}

.category-archive-header .archive-title {
    font-size: 2.2rem;
    font-family: var(--fj-heading-font);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.category-archive-header .category-description {
    text-align: left;
    max-width: none;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--fj-text);
}

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

.category-post-card {
    list-style: none;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.category-card-image {
    border-radius: var(--fj-radius);
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.category-card-image a {
    display: block;
}

.category-card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.category-post-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-title {
    font-size: 0.85rem;
    font-family: var(--fj-body-font);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-title a {
    color: var(--fj-text);
    text-decoration: none;
}

.category-card-title a:hover {
    color: var(--fj-accent);
}

/* Category Sidebar */
.category-sidebar {
    padding-top: 30px;
}

.sidebar-about-widget {
    text-align: center;
    padding: 0 15px 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--fj-border);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sidebar-about-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.sidebar-about-heading {
    font-family: var(--fj-heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    color: var(--fj-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sidebar-about-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--fj-text-light);
    margin-bottom: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sidebar-about-btn {
    display: inline-block;
    padding: 9px 22px;
    border: 2px solid var(--fj-text);
    color: var(--fj-text);
    font-family: var(--fj-body-font);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all var(--fj-transition);
}

.sidebar-about-btn:hover {
    background: var(--fj-text);
    color: var(--fj-white);
}

.sidebar-widget-heading {
    font-family: var(--fj-heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fj-accent);
    color: var(--fj-text);
}

.sidebar-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sidebar-latest-card {
    text-align: center;
}

.sidebar-latest-item {
    display: block;
    border-radius: var(--fj-radius);
    overflow: visible;
    position: relative;
    border: 1px solid #e8e8e8;
}

.sidebar-latest-item > img {
    border-radius: var(--fj-radius);
}

.sidebar-latest-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-latest-item:hover img {
    transform: scale(1.05);
}

.sidebar-latest-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    background: var(--fj-yellow);
    color: var(--fj-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fj-body-font);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.sidebar-latest-title {
    margin-top: 18px;
    font-family: var(--fj-body-font);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fj-text);
}

.sidebar-latest-title a {
    color: var(--fj-text);
    text-decoration: none;
}

.sidebar-latest-title a:hover {
    color: var(--fj-accent);
}

.sidebar-latest-widget {
    margin-bottom: 30px;
}

.widget_categories,
.widget_archive,
.widget_recent-comments,
.widget_meta,
.wp-block-categories,
.wp-block-archives {
    display: none !important;
}

.no-results,
.search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    margin-bottom: 15px;
}

.no-results p {
    color: var(--fj-text-light);
    margin-bottom: 25px;
}

.no-results .search-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
}

.no-results .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--fj-border);
    border-right: none;
    border-radius: var(--fj-radius) 0 0 var(--fj-radius);
    font-size: 1rem;
    font-family: var(--fj-body-font);
}

.no-results .search-submit {
    padding: 12px 20px;
    background: var(--fj-accent);
    color: var(--fj-white);
    border: none;
    border-radius: 0 var(--fj-radius) var(--fj-radius) 0;
    cursor: pointer;
    font-family: var(--fj-body-font);
    font-weight: 600;
}

/* --- Page Header --- */
.page-header {
    padding: 30px 0;
}

.page-header .page-title {
    font-size: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--fj-footer-bg);
    color: var(--fj-text);
    padding-top: 50px;
    margin-top: 60px;
}

.footer-widgets {
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget-area .widget {
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget-area .widget-title {
    color: var(--fj-white);
    border-bottom-color: var(--fj-accent);
}

.footer-widget-area .widget a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget-area .widget a:hover {
    color: var(--fj-accent);
}

.footer-widget-area .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--fj-border);
    margin-top: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--fj-white);
    transition: all var(--fj-transition);
}

.social-links a:hover {
    background: var(--fj-accent);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-navigation {
    margin-bottom: 15px;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-navigation a:hover {
    color: var(--fj-accent);
}

.site-info {
    font-size: 0.85rem;
    color: var(--fj-text-light);
}

/* --- Footer Columns (Redesigned) --- */
.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--fj-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col-title {
    font-family: var(--fj-heading-font);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: var(--fj-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--fj-accent);
    text-decoration: underline;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--fj-primary);
    color: white;
    transition: all 0.3s;
}

.footer-social a svg {
    width: 14px;
    height: 14px;
}

.footer-social a:hover[aria-label="Facebook"] {
    background: #1877F2;
}

.footer-social a:hover[aria-label="Pinterest"] {
    background: #E60023;
}

.footer-social a:hover[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a:hover[aria-label="TikTok"] {
    background: #000000;
}

.footer-social a:hover[aria-label="YouTube"] {
    background: #FF0000;
}

.footer-social a:hover {
    transform: translateY(-1px);
}

.footer-newsletter-form {
    margin-top: 10px;
}

.footer-newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--fj-border);
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-newsletter-form button,
.footer-subscribe-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--fj-yellow);
    color: var(--fj-primary);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.footer-subscribe-btn:hover {
    background: #e6c200;
}

/* ==========================================================================
   Homepage Search Bar
   ========================================================================== */
.homepage-search {
    width: 100%;
    background: #f5f0e8;
    padding: 20px 0 10px;
    overflow: visible;
}

.homepage-search .container {
    overflow: visible;
}

.homepage-search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.homepage-search-field {
    flex: 1;
    padding: 14px 24px;
    border: 2px solid #333;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    font-family: var(--fj-body-font);
    background: #fff;
    outline: none;
    transition: border-color var(--fj-transition);
    min-width: 0;
}

.homepage-search-field:focus {
    border-color: var(--fj-yellow);
}

.homepage-search-btn {
    flex-shrink: 0;
    width: 54px;
    padding: 0;
    background: var(--fj-yellow);
    color: #333;
    border: 2px solid #333;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--fj-transition);
}

.homepage-search-btn:hover {
    background: #e6c200;
}

.homepage-search-btn svg {
    display: block;
}

/* --- Search Validation & Suggestions --- */
.search-empty-msg {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fj-accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    animation: fadeInMsg 0.3s ease;
}

.search-empty-msg.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.search-field-error {
    box-shadow: 0 0 0 2px var(--fj-accent) !important;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fj-white);
    border: 1px solid var(--fj-border);
    border-radius: 0 0 var(--fj-radius) var(--fj-radius);
    box-shadow: var(--fj-shadow-hover);
    z-index: 200;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--fj-text);
    border-bottom: 1px solid var(--fj-border-light);
    transition: background var(--fj-transition);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: var(--fj-border-light);
}

.suggestion-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.search-no-results {
    padding: 14px 16px;
    text-align: center;
    color: var(--fj-text-light);
    font-size: 0.88rem;
}

/* ==========================================================================
   Browse by Category Circles
   ========================================================================== */
.browse-categories {
    padding: 50px 0;
}

.browse-categories .section-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 900;
}

.category-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--fj-border);
    background: var(--fj-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fj-text);
    transition: all 0.2s;
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--fj-yellow);
    border-color: var(--fj-yellow);
}

.category-carousel-footer .carousel-arrow {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: var(--fj-white);
}

.category-carousel-footer .carousel-arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
}

.categories-circle-grid,
.footer-cat-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    justify-content: center;
}

.categories-circle-grid::-webkit-scrollbar,
.footer-cat-grid::-webkit-scrollbar {
    display: none;
}

.category-circle-item {
    text-align: center;
    text-decoration: none;
    color: var(--fj-text);
    flex: 0 0 auto;
    width: 140px;
}

.category-circle-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 3px solid var(--fj-border);
    transition: width 0.3s, height 0.3s;
}

.category-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle-name {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==========================================================================
   The Latest Section
   ========================================================================== */
.the-latest {
    padding: 40px 0;
}

.the-latest .section-title {
    font-style: italic;
    text-transform: none;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0;
    font-family: var(--fj-heading-font);
}

.the-latest .section-title::after {
    display: none;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border: 1px solid var(--fj-card-border, #e0e0e0);
    border-radius: var(--fj-radius);
    padding: 24px;
}

.latest-card {
    background: none;
}

.latest-card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
}

.latest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.latest-card:hover .latest-card-image img {
    transform: scale(1.03);
}

.latest-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-card-title a {
    color: var(--fj-text);
    text-decoration: none;
}

.latest-card-title a:hover {
    color: var(--fj-accent);
}

/* ==========================================================================
   Featured Spotlight
   ========================================================================== */
.featured-spotlight {
    padding: 40px 0;
}

.spotlight-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.spotlight-image {
    overflow: hidden;
    position: relative;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px;
    background: var(--fj-bg);
}

.spotlight-label {
    font-family: var(--fj-heading-font);
    font-style: italic;
    font-size: 1rem;
    color: var(--fj-text-light);
    margin-bottom: 8px;
}

.spotlight-title {
    font-family: var(--fj-heading-font);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--fj-primary);
}

.spotlight-excerpt {
    font-size: 0.95rem;
    color: var(--fj-text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.spotlight-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--fj-yellow);
    color: var(--fj-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.spotlight-btn:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

/* ==========================================================================
   Category Showcase
   ========================================================================== */
.category-showcase {
    padding: 30px 0;
}

.category-showcase .section-title {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.03em;
    font-size: 1.6rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border: 1px solid var(--fj-card-border, #e0e0e0);
    border-radius: var(--fj-radius);
    padding: 24px;
}

.showcase-card {
    background: none;
}

.showcase-card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
}

.showcase-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.showcase-card:hover .showcase-card-image img {
    transform: scale(1.03);
}

.pinterest-pin-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 44px;
    height: 44px;
    background: #E60023;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 5;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.showcase-card-image:hover .pinterest-pin-link,
.latest-card-image:hover .pinterest-pin-link,
.card-image:hover .pinterest-pin-link,
.category-card-image:hover .pinterest-pin-link,
.top-10-item-image:hover .pinterest-pin-link,
.entry-featured-image:hover .pinterest-pin-link,
.spotlight-image:hover .pinterest-pin-link,
.favorite-thumb:hover .pinterest-pin-link {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pinterest-pin-link:hover {
    background: #ad081b;
    transform: translate(-50%, -50%) scale(1.1);
}

.showcase-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-card-title a {
    color: var(--fj-text);
    text-decoration: none;
}

.showcase-card-title a:hover {
    color: var(--fj-accent);
}

.showcase-see-more {
    text-align: right;
    margin-top: 16px;
}

.showcase-see-more a {
    color: var(--fj-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* ==========================================================================
   Trending Now
   ========================================================================== */
.trending-now {
    padding: 30px 0;
}

.trending-now .section-title {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.03em;
    font-size: 1.6rem;
}

.trending-now .showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border: 1px solid var(--fj-card-border, #e0e0e0);
    border-radius: var(--fj-radius);
    padding: 24px;
}

/* ==========================================================================
   Top 10 Recipes
   ========================================================================== */
.top-10-section {
    padding: 40px 0;
}

.top-10-inner {
    border: 2px solid var(--fj-border);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.top-10-section .section-title {
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 30px;
}

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

.top-10-item {
    text-align: center;
    position: relative;
}

.top-10-item-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 8px;
    position: relative;
}

.top-10-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-10-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--fj-yellow);
    color: var(--fj-primary);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50%;
    position: absolute;
    right: 8px;
    bottom: 8px;
}

.top-10-item-title {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-10-item-title a {
    color: var(--fj-text);
    text-decoration: none;
}

/* ==========================================================================
   Footer Categories Bar
   ========================================================================== */
.footer-categories-bar {
    background: var(--fj-accent);
    color: var(--fj-white);
    padding: 50px 0;
}

.footer-cat-item {
    text-align: center;
    text-decoration: none;
    flex: 0 0 auto;
    width: 140px;
}

.footer-cat-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    transition: width 0.3s, height 0.3s;
}

.footer-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-cat-name {
    color: var(--fj-white);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top-section {
    text-align: center;
    padding: 30px 0;
}

.back-to-top-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--fj-yellow);
    background: transparent;
    color: var(--fj-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.back-to-top-btn:hover {
    background: var(--fj-yellow);
}

/* ==========================================================================
   Gutenberg Block Alignment
   ========================================================================== */
.alignwide {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image figcaption {
    font-size: 0.85rem;
    color: var(--fj-text-light);
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .single-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

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

    .about-column {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }

    .about-favorites-grid {
        gap: 40px;
    }

    .latest-grid,
    .showcase-grid,
    .trending-now .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Tablet / Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .announcement-bar {
        font-size: 0.75rem;
        padding: 7px 0;
        letter-spacing: 0.01em;
    }

    .header-centered .header-inner,
    .header-left .header-inner,
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 0;
        padding-bottom: 0;
        min-height: 56px;
        gap: 10px;
        position: relative;
    }

    .header-branding {
        flex: 0 0 auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: 50%;
        text-align: center;
        pointer-events: auto;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .header-branding .custom-logo-link img {
        max-height: 38px;
    }

    .header-social {
        display: none;
    }

    .header-right {
        gap: 4px;
        order: 3;
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
        padding: 10px;
        gap: 5px;
        order: -1;
    }

    .hamburger-line {
        width: 22px;
        height: 2px;
    }

    .header-inner.container {
        overflow: visible;
    }

    .main-navigation {
        position: static;
        flex: 0 0 auto;
        order: 1;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--fj-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--fj-border);
        flex-direction: column;
        min-width: 0;
        padding: 8px 0;
        gap: 0;
        z-index: 1000;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--fj-border-light);
    }

    .main-navigation li:last-child > a {
        border-bottom: none;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        padding-left: 0;
        border-top: none;
        display: none !important;
        background: #f5f0e8;
        flex-direction: column;
    }

    .main-navigation ul ul.open {
        display: flex !important;
    }

    .main-navigation ul ul a {
        padding: 10px 20px 10px 36px;
        font-size: 0.85rem;
    }

    .main-navigation .menu-item-has-children {
        position: relative;
    }

    .main-navigation .menu-item-has-children > a {
        padding-right: 50px;
    }

    .submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        border-left: 1px solid var(--fj-border-light);
        cursor: pointer;
        color: var(--fj-primary);
        transition: transform 0.2s;
    }

    .submenu-toggle[aria-expanded="true"] {
        transform: rotate(180deg);
    }

    .site-header {
        position: relative;
    }

    .header-search-dropdown {
        right: 0;
        left: 0;
        width: auto;
        margin: 0 10px;
        border-radius: 6px;
    }

    .header-search-toggle {
        padding: 10px;
    }

    .header-search-toggle svg {
        width: 20px;
        height: 20px;
    }

    .header-search-form .container {
        padding: 0 15px;
    }

    .header-search-form .search-field {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .header-search-form .search-submit {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .header-search-form .search-close {
        padding: 4px 6px;
        font-size: 1.3rem;
    }

    .about-favorites-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-favorites-section {
        padding: 30px 0;
    }

    .about-column {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        justify-items: center;
        max-width: 100%;
    }

    .about-photo {
        max-width: 180px;
        margin: 0 auto;
    }

    .about-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .about-heading {
        font-size: 1.2rem;
    }

    .about-name {
        font-size: 1rem;
    }

    .about-bio {
        font-size: 0.82rem;
        line-height: 1.6;
        padding: 0 5px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .about-social {
        justify-content: center;
    }

    .about-link {
        text-align: center;
        font-size: 0.85rem;
    }

    .favorites-column {
        max-width: 100%;
        overflow: hidden;
    }

    .favorite-item {
        max-width: 100%;
    }

    .favorite-title {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .favorites-heading {
        font-size: 1.15rem;
        text-align: center;
    }

    .favorites-list {
        max-width: 400px;
        margin: 0 auto;
    }

    .favorite-thumb {
        width: 80px;
        height: 65px;
    }

    .hero-site-title {
        font-size: 2.25rem;
    }

    .hero-tagline {
        min-height: 280px;
    }

    .hero-featured,
    .hero-bg {
        min-height: 320px;
    }

    .hero-featured .hero-title {
        font-size: 1.6rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-content-area {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

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

    .category-post-card {
        min-width: 0;
        max-width: 100%;
    }

    .category-card-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .category-card-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .category-archive-header .archive-title {
        font-size: 1.6rem;
    }

    .sidebar-about-widget {
        padding: 0 10px 25px;
    }

    .sidebar-about-photo {
        width: 120px;
        height: 120px;
    }

    .sidebar-about-heading {
        font-size: 1rem;
    }

    .sidebar-about-bio {
        font-size: 0.8rem;
    }

    .sidebar-about-btn {
        font-size: 0.75rem;
        padding: 8px 18px;
    }

    .category-sidebar {
        max-width: 100%;
        overflow: hidden;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-block {
        padding: 36px 0;
    }

    .about-favorites-section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .entry-title {
        font-size: 1.6rem;
    }

    .recipe-card-block {
        padding: 20px;
    }

    .recipe-meta-strip {
        gap: 10px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-section {
        padding: 36px 0;
    }

    .newsletter-inner {
        padding: 30px 20px;
    }

    .alignwide {
        margin-left: -15px;
        margin-right: -15px;
        max-width: calc(100% + 30px);
    }

    .latest-grid,
    .showcase-grid,
    .trending-now .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-10-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-circle-grid,
    .footer-cat-grid {
        gap: 16px;
        justify-content: center;
    }

    .category-circle-item,
    .footer-cat-item {
        width: 110px;
        flex: 0 0 auto;
    }

    .category-circle-img,
    .footer-cat-img {
        width: 90px;
        height: 90px;
        margin: 0 auto 8px;
    }

    .category-circle-name,
    .footer-cat-name {
        font-size: 0.75rem;
    }

    .spotlight-inner {
        grid-template-columns: 1fr;
    }

    .spotlight-content {
        padding: 30px 20px;
    }

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

    .top-10-inner {
        padding: 20px;
    }

    .homepage-search-field {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .homepage-search-btn {
        width: 44px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .pinterest-pin-link {
        width: 36px;
        height: 36px;
    }

    .pinterest-pin-link svg {
        width: 15px;
        height: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .header-inner {
        min-height: 52px;
        gap: 6px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .header-branding .custom-logo-link img {
        max-height: 32px;
    }

    .hamburger-line {
        width: 20px;
    }

    .menu-toggle {
        padding: 8px;
    }

    .header-search-toggle {
        padding: 8px;
    }

    .header-search-toggle svg {
        width: 18px;
        height: 18px;
    }

    .announcement-bar {
        font-size: 0.7rem;
        padding: 6px 0;
    }

    .hero-site-title {
        font-size: 1.6rem;
    }

    .hero-tagline {
        min-height: 240px;
    }

    .hero-featured,
    .hero-bg {
        min-height: 260px;
    }

    .hero-featured .hero-title {
        font-size: 1.3rem;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-card {
        padding: 18px 12px;
    }

    .recipe-meta-strip {
        flex-direction: column;
        align-items: center;
    }

    .about-photo {
        max-width: 160px;
    }

    .about-heading {
        font-size: 1.15rem;
    }

    .about-bio {
        font-size: 0.8rem;
    }

    .favorite-thumb {
        width: 65px;
        height: 50px;
    }

    .favorite-title {
        font-size: 0.88rem;
    }

    .about-social-icon {
        width: 32px;
        height: 32px;
    }

    .about-social-icon svg {
        width: 14px;
        height: 14px;
    }

    .section-block {
        padding: 28px 0;
    }

    .about-favorites-section {
        padding: 28px 0;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .entry-title {
        font-size: 1.4rem;
    }

    .post-card-body {
        padding: 14px;
    }

    .recipe-card-block {
        padding: 16px;
    }

    .newsletter-inner {
        padding: 24px 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .latest-grid,
    .showcase-grid,
    .trending-now .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .categories-circle-grid,
    .footer-cat-grid {
        gap: 12px;
        justify-content: center;
    }

    .category-circle-item,
    .footer-cat-item {
        width: 80px;
        flex: 0 0 auto;
    }

    .category-circle-img,
    .footer-cat-img {
        width: 65px;
        height: 65px;
        margin: 0 auto 6px;
    }

    .category-circle-name,
    .footer-cat-name {
        font-size: 0.65rem;
    }

    .spotlight-content {
        padding: 24px 16px;
    }

    .spotlight-title {
        font-size: 1.5rem;
    }

    .top-10-inner {
        padding: 16px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .comments-area,
    .related-posts,
    .menu-toggle,
    .pagination,
    .load-more-wrap,
    .newsletter-section,
    .announcement-bar,
    .header-zigzag,
    .homepage-search,
    .footer-categories-bar,
    .back-to-top-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .recipe-card-block {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}
