/* ============================================================
   SpeedBlog Pro v2.0 - Premium News Portal
   Main Component Styles
   ============================================================ */

/* ============================================================
   GLOBAL SVG ICON SIZING (from old theme functions)
   ============================================================ */
svg.sb-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================================
   HEADER - TOP BAR
   ============================================================ */
.sb-header { background: var(--sb-header-bg); position: relative; z-index: var(--sb-z-sticky); }

.sb-topbar {
    background: var(--sb-topbar-bg);
    color: var(--sb-topbar-text);
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sb-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; height: 40px;
}
.sb-topbar-left, .sb-topbar-center, .sb-topbar-right { display: flex; align-items: center; gap: 16px; }
.sb-topbar-date { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.sb-topbar-date svg { opacity: 0.7; }

.sb-topbar-trending {
    display: flex; align-items: center; gap: 12px;
    overflow: hidden; max-width: 100%;
}
.sb-topbar-trending-label {
    font-weight: 700; color: var(--sb-accent); text-transform: uppercase;
    letter-spacing: 0.5px; font-size: 11px; flex-shrink: 0;
}
.sb-topbar-trending a {
    color: var(--sb-topbar-text); font-weight: 500; white-space: nowrap;
    transition: color 0.2s;
}
.sb-topbar-trending a:hover { color: #fff; }

.sb-topbar-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    color: var(--sb-topbar-text); transition: all 0.2s;
}
.sb-topbar-social:hover { background: var(--sb-accent); color: #fff; transform: translateY(-1px); }

/* ============================================================
   HEADER - MAIN HEADER
   ============================================================ */
.sb-main-header {
    background: var(--sb-header-bg);
    border-bottom: 1px solid var(--sb-border);
    padding: 20px 0;
}
.sb-main-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px;
}
.sb-logo { flex-shrink: 0; }
.sb-logo img { max-height: 60px; width: auto; display: block; }
.sb-logo a {
    font-family: var(--sb-font-heading); font-size: 2rem; font-weight: 800;
    color: var(--sb-text-primary); letter-spacing: -0.02em;
}
.sb-logo-site-title { font-family: var(--sb-font-heading); font-size: 2rem; font-weight: 800; }

.sb-header-tagline { text-align: right; }
.sb-header-tagline-label {
    display: block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--sb-accent); margin-bottom: 4px;
}
.sb-header-tagline-text {
    display: block; font-size: 14px;
    color: var(--sb-text-secondary); font-style: italic;
}

/* ============================================================
   HEADER - NAVIGATION BAR
   ============================================================ */
.sb-nav-bar {
    background: var(--sb-nav-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}
.sb-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 54px; gap: 20px;
}
.sb-primary-menu {
    display: flex; list-style: none; margin: 0; padding: 0; gap: 0;
    align-items: center; height: 54px;
}
.sb-primary-menu > li { position: relative; height: 100%; }
.sb-primary-menu > li > a {
    display: flex; align-items: center; height: 100%; padding: 0 18px;
    color: var(--sb-nav-text); font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    position: relative; transition: color 0.2s;
}
.sb-primary-menu > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0;
    height: 3px; background: var(--sb-accent);
    transform: translateX(-50%); transition: width 0.3s ease;
}
.sb-primary-menu > li:hover > a::after,
.sb-primary-menu > li.current-menu-item > a::after,
.sb-primary-menu > li.current_page_item > a::after { width: 100%; }
.sb-primary-menu > li:hover > a,
.sb-primary-menu > li.current-menu-item > a { color: #fff; }

.sb-primary-menu ul.sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff; list-style: none; padding: 8px 0; margin: 0;
    box-shadow: var(--sb-shadow-lg); border-top: 3px solid var(--sb-accent);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.25s ease; z-index: var(--sb-z-dropdown);
}
.sb-primary-menu > li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sb-primary-menu ul.sub-menu li { display: block; position: relative; }
.sb-primary-menu ul.sub-menu a {
    display: block; padding: 10px 20px; color: var(--sb-text-primary);
    font-size: 13px; font-weight: 500; border-left: 3px solid transparent;
    transition: all 0.2s;
}
.sb-primary-menu ul.sub-menu a:hover {
    background: var(--sb-bg-secondary); border-left-color: var(--sb-accent);
    color: var(--sb-accent); padding-left: 24px;
}
.sb-primary-menu ul.sub-menu ul.sub-menu { top: 0; left: 100%; }

.sb-nav-actions { display: flex; align-items: center; gap: 8px; }
.sb-nav-actions button,
.sb-nav-actions .sb-dark-mode-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    background: transparent; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--sb-nav-text); transition: all 0.2s;
}
.sb-nav-actions button:hover,
.sb-nav-actions .sb-dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1); color: #fff;
}

