/*
Theme Name: Flavor Blog
Theme URI: https://siteplotmedia.com/themes/flavor-blog
Author: Siteplot Media
Author URI: https://siteplotmedia.com
Description: Modern blog and magazine theme with customizable hero, featured posts, author bio, and newsletter signup. Fully customizable colors, images, and content sections with show/hide toggles. Perfect for bloggers, news sites, and content publishers.
Version: 4.0.5
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: flavor-blog
Tags: blog, two-columns, custom-colors, custom-logo, custom-menu, featured-images, block-patterns
*/



:root {
    --fb-primary: #7c3aed;
    --fb-primary-dark: #6d28d9;
    --fb-secondary: #ec4899;
    --fb-dark: #111827;
    --fb-gray-100: #f3f4f6;
    --fb-gray-200: #e5e7eb;
    --fb-gray-500: #6b7280;
    --fb-gray-600: #4b5563;
    --fb-gray-700: #374151;
    --fb-white: #ffffff;
    --fb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fb-font-serif: 'Georgia', serif;
    --fb-radius: 0.5rem;
    --fb-radius-lg: 1rem;
    --fb-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --fb-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--fb-font); font-size: 16px; line-height: 1.7; color: var(--fb-dark); background: var(--fb-white); }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }
a { color: var(--fb-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fb-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.fb-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.fb-section { padding: 4rem 0; }
.fb-bg-light { background: var(--fb-gray-100); }

/* Header */
.fb-header { background: var(--fb-white); border-bottom: 1px solid var(--fb-gray-200); position: sticky; top: 0; z-index: 1000; }
.fb-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.fb-logo { display: flex; align-items: center; flex-shrink: 0; }
.fb-logo a { display: inline-flex; align-items: center; }
.fb-logo img, .fb-logo .custom-logo { max-height: 100px; width: auto !important; height: auto !important; object-fit: contain !important; }
.fb-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--fb-dark); }

/* Navigation with Dropdown Support */
.fb-nav { display: flex; align-items: center; }
.fb-menu { display: flex; align-items: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.fb-menu li { position: relative; }
.fb-menu > li > a { display: block; padding: 0.75rem 1rem; color: var(--fb-gray-700); font-weight: 500; text-decoration: none; transition: color 0.2s; }
.fb-menu > li > a:hover, .fb-menu > li.current-menu-item > a { color: var(--fb-primary); }

/* Dropdown Arrow */
.fb-menu li.menu-item-has-children > a::after { content: '▾'; margin-left: 0.35rem; font-size: 0.75em; opacity: 0.7; }

/* Dropdown Menu */
.fb-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--fb-white); border-radius: var(--fb-radius); box-shadow: 0 10px 40px rgba(0,0,0,0.12); list-style: none; margin: 0; padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s ease; z-index: 100; }
.fb-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fb-menu .sub-menu li { position: relative; }
.fb-menu .sub-menu a { display: block; padding: 0.6rem 1.25rem; color: var(--fb-gray-700); font-size: 0.95rem; text-decoration: none; transition: all 0.15s; }
.fb-menu .sub-menu a:hover { background: var(--fb-gray-100); color: var(--fb-primary); padding-left: 1.5rem; }

/* Nested Dropdown (3rd level) */
.fb-menu .sub-menu .sub-menu { top: 0; left: 100%; margin-left: 0; }
.fb-menu .sub-menu li.menu-item-has-children > a::after { content: '▸'; position: absolute; right: 1rem; }

.fb-search-btn { background: none; border: none; font-size: 1.25rem; cursor: pointer; padding: 0.5rem; }
.fb-mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Mobile Navigation */
@media (max-width: 768px) {
    .fb-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--fb-white); border-bottom: 1px solid var(--fb-gray-200); z-index: 999; }
    .fb-nav.active { display: block; }
    .fb-menu { flex-direction: column; gap: 0; }
    .fb-menu > li > a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--fb-gray-100); }
    .fb-menu li.menu-item-has-children > a::after { float: right; }
    .fb-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: var(--fb-gray-50); display: none; }
    .fb-menu li.menu-item-has-children.active > .sub-menu { display: block; }
    .fb-menu .sub-menu a { padding-left: 2.5rem; }
    .fb-menu .sub-menu .sub-menu { margin-left: 0; }
    .fb-menu .sub-menu .sub-menu a { padding-left: 3.5rem; }
    .fb-mobile-toggle { display: block; }
}

