/*
Theme Name: Botcrawl Theme
Theme URI: https://botcrawl.com
Author: Botcrawl
Author URI: https://botcrawl.com
Description: A mobile-first, professional tech blog theme for cybersecurity news, data breaches, AI, and in-depth articles.
Version: 1.5.6
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: botcrawl
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    --bc-text: #1a1a1a;
    --bc-text-light: #4a4a4a;
    --bc-text-muted: #777777;
    --bc-accent: #14e21c;
    --bc-accent-dark: #10b816;
    --bc-accent-light: rgba(20, 226, 28, 0.1);
    --bc-bg: #ffffff;
    --bc-bg-alt: #f5f7f9;
    --bc-border: #e0e4e8;
    --bc-header-bg: #000000;
    --bc-header-text: #ffffff;
    --bc-footer-bg: #111111;
    --bc-footer-text: #b0b0b0;
    --bc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bc-font-mono: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    --bc-font-size-base: 1rem;
    --bc-line-height: 1.75;
    --bc-container: 1200px;
    --bc-container-narrow: 800px;
    --bc-gap: 1.5rem;
    --bc-gap-lg: 2.5rem;
    --bc-radius: 8px;
    --bc-radius-sm: 4px;
    --bc-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --bc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --bc-transition: 0.2s ease;
    --bc-logo-width: 150px;
    --bc-logo-width-mobile: 150px;
}

/* ==========================================================================
   MOBILE-FIRST RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--bc-font-sans);
    font-size: var(--bc-font-size-base);
    line-height: var(--bc-line-height);
    color: var(--bc-text);
    background-color: var(--bc-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Force all elements to respect viewport */
.bc-container,
.bc-main,
.bc-layout,
.bc-layout__main,
.bc-post,
.bc-post__content,
article,
section,
main,
header,
footer,
aside,
nav,
div {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Images NEVER exceed container */
img, figure, picture, video, canvas, svg, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

img { display: block; }

/* Tables scroll horizontally */
table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bc-border);
}

th {
    font-weight: 600;
    background-color: var(--bc-bg-alt);
    white-space: nowrap;
}

/* Code blocks scroll */
pre {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: var(--bc-radius);
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
}

code {
    font-family: var(--bc-font-mono);
    font-size: 0.875em;
    background-color: var(--bc-bg-alt);
    padding: 0.2rem 0.4rem;
    border-radius: var(--bc-radius-sm);
    word-break: break-word;
}

/* Gutenberg blocks */
.wp-block-columns,
.wp-block-group,
.wp-block-cover,
.wp-block-image,
.wp-block-gallery,
.wp-block-embed,
.wp-block-video,
.wp-block-audio,
.wp-block-table {
    max-width: 100%;
    overflow: hidden;
}

.wp-block-table table {
    display: block;
    overflow-x: auto;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Image Alignment (WordPress Classic & Block Editor)
   ========================================================================== */

/* Center alignment */
.aligncenter,
img.aligncenter,
.wp-block-image.aligncenter,
.wp-block-image.is-style-default.aligncenter,
figure.aligncenter,
.wp-caption.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    float: none !important;
    clear: both !important;
}

.wp-block-image.aligncenter img,
.wp-block-image.aligncenter figure,
figure.aligncenter img {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Left alignment */
.alignleft,
img.alignleft,
.wp-block-image.alignleft,
figure.alignleft,
.wp-caption.alignleft {
    float: left !important;
    margin: 0.5rem 1.5rem 1rem 0 !important;
    clear: left !important;
}

/* Right alignment */
.alignright,
img.alignright,
.wp-block-image.alignright,
figure.alignright,
.wp-caption.alignright {
    float: right !important;
    margin: 0.5rem 0 1rem 1.5rem !important;
    clear: right !important;
}

/* No alignment - default block behavior */
.alignnone,
img.alignnone,
.wp-block-image.alignnone,
figure.alignnone {
    display: block;
    margin: 1.5rem 0;
}

/* Captions */
.wp-block-image figcaption,
figure figcaption,
.wp-caption-text {
    font-size: 0.875rem;
    color: var(--bc-text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Clear floats after aligned images */
.bc-post__content::after,
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Clearfix for paragraphs after floated images */
.bc-post__content p::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure block images respect alignment */
.wp-block-image {
    margin: 1.5rem 0;
    max-width: 100%;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bc-radius);
}

/* Full and wide width images */
.wp-block-image.alignfull,
.wp-block-image.alignwide {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.wp-block-image.alignfull img,
.wp-block-image.alignwide img {
    width: 100%;
}

/* Post content specific alignment overrides */
.bc-post__content .aligncenter,
.bc-post__content img.aligncenter,
.bc-post__content .wp-block-image.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.bc-post__content .alignleft,
.bc-post__content img.alignleft,
.bc-post__content .wp-block-image.alignleft {
    float: left !important;
    margin: 0.5rem 1.5rem 1rem 0 !important;
}

.bc-post__content .alignright,
.bc-post__content img.alignright,
.bc-post__content .wp-block-image.alignright {
    float: right !important;
    margin: 0.5rem 0 1rem 1.5rem !important;
}

/* Max width for floated images to prevent overflow */
.bc-post__content .alignleft,
.bc-post__content .alignright {
    max-width: 50%;
}

@media (max-width: 600px) {
    .bc-post__content .alignleft,
    .bc-post__content .alignright {
        float: none !important;
        margin: 1.5rem auto !important;
        max-width: 100%;
        display: block !important;
    }
}

/* ==========================================================================
   WordPress Gallery Styling
   ========================================================================== */

/* Block Editor Gallery */
.wp-block-gallery {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

/* Gallery column layouts */
.wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.wp-block-gallery.columns-5 { grid-template-columns: repeat(5, 1fr); }
.wp-block-gallery.columns-6 { grid-template-columns: repeat(6, 1fr); }
.wp-block-gallery.columns-7 { grid-template-columns: repeat(7, 1fr); }
.wp-block-gallery.columns-8 { grid-template-columns: repeat(8, 1fr); }

/* Modern block gallery with has-nested-images */
.wp-block-gallery.has-nested-images {
    display: grid;
    gap: 0.75rem;
}

.wp-block-gallery.has-nested-images.columns-default,
.wp-block-gallery.has-nested-images.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Gallery figure items */
.wp-block-gallery .wp-block-image,
.wp-block-gallery figure {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--bc-radius-sm);
}

/* Gallery images */
.wp-block-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--bc-radius-sm);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wp-block-gallery img:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Gallery captions */
.wp-block-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 0.8125rem;
    text-align: center;
    margin: 0;
    font-style: normal;
}

/* Gallery figure with caption positioning */
.wp-block-gallery .wp-block-image {
    position: relative;
}

/* Classic Editor Gallery */
.gallery {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 0;
    clear: both;
}

.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery-item {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--bc-radius-sm);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--bc-radius-sm);
    border: none !important;
}

.gallery-caption {
    display: block;
    padding: 0.5rem;
    font-size: 0.8125rem;
    color: var(--bc-text-muted);
    text-align: center;
    background-color: var(--bc-bg-alt);
    margin: 0;
}