/* Mobile toggle */
.sb-mobile-toggle {
    display: none; width: 38px; height: 38px;
    background: transparent; border: none; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.sb-mobile-toggle span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px; transition: all 0.3s;
}
.sb-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sb-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.sb-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Sticky nav */
.sb-nav-bar.is-sticky {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: var(--sb-z-sticky);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   HEADER - SEARCH OVERLAY
   ============================================================ */
.sb-search-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    z-index: var(--sb-z-overlay);
    display: none; align-items: center; justify-content: center;
}
.sb-search-overlay.is-active { display: flex; }
.sb-search-overlay-close {
    position: absolute; top: 30px; right: 30px;
    width: 48px; height: 48px; border-radius: 50%;
    background: transparent; border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff; font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.sb-search-overlay-close:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.sb-search-overlay-inner { width: 100%; max-width: 700px; padding: 0 20px; }
.sb-search-overlay-form {
    display: flex; align-items: center; gap: 0;
    border-bottom: 3px solid #fff; padding-bottom: 16px;
}
.sb-search-overlay-form input {
    flex: 1; background: transparent; border: none; color: #fff;
    font-size: 2rem; font-family: var(--sb-font-heading);
    padding: 16px 0; outline: none;
}
.sb-search-overlay-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.sb-search-overlay-form button {
    background: transparent; border: none; color: #fff;
    cursor: pointer; padding: 16px;
}
.sb-search-overlay-hint {
    color: rgba(255, 255, 255, 0.5); font-size: 13px;
    text-align: center; margin-top: 20px;
}

/* ============================================================
   HEADER - NEWS TICKER
   ============================================================ */
.sb-ticker {
    background: #fff;
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
    height: 44px; overflow: hidden;
}
.sb-ticker-inner {
    display: flex; align-items: center; height: 44px; gap: 0;
}
.sb-ticker-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--sb-accent); color: #fff;
    padding: 0 18px; height: 44px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    flex-shrink: 0; position: relative;
}
.sb-ticker-label::after {
    content: ''; position: absolute; right: -10px; top: 0; bottom: 0;
    width: 20px; background: var(--sb-accent);
    clip-path: polygon(0 0, 50% 50%, 0 100%);
}
.sb-ticker-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff; animation: sb-pulse 1.5s infinite;
}
@keyframes sb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}
.sb-ticker-content {
    flex: 1; overflow: hidden; padding-left: 20px;
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.sb-ticker-track {
    display: inline-flex; align-items: center; gap: 30px;
    white-space: nowrap; animation: sb-ticker-scroll 60s linear infinite;
}
.sb-ticker:hover .sb-ticker-track { animation-play-state: paused; }
.sb-ticker-item {
    color: var(--sb-text-primary); font-size: 14px; font-weight: 600;
    transition: color 0.2s;
}
.sb-ticker-item:hover { color: var(--sb-accent); }
.sb-ticker-separator {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sb-accent); flex-shrink: 0;
}
@keyframes sb-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.sb-mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 320px; max-width: 85vw;
    background: #fff; z-index: var(--sb-z-modal);
    transform: translateX(-100%); transition: transform 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
}
.sb-mobile-drawer.is-open { transform: translateX(0); }
.sb-mobile-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--sb-z-modal) - 1); opacity: 0; visibility: hidden;
    transition: all 0.3s;
}
.sb-mobile-overlay.is-visible { opacity: 1; visibility: visible; }
.sb-mobile-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid var(--sb-border);
}
.sb-mobile-drawer-close {
    width: 36px; height: 36px; border: none; background: transparent;
    font-size: 28px; cursor: pointer; color: var(--sb-text-primary);
    display: flex; align-items: center; justify-content: center;
}
.sb-mobile-drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.sb-mobile-drawer-search {
    display: flex; gap: 0; margin-bottom: 20px;
    border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm);
}
.sb-mobile-drawer-search input {
    flex: 1; border: none; padding: 12px 16px; outline: none; background: transparent;
}
.sb-mobile-drawer-search button {
    background: var(--sb-accent); color: #fff; border: none;
    padding: 0 16px; cursor: pointer;
}
.sb-mobile-menu { list-style: none; padding: 0; margin: 0; }
.sb-mobile-menu li { border-bottom: 1px solid var(--sb-border); }
.sb-mobile-menu a {
    display: block; padding: 14px 0; color: var(--sb-text-primary);
    font-weight: 600; font-size: 15px;
}
.sb-mobile-menu a:hover { color: var(--sb-accent); padding-left: 8px; }
.sb-mobile-drawer-footer {
    padding: 20px; border-top: 1px solid var(--sb-border);
    display: flex; align-items: center; justify-content: space-between;
}
.sb-mobile-drawer-social { display: flex; gap: 10px; }
.sb-mobile-drawer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--sb-bg-secondary); color: var(--sb-text-primary);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.sb-mobile-drawer-social a:hover { background: var(--sb-accent); color: #fff; }

/* ============================================================
   HOMEPAGE - HERO GRID (60/40)
   ============================================================ */
.sb-hero-section { padding: 40px 0 0; background: var(--sb-bg-primary); }
.sb-hero-grid {
    display: grid; gap: 8px;
    grid-template-columns: 62% 38%;
    grid-template-rows: repeat(2, 1fr);
    height: 550px;
}
.sb-hero-main { grid-row: 1 / span 2; }
.sb-hero-card { position: relative; overflow: hidden; border-radius: var(--sb-radius-md); cursor: pointer; }
.sb-hero-card-link { display: block; height: 100%; position: relative; }
.sb-hero-card-image {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease;
}
.sb-hero-card:hover .sb-hero-card-image { transform: scale(1.05); }
.sb-hero-card-overlay {
    position: absolute; inset: 0; background: var(--sb-gradient-hero);
}
.sb-hero-card-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 30px; color: #fff;
}
.sb-hero-main .sb-hero-card-content { padding: 40px; }
.sb-hero-card-title {
    color: #fff; margin: 14px 0 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.sb-hero-main .sb-hero-card-title { font-size: 2.25rem; line-height: 1.15; }
.sb-hero-sub .sb-hero-card-title { font-size: 1.2rem; line-height: 1.3; }
.sb-hero-card-meta { color: rgba(255, 255, 255, 0.85); }
.sb-hero-card-meta a { color: rgba(255, 255, 255, 0.85); }
.sb-hero-card-meta .sb-meta-separator { background: rgba(255, 255, 255, 0.5); }

/* ============================================================
   HOMEPAGE - TRENDING STRIP
   ============================================================ */
.sb-trending-strip {
    background: var(--sb-bg-secondary);
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
    padding: 16px 0; margin-top: 40px;
}
.sb-trending-strip-inner {
    display: flex; align-items: center; gap: 20px;
}
.sb-trending-strip-label {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--sb-accent); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    font-size: 13px; flex-shrink: 0;
}
.sb-trending-strip-tags {
    display: flex; gap: 8px; flex-wrap: wrap;
    flex: 1; overflow-x: auto;
}
.sb-trending-tag {
    display: inline-block; padding: 7px 16px;
    background: #fff; color: var(--sb-text-secondary);
    border: 1px solid var(--sb-border); border-radius: 20px;
    font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: all 0.25s;
}
.sb-trending-tag:hover {
    background: var(--sb-accent); color: #fff;
    border-color: var(--sb-accent); transform: translateY(-2px);
}