/* Hero / Featured Post */
.fb-hero { background: linear-gradient(135deg, var(--fb-primary) 0%, var(--fb-secondary) 100%); color: var(--fb-white); padding: 4rem 0; }
.fb-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; }
.fb-hero-content h1 { font-size: 2.75rem; margin-bottom: 1rem; }
.fb-hero-content p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 1.5rem; }
.fb-hero-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; opacity: 0.8; }
.fb-hero-image img { border-radius: var(--fb-radius-lg); box-shadow: var(--fb-shadow-lg); }
.fb-btn { display: inline-flex; padding: 0.75rem 1.5rem; border-radius: var(--fb-radius); font-weight: 600; text-decoration: none; }
.fb-btn-white { background: var(--fb-white); color: var(--fb-primary); }
.fb-btn-white:hover { background: var(--fb-gray-100); color: var(--fb-primary); }
.fb-btn-primary { background: var(--fb-primary); color: var(--fb-white); }
.fb-btn-primary:hover { background: var(--fb-primary-dark); color: var(--fb-white); }
@media (max-width: 768px) {
    .fb-hero-grid { grid-template-columns: 1fr; }
    .fb-hero-content h1 { font-size: 2rem; }
}

/* Categories Bar */
.fb-categories { background: var(--fb-white); border-bottom: 1px solid var(--fb-gray-200); padding: 1rem 0; }
.fb-categories-list { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.fb-category-tag { background: var(--fb-gray-100); color: var(--fb-gray-700); padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; }
.fb-category-tag:hover { background: var(--fb-primary); color: var(--fb-white); }

/* Posts Grid */
.fb-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.fb-section-header h2 { margin: 0; }
.fb-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.fb-post-card { background: var(--fb-white); border-radius: var(--fb-radius-lg); overflow: hidden; box-shadow: var(--fb-shadow); transition: transform 0.2s, box-shadow 0.2s; }
.fb-post-card:hover { transform: translateY(-4px); box-shadow: var(--fb-shadow-lg); }
.fb-post-image { aspect-ratio: 16/9; overflow: hidden; }
.fb-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.fb-post-card:hover .fb-post-image img { transform: scale(1.05); }
.fb-post-content { padding: 1.5rem; }
.fb-post-category { display: inline-block; background: var(--fb-primary); color: var(--fb-white); font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 1rem; margin-bottom: 0.75rem; text-transform: uppercase; font-weight: 600; }
.fb-post-title { margin-bottom: 0.5rem; font-size: 1.25rem; }
.fb-post-title a { color: var(--fb-dark); }
.fb-post-title a:hover { color: var(--fb-primary); }
.fb-post-excerpt { color: var(--fb-gray-600); font-size: 0.9375rem; margin-bottom: 1rem; }
.fb-post-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--fb-gray-500); }
.fb-post-author { display: flex; align-items: center; gap: 0.5rem; }
.fb-post-author img { width: 28px; height: 28px; border-radius: 50%; }
@media (max-width: 768px) { .fb-posts-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .fb-posts-grid { grid-template-columns: repeat(2, 1fr); } }

/* About Author */
.fb-author-box { display: flex; gap: 2rem; align-items: center; background: var(--fb-white); border-radius: var(--fb-radius-lg); padding: 2.5rem; box-shadow: var(--fb-shadow); }
.fb-author-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fb-author-content h3 { margin-bottom: 0.5rem; }
.fb-author-content p { color: var(--fb-gray-600); margin-bottom: 1rem; }
.fb-author-social { display: flex; gap: 0.75rem; }
.fb-author-social a { width: 36px; height: 36px; background: var(--fb-gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--fb-gray-600); }
.fb-author-social a:hover { background: var(--fb-primary); color: var(--fb-white); }
@media (max-width: 768px) { .fb-author-box { flex-direction: column; text-align: center; } .fb-author-social { justify-content: center; } }