/* Gallery responsive - tablet */
@media (max-width: 900px) {
    .wp-block-gallery.columns-4,
    .wp-block-gallery.columns-5,
    .wp-block-gallery.columns-6,
    .wp-block-gallery.columns-7,
    .wp-block-gallery.columns-8,
    .wp-block-gallery.has-nested-images.columns-4,
    .wp-block-gallery.has-nested-images.columns-5,
    .wp-block-gallery.has-nested-images.columns-6,
    .wp-block-gallery.has-nested-images.columns-7,
    .wp-block-gallery.has-nested-images.columns-8 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6,
    .gallery-columns-7,
    .gallery-columns-8,
    .gallery-columns-9 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Gallery responsive - mobile */
@media (max-width: 600px) {
    .wp-block-gallery.columns-2,
    .wp-block-gallery.columns-3,
    .wp-block-gallery.columns-4,
    .wp-block-gallery.columns-5,
    .wp-block-gallery.columns-6,
    .wp-block-gallery.columns-7,
    .wp-block-gallery.columns-8,
    .wp-block-gallery.has-nested-images.columns-default,
    .wp-block-gallery.has-nested-images.columns-2,
    .wp-block-gallery.has-nested-images.columns-3,
    .wp-block-gallery.has-nested-images.columns-4,
    .wp-block-gallery.has-nested-images.columns-5,
    .wp-block-gallery.has-nested-images.columns-6,
    .wp-block-gallery.has-nested-images.columns-7,
    .wp-block-gallery.has-nested-images.columns-8 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wp-block-gallery.columns-1,
    .wp-block-gallery.has-nested-images.columns-1 {
        grid-template-columns: 1fr;
    }
    
    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6,
    .gallery-columns-7,
    .gallery-columns-8,
    .gallery-columns-9 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-columns-1 {
        grid-template-columns: 1fr;
    }
    
    .wp-block-gallery {
        gap: 0.5rem;
    }
    
    .gallery {
        gap: 0.5rem;
    }
}

/* Cropped gallery images (default WordPress behavior) */
.wp-block-gallery.is-cropped .wp-block-image,
.wp-block-gallery.is-cropped figure {
    aspect-ratio: 1 / 1;
}

.wp-block-gallery.is-cropped img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Gallery links - remove default styling */
.wp-block-gallery a,
.gallery a {
    display: block;
    border: none;
    box-shadow: none;
}

.wp-block-gallery a:hover,
.gallery a:hover {
    opacity: 1;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */
a {
    color: var(--bc-accent);
    text-decoration: none;
    transition: color var(--bc-transition);
}

a:hover { color: var(--bc-accent-dark); }

body.bc-link-underlines .bc-post__content a:not(.bc-post-tags__tag):not(.bc-btn) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.bc-link-underlines .bc-post__content a:hover {
    text-decoration: none;
}

/* ==========================================================================
   Global Button Styles
   ========================================================================== */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.bc-btn,
.wp-block-button__link,
.wpcf7-submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--bc-accent);
    color: #000000;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--bc-radius-sm);
    cursor: pointer;
    transition: all var(--bc-transition);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.bc-btn:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover {
    background-color: var(--bc-accent-dark);
    color: #000000;
    transform: translateY(-1px);
}

button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
.bc-btn:focus {
    outline: 2px solid var(--bc-accent);
    outline-offset: 2px;
}

/* Secondary/Outline Button */
.bc-btn--secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--bc-accent);
    border: 2px solid var(--bc-accent);
}

.bc-btn--secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--bc-accent);
    color: #000000;
}

/* Small Button */
.bc-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* Large Button */
.bc-btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--bc-text);
    margin: 0 0 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin: 0 0 1.5rem; }

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

li { margin-bottom: 0.5rem; }
li:last-child { margin-bottom: 0; }

blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--bc-bg-alt);
    border-left: 4px solid var(--bc-accent);
    font-style: italic;
    font-size: 1.0625rem;
}

blockquote p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Layout
   ========================================================================== */
.bc-container {
    width: 100%;
    max-width: var(--bc-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.bc-container--narrow { max-width: var(--bc-container-narrow); }
.bc-container--wide { max-width: 1400px; }

.bc-main {
    min-height: 50vh;
    padding: var(--bc-gap-lg) 0;
}

/* Single post main - NO top padding, hero touches header */
.bc-single-post {
    padding-top: 0;
    padding-bottom: 4rem;
}

/* Homepage - NO top padding, hero section handles spacing */
.bc-main--homepage { padding-top: 0; }

/* Archive pages - NO top padding, archive hero section handles spacing */
.bc-main--archive { padding-top: 0; }

.bc-layout {
    display: grid;
    gap: var(--bc-gap-lg);
}

.bc-layout--sidebar {
    grid-template-columns: 1fr 320px;
}

.bc-layout--no-sidebar {
    grid-template-columns: 1fr;
}

.bc-layout__main {
    min-width: 0;
}

.bc-layout__sidebar {
    min-width: 0;
}

/* ==========================================================================
   Header - Clean, centered menu items with slightly more padding
   ========================================================================== */
.bc-header {
    position: relative;
    z-index: 1000;
    background-color: var(--bc-header-bg);
    color: var(--bc-header-text);
}

/* Sticky Header - enabled via Customizer */
.bc-header--sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Body padding when sticky header is active */
body.has-sticky-header {
    padding-top: 64px;
}

@media (max-width: 900px) {
    body.has-sticky-header {
        padding-top: 60px;
    }
}

.bc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.875rem 0; /* Increased from 0.75rem for slightly taller header */
    min-height: 64px; /* Increased from 60px */
}

.bc-header__logo {
    flex-shrink: 0;
}

.bc-header__logo a {
    display: flex;
    align-items: center;
    color: var(--bc-header-text);
    text-decoration: none;
}

/* Site title text when no logo is set */
.bc-header__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bc-header-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.bc-header__logo-text:hover {
    color: var(--bc-accent);
}

.bc-header__logo img {
    max-width: var(--bc-logo-width);
    width: auto;
    height: auto;
    display: block;
}

/* Navigation - Centered, aligned items */
.bc-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.bc-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.bc-header__menu-item {
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.bc-header__menu-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    color: var(--bc-header-text);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.4;
    border-radius: var(--bc-radius-sm);
    transition: all var(--bc-transition);
    white-space: nowrap;
    text-decoration: none;
}

.bc-header__menu-item > a:hover,
.bc-header__menu-item.current-menu-item > a,
.bc-header__menu-item.current-menu-ancestor > a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bc-accent);
}

/* Dropdown arrow */
.bc-header__menu-item.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

/* Dropdown menu */
.bc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--bc-header-bg);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bc-transition);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.bc-header__menu-item:hover > .bc-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bc-dropdown .bc-header__menu-item > a {
    padding: 0.625rem 1.25rem;
    border-radius: 0;
    justify-content: flex-start;
}

/* Search */
.bc-header__search { flex-shrink: 0; }