/* ============================================================
   POST CARDS (reusable)
   ============================================================ */
.sb-card-grid { display: grid; gap: 28px; }
.sb-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sb-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sb-card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.sb-card {
    background: var(--sb-bg-primary);
    border-radius: var(--sb-radius-md);
    overflow: hidden;
    box-shadow: var(--sb-shadow-sm);
    transition: var(--sb-transition);
    display: flex; flex-direction: column;
    border-bottom: 3px solid transparent;
}
.sb-card:hover {
    transform: translateY(-6px); box-shadow: var(--sb-shadow-lg);
    border-bottom-color: var(--sb-accent);
}
.sb-card-image {
    position: relative; display: block;
    overflow: hidden; aspect-ratio: 16/10;
    background: var(--sb-bg-secondary);
}
.sb-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.sb-card:hover .sb-card-image img { transform: scale(1.08); }
.sb-card-category {
    position: absolute; bottom: 12px; left: 12px;
}
.sb-card-badge-editor {
    position: absolute; top: 12px; right: 12px;
}
.sb-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.sb-card-category-text {
    font-size: 11px; font-weight: 700; color: var(--sb-accent);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
    display: block;
}
.sb-card-title { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.35; }
.sb-card-title a { color: var(--sb-text-primary); transition: color 0.2s; }
.sb-card-title a:hover { color: var(--sb-accent); }
.sb-card-excerpt {
    color: var(--sb-text-secondary); font-size: 0.9rem;
    line-height: 1.6; margin-bottom: 16px; flex: 1;
}
.sb-card-meta { font-size: 12px; padding-top: 14px; border-top: 1px solid var(--sb-border); margin-top: auto; }

/* ============================================================
   HOMEPAGE - CATEGORY SECTIONS
   ============================================================ */
.sb-category-block { margin-bottom: 60px; }
.sb-category-block:last-child { margin-bottom: 0; }
.sb-category-grid {
    display: grid; grid-template-columns: 5fr 4fr; gap: 30px;
}
.sb-category-featured { position: relative; border-radius: var(--sb-radius-md); overflow: hidden; }
.sb-category-featured-link { display: block; height: 100%; position: relative; aspect-ratio: 4/3; }
.sb-category-featured-image {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s;
}
.sb-category-featured:hover .sb-category-featured-image { transform: scale(1.05); }
.sb-category-featured-overlay {
    position: absolute; inset: 0; background: var(--sb-gradient-hero);
}
.sb-category-featured-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 30px; color: #fff;
}
.sb-category-featured-content h3 {
    color: #fff; font-size: 1.75rem; margin: 14px 0 10px;
    line-height: 1.2;
}
.sb-category-featured-content .sb-meta { color: rgba(255, 255, 255, 0.85); }
.sb-category-featured-content .sb-meta-separator { background: rgba(255, 255, 255, 0.5); }

.sb-category-list { display: flex; flex-direction: column; gap: 20px; }
.sb-category-list-item {
    display: flex; gap: 16px; padding-bottom: 20px;
    border-bottom: 1px solid var(--sb-border);
}
.sb-category-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.sb-category-list-thumb {
    flex-shrink: 0; width: 110px; height: 80px;
    border-radius: var(--sb-radius-sm); overflow: hidden;
}
.sb-category-list-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.sb-category-list-item:hover .sb-category-list-thumb img { transform: scale(1.1); }
.sb-category-list-content { flex: 1; min-width: 0; }
.sb-category-list-content h4 { font-size: 1rem; margin: 0 0 8px; line-height: 1.35; }
.sb-category-list-content h4 a { color: var(--sb-text-primary); }
.sb-category-list-content h4 a:hover { color: var(--sb-accent); }

/* ============================================================
   HOMEPAGE - NEWSLETTER CTA SECTION
   ============================================================ */