/* Newsletter */
.fb-newsletter { background: linear-gradient(135deg, var(--fb-dark) 0%, var(--fb-gray-700) 100%); color: var(--fb-white); padding: 4rem 0; }
.fb-newsletter-content { text-align: center; max-width: 500px; margin: 0 auto; }
.fb-newsletter p { opacity: 0.8; margin-bottom: 1.5rem; }
.fb-newsletter-form { display: flex; gap: 0.5rem; }
.fb-newsletter-input { flex: 1; padding: 0.875rem 1rem; border: none; border-radius: var(--fb-radius); font-size: 1rem; }
.fb-newsletter-btn { background: var(--fb-primary); color: var(--fb-white); padding: 0.875rem 1.5rem; border: none; border-radius: var(--fb-radius); font-weight: 600; cursor: pointer; }
.fb-newsletter-btn:hover { background: var(--fb-primary-dark); }
@media (max-width: 480px) { .fb-newsletter-form { flex-direction: column; } }

/* Footer */
.fb-footer { background: var(--fb-dark); color: var(--fb-gray-200); padding: 4rem 0 0; }
.fb-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.fb-footer-brand p { margin-top: 1rem; }
.fb-footer h4 { color: var(--fb-white); margin-bottom: 1.5rem; }
.fb-footer ul li { margin-bottom: 0.75rem; }
.fb-footer ul a { color: var(--fb-gray-200); }
.fb-footer ul a:hover { color: var(--fb-white); }
.fb-footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.fb-footer-social a { width: 40px; height: 40px; background: var(--fb-gray-700); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--fb-gray-200); }
.fb-footer-social a:hover { background: var(--fb-primary); color: var(--fb-white); }
.fb-footer-bottom { border-top: 1px solid var(--fb-gray-700); padding: 1.5rem 0; margin-top: 3rem; text-align: center; }
.fb-footer-bottom p { margin: 0; }
@media (max-width: 768px) { .fb-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fb-footer-grid { grid-template-columns: 1fr; } }

/* Single Post */
/* Single Post */
.fb-single-header { background: var(--fb-gray-100); padding: 3rem 0; text-align: center; }
.fb-single-header h1 { max-width: 900px; margin: 0 auto 1rem; font-size: 2.5rem; }
.fb-single-meta { display: flex; justify-content: center; gap: 2rem; color: var(--fb-gray-500); }
.fb-single-main { padding: 3rem 0; }
.fb-single-layout { display: block; }
.fb-single-layout.fb-has-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; }
.fb-single-content { max-width: 900px; margin: 0 auto; min-width: 0; }
.fb-has-sidebar .fb-single-content { max-width: none; }
.fb-featured-image { margin-bottom: 2rem; }
.fb-featured-image img { width: 100%; height: auto; border-radius: var(--fb-radius-lg); }
.fb-entry-content { 
    font-family: var(--fb-font-serif); 
    font-size: 1.125rem; 
    line-height: 1.8; 
    color: var(--fb-dark); 
    overflow-wrap: break-word; 
    word-wrap: break-word; 
    word-break: break-word; 
    hyphens: auto; 
    min-width: 0; 
}
.fb-entry-content p { margin-bottom: 1.5rem; }
.fb-entry-content h2 { font-family: var(--fb-font); font-size: 1.75rem; margin: 2.5rem 0 1rem; color: var(--fb-dark); }
.fb-entry-content h3 { font-family: var(--fb-font); font-size: 1.375rem; margin: 2rem 0 0.75rem; color: var(--fb-dark); }
.fb-entry-content ul, .fb-entry-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.fb-entry-content li { margin-bottom: 0.5rem; }
.fb-entry-content a { color: var(--fb-primary); text-decoration: underline; word-break: break-all; }
.fb-entry-content a:hover { color: var(--fb-primary-dark); }
.fb-entry-content blockquote { border-left: 4px solid var(--fb-primary); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--fb-gray-600); }
.fb-entry-content img { max-width: 100%; height: auto; border-radius: var(--fb-radius); margin: 1.5rem 0; }
.fb-entry-content pre, .fb-entry-content code { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; overflow-x: auto; }
.fb-entry-content table { width: 100%; table-layout: fixed; word-wrap: break-word; }
.fb-sidebar { background: var(--fb-gray-100); padding: 1.5rem; border-radius: var(--fb-radius-lg); position: sticky; top: 6rem; align-self: start; min-width: 0; overflow-wrap: break-word; }
.fb-widget { margin-bottom: 1.5rem; }
.fb-widget:last-child { margin-bottom: 0; }
.fb-widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--fb-dark); border-bottom: 2px solid var(--fb-primary); padding-bottom: 0.5rem; }
.fb-widget ul { list-style: none; margin: 0; padding: 0; }
.fb-widget ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--fb-gray-200); }
.fb-widget ul li:last-child { border-bottom: none; }
.fb-widget ul li a { color: var(--fb-gray-700); text-decoration: none; }
.fb-widget ul li a:hover { color: var(--fb-primary); }
.fb-widget input[type="search"] { width: 100%; padding: 0.75rem; border: 1px solid var(--fb-gray-200); border-radius: var(--fb-radius); }
.fb-related-section { background: var(--fb-gray-100); padding: 4rem 0; margin-top: 3rem; }
@media (max-width: 968px) { .fb-single-layout.fb-has-sidebar { grid-template-columns: 1fr; } .fb-sidebar { margin-top: 2rem; } }
@media (max-width: 768px) { .fb-single-header h1 { font-size: 1.75rem; } .fb-entry-content { font-size: 1rem; } }