.bc-search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--bc-radius);
    overflow: hidden;
}

.bc-search-form__input {
    width: 180px;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--bc-header-text);
    font-size: 0.875rem;
    outline: none;
}

.bc-search-form__input::placeholder { color: rgba(255, 255, 255, 0.5); }

.bc-search-form__btn {
    padding: 0.5rem 0.875rem;
    background: none;
    border: none;
    color: var(--bc-header-text);
    cursor: pointer;
    transition: color var(--bc-transition);
}

.bc-search-form__btn:hover { color: var(--bc-accent); }
.bc-search-form__btn svg { width: 18px; height: 18px; display: block; }

/* Share Button in Header */
.bc-share-btn {
    position: relative;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.bc-share-btn__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--bc-radius);
    color: var(--bc-header-text);
    cursor: pointer;
    transition: all var(--bc-transition);
}

.bc-share-btn__trigger:hover {
    background: var(--bc-accent);
    color: #000;
}

.bc-share-btn__trigger svg {
    width: 20px;
    height: 20px;
    display: block;
}

.bc-share-btn__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    min-width: 180px;
    padding: 0.5rem;
    background: var(--bc-header-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--bc-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--bc-transition);
}

.bc-share-btn__dropdown[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bc-share-btn__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--bc-header-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--bc-radius) - 2px);
    transition: all var(--bc-transition);
}

.bc-share-btn__link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bc-share-btn__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Platform hover colors */
.bc-share-btn__link--x:hover { background: #000; color: #fff; }
.bc-share-btn__link--facebook:hover { background: #1877f2; color: #fff; }
.bc-share-btn__link--linkedin:hover { background: #0a66c2; color: #fff; }
.bc-share-btn__link--reddit:hover { background: #ff4500; color: #fff; }
.bc-share-btn__link--whatsapp:hover { background: #25d366; color: #fff; }
.bc-share-btn__link--telegram:hover { background: #0088cc; color: #fff; }
.bc-share-btn__link--email:hover { background: var(--bc-accent); color: #000; }

/* Mobile Toggle Buttons - Hidden on desktop */
.bc-menu-toggle,
.bc-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    color: var(--bc-header-text);
    cursor: pointer;
}

.bc-menu-toggle svg,
.bc-search-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ==========================================================================
   Single Post Hero - Vertically centered content, larger title
   ========================================================================== */
.bc-post-hero {
    position: relative;
    width: 100%;
    background-color: var(--bc-header-bg);
    overflow: hidden;
    margin-top: 0;
}

.bc-post-hero__image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bc-post-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-post-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* Hero inner container - Vertically centered */
.bc-post-hero__inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 1.25rem 0;
    color: #ffffff;
}

.bc-post-hero--has-image .bc-post-hero__inner {
    min-height: 380px;
}

/* Breadcrumbs - at top */
.bc-post-hero__breadcrumbs {
    flex-shrink: 0;
}

.bc-post-hero__breadcrumbs .bc-breadcrumbs {
    justify-content: flex-start;
}

/* Breadcrumbs - centered when hero is centered */
.bc-post-hero__breadcrumbs--center {
    text-align: center;
}

.bc-post-hero__breadcrumbs--center .bc-breadcrumbs {
    justify-content: center;
}

/* Hero content - Vertically centered */
.bc-post-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

/* Default: Left-aligned */
.bc-post-hero__content--left {
    text-align: left;
    align-items: flex-start;
}

.bc-post-hero__content--left .bc-post-hero__meta {
    justify-content: flex-start;
}

/* Option: Centered */
.bc-post-hero__content--center {
    text-align: center;
    align-items: center;
}

.bc-post-hero__content--center .bc-post-hero__meta {
    justify-content: center;
}

/* ==========================================================================
   Category Badge Styles
   ========================================================================== */

/* Style: Button (default) */
.bc-post-hero__category,
.bc-category-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 0.4rem 0.875rem;
    background-color: var(--bc-accent);
    color: #000000;
    border-radius: var(--bc-radius-sm);
    margin-bottom: 0.875rem;
    transition: all var(--bc-transition);
}

/* Style: Pill */
.bc-category-badge--pill {
    border-radius: 50px;
    padding: 0.4rem 1rem;
}

/* Style: Tag */
.bc-category-badge--tag {
    background-color: transparent;
    color: var(--bc-accent);
    border: 1px solid var(--bc-accent);
    padding: 0.35rem 0.75rem;
}

/* Style: Outline */
.bc-category-badge--outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Style: Gradient/Glow (techy) */
.bc-category-badge--glow {
    background: linear-gradient(135deg, var(--bc-accent) 0%, #00d4ff 100%);
    color: #000000;
    box-shadow: 0 0 20px rgba(20, 226, 28, 0.4);
}

/* Style: Fade (fading edges) */
.bc-category-badge--fade {
    background: linear-gradient(90deg, var(--bc-accent) 0%, rgba(20, 226, 28, 0.3) 100%);
    color: #000000;
    border-radius: 0 50px 50px 0;
    padding-right: 1.25rem;
}

/* Style: Minimal/None */
.bc-category-badge--minimal {
    background: none;
    padding: 0;
    color: var(--bc-accent);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Style: Cyber (techy/hacker aesthetic) */
.bc-category-badge--cyber {
    background-color: rgba(20, 226, 28, 0.15);
    color: var(--bc-accent);
    border: 1px solid var(--bc-accent);
    border-radius: 0;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

/* Style: Neon (glowing border effect) */
.bc-category-badge--neon {
    background-color: transparent;
    color: var(--bc-accent);
    border: 2px solid var(--bc-accent);
    box-shadow: 0 0 8px var(--bc-accent), 0 0 16px rgba(20, 226, 28, 0.3), inset 0 0 8px rgba(20, 226, 28, 0.1);
    text-shadow: 0 0 8px var(--bc-accent);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 8px var(--bc-accent), 0 0 16px rgba(20, 226, 28, 0.3), inset 0 0 8px rgba(20, 226, 28, 0.1);
    }
    100% {
        box-shadow: 0 0 12px var(--bc-accent), 0 0 24px rgba(20, 226, 28, 0.5), inset 0 0 12px rgba(20, 226, 28, 0.2);
    }
}

/* ==========================================================================
   Hero Content Size Variants
   ========================================================================== */

/* Hero Content Size Variants - Desktop Only */
@media (min-width: 769px) {
    /* Compact Size */
    .bc-post-hero--size-compact .bc-category-badge { font-size: 0.625rem; padding: 0.3rem 0.7rem; }
    .bc-post-hero--size-compact .bc-post-hero__title { font-size: 2rem; }
    .bc-post-hero--size-compact .bc-post-hero__meta { font-size: 0.8125rem; }
    
    /* Large Size */
    .bc-post-hero--size-large .bc-category-badge { font-size: 0.75rem; padding: 0.5rem 1rem; }
    .bc-post-hero--size-large .bc-post-hero__title { font-size: 3.25rem; }
    .bc-post-hero--size-large .bc-post-hero__meta { font-size: 1rem; }
    
    /* Extra Large Size */
    .bc-post-hero--size-xlarge .bc-category-badge { font-size: 0.875rem; padding: 0.6rem 1.25rem; }
    .bc-post-hero--size-xlarge .bc-post-hero__title { font-size: 4rem; }
    .bc-post-hero--size-xlarge .bc-post-hero__meta { font-size: 1.125rem; }
}

/* Mobile - Fixed optimal sizes regardless of size setting */
@media (max-width: 768px) {
    .bc-post-hero__title {
        font-size: 1.5rem !important;
    }
    .bc-post-hero__meta {
        font-size: 0.8125rem !important;
    }
    .bc-category-badge {
        font-size: 0.625rem !important;
        padding: 0.3rem 0.6rem !important;
    }
}

/* ==========================================================================
   Hero Color Overlays
   ========================================================================== */

.bc-post-hero--overlay-green .bc-post-hero__overlay {
    background: linear-gradient(to top, rgba(0, 50, 0, 0.9) 0%, rgba(0, 80, 0, 0.5) 50%, rgba(20, 226, 28, 0.2) 100%);
}

.bc-post-hero--overlay-blue .bc-post-hero__overlay {
    background: linear-gradient(to top, rgba(0, 20, 60, 0.9) 0%, rgba(0, 50, 100, 0.5) 50%, rgba(0, 100, 200, 0.2) 100%);
}

.bc-post-hero--overlay-red .bc-post-hero__overlay {
    background: linear-gradient(to top, rgba(60, 0, 0, 0.9) 0%, rgba(100, 0, 0, 0.5) 50%, rgba(200, 0, 0, 0.2) 100%);
}

.bc-post-hero--overlay-purple .bc-post-hero__overlay {
    background: linear-gradient(to top, rgba(40, 0, 60, 0.9) 0%, rgba(80, 0, 120, 0.5) 50%, rgba(150, 0, 200, 0.2) 100%);
}

.bc-post-hero--overlay-black .bc-post-hero__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.bc-post-hero--overlay-white .bc-post-hero__overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.2) 100%);
}

.bc-post-hero--overlay-white .bc-post-hero__title,
.bc-post-hero--overlay-white .bc-post-hero__meta,
.bc-post-hero--overlay-white .bc-breadcrumbs {
    color: #1a1a1a;
}

/* ==========================================================================
   Hero Pattern Overlays
   ========================================================================== */

.bc-post-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.3;
}

/* Static/Noise */
.bc-post-hero__pattern--static {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
}

/* Horizontal Bars */
.bc-post-hero__pattern--bars {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(255, 255, 255, 0.03) 3px,
        rgba(255, 255, 255, 0.03) 4px
    );
    opacity: 1;
}

/* Grid */
.bc-post-hero__pattern--grid {
    background-image: 
        linear-gradient(rgba(20, 226, 28, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 226, 28, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* Dots/Halftone */
.bc-post-hero__pattern--dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 1;
}

/* Diagonal Lines */
.bc-post-hero__pattern--diagonal {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 11px
    );
    opacity: 1;
}

/* Circuit Board */
.bc-post-hero__pattern--circuit {
    background-image: 
        linear-gradient(90deg, transparent 49%, rgba(20, 226, 28, 0.1) 49%, rgba(20, 226, 28, 0.1) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(20, 226, 28, 0.1) 49%, rgba(20, 226, 28, 0.1) 51%, transparent 51%);
    background-size: 60px 60px;
    opacity: 0.6;
}

/* ==========================================================================
   Hero Animation Effects
   ========================================================================== */

.bc-post-hero__animation {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

/* Matrix Code Rain - FIXED */
.bc-post-hero__animation--matrix {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 20, 0, 0.3) 100%);
}

.bc-post-hero__animation--matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, 
            transparent 0px, transparent 20px,
            rgba(20, 226, 28, 0.03) 20px, rgba(20, 226, 28, 0.03) 21px
        );
}