.sb-newsletter-cta-section {
    background: var(--sb-gradient-dark);
    padding: 80px 0; color: #fff;
    position: relative; overflow: hidden;
}
.sb-newsletter-cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(220, 38, 38, 0.15), transparent 60%);
    pointer-events: none;
}
.sb-newsletter-cta-inner {
    max-width: 640px; margin: 0 auto; text-align: center;
    position: relative; z-index: 1;
}
.sb-newsletter-cta-icon {
    width: 88px; height: 88px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 24px; border: 2px solid rgba(255, 255, 255, 0.2);
}
.sb-newsletter-cta-inner h2 { color: #fff; font-size: 2.5rem; margin-bottom: 16px; }
.sb-newsletter-cta-inner > p {
    color: rgba(255, 255, 255, 0.8); font-size: 1.1rem;
    margin-bottom: 32px; line-height: 1.7;
}
.sb-newsletter-form-large {
    display: flex; gap: 0; max-width: 500px; margin: 0 auto;
    background: #fff; border-radius: var(--sb-radius-md); padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.sb-newsletter-form-large input {
    flex: 1; background: transparent; border: none;
    padding: 12px 16px; outline: none; color: var(--sb-text-primary);
}
.sb-newsletter-cta-note {
    color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-top: 18px;
}

.sb-empty-notice {
    text-align: center; padding: 80px 20px;
    color: var(--sb-text-secondary);
}
.sb-empty-notice h3 { margin-bottom: 12px; }

/* ============================================================
   SINGLE POST - HERO
   ============================================================ */
.sb-single-hero {
    position: relative;
    min-height: 500px; padding: 100px 0 60px;
    background-size: cover; background-position: center;
    color: #fff; display: flex; align-items: flex-end;
}
.sb-single-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 60%, rgba(15, 23, 42, 0.95) 100%);
}
.sb-single-hero-content { position: relative; max-width: 900px; }
.sb-single-hero-breadcrumb { color: rgba(255, 255, 255, 0.8); font-size: 13px; margin-bottom: 20px; }
.sb-single-hero-breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.sb-single-hero-breadcrumb a:hover { color: #fff; }
.sb-single-hero-breadcrumb svg.sb-icon { width: 14px; height: 14px; vertical-align: middle; display: inline; }
.sb-single-hero-category {
    display: inline-block; padding: 6px 16px;
    background: var(--sb-accent); color: #fff;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: var(--sb-radius-sm); margin-bottom: 20px;
}
.sb-single-hero-category:hover { background: var(--sb-accent-hover); color: #fff; }
.sb-single-hero-title {
    color: #fff; font-size: 3rem; line-height: 1.15;
    margin-bottom: 20px; max-width: 900px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.sb-single-hero-excerpt {
    font-size: 1.2rem; line-height: 1.6;
    color: rgba(255, 255, 255, 0.9); max-width: 750px;
    margin-bottom: 30px;
}
.sb-single-hero-meta {
    display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
    padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.sb-single-hero-author { display: flex; align-items: center; gap: 14px; }
.sb-single-hero-author img {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover; border: 2px solid #fff;
}
.sb-single-hero-author-label {
    display: block; font-size: 11px; font-weight: 500;
    color: rgba(255, 255, 255, 0.7); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 2px;
}
.sb-single-hero-author-name {
    color: #fff; font-weight: 700; font-size: 15px;
}
.sb-single-hero-author-name:hover { color: var(--sb-accent); }
.sb-single-hero-meta-details {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.85); font-size: 13px;
}
.sb-single-hero-meta-item {
    display: inline-flex; align-items: center; gap: 6px;
}

/* ============================================================
   SINGLE POST - FLOATING SHARE
   ============================================================ */
.sb-floating-share {
    position: fixed; left: 20px; top: 50%;
    transform: translateY(-50%); z-index: var(--sb-z-fixed);
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; padding: 16px 10px;
    border-radius: var(--sb-radius-md);
    box-shadow: var(--sb-shadow-lg);
}
.sb-floating-share-label {
    font-size: 9px; font-weight: 700; text-align: center;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--sb-text-secondary); padding-bottom: 8px;
    border-bottom: 1px solid var(--sb-border);
    writing-mode: horizontal-tb;
}
.sb-floating-share .sb-share-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sb-bg-secondary); color: var(--sb-text-primary);
    transition: all 0.25s;
}
.sb-floating-share .sb-share-btn:hover { transform: translateY(-2px) scale(1.05); }
.sb-share-facebook:hover { background: #1877F2; color: #fff; }
.sb-share-twitter:hover { background: #0F172A; color: #fff; }
.sb-share-linkedin:hover { background: #0A66C2; color: #fff; }
.sb-share-pinterest:hover { background: #E60023; color: #fff; }
.sb-share-email:hover { background: var(--sb-accent); color: #fff; }

/* ============================================================
   SINGLE POST - LAYOUT & CONTENT
   ============================================================ */
.sb-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: flex-start;
}
.sb-single-content { max-width: 780px; }
.sb-article-body {
    font-family: var(--sb-font-body);
    font-size: 1.1875rem; line-height: 1.8;
    color: var(--sb-text-primary);
}
.sb-article-body > p:first-of-type::first-letter {
    font-family: var(--sb-font-heading);
    float: left; font-size: 4.5rem; line-height: 0.9;
    padding: 8px 10px 0 0; font-weight: 800;
    color: var(--sb-accent);
}
.sb-article-body p { margin-bottom: 1.4em; }
.sb-article-body h2 {
    font-size: 1.875rem; margin: 2em 0 0.8em;
    padding-top: 0.3em;
}
.sb-article-body h3 { font-size: 1.4rem; margin: 1.8em 0 0.7em; }
.sb-article-body h4 { font-size: 1.15rem; margin: 1.5em 0 0.6em; }
.sb-article-body a {
    color: var(--sb-accent); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.sb-article-body a:hover { text-decoration-thickness: 2px; }

.sb-article-body blockquote {
    margin: 2em 0; padding: 24px 30px;
    border-left: 5px solid var(--sb-accent);
    background: var(--sb-bg-secondary);
    font-family: var(--sb-font-heading);
    font-size: 1.375rem; line-height: 1.5;
    font-style: italic; font-weight: 500;
    color: var(--sb-text-primary);
    border-radius: 0 var(--sb-radius-md) var(--sb-radius-md) 0;
}
.sb-article-body blockquote p:last-child { margin-bottom: 0; }

.sb-article-body img,
.sb-article-body figure {
    margin: 2em 0; border-radius: var(--sb-radius-md); overflow: hidden;
}
.sb-article-body figure img { margin: 0; border-radius: 0; }
.sb-article-body figcaption {
    font-size: 0.85rem; color: var(--sb-text-secondary);
    font-style: italic; text-align: center;
    padding: 10px 0;
}

.sb-article-body ul,
.sb-article-body ol {
    margin: 0 0 1.4em 1.5em; padding-left: 20px;
}
.sb-article-body ul li,
.sb-article-body ol li { margin-bottom: 0.5em; }
.sb-article-body ul li::marker { color: var(--sb-accent); }

.sb-article-body pre {
    background: var(--sb-primary); color: #fff;
    padding: 20px; border-radius: var(--sb-radius-md);
    overflow-x: auto; margin: 1.5em 0;
    font-family: var(--sb-font-code); font-size: 0.9rem;
}
.sb-article-body code {
    background: var(--sb-bg-tertiary); padding: 2px 8px;
    border-radius: 4px; font-size: 0.85em;
    font-family: var(--sb-font-code); color: var(--sb-accent);
}
.sb-article-body pre code {
    background: transparent; color: #fff; padding: 0;
}

/* Single post tags */
.sb-single-tags {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 40px 0; padding: 24px 0;
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
}
.sb-single-tags-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--sb-text-secondary);
}
.sb-tag-pill {
    display: inline-block; padding: 6px 14px;
    background: var(--sb-bg-secondary); color: var(--sb-text-primary);
    border-radius: 20px; font-size: 13px; font-weight: 500;
    transition: all 0.25s;
}
.sb-tag-pill:hover { background: var(--sb-accent); color: #fff; transform: translateY(-2px); }

/* Share bar */
.sb-single-share-bar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin: 40px 0; padding: 24px; background: var(--sb-bg-secondary);
    border-radius: var(--sb-radius-md);
}
.sb-single-share-bar-label {
    font-size: 13px; font-weight: 600; color: var(--sb-text-primary);
}
.sb-single-share-bar-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-single-share-bar .sb-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; background: #fff; color: var(--sb-text-primary);
    border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm);
    font-size: 13px; font-weight: 600; transition: all 0.25s;
}

/* Author Box (below post) */
.sb-author-box {
    display: flex; gap: 30px;
    margin: 50px 0; padding: 36px;
    background: var(--sb-bg-secondary);
    border-radius: var(--sb-radius-md);
    border-left: 4px solid var(--sb-accent);
}
.sb-author-box-avatar { flex-shrink: 0; }
.sb-author-box-avatar img {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 4px solid #fff;
    box-shadow: var(--sb-shadow-md);
}
.sb-author-box-content { flex: 1; }
.sb-author-box-label {
    display: block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--sb-accent); margin-bottom: 8px;
}
.sb-author-box-name { font-size: 1.5rem; margin-bottom: 12px; }
.sb-author-box-name a { color: var(--sb-text-primary); }
.sb-author-box-name a:hover { color: var(--sb-accent); }
.sb-author-box-bio {
    color: var(--sb-text-secondary); font-size: 0.95rem;
    line-height: 1.7; margin-bottom: 20px;
}
.sb-author-box-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding-top: 16px;
    border-top: 1px solid var(--sb-border);
}
.sb-author-box-count {
    font-size: 12px; color: var(--sb-text-secondary);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.sb-author-box-social { display: flex; gap: 8px; }
.sb-author-box-social a {
    width: 32px; height: 32px; border-radius: 50%;
    background: #fff; color: var(--sb-text-primary);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--sb-border); transition: all 0.2s;
}
.sb-author-box-social a:hover { background: var(--sb-accent); color: #fff; border-color: var(--sb-accent); transform: translateY(-2px); }

/* Post Navigation */
.sb-single-nav {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin: 50px 0;
}
.sb-single-nav-link {
    padding: 24px; background: var(--sb-bg-secondary);
    border-radius: var(--sb-radius-md);
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
.sb-single-nav-link:hover {
    border-left-color: var(--sb-accent);
    transform: translateY(-3px); box-shadow: var(--sb-shadow-md);
}
.sb-single-nav-next { text-align: right; border-left: none; border-right: 3px solid transparent; }
.sb-single-nav-next:hover { border-right-color: var(--sb-accent); }
.sb-single-nav-label {
    display: block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--sb-accent); margin-bottom: 8px;
}
.sb-single-nav-title {
    display: block; font-family: var(--sb-font-heading);
    font-weight: 700; color: var(--sb-text-primary);
    line-height: 1.35;
}

/* ============================================================
   SINGLE POST - SIDEBAR
   ============================================================ */
.sb-single-sidebar { position: relative; }
.sb-single-sidebar-inner { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 30px; }

.sb-sidebar-widget {
    background: #fff; border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    padding: 24px; box-shadow: var(--sb-shadow-sm);
}
.sb-sidebar-title {
    font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 18px; padding-bottom: 14px;
    border-bottom: 2px solid var(--sb-accent);
    color: var(--sb-text-primary); position: relative;
}

/* Author Bio Card */
.sb-author-card {
    text-align: center; padding: 30px 24px;
    border-top: 4px solid var(--sb-accent);
}
.sb-author-card-top { margin-bottom: 16px; }
.sb-author-card-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--sb-accent); display: block;
}
.sb-author-card-photo { margin-bottom: 16px; }
.sb-author-card-photo img {
    width: 96px; height: 96px; border-radius: 50%;
    object-fit: cover; margin: 0 auto;
    border: 4px solid var(--sb-bg-secondary);
}
.sb-author-card-name { font-size: 1.25rem; margin-bottom: 10px; }
.sb-author-card-name a { color: var(--sb-text-primary); }
.sb-author-card-name a:hover { color: var(--sb-accent); }
.sb-author-card-bio {
    font-size: 0.875rem; color: var(--sb-text-secondary);
    line-height: 1.6; margin-bottom: 18px;
}
.sb-author-card-social {
    display: flex; justify-content: center; gap: 10px;
    margin-bottom: 20px;
}
.sb-author-card-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--sb-bg-secondary); color: var(--sb-text-primary);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.sb-author-card-social a:hover { background: var(--sb-accent); color: #fff; transform: translateY(-2px); }
.sb-author-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--sb-accent);
    text-transform: uppercase; letter-spacing: 1px;
}
.sb-author-card-link:hover { gap: 10px; }