/* Breadcrumbs */
.fb-breadcrumbs { background: var(--fb-gray-100); padding: 1rem 0; border-bottom: 1px solid var(--fb-gray-200); }
.fb-breadcrumbs .fb-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.fb-breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.fb-breadcrumb-item { color: var(--fb-gray-600); }
.fb-breadcrumb-item a { color: var(--fb-primary); text-decoration: none; }
.fb-breadcrumb-item a:hover { text-decoration: underline; }
.fb-breadcrumb-sep { color: var(--fb-gray-400); margin: 0 0.5rem; }
.fb-breadcrumb-current { color: var(--fb-gray-500); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Author Box */
.fb-author-box { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 3rem; padding: 2rem; background: var(--fb-gray-100); border-radius: var(--fb-radius-lg); }
.fb-author-avatar-wrap { flex-shrink: 0; }
.fb-author-avatar-wrap img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.fb-author-info { flex: 1; }
.fb-author-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fb-gray-500); margin-bottom: 0.25rem; }
.fb-author-name { font-size: 1.25rem; margin: 0 0 0.5rem; }
.fb-author-name a { color: var(--fb-dark); text-decoration: none; }
.fb-author-name a:hover { color: var(--fb-primary); }
.fb-author-bio { margin: 0; color: var(--fb-gray-600); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 600px) { 
    .fb-author-box { flex-direction: column; text-align: center; align-items: center; } 
    .fb-breadcrumb-current { max-width: 150px; }
}

/* Meta styles */
.fb-meta-date, .fb-meta-author, .fb-meta-reading { display: inline-flex; align-items: center; }
.fb-meta-author a { color: var(--fb-gray-600); text-decoration: none; margin-left: 0.25em; }
.fb-meta-author a:hover { color: var(--fb-primary); text-decoration: underline; }

/* Page Template */
.fb-page-main {
    background: var(--fb-white);
    padding: 3rem 0;
}

.fb-page-content { 
    max-width: 800px; 
    margin: 0 auto; 
    color: var(--fb-dark);
}

.fb-page-content .fb-entry-content {
    font-family: var(--fb-font);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--fb-dark);
}

.fb-page-content .fb-entry-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--fb-dark);
}

.fb-page-content .fb-entry-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--fb-dark);
}

.fb-page-content .fb-entry-content p {
    margin-bottom: 1.25rem;
    color: var(--fb-dark);
}

.fb-page-content .fb-entry-content ul,
.fb-page-content .fb-entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--fb-dark);
}

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

.fb-page-content .fb-entry-content a {
    color: var(--fb-primary);
}

.fb-404 { text-align: center; padding: 6rem 0; }
.fb-404 h1 { font-size: 6rem; color: var(--fb-gray-200); margin-bottom: 0; }