.bc-post-hero__animation--matrix::after {
    content: '10110101 01001101 11010010 00101110 10101011 01110010 11001101 00011010 10110011 01010101 11100110 00101001';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300%;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 4px;
    color: var(--bc-accent);
    opacity: 0.25;
    text-shadow: 0 0 8px var(--bc-accent), 0 0 16px rgba(20, 226, 28, 0.5);
    writing-mode: vertical-rl;
    animation: matrix-rain 15s linear infinite;
}

@keyframes matrix-rain {
    0% { transform: translateY(-66%); }
    100% { transform: translateY(0%); }
}

/* Scan Lines */
.bc-post-hero__animation--scanline {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
}

.bc-post-hero__animation--scanline::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--bc-accent) 50%, transparent 100%);
    opacity: 0.6;
    box-shadow: 0 0 20px var(--bc-accent);
    animation: scanline-sweep 3s linear infinite;
}

@keyframes scanline-sweep {
    0% { top: -4px; }
    100% { top: 100%; }
}

/* Particle Sparks - FIXED with multiple layers */
.bc-post-hero__animation--particles {
    background: transparent;
}

.bc-post-hero__animation--particles::before,
.bc-post-hero__animation--particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bc-accent);
    box-shadow: 
        20px 40px 0 var(--bc-accent),
        80px 120px 0 var(--bc-accent),
        150px 30px 0 var(--bc-accent),
        200px 150px 0 var(--bc-accent),
        280px 80px 0 var(--bc-accent),
        350px 200px 0 var(--bc-accent),
        420px 60px 0 var(--bc-accent),
        500px 180px 0 var(--bc-accent),
        580px 100px 0 var(--bc-accent),
        650px 220px 0 var(--bc-accent),
        720px 50px 0 var(--bc-accent),
        800px 160px 0 var(--bc-accent),
        880px 90px 0 var(--bc-accent),
        950px 200px 0 var(--bc-accent),
        1020px 70px 0 var(--bc-accent),
        1100px 140px 0 var(--bc-accent);
    opacity: 0.5;
    animation: particles-sparkle 4s ease-in-out infinite;
}

.bc-post-hero__animation--particles::after {
    animation-delay: -2s;
    transform: translateX(40px) translateY(30px);
}

@keyframes particles-sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    25% { opacity: 0.7; transform: scale(1.2); }
    50% { opacity: 0.4; transform: scale(0.8); }
    75% { opacity: 0.8; transform: scale(1.1); }
}

/* Glitch Effect */
.bc-post-hero__animation--glitch {
    mix-blend-mode: screen;
}

.bc-post-hero__animation--glitch::before,
.bc-post-hero__animation--glitch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.1) 0%, transparent 50%, rgba(0, 255, 255, 0.1) 100%);
    opacity: 0;
    animation: glitch-flash 4s ease-in-out infinite;
}

.bc-post-hero__animation--glitch::after {
    animation-delay: -2s;
}

@keyframes glitch-flash {
    0%, 90%, 100% { opacity: 0; transform: translateX(0); }
    92% { opacity: 0.8; transform: translateX(-5px); }
    94% { opacity: 0; transform: translateX(5px); }
    96% { opacity: 0.6; transform: translateX(-3px); }
    98% { opacity: 0; }
}

