:root {
    --bp-primary: #FF3B30;
    --bp-primary-dark: #E0352B;
    --bp-dark: #111111;
    --bp-bg: #FFFFFF;
    --bp-bg-light: #F6F7F9;
    --bp-text: #171717;
    --bp-text-secondary: #6B7280;
    --bp-border: #E5E7EB;
    --bp-border-light: #F3F4F6;
    --bp-radius: 8px;
    --bp-radius-lg: 12px;
    --bp-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --bp-shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --bp-header-height: 70px;
    --bp-transition: all 0.25s ease;
    --bp-container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bp-text);
    background: var(--bp-bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bp-primary); text-decoration: none; transition: var(--bp-transition); }
a:hover { color: var(--bp-primary-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.25; color: var(--bp-dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: var(--bp-container); margin: 0 auto; padding: 0 20px; }

/* Accessibility Helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--bp-primary);
    color: #fff;
    padding: 12px 24px;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 var(--bp-radius) 0;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: -2px;
}

:focus-visible {
    outline: 2px solid var(--bp-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid var(--bp-primary);
    outline-offset: 2px;
}

/* Sticky header state */
.site-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--bp-border-light);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    transition: box-shadow 0.25s ease;
}

/* Prevent content jump with sticky header */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Logo text styles - replaces inline styles in PHP */
.site-logo-text {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.site-logo-accent {
    color: var(--bp-primary);
}
.footer-brand .site-logo,
.footer-site-logo {
    font-size: 1.6rem;
    display: inline-block;
    margin-bottom: 16px;
    color: #fff;
}
.mobile-site-logo {
    font-size: 1.3rem;
    color: var(--bp-dark);
}

/* Breaking / Trending Bar */
.breaking-bar {
    background: var(--bp-dark);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}
.breaking-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.breaking-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--bp-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
    white-space: nowrap;
}
.breaking-label-icon {
    font-size: 0.95rem;
    line-height: 1;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}
.breaking-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.breaking-ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 48px;
    animation: tickerScroll 45s linear infinite;
    white-space: nowrap;
}
.breaking-ticker-list:hover {
    animation-play-state: paused;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.breaking-item {
    display: inline-block;
    white-space: nowrap;
}
.breaking-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.92rem;
}
.breaking-link:hover {
    color: #fff;
}
.breaking-cat {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,0.1);
    color: var(--bp-primary);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.breaking-title {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .breaking-bar-inner { gap: 12px; }
    .breaking-label { padding: 4px 10px; font-size: 0.7rem; letter-spacing: 0.5px; }
    .breaking-label-icon { display: none; }
    .breaking-link { font-size: 0.85rem; }
    .breaking-ticker-list { gap: 32px; animation-duration: 35s; }
}

/* Toast notification */
.buzzpulse-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.buzzpulse-toast.toast-show {
    opacity: 1;
    bottom: 50px;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bp-header-height);
}
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bp-dark);
    letter-spacing: -0.5px;
}
.site-logo span { color: var(--bp-primary); }
.custom-logo-link img { max-height: 44px; width: auto; }

.main-navigation { display: flex; align-items: center; }
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.main-navigation a {
    display: block;
    padding: 10px 16px;
    color: var(--bp-text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--bp-primary);
    background: var(--bp-bg-light);
}
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: -9999px;
    flex-direction: column;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--bp-border-light);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow-lg);
    padding: 8px;
}
.main-navigation ul li:hover > ul { left: auto; }
.main-navigation ul ul a { padding: 10px 14px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle, .menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bp-border-light);
    border-radius: var(--bp-radius);
    background: #fff;
    color: var(--bp-text);
    cursor: pointer;
    transition: var(--bp-transition);
}
.search-toggle:hover, .menu-toggle:hover {
    border-color: var(--bp-primary);
    color: var(--bp-primary);
}
.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span {
    width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    transition: var(--bp-transition);
}

.search-form-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--bp-border-light);
    padding: 20px 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--bp-transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.search-form-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}