/* Popular Posts widget */
.sb-popular-posts-list { list-style: none; padding: 0; margin: 0; }
.sb-popular-post-item {
    display: flex; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--sb-border);
}
.sb-popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sb-popular-post-item:first-child { padding-top: 0; }
.sb-popular-post-num {
    font-family: var(--sb-font-heading); font-size: 1.5rem;
    font-weight: 800; color: var(--sb-border);
    line-height: 1; flex-shrink: 0; min-width: 32px;
}
.sb-popular-post-content h5 {
    font-size: 0.9rem; line-height: 1.4;
    margin-bottom: 6px;
}
.sb-popular-post-content h5 a { color: var(--sb-text-primary); }
.sb-popular-post-content h5 a:hover { color: var(--sb-accent); }
.sb-popular-post-date { font-size: 11px; color: var(--sb-text-secondary); }

/* Sidebar newsletter */
.sb-sidebar-newsletter p {
    font-size: 0.875rem; color: var(--sb-text-secondary);
    margin-bottom: 14px;
}
.sb-sidebar-newsletter input {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    margin-bottom: 10px; font-size: 14px;
}
.sb-sidebar-newsletter button { width: 100%; }

/* TOC (Table of Contents) */
.sb-toc {
    background: var(--sb-bg-secondary);
    padding: 20px 24px; border-radius: var(--sb-radius-md);
    margin-bottom: 24px;
}
.sb-toc__title, .sb-toc-title {
    font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--sb-text-primary); margin-bottom: 12px;
    padding-bottom: 10px; border-bottom: 1px solid var(--sb-border);
}
.sb-toc ul, .sb-toc__list { list-style: none; padding: 0; margin: 0; }
.sb-toc li { margin-bottom: 8px; }
.sb-toc a {
    color: var(--sb-text-secondary); font-size: 0.875rem;
    line-height: 1.5; display: block; padding: 4px 0;
}
.sb-toc a:hover { color: var(--sb-accent); padding-left: 4px; }
.sb-toc li.is-active > a { color: var(--sb-accent); font-weight: 600; }