/* Pulse Glow */
.bc-post-hero__animation--pulse {
    background: radial-gradient(ellipse at center, rgba(20, 226, 28, 0.15) 0%, transparent 60%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Cyber Glitch - Combo of glitch + scanlines */
.bc-post-hero__animation--cyberglitch {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
}

.bc-post-hero__animation--cyberglitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(20, 226, 28, 0.05) 25%,
        transparent 50%,
        rgba(255, 0, 100, 0.05) 75%,
        transparent 100%
    );
    animation: cyber-scan 2s linear infinite;
}

.bc-post-hero__animation--cyberglitch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.1) 0%, transparent 50%, rgba(0, 255, 255, 0.1) 100%);
    opacity: 0;
    animation: cyber-glitch 3s ease-in-out infinite;
}

@keyframes cyber-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes cyber-glitch {
    0%, 85%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
    87% { opacity: 1; clip-path: inset(20% 0 60% 0); }
    89% { opacity: 0; clip-path: inset(40% 0 30% 0); }
    91% { opacity: 1; clip-path: inset(60% 0 20% 0); }
    93% { opacity: 0; }
}

/* Data Stream - Flowing horizontal lines */
.bc-post-hero__animation--datastream::before,
.bc-post-hero__animation--datastream::after {
    content: '';
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--bc-accent) 50%, transparent 100%);
    opacity: 0.6;
    animation: datastream-flow 3s linear infinite;
}

.bc-post-hero__animation--datastream::before {
    top: 30%;
    width: 60%;
    left: -60%;
}

.bc-post-hero__animation--datastream::after {
    top: 70%;
    width: 40%;
    left: -40%;
    animation-delay: -1.5s;
    animation-duration: 2.5s;
}

@keyframes datastream-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 100%)); }
}

/* Radar Sweep */
.bc-post-hero__animation--radar {
    background: radial-gradient(circle at center, transparent 0%, transparent 30%, rgba(20, 226, 28, 0.05) 30%, transparent 31%);
    background-size: 200% 200%;
    background-position: center;
}

.bc-post-hero__animation--radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(20, 226, 28, 0.3) 30deg, transparent 60deg);
    transform-origin: 0 0;
    animation: radar-sweep 4s linear infinite;
}

@keyframes radar-sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Title - LARGER (doubled) */
.bc-post-hero__title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

/* Left-aligned title - constrain width for readability */
.bc-post-hero__content--left .bc-post-hero__title {
    max-width: 900px;
}

/* Centered title - wider to fill the hero area naturally */
.bc-post-hero__content--center .bc-post-hero__title {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Meta */
.bc-post-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.bc-post-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.bc-post-hero__meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.75;
    flex-shrink: 0;
}

.bc-post-hero__author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.bc-post-hero__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-post-hero__meta-sep {
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.bc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.bc-breadcrumbs a {
    color: inherit;
    opacity: 0.8;
}

.bc-breadcrumbs a:hover {
    opacity: 1;
    color: var(--bc-accent);
}

.bc-breadcrumbs__sep { opacity: 0.5; }

.bc-breadcrumbs__current {
    opacity: 0.6;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Author Byline - Compact single-line above content
   ========================================================================== */
.bc-author-byline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bc-border);
}

.bc-author-byline__avatar {
    flex-shrink: 0;
}

.bc-author-byline__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bc-border);
}

.bc-author-byline__text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--bc-text-light);
}

.bc-author-byline__text a {
    color: var(--bc-text);
    font-weight: 600;
    text-decoration: none;
}

.bc-author-byline__text a:hover {
    color: var(--bc-accent);
}

.bc-author-byline__sep {
    color: var(--bc-text-muted);
}

.bc-author-byline__reading-time {
    color: var(--bc-text-muted);
}

/* Hero content vertical centering when meta is removed */
.bc-post-hero__content--centered {
    justify-content: center;
    text-align: center;
    align-items: center;
}

.bc-post-hero__content--centered .bc-post-hero__title {
    max-width: 100%;
}

/* ==========================================================================
   Single Post Content
   ========================================================================== */
.bc-post-content-wrapper {
    padding-top: 2.5rem;
}

.bc-post__content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.bc-post__content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.bc-post__content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
}

.bc-post__content h4 {
    font-size: 1.125rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.bc-post__content p { margin-bottom: 1.5rem; }

.bc-post__content ul,
.bc-post__content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.bc-post__content li { margin-bottom: 0.625rem; }

.bc-post__content img {
    border-radius: var(--bc-radius);
    margin: 1.75rem 0;
}

.bc-post__content figure { margin: 1.75rem 0; }

.bc-post__content figcaption {
    font-size: 0.875rem;
    color: var(--bc-text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* Post Tags */
.bc-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--bc-border);
}

.bc-post-tags__label {
    font-weight: 600;
    color: var(--bc-text);
    font-size: 0.9375rem;
}

.bc-post-tags__tag {
    display: inline-block;
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    background-color: var(--bc-bg-alt);
    border-radius: var(--bc-radius-sm);
    color: var(--bc-text-light);
    transition: all var(--bc-transition);
}

.bc-post-tags__tag:hover {
    background-color: var(--bc-accent-light);
    color: var(--bc-accent-dark);
}

/* ==========================================================================
   Author Bio
   ========================================================================== */
.bc-author-bio {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.75rem;
    background-color: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow);
}

.bc-author-bio__avatar { flex-shrink: 0; }

.bc-author-bio__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bc-accent);
}

.bc-author-bio__content {
    flex: 1;
    min-width: 0;
}

.bc-author-bio__name {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
    color: var(--bc-text);
}

.bc-author-bio__desc {
    font-size: 0.9375rem;
    color: var(--bc-text-light);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.bc-author-bio__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bc-accent);
}

.bc-author-bio__link:hover { color: var(--bc-accent-dark); }

/* Post Navigation */
.bc-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--bc-border);
}

.bc-post-nav__item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background-color: var(--bc-bg-alt);
    border-radius: var(--bc-radius);
    transition: all var(--bc-transition);
}

.bc-post-nav__item:hover { background-color: var(--bc-accent-light); }
.bc-post-nav__next { text-align: right; }