.search-form .search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--bp-border-light);
    border-radius: var(--bp-radius);
    font-size: 1rem;
    outline: none;
    transition: var(--bp-transition);
}
.search-form .search-field:focus {
    border-color: var(--bp-primary);
}
.search-form .search-submit {
    padding: 14px 28px;
    background: var(--bp-primary);
    color: #fff;
    border: none;
    border-radius: var(--bp-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--bp-transition);
}
.search-form .search-submit:hover { background: var(--bp-primary-dark); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--bp-border-light);
}
.mobile-menu-close {
    width: 40px; height: 40px;
    border: 1px solid var(--bp-border-light);
    border-radius: var(--bp-radius);
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 20px; }
.mobile-menu li { border-bottom: 1px solid var(--bp-border-light); }
.mobile-menu a {
    display: block;
    padding: 14px 0;
    color: var(--bp-text);
    font-weight: 600;
    font-size: 1rem;
}
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--bp-transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* Breadcrumbs - uses <ol class="breadcrumbs-list"> */
.breadcrumbs {
    background: var(--bp-bg-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border-light);
    font-size: 0.9rem;
}
.breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.breadcrumbs-list li {
    display: inline-flex;
    align-items: center;
}
.breadcrumbs-list li::after {
    content: '/';
    margin: 0 0 0 8px;
    color: var(--bp-text-secondary);
}
.breadcrumbs-list li.current::after,
.breadcrumbs-list li:last-child::after { display: none; }
.breadcrumbs-list a { color: var(--bp-text-secondary); }
.breadcrumbs-list a:hover { color: var(--bp-primary); }
.breadcrumbs-list li.current { color: var(--bp-text); font-weight: 500; }

/* Site Content */
.site-content { padding: 40px 0; }
.content-area { width: 100%; }
.content-sidebar-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Post Cards */
.card {
    background: #fff;
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    transition: var(--bp-transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--bp-shadow-lg); }
.card-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bp-bg-light);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 18px 20px 22px; }
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--bp-text-secondary);
}
.cat-link {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bp-primary);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cat-link:hover { background: var(--bp-primary-dark); }
.card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 8px;
}
.card-title a { color: var(--bp-dark); }
.card-title a:hover { color: var(--bp-primary); }
.card-excerpt {
    color: var(--bp-text-secondary);
    font-size: 0.92rem;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--bp-text-secondary);
}

/* Hero Section */
.hero-section { padding: 40px 0; }
.hero-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 1.6rem;
    font-weight: 800;
}
.hero-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 28px;
    background: var(--bp-primary);
    border-radius: 3px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.hero-main .card-image { aspect-ratio: 16/10; min-height: 420px; }
.hero-main .card-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.hero-main .card-body { padding: 24px 28px 28px; }
.hero-sidebar { display: flex; flex-direction: column; gap: 24px; }
.hero-sidebar .card { display: grid; grid-template-columns: 140px 1fr; gap: 0; }
.hero-sidebar .card-image { aspect-ratio: 1/1; }
.hero-sidebar .card-body { padding: 14px 16px; }
.hero-sidebar .card-title { font-size: 1rem; }

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bp-border-light);
}
.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    padding-bottom: 12px;
    margin-bottom: -14px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 60px;
    height: 2px;
    background: var(--bp-primary);
}
.section-title.trending-title::before {
    content: '🔥';
    font-size: 1.3rem;
}
.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bp-primary);
}
.view-all:hover { color: var(--bp-primary-dark); }

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}
.posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.posts-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Fallback Menu */
.fallback-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.fallback-menu a { display: block; padding: 10px 16px; color: var(--bp-text); font-weight: 600; font-size: 0.95rem; border-radius: 6px; }
.fallback-menu a:hover { color: var(--bp-primary); background: var(--bp-bg-light); }

/* Post author mini in card footer */
.post-author-mini a { display: inline-flex; align-items: center; gap: 8px; color: var(--bp-text-secondary); font-size: 0.85rem; font-weight: 500; }
.post-author-mini img { border-radius: 50%; width: 22px; height: 22px; }
.post-author-mini a:hover { color: var(--bp-primary); }

/* Screen reader text */
.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;
}

/* Sticky post marker */
.sticky { position: relative; }