/* Social Sharing */
.fb-social-share { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--fb-gray-200); }
.fb-share-label { display: block; font-weight: 600; margin-bottom: 1rem; color: var(--fb-gray-700); }
.fb-share-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.fb-share-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--fb-white); border: none; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.fb-share-btn:hover { transform: scale(1.1); opacity: 0.9; }
.fb-share-facebook { background: #1877f2; }
.fb-share-twitter { background: #000; }
.fb-share-linkedin { background: #0a66c2; }
.fb-share-pinterest { background: #e60023; }
.fb-share-copy { background: var(--fb-gray-600); font-size: 12px; }

/* Related Posts */
.fb-related-posts { padding: 4rem 0; }
.fb-related-title { text-align: center; margin-bottom: 2rem; font-size: 1.75rem; }
.fb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.fb-related-card { background: var(--fb-white); border-radius: var(--fb-radius-lg); overflow: hidden; box-shadow: var(--fb-shadow); transition: transform 0.3s, box-shadow 0.3s; }
.fb-related-card:hover { transform: translateY(-4px); box-shadow: var(--fb-shadow-lg); }
.fb-related-image { aspect-ratio: 16/10; overflow: hidden; }
.fb-related-image img { width: 100%; height: 100%; object-fit: cover; }
.fb-related-content { padding: 1.25rem; }
.fb-related-content h4 { margin: 0.5rem 0; font-size: 1.1rem; line-height: 1.4; }
.fb-related-content h4 a { color: var(--fb-dark); }
.fb-related-content h4 a:hover { color: var(--fb-primary); }
.fb-related-date { font-size: 0.85rem; color: var(--fb-gray-500); }
@media (max-width: 768px) { .fb-related-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .fb-related-grid { grid-template-columns: repeat(2, 1fr); } }


/* ========== DROPDOWN MENU STYLES ========== */
.fb-nav { position: relative; }
.fb-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0; }
.fb-menu li { position: relative; list-style: none; }
.fb-menu > li > a { 
    display: block; 
    padding: 0.75rem 1rem; 
    color: inherit; 
    font-weight: 500; 
    text-decoration: none; 
    transition: color 0.2s;
    white-space: nowrap;
}
.fb-menu > li > a:hover { opacity: 0.7; }
.fb-menu li.menu-item-has-children > a::after { 
    content: ' ▾'; 
    font-size: 0.7em; 
    opacity: 0.6; 
    margin-left: 0.25rem;
}
.fb-menu .sub-menu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    min-width: 220px; 
    background: #ffffff; 
    border-radius: 8px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); 
    list-style: none; 
    margin: 0; 
    padding: 0.5rem 0; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: all 0.25s ease; 
    z-index: 9999;
}
.fb-menu li:hover > .sub-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}
.fb-menu .sub-menu li { width: 100%; }
.fb-menu .sub-menu a { 
    display: block; 
    padding: 0.65rem 1.25rem; 
    color: #374151 !important; 
    font-size: 0.925rem; 
    font-weight: 400; 
    text-decoration: none; 
    transition: all 0.15s;
    white-space: nowrap;
}
.fb-menu .sub-menu a:hover { 
    background: #f3f4f6; 
    color: #2563eb !important; 
    padding-left: 1.5rem; 
}
.fb-menu .sub-menu .sub-menu { 
    top: 0; 
    left: 100%; 
    margin-left: 0;
}
.fb-menu .sub-menu li.menu-item-has-children > a::after { 
    content: ' ▸'; 
    position: absolute; 
    right: 1rem; 
}
@media (max-width: 768px) {
    .fb-nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: #ffffff; 
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 9998;
    }
    .fb-nav.active { display: block; }
    .fb-menu { flex-direction: column; width: 100%; }
    .fb-menu > li { width: 100%; border-bottom: 1px solid #e5e7eb; }
    .fb-menu > li > a { padding: 1rem 1.5rem; }
    .fb-menu li.menu-item-has-children > a::after { float: right; }
    .fb-menu .sub-menu { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        box-shadow: none; 
        border-radius: 0; 
        background: #f9fafb; 
        display: none;
        padding: 0;
    }
    .fb-menu li.menu-item-has-children.active > .sub-menu { display: block; }
    .fb-menu .sub-menu a { padding: 0.85rem 1.25rem 0.85rem 2.5rem; }
    .fb-menu .sub-menu .sub-menu a { padding-left: 3.5rem; }
    .fb-mobile-toggle { display: block; }
}
@media (min-width: 769px) {
    .fb-mobile-toggle { display: none; }
}
/* ========== END DROPDOWN STYLES ========== */