.bc-post-nav__label {
    font-size: 0.75rem;
    color: var(--bc-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bc-post-nav__title {
    font-weight: 600;
    color: var(--bc-text);
    line-height: 1.4;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Page Template - More gap between breadcrumbs and title
   ========================================================================== */
.bc-page__header {
    margin-bottom: 2rem;
}

.bc-page__title {
    font-size: 2.25rem;
    margin: 0;
}

/* Breadcrumbs on pages - more spacing below */
.bc-page .bc-breadcrumbs,
.bc-main > .bc-container > .bc-breadcrumbs {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bc-footer {
    background-color: var(--bc-footer-bg);
    color: var(--bc-footer-text);
    padding: 3rem 0 0;
}

.bc-footer a { color: var(--bc-footer-text); }
.bc-footer a:hover { color: var(--bc-accent); }

.bc-footer__widgets { padding: 2rem 0; }

.bc-footer__grid {
    display: grid;
    gap: 2.5rem;
}

.bc-footer__grid--1 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.bc-footer__grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.bc-footer__grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bc-footer__col { min-width: 0; }

.bc-footer__widget { margin-bottom: 1.5rem; }
.bc-footer__widget:last-child { margin-bottom: 0; }

.bc-footer__widget-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bc-accent);
}

.bc-footer__widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bc-footer__widget li { margin-bottom: 0.625rem; }
.bc-footer__widget li:last-child { margin-bottom: 0; }

.bc-footer__widget a {
    color: var(--bc-footer-text);
    transition: color var(--bc-transition);
    display: inline-block;
    padding: 0.125rem 0;
}

.bc-footer__widget a:hover { color: var(--bc-accent); }

.bc-footer__bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.bc-card {
    background-color: var(--bc-bg);
    border-radius: var(--bc-radius);
    overflow: hidden;
    box-shadow: var(--bc-shadow);
    transition: transform var(--bc-transition), box-shadow var(--bc-transition);
}

.bc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bc-shadow-lg);
}

.bc-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.bc-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bc-transition);
}

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

.bc-card__content { padding: 1.25rem; }

.bc-card__category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bc-accent);
    margin-bottom: 0.5rem;
}

.bc-card__title {
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.bc-card__title a { color: var(--bc-text); }
.bc-card__title a:hover { color: var(--bc-accent); }

.bc-card__excerpt {
    font-size: 0.9375rem;
    color: var(--bc-text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--bc-text-muted);
}

.bc-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.bc-card__meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Card Grid */
.bc-card-grid {
    display: grid;
    gap: var(--bc-gap);
}

.bc-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bc-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bc-card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Post List
   ========================================================================== */
.bc-post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bc-post-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bc-border);
}

.bc-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bc-post-item__image {
    aspect-ratio: 16 / 10;
    border-radius: var(--bc-radius);
    overflow: hidden;
}

.bc-post-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-post-item__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bc-post-item__category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bc-accent);
    margin-bottom: 0.375rem;
}

.bc-post-item__title {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.bc-post-item__title a { color: var(--bc-text); }
.bc-post-item__title a:hover { color: var(--bc-accent); }

.bc-post-item__meta {
    font-size: 0.8125rem;
    color: var(--bc-text-muted);
}

/* ==========================================================================
   Homepage Sections
   ========================================================================== */
.bc-section { padding: var(--bc-gap-lg) 0; }

.bc-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.bc-section__title {
    font-size: 1.375rem;
    margin: 0;
}

.bc-section__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bc-accent);
}

.bc-section__link:hover { color: var(--bc-accent-dark); }

/* Hero Section - Homepage */
.bc-hero-section { padding: var(--bc-gap-lg) 0; }

.bc-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background-color: var(--bc-header-bg);
    overflow: hidden;
    border-radius: var(--bc-radius);
}

.bc-hero__image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bc-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.bc-hero__content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 2.5rem 2rem;
    color: #ffffff;
}

/* Homepage hero category badge - inherits from bc-category-badge */
.bc-hero__category {
    /* Base styles inherited from .bc-category-badge */
    margin-bottom: 1rem;
}

.bc-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #ffffff;
}

.bc-hero__title a { color: inherit; }
.bc-hero__title a:hover { color: var(--bc-accent); }

.bc-hero__excerpt {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.bc-hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Featured Layout */
.bc-featured-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--bc-gap);
}

.bc-featured-layout__main .bc-card { height: 100%; }
.bc-featured-layout__main .bc-card__image { aspect-ratio: 16 / 10; }

.bc-featured-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--bc-gap);
}

.bc-featured-layout__sidebar .bc-card__image { aspect-ratio: 16 / 10; }

/* ==========================================================================
   Archive Hero - SAME gap as homepage hero (NO top padding on main)
   ========================================================================== */
.bc-archive-hero-section {
    padding: var(--bc-gap-lg) 0;
}

.bc-archive-hero {
    background-color: var(--bc-bg-alt);
    border-radius: var(--bc-radius);
    padding: 1.75rem 2rem;
}

.bc-archive-hero__breadcrumbs {
    margin-bottom: 0.75rem;
}

.bc-archive-hero__breadcrumbs .bc-breadcrumbs {
    color: var(--bc-text-muted);
}

.bc-archive-hero__content {
    /* Left aligned by default */
}

.bc-archive-hero__title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    color: var(--bc-text);
}

.bc-archive-hero__desc {
    font-size: 1rem;
    color: var(--bc-text-light);
    margin: 0;
    max-width: 700px;
    line-height: 1.65;
}

.bc-archive-hero__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.bc-archive-hero__author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--bc-accent);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.bc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.bc-pagination a,
.bc-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bc-text);
    background-color: var(--bc-bg-alt);
    border-radius: var(--bc-radius-sm);
    transition: all var(--bc-transition);
}

.bc-pagination a:hover {
    background-color: var(--bc-accent-light);
    color: var(--bc-accent-dark);
}

.bc-pagination .current {
    background-color: var(--bc-accent);
    color: #000000;
}

/* ==========================================================================
   Comments Section - Redesigned
   ========================================================================== */
.bc-comments {
    margin-top: 3rem;
    padding-top: 2.5rem;
}

.bc-comments__title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bc-accent);
    display: inline-block;
}

/* Comments List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.comment {
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    background-color: var(--bc-bg);
    border-radius: var(--bc-radius);
    border: 1px solid var(--bc-border);
    transition: border-color var(--bc-transition);
}

.comment:hover {
    border-color: rgba(20, 226, 28, 0.3);
}

.comment:last-child { margin-bottom: 0; }

.comment .children {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--bc-accent);
}

.comment .children .comment {
    background-color: var(--bc-bg-alt);
    border: none;
    margin-bottom: 0.75rem;
}

.comment .children .comment:last-child {
    margin-bottom: 0;
}

/* Comment Header */
.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--bc-accent);
}

.comment-author .fn {
    font-weight: 700;
    font-size: 1rem;
    color: var(--bc-text);
}

.comment-author .fn a {
    color: inherit;
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--bc-accent);
}

.comment-author .says {
    display: none;
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--bc-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bc-border);
}

.comment-meta a {
    color: inherit;
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--bc-accent);
}

/* Comment Content */
.comment-content {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--bc-text);
}

.comment-content p:last-child { margin-bottom: 0; }

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bc-accent);
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(20, 226, 28, 0.1);
    border-radius: var(--bc-radius-sm);
    text-decoration: none;
    transition: all var(--bc-transition);
}

.comment-reply-link:hover {
    background-color: var(--bc-accent);
    color: #000000;
}

/* Comment Form Container */
.comment-respond {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: var(--bc-bg);
    border-radius: var(--bc-radius);
    border: 1px solid var(--bc-border);
}

.comment-reply-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bc-accent);
}

.comment-reply-title small {
    font-size: 0.875rem;
    font-weight: 400;
    margin-left: 0.75rem;
}