/* Tag cloud widget */
.tagcloud, .wp-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a, .wp-tag-cloud a { display: inline-block; padding: 6px 14px; background: var(--bp-bg-light); border-radius: 999px; color: var(--bp-text-secondary); font-weight: 500; line-height: 1.4; }
.tagcloud a:hover, .wp-tag-cloud a:hover { background: var(--bp-primary); color: #fff; }

/* Calendar widget */
.widget_calendar table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.widget_calendar caption { font-weight: 700; margin-bottom: 10px; }
.widget_calendar th, .widget_calendar td { padding: 6px; text-align: center; border: 1px solid var(--bp-border-light); }
.widget_calendar #today { background: var(--bp-primary); color: #fff; border-radius: 4px; }

/* RSS widget */
.widget_rss .rss-widget { list-style: none; padding: 0; margin: 0; }
.widget_rss .rsswidget { font-weight: 600; color: var(--bp-dark); }
.widget_rss .rss-date { font-size: 0.82rem; color: var(--bp-text-secondary); display: block; margin: 4px 0; }
.widget_rss .rssSummary { font-size: 0.9rem; color: var(--bp-text-secondary); margin: 8px 0; }

/* Archives / Categories widget with count */
.widget li span { color: var(--bp-text-secondary); font-size: 0.85rem; margin-left: 6px; }

/* Text widget */
.widget_text p:last-child { margin-bottom: 0; }

/* Recent Comments */
.widget_recent_comments li span { display: block; margin-bottom: 4px; color: var(--bp-text-secondary); font-size: 0.85rem; }
.widget_recent_comments li a.url { font-weight: 600; }

/* Search in 404 and search pages */
.no-content .search-form, .error-404 .search-form { max-width: 100%; margin: 0; }


/* Archive Grid */
.archive-header {
    background: var(--bp-bg-light);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--bp-border-light);
}
.archive-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
}
.archive-title span { color: var(--bp-primary); }
.archive-description {
    color: var(--bp-text-secondary);
    max-width: 600px;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--bp-border-light);
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--bp-border-light);
    border-radius: var(--bp-radius);
    color: var(--bp-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--bp-transition);
}
.pagination a:hover,
.pagination .current {
    background: var(--bp-primary);
    color: #fff;
    border-color: var(--bp-primary);
}

/* Single Post */
.post-content-wrapper {
    max-width: 720px;
    margin: 0 auto;
}
.single-header { text-align: left; margin-bottom: 30px; }
.single-cat { margin-bottom: 16px; }
.single-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 20px;
}
.single-subtitle {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--bp-text-secondary);
    margin: 0 0 24px;
    padding: 0;
    font-weight: 400;
}
.single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
    color: var(--bp-text-secondary);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bp-border-light);
}
.single-meta .byline { display: flex; align-items: center; gap: 10px; }
.single-meta .author-avatar img { border-radius: 50%; width: 40px; height: 40px; }
.single-meta .author-name { color: var(--bp-text); font-weight: 600; }
.single-meta .meta-icon {
    display: inline-block;
    vertical-align: middle;
    margin: 0 6px 2px 0;
    flex-shrink: 0;
}
.single-meta .meta-date,
.single-meta .meta-reading {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}
.single-meta .updated-date {
    margin-left: 8px;
    color: var(--bp-text-secondary);
    opacity: 0.85;
    font-style: italic;
}

.single-featured-image {
    margin-bottom: 32px;
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
}
.single-featured-image img { width: 100%; }
.single-featured-caption {
    margin-top: 12px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--bp-text-secondary);
    text-align: center;
    background: var(--bp-bg-light);
    border-radius: var(--bp-radius);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2d2d2d;
}
.entry-content h2 { margin-top: 2em; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.6em; font-size: 1.4rem; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    background: var(--bp-bg-light);
    border-left: 4px solid var(--bp-primary);
    border-radius: 0 var(--bp-radius) var(--bp-radius) 0;
    font-style: italic;
    color: var(--bp-text-secondary);
}
.entry-content img { border-radius: var(--bp-radius); margin: 1.5em 0; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--bp-primary); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }

/* Page Links (wp_link_pages) */
.page-links {
    clear: both;
    margin: 2em 0;
    padding: 16px 20px;
    background: var(--bp-bg-light);
    border-radius: var(--bp-radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.page-links-label {
    font-weight: 700;
    color: var(--bp-text);
    margin-right: 4px;
}
.page-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--bp-border-light);
    border-radius: 6px;
    font-weight: 600;
    color: var(--bp-text);
    transition: var(--bp-transition);
}
.page-link-item:hover,
.page-links a:hover .page-link-item {
    background: var(--bp-primary);
    color: #fff;
    border-color: var(--bp-primary);
}
.page-links .post-page-numbers.current .page-link-item {
    background: var(--bp-primary);
    color: #fff;
    border-color: var(--bp-primary);
}

/* In-Article Ad Wrapper */
.single-inline-ad-wrap {
    margin: 40px 0;
}

.post-share-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bp-border-light);
}
.post-share-bottom {
    margin: 30px 0 10px;
    padding: 18px 0 0;
    border: 0;
}
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.share-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bp-text-secondary);
}
.share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--bp-transition);
}
.share-btn:hover { transform: translateY(-2px); color: #fff; opacity: 0.9; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #000; }
.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-copy { background: var(--bp-text-secondary); }

.tags-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    margin-top: 30px;
    border-top: 1px solid var(--bp-border-light);
    border-bottom: 1px solid var(--bp-border-light);
}
.tags-label { font-weight: 600; color: var(--bp-text); margin-right: 8px; }
.tag-link {
    padding: 6px 14px;
    background: var(--bp-bg-light);
    border-radius: 999px;
    color: var(--bp-text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
}
.tag-link:hover { background: var(--bp-primary); color: #fff; }

/* Author Box */
.author-box {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    margin-top: 40px;
    padding: 28px;
    background: var(--bp-bg-light);
    border-radius: var(--bp-radius-lg);
    align-items: start;
}
.author-avatar-wrap img {
    border-radius: 50%;
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
}
.author-info { min-width: 0; }
.author-box-title {
    font-size: 1.1rem;
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.author-box-label {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.author-box-name {
    color: var(--bp-dark);
    font-size: 1.2rem;
}
.author-box-name:hover { color: var(--bp-primary); }
.author-box-bio {
    margin: 8px 0 0;
    color: var(--bp-text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .author-box {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    .author-avatar-wrap {
        max-width: 80px;
    }
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
}
.post-nav-item {
    padding: 20px;
    border: 1px solid var(--bp-border-light);
    border-radius: var(--bp-radius-lg);
    transition: var(--bp-transition);
}
.post-nav-item:hover { border-color: var(--bp-primary); }
.post-nav-empty {
    visibility: hidden;
    pointer-events: none;
}
.post-nav-label {
    display: block;
    font-size: 0.82rem;
    color: var(--bp-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.post-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bp-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-nav-next { text-align: right; }

/* Related Posts */
.related-section { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--bp-border-light); }
.related-header {
    margin-bottom: 28px;
}
.related-grid {
    margin-bottom: 0;
}

/* Single Comments Wrapper */
.single-comments-wrap {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--bp-border-light);
}

/* Sidebar */
.widget {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--bp-border-light);
    border-radius: var(--bp-radius-lg);
    margin-bottom: 24px;
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bp-border-light);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--bp-primary);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--bp-border-light); }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--bp-text); font-weight: 500; }
.widget a:hover { color: var(--bp-primary); }