/* ==========================================================================
   HERO PLACEHOLDER
   ========================================================================== */

.fb-hero-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fb-gray-100) 0%, var(--fb-gray-200) 100%);
    border-radius: var(--fb-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    min-height: 250px;
}

.fb-hero-placeholder span {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.fb-hero-placeholder p {
    color: var(--fb-gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

/* ==========================================================================
   ARCHIVE PAGES (Category, Author, Tag, Search)
   ========================================================================== */

.fb-archive-header {
    background: linear-gradient(135deg, var(--fb-primary) 0%, var(--fb-primary-dark) 100%);
    color: var(--fb-white);
    padding: 4rem 0;
    text-align: center;
}

.fb-archive-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--fb-white);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.fb-author-archive-avatar {
    margin: 1.5rem 0;
}

.fb-author-archive-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.fb-archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--fb-white);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fb-archive-description {
    max-width: 600px;
    margin: 0 auto 1rem;
    opacity: 0.9;
    font-size: 1.0625rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fb-archive-count {
    font-size: 0.9375rem;
    opacity: 0.7;
}

.fb-archive-main {
    padding: 4rem 0;
    background: var(--fb-gray-100);
    min-height: 50vh;
}

/* Posts Grid */
.fb-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.fb-post-card {
    background: var(--fb-white);
    border-radius: var(--fb-radius-lg);
    overflow: hidden;
    box-shadow: var(--fb-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fb-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fb-shadow-lg);
}

.fb-post-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--fb-gray-100);
}

.fb-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.fb-post-image.fb-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.fb-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fb-post-category {
    display: inline-block;
    background: var(--fb-gray-100);
    color: var(--fb-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    align-self: flex-start;
    text-decoration: none;
}

.fb-post-category:hover {
    background: var(--fb-primary);
    color: var(--fb-white);
}

.fb-post-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fb-post-title a {
    color: var(--fb-dark);
    text-decoration: none;
}

.fb-post-title a:hover {
    color: var(--fb-primary);
}

.fb-post-excerpt {
    font-size: 0.9375rem;
    color: var(--fb-gray-600);
    margin: 0 0 1rem;
    line-height: 1.6;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fb-post-meta {
    font-size: 0.8125rem;
    color: var(--fb-gray-500);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Pagination */
.fb-pagination {
    margin-top: 3rem;
    text-align: center;
}

.fb-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.fb-pagination li {
    display: inline-block;
}

.fb-pagination a,
.fb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--fb-white);
    color: var(--fb-gray-700);
    border-radius: var(--fb-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--fb-shadow);
}

.fb-pagination a:hover {
    background: var(--fb-primary);
    color: var(--fb-white);
}

.fb-pagination .current {
    background: var(--fb-primary);
    color: var(--fb-white);
}

/* No Posts */
.fb-no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--fb-white);
    border-radius: var(--fb-radius-lg);
}

.fb-no-posts h2 {
    margin-bottom: 0.5rem;
}

.fb-no-posts p {
    color: var(--fb-gray-500);
    margin-bottom: 1.5rem;
}

/* Archive Responsive */
@media (max-width: 992px) {
    .fb-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .fb-archive-header {
        padding: 3rem 0;
    }
    
    .fb-archive-title {
        font-size: 1.75rem;
    }
    
    .fb-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PAGE & ARCHIVE HEADERS
   ========================================================================== */

.fb-page-header {
    background: linear-gradient(135deg, var(--fb-primary) 0%, var(--fb-primary-dark) 100%);
    color: var(--fb-white);
    padding: 3rem 0;
    text-align: center;
}

.fb-page-header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--fb-white);
}