.comment-reply-title small a {
    color: var(--bc-accent);
    text-decoration: none;
}

.comment-reply-title small a:hover {
    text-decoration: underline;
}

/* Logged in as notice */
.logged-in-as {
    font-size: 0.875rem;
    color: var(--bc-text-muted);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--bc-bg-alt);
    border-radius: var(--bc-radius-sm);
}

.logged-in-as a {
    color: var(--bc-accent);
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

/* Comment notes */
.comment-notes {
    font-size: 0.875rem;
    color: var(--bc-text-muted);
    margin-bottom: 1.5rem;
}

/* Comment Form - Clean Professional Layout */
.comment-form,
.bc-comment-form {
    max-width: 100%;
    width: 100%;
}

/* COMMENT TEXTAREA - THE MAIN FIX */
p.comment-form-comment {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

p.comment-form-comment label {
    display: block !important;
    width: 100% !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
    color: var(--bc-text) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

p.comment-form-comment textarea,
textarea#comment {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 200px !important;
    padding: 1rem !important;
    margin: 0 !important;
    border: 2px solid var(--bc-border) !important;
    border-radius: var(--bc-radius-sm) !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    line-height: 1.6 !important;
    background-color: var(--bc-bg) !important;
    resize: vertical !important;
    box-sizing: border-box !important;
}

/* All form field containers */
.comment-form p {
    display: block;
    width: 100%;
    margin: 0 0 1.25rem 0;
}

/* All labels */
.comment-form label {
    display: block !important;
    width: 100% !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--bc-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text inputs */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bc-bg);
    box-sizing: border-box;
    transition: all var(--bc-transition);
}

/* Desktop: Name and Email side by side */
@media (min-width: 768px) {
    .comment-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    
    .comment-form p {
        margin-bottom: 0;
    }
    
    /* Comment field - full width */
    .comment-form p.comment-form-comment {
        grid-column: 1 / -1;
        margin-bottom: 1.25rem !important;
    }
    
    /* Author - left */
    .comment-form .comment-form-author {
        grid-column: 1;
    }
    
    /* Email - right */
    .comment-form .comment-form-email {
        grid-column: 2;
    }
    
    /* Full width items */
    .comment-form .comment-form-url,
    .comment-form .comment-form-cookies-consent,
    .comment-form .form-submit {
        grid-column: 1 / -1;
    }
}

.comment-form .required {
    color: var(--bc-accent);
}

.comment-form input:hover,
.comment-form textarea:hover {
    border-color: var(--bc-text-muted) !important;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none !important;
    border-color: var(--bc-accent) !important;
    box-shadow: 0 0 0 3px rgba(20, 226, 28, 0.1) !important;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--bc-accent);
}

.comment-form-cookies-consent label {
    text-transform: none;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--bc-text-light);
}

.comment-form .form-submit {
    margin-top: 0.5rem;
}

.comment-form .submit {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background-color: var(--bc-accent);
    color: #000000;
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--bc-radius-sm);
    cursor: pointer;
    transition: all var(--bc-transition);
}

.comment-form .submit:hover {
    background-color: var(--bc-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 226, 28, 0.3);
}

/* Contact Form 7 and other form plugins */
.wpcf7-form,
.wpforms-form {
    display: grid;
    gap: 1.25rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bc-bg);
    transition: all var(--bc-transition);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus {
    outline: none;
    border-color: var(--bc-accent);
    box-shadow: 0 0 0 3px rgba(20, 226, 28, 0.1);
}

.wpcf7-form textarea,
.wpforms-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.bc-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bc-border);
}

.bc-related__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.bc-sidebar .widget,
.bc-sidebar .bc-widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bc-bg-alt);
    border-radius: var(--bc-radius);
}

.bc-sidebar .widget:last-child,
.bc-sidebar .bc-widget:last-child { margin-bottom: 0; }

.bc-sidebar .widget-title,
.bc-sidebar .bc-widget__title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bc-accent);
}

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

.bc-sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bc-border);
}

.bc-sidebar .widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bc-sidebar .widget a { color: var(--bc-text); }
.bc-sidebar .widget a:hover { color: var(--bc-accent); }

/* ==========================================================================
   404 Page
   ========================================================================== */
.bc-404 {
    text-align: center;
    padding: 4rem 0;
}

.bc-404__title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--bc-accent);
    margin-bottom: 1rem;
    line-height: 1;
}

.bc-404__subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bc-404__text {
    color: var(--bc-text-light);
    margin-bottom: 2rem;
}

.bc-404__btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--bc-accent);
    color: #000000;
    font-weight: 600;
    border-radius: var(--bc-radius-sm);
    transition: background-color var(--bc-transition);
}

.bc-404__btn:hover {
    background-color: var(--bc-accent-dark);
    color: #000000;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bc-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.bc-table-responsive table { margin: 0; }

/* ==========================================================================
   RESPONSIVE: Desktop Menu Collapse at 900px
   ========================================================================== */
@media (max-width: 900px) {
    .bc-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.625rem 0;
        min-height: 56px;
    }
    
    .bc-menu-toggle,
    .bc-search-toggle {
        display: flex;
    }
    
    .bc-header__logo {
        flex: 1;
        display: flex;
        justify-content: center;
        order: 2;
    }
    
    .bc-header__logo img {
        max-width: var(--bc-logo-width-mobile) !important;
        min-width: 100px;
        height: auto !important;
    }
    
    .bc-header__logo a { font-size: 1.125rem; }
    .bc-header__logo-text { font-size: 1.125rem; }
    
    .bc-menu-toggle { order: 1; }
    .bc-search-toggle { order: 3; }
    
    .bc-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bc-header-bg);
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .bc-header__nav.is-active { display: block; }
    
    .bc-header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex-wrap: wrap;
    }
    
    .bc-header__menu-item > a {
        padding: 0.875rem 1rem;
        white-space: normal;
        justify-content: flex-start;
    }
    
    .bc-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .bc-header__menu-item.is-open > .bc-dropdown { max-height: 500px; }
    
    .bc-dropdown .bc-header__menu-item > a { padding-left: 2rem; }
    
    .bc-header__search {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        background-color: var(--bc-header-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }
    
    .bc-header__search.is-active { display: block; }
    .bc-header__search .bc-search-form { width: 100%; }
    .bc-header__search .bc-search-form__input { width: 100%; }
    
    /* Share button - hide on mobile, show search toggle instead */
    .bc-share-btn { display: none; }
}

/* ==========================================================================
   RESPONSIVE: Tablet (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .bc-layout--sidebar { grid-template-columns: 1fr; }
    .bc-featured-layout { grid-template-columns: 1fr; }
    
    .bc-featured-layout__sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bc-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    
    .bc-footer__grid--3 { grid-template-columns: repeat(2, 1fr); }
    
    .bc-footer__grid--3 .bc-footer__col:last-child {
        grid-column: span 2;
        text-align: center;
    }
}

/* ==========================================================================
   RESPONSIVE: Mobile (max-width: 768px) - IMPROVED TYPOGRAPHY
   ========================================================================== */