.widget-popular-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    padding: 14px 0;
    align-items: start;
}
.widget-popular-list .widget-popular-image {
    position: relative;
    display: block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: var(--bp-radius);
    background: var(--bp-bg-light);
    flex-shrink: 0;
}
.widget-popular-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--bp-radius);
    display: block;
}
.widget-popular-rank {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 50%;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.widget-popular-list img.placeholder-image { width: 80px; height: 80px; object-fit: cover; }
.widget-popular-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.widget-popular-title a { color: var(--bp-dark); }
.widget-popular-title a:hover { color: var(--bp-primary); }
.widget-popular-date { font-size: 0.8rem; color: var(--bp-text-secondary); }

/* No content in grid - full span */
.no-content.span-full {
    grid-column: 1 / -1;
}

/* Comments template styling */
.comment-list, .comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-list .children {
    margin-top: 20px;
    padding-left: 24px;
    border-left: 2px solid var(--bp-border-light);
}
.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--bp-border-light);
}
.comment-list li:last-child > .comment-body {
    border-bottom: none;
}
.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.comment-author .fn {
    font-weight: 700;
    color: var(--bp-dark);
    font-style: normal;
}
.comment-metadata a {
    font-size: 0.85rem;
    color: var(--bp-text-secondary);
}
.comment-content {
    font-size: 0.98rem;
    color: var(--bp-text);
    line-height: 1.7;
}
.comment-content p:last-child {
    margin-bottom: 0;
}
.reply {
    margin-top: 12px;
}
.comment-reply-link {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bp-text-secondary);
    background: var(--bp-bg-light);
    border-radius: 999px;
    transition: var(--bp-transition);
}
.comment-reply-link:hover {
    background: var(--bp-primary);
    color: #fff;
}
.bypostauthor > .comment-body {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--bp-primary);
}
.comment-respond {
    margin-top: 40px;
    padding: 28px;
    background: var(--bp-bg-light);
    border-radius: var(--bp-radius-lg);
}
.comment-reply-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.comment-form p {
    margin-bottom: 16px;
}
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: var(--bp-text);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bp-border-light);
    border-radius: var(--bp-radius);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: var(--bp-transition);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--bp-primary);
}
.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}
.form-submit .submit {
    padding: 14px 32px;
    background: var(--bp-primary);
    color: #fff;
    border: none;
    border-radius: var(--bp-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--bp-transition);
}
.form-submit .submit:hover {
    background: var(--bp-primary-dark);
}