/* ============================================================
   ARCHIVE / CATEGORY PAGES
   ============================================================ */
.sb-archive-header {
    position: relative; overflow: hidden;
    padding: 80px 0 60px; color: #fff;
    background: var(--sb-gradient-dark);
}
.sb-archive-header-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(220, 38, 38, 0.2), transparent 60%);
    pointer-events: none;
}
.sb-archive-header-inner { position: relative; }
.sb-archive-header-breadcrumb {
    color: rgba(255, 255, 255, 0.7); font-size: 13px; margin-bottom: 16px;
}
.sb-archive-header-breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.sb-archive-header-breadcrumb a:hover { color: #fff; }
.sb-archive-header-label {
    display: inline-block; padding: 5px 12px;
    background: var(--sb-accent); color: #fff;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: var(--sb-radius-sm); margin-bottom: 16px;
}
.sb-archive-header-title {
    color: #fff; font-size: 3rem; line-height: 1.1;
    margin-bottom: 16px;
}
.sb-archive-header-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem; line-height: 1.7;
    max-width: 700px; margin-bottom: 20px;
}
.sb-archive-header-meta { display: flex; gap: 20px; }
.sb-archive-header-count {
    font-size: 13px; color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}
.sb-archive-author {
    display: flex; align-items: center; gap: 24px;
}
.sb-archive-author img {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 4px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Category color accents */
.sb-cat-color-1 { --cat-color: #DC2626; }
.sb-cat-color-2 { --cat-color: #2563EB; }
.sb-cat-color-3 { --cat-color: #059669; }
.sb-cat-color-4 { --cat-color: #D97706; }
.sb-cat-color-5 { --cat-color: #7C3AED; }
.sb-cat-color-6 { --cat-color: #DB2777; }
.sb-cat-color-7 { --cat-color: #0891B2; }
.sb-cat-color-8 { --cat-color: #CA8A04; }
.sb-archive-header.sb-cat-color-1 .sb-archive-header-bg,
.sb-archive-header[class*="sb-cat-color-"] .sb-archive-header-bg {
    background: radial-gradient(circle at 30% 50%, rgba(220, 38, 38, 0.25), transparent 65%);
}
.sb-category-block[class*="sb-cat-color-"] .sb-section-title h2::before {
    background: var(--cat-color, var(--sb-accent));
}

.sb-archive-layout {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 60px; align-items: flex-start;
}
.sb-archive-main { min-width: 0; }
.sb-archive-sidebar .sb-sidebar-inner {
    position: sticky; top: 90px;
    display: flex; flex-direction: column; gap: 24px;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.sb-search-header {
    background: var(--sb-bg-secondary);
    padding: 70px 0 60px;
    border-bottom: 1px solid var(--sb-border);
}
.sb-search-header-inner { max-width: 700px; }
.sb-search-header-title { font-size: 2.5rem; margin-bottom: 10px; }
.sb-search-header-title span { color: var(--sb-accent); }
.sb-search-header-count {
    color: var(--sb-text-secondary); font-size: 1rem;
    margin-bottom: 28px;
}
.sb-search-form-large {
    display: flex; gap: 0; max-width: 600px;
    background: #fff; border-radius: var(--sb-radius-md);
    padding: 6px; box-shadow: var(--sb-shadow-md);
}
.sb-search-form-large input {
    flex: 1; border: none; background: transparent;
    padding: 12px 16px; outline: none; font-size: 1rem;
}
.sb-search-form-large button { flex-shrink: 0; }

.sb-search-results {
    display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px;
}
.sb-search-result {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 28px; padding: 24px;
    background: #fff; border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md); transition: all 0.3s;
}
.sb-search-result:hover { box-shadow: var(--sb-shadow-md); transform: translateY(-2px); }
.sb-search-result-thumb {
    display: block; border-radius: var(--sb-radius-sm);
    overflow: hidden; aspect-ratio: 16/10;
}
.sb-search-result-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.sb-search-result:hover .sb-search-result-thumb img { transform: scale(1.08); }
.sb-search-result-content { display: flex; flex-direction: column; justify-content: center; }
.sb-search-result-content .sb-badge { margin-bottom: 10px; align-self: flex-start; }
.sb-search-result-title { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.3; }
.sb-search-result-title a { color: var(--sb-text-primary); }
.sb-search-result-title a:hover { color: var(--sb-accent); }
.sb-search-result-excerpt {
    color: var(--sb-text-secondary); font-size: 0.95rem;
    line-height: 1.6; margin-bottom: 12px;
}
.sb-search-highlight {
    background: #FEF3C7; color: var(--sb-text-primary);
    padding: 1px 4px; border-radius: 3px; font-weight: 600;
}

.sb-search-empty {
    text-align: center; padding: 60px 20px; color: var(--sb-text-secondary);
}
.sb-search-empty svg { color: var(--sb-border); margin-bottom: 20px; }
.sb-search-empty h2 { margin-bottom: 12px; color: var(--sb-text-primary); }

/* ============================================================
   404 PAGE
   ============================================================ */
.sb-404-section {
    padding: 80px 0; text-align: center;
    min-height: 70vh;
}
.sb-404-inner { max-width: 640px; margin: 0 auto 60px; }
.sb-404-number {
    font-family: var(--sb-font-heading);
    font-size: 11rem; font-weight: 900; line-height: 0.9;
    background: var(--sb-gradient-accent);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 20px;
}
.sb-404-title { font-size: 2.5rem; margin-bottom: 16px; }
.sb-404-desc {
    color: var(--sb-text-secondary); font-size: 1.1rem;
    line-height: 1.7; margin-bottom: 36px;
}
.sb-404-search { margin-bottom: 28px; }
.sb-404-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.sb-404-subtitle {
    font-size: 1.3rem; text-align: center;
    margin-bottom: 28px; padding-top: 40px;
    border-top: 1px solid var(--sb-border);
}
.sb-404-categories { margin-bottom: 60px; }
.sb-404-categories-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; max-width: 800px; margin: 0 auto;
}
.sb-404-category-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--sb-bg-secondary);
    border-radius: var(--sb-radius-md);
    color: var(--sb-text-primary); font-weight: 600;
    transition: all 0.25s;
}
.sb-404-category-link:hover {
    background: var(--sb-accent); color: #fff;
    transform: translateY(-3px); box-shadow: var(--sb-shadow-md);
}
.sb-404-category-count {
    background: #fff; color: var(--sb-accent);
    padding: 2px 10px; border-radius: 10px;
    font-size: 12px; font-weight: 700;
}
.sb-404-category-link:hover .sb-404-category-count { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ============================================================
   STATIC PAGE TEMPLATE
   ============================================================ */
.sb-page-header {
    padding: 70px 0 60px;
    background: var(--sb-bg-secondary);
    border-bottom: 1px solid var(--sb-border);
}
.sb-page-header-with-image {
    background-size: cover; background-position: center;
    min-height: 380px; display: flex; align-items: flex-end;
    padding: 100px 0 50px; color: #fff; position: relative;
}
.sb-page-header-overlay {
    position: absolute; inset: 0;
    background: var(--sb-gradient-hero);
}
.sb-page-header-inner { position: relative; }
.sb-page-header-with-image .sb-page-header-title,
.sb-page-header-with-image .sb-page-header-breadcrumb { color: #fff; }
.sb-page-header-with-image .sb-page-header-breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.sb-page-header-breadcrumb {
    color: var(--sb-text-secondary); font-size: 13px;
    margin-bottom: 16px;
}
.sb-page-header-title { font-size: 3rem; margin: 0; }
.sb-page-article {
    max-width: 820px; margin: 0 auto;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.sb-comments {
    margin-top: 60px; padding-top: 40px;
    border-top: 2px solid var(--sb-border);
}
.sb-comments-title {
    font-size: 1.75rem; margin-bottom: 30px;
    padding-bottom: 16px; border-bottom: 1px solid var(--sb-border);
}
.sb-comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.sb-comment-list .children { list-style: none; padding-left: 50px; margin-top: 20px; }
.sb-comment-item { margin-bottom: 24px; }
.sb-comment-body {
    display: flex; gap: 16px;
    padding: 24px; background: var(--sb-bg-secondary);
    border-radius: var(--sb-radius-md);
}
.sb-comment-avatar { flex-shrink: 0; }
.sb-comment-avatar img { width: 48px; height: 48px; border-radius: 50%; }
.sb-comment-content { flex: 1; }
.sb-comment-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.sb-comment-author { font-size: 1rem; margin: 0; font-weight: 700; }
.sb-comment-author a { color: var(--sb-text-primary); }
.sb-comment-date {
    font-size: 12px; color: var(--sb-text-secondary);
}
.sb-comment-text {
    color: var(--sb-text-primary); line-height: 1.7;
    font-size: 0.95rem; margin-bottom: 12px;
}
.sb-comment-actions { font-size: 13px; }
.sb-comment-actions a {
    color: var(--sb-accent); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px;
}

.sb-comment-form {
    padding: 30px; background: var(--sb-bg-secondary);
    border-radius: var(--sb-radius-md);
}
.sb-comment-form label {
    display: block; font-weight: 600;
    margin-bottom: 8px; font-size: 14px;
}
.sb-comment-form p { margin-bottom: 16px; }
.sb-comment-form input[type="text"],
.sb-comment-form input[type="email"],
.sb-comment-form input[type="url"],
.sb-comment-form textarea { background: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.sb-prefooter-cta {
    background: var(--sb-gradient-dark);
    padding: 60px 0; color: #fff;
    position: relative; overflow: hidden;
}
.sb-prefooter-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(220, 38, 38, 0.15), transparent 60%);
    pointer-events: none;
}
.sb-prefooter-cta-inner {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 40px; position: relative;
}
.sb-prefooter-cta-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.sb-prefooter-cta-content h3 { color: #fff; font-size: 1.75rem; margin-bottom: 6px; }
.sb-prefooter-cta-content p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.sb-prefooter-cta .sb-newsletter-form {
    display: flex; gap: 0;
    background: #fff; border-radius: var(--sb-radius-md); padding: 5px;
}
.sb-prefooter-cta .sb-newsletter-form input {
    border: none; background: transparent;
    padding: 10px 16px; outline: none; min-width: 240px;
}

.sb-footer {
    background: var(--sb-footer-bg); color: var(--sb-footer-text);
    padding: 70px 0 0;
}
.sb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 50px; padding-bottom: 50px;
}
.sb-footer-col h4.sb-footer-heading,
.sb-footer-heading {
    font-size: 0.95rem; color: #fff; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 24px; padding-bottom: 12px;
    border-bottom: 2px solid var(--sb-accent);
    display: inline-block;
}
.sb-footer-logo { margin-bottom: 20px; }
.sb-footer-logo img { max-height: 50px; filter: brightness(0) invert(1); }
.sb-footer-site-name {
    font-family: var(--sb-font-heading); color: #fff;
    font-size: 1.75rem; font-weight: 800;
}
.sb-footer-about {
    color: var(--sb-footer-text); font-size: 0.9rem;
    line-height: 1.75; margin-bottom: 22px;
}
.sb-footer-social { display: flex; gap: 10px; }
.sb-footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff; display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.sb-footer-social a:hover { background: var(--sb-accent); transform: translateY(-3px); }
.sb-footer-links { list-style: none; padding: 0; margin: 0; }
.sb-footer-links li { margin-bottom: 10px; }
.sb-footer-links a {
    color: var(--sb-footer-text); font-size: 0.9rem;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px;
}
.sb-footer-links a:hover { color: #fff; padding-left: 4px; }
.sb-footer-count { color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; }
.sb-footer-posts { display: flex; flex-direction: column; gap: 16px; }
.sb-footer-post {
    display: flex; gap: 12px; align-items: flex-start;
}
.sb-footer-post-thumb {
    width: 70px; height: 54px; flex-shrink: 0;
    border-radius: var(--sb-radius-sm); overflow: hidden;
}
.sb-footer-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sb-footer-post:hover .sb-footer-post-thumb img { transform: scale(1.1); }
.sb-footer-post-title { margin: 0 0 4px; font-size: 0.85rem; line-height: 1.4; }
.sb-footer-post-title a { color: #fff; }
.sb-footer-post-title a:hover { color: var(--sb-accent); }
.sb-footer-post-date { font-size: 11px; color: rgba(255, 255, 255, 0.5); }

.sb-footer-bottom {
    background: rgba(0, 0, 0, 0.25); padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sb-footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.sb-copyright { font-size: 0.85rem; color: var(--sb-footer-text); margin: 0; }
.sb-copyright strong { color: #fff; }
.sb-back-to-top-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; padding: 10px 18px; border-radius: var(--sb-radius-sm);
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; cursor: pointer; transition: all 0.25s;
}
.sb-back-to-top-link:hover { background: var(--sb-accent); border-color: var(--sb-accent); }

/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */
.sb-dark-mode-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    background: transparent; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: all 0.2s;
}
.sb-dark-mode-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.sb-dark-mode-toggle .sb-sun { display: none; }
.sb-dark-mode-toggle .sb-moon { display: block; }
[data-theme="dark"] .sb-dark-mode-toggle .sb-sun { display: block; }
[data-theme="dark"] .sb-dark-mode-toggle .sb-moon { display: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.sb-fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.sb-fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NO-IMAGE PLACEHOLDERS
   CSS gradients for posts without featured images
   ============================================================ */

/* Card image placeholder — gradient pattern */
.sb-card-image-placeholder {
    background: linear-gradient(135deg, #1E293B 0%, #334155 40%, #475569 70%, #1E293B 100%);
    position: relative;
}
.sb-card-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.15), transparent 70%);
}

/* Hero card without image */
.sb-hero-no-image .sb-hero-card-image {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
}

/* Category featured item without image */
.sb-category-featured-no-image .sb-category-featured-image {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
}

/* Single post hero without featured image */
.sb-single-hero-no-image {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #334155 80%, #0F172A 100%);
}
.sb-single-hero-no-image .sb-single-hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.85) 100%);
}
.sb-single-hero-no-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 40%, rgba(220, 38, 38, 0.12), transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08), transparent 50%);
    pointer-events: none;
}

/* Breadcrumb styling */
.sb-breadcrumb__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sb-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}
.sb-breadcrumb__item--sep {
    opacity: 0.6;
}
.sb-breadcrumb__item--sep svg,
.sb-archive-header-breadcrumb svg.sb-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    display: inline;
}
.sb-breadcrumb__item a {
    color: inherit;
    opacity: 0.8;
}
.sb-breadcrumb__item a:hover {
    opacity: 1;
}
.sb-archive-header .sb-archive__title {
    font-size: inherit;
    margin: 0;
    padding: 0;
    display: inline;
}