@media (max-width: 768px) {
    html { font-size: 16px; }
    
    /* CRITICAL: Force viewport containment */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .bc-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Single Post Hero - Mobile */
    .bc-post-hero__inner {
        min-height: 240px;
        padding: 1rem 0;
    }
    
    .bc-post-hero--has-image .bc-post-hero__inner {
        min-height: 280px;
    }
    
    .bc-post-hero__breadcrumbs .bc-breadcrumbs {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .bc-post-hero__breadcrumbs .bc-breadcrumbs__current {
        max-width: 120px;
    }
    
    .bc-post-hero__category,
    .bc-category-badge {
        font-size: 0.625rem;
        padding: 0.3rem 0.625rem;
        margin-bottom: 0.625rem;
    }
    
    .bc-post-hero__title {
        font-size: 1.625rem;
        margin-bottom: 0.625rem;
        line-height: 1.25;
    }
    
    .bc-post-hero__meta {
        font-size: 0.8125rem;
        gap: 0.625rem;
    }
    
    .bc-post-hero__meta-item {
        gap: 0.25rem;
    }
    
    .bc-post-hero__meta-item svg {
        width: 14px;
        height: 14px;
    }
    
    .bc-post-hero__author-avatar {
        width: 22px;
        height: 22px;
    }
    
    /* Content wrapper */
    .bc-post-content-wrapper {
        padding-top: 1.5rem;
    }
    
    /* MOBILE ARTICLE TYPOGRAPHY - Improved readability */
    .bc-post__content {
        font-size: 1.0625rem;
        line-height: 1.85;
        letter-spacing: 0.01em;
    }
    
    .bc-post__content p {
        margin-bottom: 1.375rem;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    .bc-post__content h2 {
        font-size: 1.375rem;
        margin-top: 2rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }
    
    .bc-post__content h3 {
        font-size: 1.1875rem;
        margin-top: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.35;
    }
    
    .bc-post__content h4 {
        font-size: 1.0625rem;
        margin-top: 1.5rem;
        margin-bottom: 0.625rem;
    }
    
    .bc-post__content ul,
    .bc-post__content ol {
        margin-bottom: 1.375rem;
        padding-left: 1.5rem;
    }
    
    .bc-post__content li {
        margin-bottom: 0.5rem;
        line-height: 1.75;
    }
    
    .bc-post__content blockquote {
        margin: 1.5rem 0;
        padding: 1.25rem 1.25rem 1.25rem 1rem;
        font-size: 1rem;
        line-height: 1.7;
        border-left-width: 3px;
    }
    
    .bc-post__content img,
    .bc-post__content figure {
        margin: 1.5rem 0;
    }
    
    .bc-post__content figcaption {
        font-size: 0.8125rem;
        line-height: 1.5;
        margin-top: 0.5rem;
    }
    
    /* Homepage Hero */
    .bc-hero-section { padding: 1.5rem 0; }
    
    .bc-hero {
        min-height: 280px;
        border-radius: var(--bc-radius);
    }
    
    .bc-hero__content {
        padding: 1.5rem;
    }
    
    .bc-hero__title { font-size: 1.375rem; }
    .bc-hero__excerpt { display: none; }
    
    /* Archive Hero */
    .bc-archive-hero-section { padding: 1.5rem 0; }
    .bc-archive-hero { padding: 1.25rem 1.5rem; }
    .bc-archive-hero__title { font-size: 1.5rem; }
    
    /* Page breadcrumbs */
    .bc-page .bc-breadcrumbs,
    .bc-main > .bc-container > .bc-breadcrumbs {
        margin-bottom: 1.25rem;
    }
    
    .bc-page__title { font-size: 1.75rem; }
    
    /* Force images to fit */
    .bc-post__content img,
    .bc-post__content figure,
    .wp-block-image,
    .wp-block-image img,
    .wp-block-image figure {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Tables scroll */
    .bc-post__content table,
    .wp-block-table,
    .bc-table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Code blocks scroll */
    .bc-post__content pre {
        max-width: 100%;
        overflow-x: auto;
        padding: 1rem;
        font-size: 0.8125rem;
    }
    
    /* Gutenberg columns stack */
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Embeds responsive */
    .wp-block-embed,
    .wp-block-embed__wrapper,
    iframe {
        max-width: 100% !important;
    }
    
    /* Cards & Grids */
    .bc-card-grid--2,
    .bc-card-grid--3,
    .bc-card-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .bc-featured-layout__sidebar {
        grid-template-columns: 1fr;
    }
    
    .bc-post-item {
        grid-template-columns: 1fr;
    }
    
    .bc-post-item__image {
        aspect-ratio: 16 / 9;
    }
    
    /* Author Bio */
    .bc-author-bio {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .bc-author-bio__avatar {
        display: flex;
        justify-content: center;
    }
    
    .bc-author-bio__avatar img {
        width: 64px;
        height: 64px;
    }
    
    /* Post Navigation */
    .bc-post-nav {
        grid-template-columns: 1fr;
    }
    
    .bc-post-nav__next {
        text-align: left;
    }
    
    /* Footer */
    .bc-footer__grid--2,
    .bc-footer__grid--3 {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .bc-footer__grid--3 .bc-footer__col:last-child {
        grid-column: auto;
    }
    
    /* Comments */
    .bc-comments {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .comment { padding: 1rem; }
    .comment .children { margin-left: 0.75rem; }
    .comment-respond { padding: 1.5rem; }
    
    /* Related Posts */
    .bc-related .bc-card-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE: Small Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .bc-header__logo img {
        max-width: var(--bc-logo-width-mobile) !important;
        min-width: 90px;
    }
    
    .bc-pagination a,
    .bc-pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }
    
    .bc-post-hero__title { font-size: 1.375rem; }
    .bc-hero__title { font-size: 1.25rem; }
    .bc-hero__content { padding: 1.25rem; }
    
    .bc-author-bio { padding: 1.25rem; }
    
    .bc-author-bio__avatar img {
        width: 56px;
        height: 56px;
    }
    
    .bc-post-hero__breadcrumbs .bc-breadcrumbs {
        font-size: 0.6875rem;
    }
    
    .bc-post-hero__breadcrumbs .bc-breadcrumbs__current {
        max-width: 80px;
    }
    
    /* Small mobile article typography */
    .bc-post__content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bc-post__content h2 { font-size: 1.25rem; }
    .bc-post__content h3 { font-size: 1.125rem; }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .bc-header,
    .bc-footer,
    .bc-sidebar,
    .bc-post-nav,
    .bc-related,
    .bc-comments,
    .bc-breadcrumbs {
        display: none !important;
    }
    
    .bc-post-hero {
        min-height: auto;
        background: none;
    }
    
    .bc-post-hero__overlay { display: none; }
    .bc-post-hero__content { color: #000; }
    .bc-post-hero__title { color: #000; }
}


/* ==========================================================================
   Accessibility - Skip Link
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bc-accent);
    color: #000;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    z-index: 100000;
    border-radius: var(--bc-radius-sm);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 10px;
    outline: 2px solid #000;
    outline-offset: 2px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

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