/* H1 on homepage if no posts H1 */
.home-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: 8px;
}
.home-description {
    text-align: center;
    color: var(--bp-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
}

/* Newsletter */
.newsletter-section {
    margin: 60px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--bp-primary) 0%, #FF6B6B 100%);
    border-radius: var(--bp-radius-lg);
    text-align: center;
    color: #fff;
}
.newsletter-title {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}
.newsletter-subtitle {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 12px;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--bp-radius);
    font-size: 1rem;
    outline: none;
}
.newsletter-form button {
    padding: 16px 32px;
    background: var(--bp-dark);
    color: #fff;
    border: none;
    border-radius: var(--bp-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--bp-transition);
}
.newsletter-form button:hover { background: #000; }

/* Advertisement Slots */
.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 20px;
    background: var(--bp-bg-light);
    border: 1px dashed var(--bp-border);
    border-radius: var(--bp-radius);
    margin: 30px 0;
}
.ad-slot-inline { margin: 40px 0; }
.ad-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bp-text-secondary);
    background: var(--bp-border-light);
    border-radius: 3px;
}
.ad-content { width: 100%; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.ad-slot-header, .ad-slot-footer { max-width: 728px; margin: 20px auto; }

/* Category Sections */
.category-section { margin-bottom: 60px; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.category-grid .cat-featured { grid-column: span 2; }
.category-grid .cat-featured .card-image { aspect-ratio: 16/10; }
.category-grid .cat-featured .card-title { font-size: 1.35rem; }

/* Footer */
.site-footer {
    background: var(--bp-dark);
    color: #9CA3AF;
    margin-top: 60px;
}
.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand .site-logo { color: #fff; display: inline-block; margin-bottom: 16px; }
.footer-description { font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #fff;
    transition: var(--bp-transition);
}
.footer-social a:hover { background: var(--bp-primary); transform: translateY(-2px); }
.footer-widget-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #9CA3AF;
    font-size: 0.95rem;
    transition: var(--bp-transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* 404 Page */
.error-404 {
    padding: 80px 0;
    text-align: center;
}
.error-404 .error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    line-height: 1;
    color: var(--bp-primary);
    margin-bottom: 20px;
}
.error-404 h1 { margin-bottom: 16px; }
.error-404 p {
    font-size: 1.1rem;
    color: var(--bp-text-secondary);
    margin-bottom: 32px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--bp-primary);
    color: #fff;
    border-radius: var(--bp-radius);
    font-weight: 700;
    border: 2px solid var(--bp-primary);
    cursor: pointer;
    transition: var(--bp-transition);
}
.btn:hover { background: var(--bp-primary-dark); color: #fff; border-color: var(--bp-primary-dark); transform: translateY(-1px); }
.btn.btn-outline { background: transparent; color: var(--bp-primary); }
.btn.btn-outline:hover { background: var(--bp-primary); color: #fff; }
.btn.btn-dark { background: var(--bp-dark); color: #fff; border-color: var(--bp-dark); }
.btn.btn-dark:hover { background: #000; color: #fff; border-color: #000; }

/* No Content */
.no-content {
    padding: 60px 20px;
    text-align: center;
    background: var(--bp-bg-light);
    border-radius: var(--bp-radius-lg);
}
.no-content h2 { margin-bottom: 12px; }
.no-content p { color: var(--bp-text-secondary); }

/* Page Template */
.page-header { margin-bottom: 30px; }
.page-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bp-border-light);
}
.page-content { max-width: 780px; }

/* Loading / Skeleton (basic) */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card, .single-header, .archive-header { animation: fadeIn 0.4s ease-out both; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bp-bg-light); }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--bp-primary); }

/* Responsive */
@media (max-width: 1100px) {
    .content-sidebar-wrapper { grid-template-columns: 1fr; }
    .posts-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid .cat-featured { grid-column: span 3; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main .card-image { min-height: auto; aspect-ratio: 16/10; }
    .posts-grid, .posts-grid.cols-2, .posts-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid .cat-featured { grid-column: span 2; }
}
@media (max-width: 768px) {
    :root { --bp-header-height: 60px; }
    .main-navigation { display: none; }
    .menu-toggle { display: inline-flex; }
    .hero-section, .site-content { padding: 24px 0; }
    .hero-sidebar .card { grid-template-columns: 110px 1fr; }
    .posts-grid, .posts-grid.cols-2, .posts-grid.cols-4 { grid-template-columns: 1fr; }
    .category-grid, .category-grid .cat-featured { grid-template-columns: 1fr; }
    .content-sidebar-wrapper { gap: 28px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-next { text-align: left; }
    .newsletter-section { padding: 40px 20px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-top { padding: 40px 0 24px; }
    .single-featured-image { margin-bottom: 24px; }
    .entry-content { font-size: 1rem; }
    .newsletter-form button { width: 100%; }
    .error-404 { padding: 40px 0; }
    .card-body { padding: 14px 16px 18px; }
    .hero-main .card-body { padding: 18px 20px 22px; }
}
@media (max-width: 480px) {
    .hero-sidebar .card { grid-template-columns: 1fr; }
    .hero-sidebar .card-image { aspect-ratio: 16/10; }
    .single-meta { gap: 12px; }
    .single-meta .byline { width: 100%; }
}

/* ================================================================
   RTL SUPPORT - Right-to-Left Languages (Arabic, Hebrew, etc.)
   Applies when body.rtl class exists (WordPress adds it automatically)
   ================================================================ */
body.rtl,
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

/* Lists padding swap */
body.rtl ul,
body.rtl ol,
html[dir="rtl"] ul,
html[dir="rtl"] ol {
    padding-left: 0;
    padding-right: 1.5em;
}

/* Site Header - menu alignment */
body.rtl .header-actions {
    flex-direction: row-reverse;
}

/* Primary nav RTL */
body.rtl .main-navigation ul ul {
    right: -9999px;
    left: auto;
}
body.rtl .main-navigation ul li:hover > ul {
    right: 0;
    left: auto;
}

/* Mobile Menu RTL - slides from left instead of right */
body.rtl .mobile-menu {
    right: auto;
    left: -100%;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}
body.rtl .mobile-menu.active {
    left: 0;
    right: auto;
}

/* Breadcrumbs RTL */
body.rtl .breadcrumbs-list {
    flex-direction: row-reverse;
    justify-content: flex-end;
}
body.rtl .breadcrumbs-list li::after {
    margin: 0 8px 0 0;
    content: '\\';
}

/* Post Meta RTL - direction swap */
body.rtl .single-meta .meta-icon {
    margin: 0 0 2px 6px;
}
body.rtl .single-meta .updated-date {
    margin-left: 0;
    margin-right: 8px;
}

/* Tags RTL */
body.rtl .tags-label {
    margin-right: 0;
    margin-left: 8px;
}

/* Post Navigation RTL - swap labels */
body.rtl .post-nav-next {
    text-align: left;
}
body.rtl .post-nav-prev {
    text-align: right;
}
body.rtl .post-nav .post-nav-label[aria-hidden="true"] {
    display: inline-block;
}
body.rtl .post-nav-prev .post-nav-label::before {
    content: '';
    display: none;
}

/* Content Sidebar Wrapper - swap columns */
body.rtl .content-sidebar-wrapper {
    grid-template-columns: 320px 1fr;
}
@media (max-width: 1100px) {
    body.rtl .content-sidebar-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Hero Grid RTL */
body.rtl .hero-sidebar .card {
    grid-template-columns: 1fr 140px;
}
body.rtl .hero-sidebar .card-body {
    padding: 14px 16px 14px 14px;
}

@media (max-width: 900px) {
    body.rtl .hero-sidebar .card {
        grid-template-columns: 1fr 110px;
    }
}
@media (max-width: 480px) {
    body.rtl .hero-sidebar .card {
        grid-template-columns: 1fr;
    }
}

/* Widget Popular List RTL */
body.rtl .widget-popular-list li {
    grid-template-columns: 1fr 80px;
}
body.rtl .widget-popular-rank {
    left: auto;
    right: -4px;
}

/* Breaking Ticker RTL - reverse animation direction */
body.rtl .breaking-ticker-list {
    animation-name: tickerScrollRTL;
}
@keyframes tickerScrollRTL {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
body.rtl .breaking-bar-inner {
    flex-direction: row-reverse;
}

/* Blockquote RTL */
body.rtl .entry-content blockquote {
    border-left: none;
    border-right: 4px solid var(--bp-primary);
    border-radius: var(--bp-radius) 0 0 var(--bp-radius);
}

/* By Post Author highlight RTL */
body.rtl .bypostauthor > .comment-body {
    padding-left: 0;
    padding-right: 20px;
    border-left: none;
    border-right: 3px solid var(--bp-primary);
}

/* Comments children RTL */
body.rtl .comment-list .children {
    padding-left: 0;
    padding-right: 24px;
    border-left: none;
    border-right: 2px solid var(--bp-border-light);
}

/* Footer links hover RTL */
body.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 4px;
}

/* Section title underline RTL */
body.rtl .section-title::after,
body.rtl .widget-title::after {
    left: auto;
    right: 0;
}
body.rtl .hero-title::before {
    margin-right: 0;
    margin-left: 10px;
}
body.rtl .section-title {
    gap: 10px;
}

/* Page Links RTL */
body.rtl .page-links-label {
    margin-right: 0;
    margin-left: 4px;
}

/* ============================================
   Author Archive Styles
   ============================================ */
.author-header-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.author-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.author-info-wrap {
    min-width: 0;
    flex: 1;
}
.author-title-tight {
    margin-bottom: 8px;
}
.author-description {
    margin: 0;
    max-width: 700px;
}
.author-stories-count {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--bp-text-secondary);
}
@media (max-width: 600px) {
    .author-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ============================================
   Search & 404 & No-Content Styles
   ============================================ */
.archive-search-form-wrap {
    margin-top: 20px;
    max-width: 500px;
}
.no-results-search-form {
    margin-top: 24px;
}
.no-results-home-btn {
    margin-top: 20px;
}
.error404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.error404-search-wrap {
    max-width: 420px;
    margin: 40px auto 0;
    text-align: left;
}
.error404-search-inner {
    margin-bottom: 16px;
}
.error404-recent-wrap {
    margin-top: 60px;
}
.error404-subheading {
    margin-bottom: 24px;
    font-size: 1.4rem;
}
.no-content-btn {
    margin-top: 20px;
}

/* ============================================
   Search Form Icon
   ============================================ */
.search-submit-icon {
    vertical-align: middle;
    margin-right: 6px;
}
.fallback-create-menu-link {
    color: var(--bp-primary);
    font-weight: 600;
}

/* ============================================
   Comments Template Styles
   ============================================ */
.comments-title-lg {
    font-size: 1.4rem;
    margin-bottom: 24px;
}
.comment-list-clean {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-item-base {
    padding: 20px 0;
    border-bottom: 1px solid var(--bp-border-light);
}
.comment-body-grid {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
}
.comment-meta-row {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.comment-author-bold {
    font-weight: 700;
    color: var(--bp-dark);
}
.comment-meta-sep {
    color: var(--bp-text-secondary);
    margin: 0 8px;
}
.comment-meta-time {
    color: var(--bp-text-secondary);
}
.comment-awaiting-text {
    color: var(--bp-primary);
    margin: 0 0 12px;
}
.comment-content-text {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 10px;
}
.no-comments-text {
    padding: 20px 0;
    color: var(--bp-text-secondary);
}
.comment-reply-title-lg {
    font-size: 1.3rem;
    margin: 30px 0 20px;
}
.comment-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.comment-form-required {
    color: var(--bp-primary);
}
.comment-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--bp-border-light);
    border-radius: var(--bp-radius);
    font-size: 1rem;
    transition: var(--bp-transition);
}
.comment-form-input:focus {
    outline: none;
    border-color: var(--bp-primary);
}
.comment-form-textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--bp-border-light);
    border-radius: var(--bp-radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: var(--bp-transition);
}
.comment-form-textarea:focus {
    outline: none;
    border-color: var(--bp-primary);
}

/* ============================================
   RTL - Author / Search / 404 / Comments
   ============================================ */
@media (max-width: 600px) {
    body.rtl .author-header-wrap {
        align-items: flex-start;
        text-align: right;
    }
}
body.rtl .archive-search-form-wrap,
body.rtl .error404-search-wrap {
    text-align: right;
}
body.rtl .search-submit-icon {
    margin-right: 0;
    margin-left: 6px;
}
body.rtl .comment-body-grid {
    grid-template-columns: 1fr 48px;
}
body.rtl .comment-meta-sep {
    margin: 0 8px;
}
body.rtl .error404-recent-wrap .posts-grid,
body.rtl .archive-header .archive-search-form-wrap,
body.rtl .no-content .no-results-search-form {
    direction: rtl;
}

/* Share buttons RTL - swap label */
body.rtl .share-label {
    margin-right: 0;
}
body.rtl .post-share-top,
body.rtl .post-share-bottom {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Search form RTL */
body.rtl .search-form {
    direction: rtl;
}

/* Skip link RTL */
body.rtl .skip-link {
    left: auto;
    right: 0;
    border-radius: 0 0 0 var(--bp-radius);
}

/* Toast RTL - center position should work as-is, but ensure text alignment */
body.rtl .buzzpulse-toast {
    direction: rtl;
    text-align: right;
}

/* Footer social RTL */
body.rtl .footer-social {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Author box RTL */
body.rtl .author-box {
    grid-template-columns: 1fr 100px;
}
@media (max-width: 600px) {
    body.rtl .author-box {
        grid-template-columns: 1fr;
    }
}

/* Category featured in grid RTL */
body.rtl .category-grid .cat-featured {
    /* already works with grid columns */
}

/* Fallback menu RTL */
body.rtl .fallback-menu {
    justify-content: flex-start;
}

/* Sticky header admin bar RTL - same as LTR */
body.rtl.admin-bar .site-header {
    top: 32px;
}

/* Pagination RTL text symbols */
body.rtl .pagination .prev::before,
body.rtl .pagination .next::after {
    /* already handled by WordPress */
}

/* Large post card RTL */
body.rtl .hero-main .card-body {
    /* padding same */
}

/* Adminbar fix for RTL mobile */
@media screen and (max-width: 782px) {
    body.rtl.admin-bar .site-header {
        top: 46px;
    }
}
@media screen and (min-width: 783px) {
    body.rtl.admin-bar .site-header {
        top: 32px;
    }
}
