/**
 * Bith Theme - Premium Main Stylesheet
 *
 * Modern, visually striking styles for ThemeForest quality.
 * Includes all component styles and utility classes.
 *
 * @package Bith_Theme
 * @version 1.0.0
 */

/* ==========================================================================
   CSS Variables - Enhanced Design Tokens
   ========================================================================== */

:root {
    /* Primary Colors - Vibrant Modern Palette */
    --bith-primary: #6366F1;
    --bith-primary-hover: #4F46E5;
    --bith-primary-light: #A5B4FC;
    --bith-primary-dark: #4338CA;
    --bith-primary-rgb: 99, 102, 241;

    --bith-secondary: #10B981;
    --bith-secondary-hover: #059669;
    --bith-secondary-light: #6EE7B7;
    --bith-secondary-dark: #047857;

    --bith-accent: #F59E0B;
    --bith-accent-hover: #D97706;
    --bith-accent-light: #FCD34D;

    /* Gradient Definitions */
    --bith-gradient-primary: linear-gradient(135deg, var(--bith-primary) 0%, #8B5CF6 100%);
    --bith-gradient-secondary: linear-gradient(135deg, var(--bith-secondary) 0%, #06B6D4 100%);
    --bith-gradient-accent: linear-gradient(135deg, var(--bith-accent) 0%, #EF4444 100%);
    --bith-gradient-dark: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    --bith-gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);

    /* Neutral Colors */
    --bith-white: #FFFFFF;
    --bith-black: #000000;
    --bith-gray-50: #F9FAFB;
    --bith-gray-100: #F3F4F6;
    --bith-gray-200: #E5E7EB;
    --bith-gray-300: #D1D5DB;
    --bith-gray-400: #9CA3AF;
    --bith-gray-500: #6B7280;
    --bith-gray-600: #4B5563;
    --bith-gray-700: #374151;
    --bith-gray-800: #1F2937;
    --bith-gray-900: #111827;
    --bith-gray-950: #030712;

    /* Status Colors */
    --bith-success: #10B981;
    --bith-warning: #F59E0B;
    --bith-error: #EF4444;
    --bith-info: #3B82F6;

    /* Typography */
    --bith-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --bith-font-family-heading: 'Plus Jakarta Sans', var(--bith-font-family);
    --bith-font-family-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --bith-font-size-xs: 0.75rem;
    --bith-font-size-sm: 0.875rem;
    --bith-font-size-base: 1rem;
    --bith-font-size-lg: 1.125rem;
    --bith-font-size-xl: 1.25rem;
    --bith-font-size-2xl: 1.5rem;
    --bith-font-size-3xl: 1.875rem;
    --bith-font-size-4xl: 2.25rem;
    --bith-font-size-5xl: 3rem;
    --bith-font-size-6xl: 3.75rem;

    --bith-line-height-tight: 1.25;
    --bith-line-height-base: 1.6;
    --bith-line-height-relaxed: 1.75;

    --bith-letter-spacing-tight: -0.025em;
    --bith-letter-spacing-normal: 0;
    --bith-letter-spacing-wide: 0.025em;

    /* Spacing Scale */
    --bith-spacing-0: 0;
    --bith-spacing-1: 0.25rem;
    --bith-spacing-2: 0.5rem;
    --bith-spacing-3: 0.75rem;
    --bith-spacing-4: 1rem;
    --bith-spacing-5: 1.25rem;
    --bith-spacing-6: 1.5rem;
    --bith-spacing-8: 2rem;
    --bith-spacing-10: 2.5rem;
    --bith-spacing-12: 3rem;
    --bith-spacing-16: 4rem;
    --bith-spacing-20: 5rem;
    --bith-spacing-24: 6rem;
    --bith-spacing-32: 8rem;

    /* Border Radius */
    --bith-radius-none: 0;
    --bith-radius-sm: 0.25rem;
    --bith-radius-md: 0.5rem;
    --bith-radius-lg: 0.75rem;
    --bith-radius-xl: 1rem;
    --bith-radius-2xl: 1.5rem;
    --bith-radius-3xl: 2rem;
    --bith-radius-full: 9999px;

    /* Shadows - Enhanced Depth */
    --bith-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bith-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --bith-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --bith-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --bith-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --bith-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --bith-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --bith-shadow-primary: 0 10px 40px -10px rgba(var(--bith-primary-rgb), 0.5);
    --bith-shadow-glow: 0 0 30px rgba(var(--bith-primary-rgb), 0.3);

    /* Transitions */
    --bith-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --bith-transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --bith-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --bith-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Layout */
    --bith-container-width: 1280px;
    --bith-container-narrow: 768px;
    --bith-container-wide: 1440px;
    --bith-container-padding: 1.5rem;

    /* Header */
    --bith-header-height: 80px;
    --bith-header-height-mobile: 70px;
    --bith-header-bg: rgba(255, 255, 255, 0.95);
    --bith-header-text: var(--bith-gray-800);

    /* Footer */
    --bith-footer-bg: var(--bith-gray-900);
    --bith-footer-text: var(--bith-gray-300);

    /* Z-Index Scale */
    --bith-z-dropdown: 100;
    --bith-z-sticky: 200;
    --bith-z-fixed: 300;
    --bith-z-modal-backdrop: 400;
    --bith-z-modal: 500;
    --bith-z-popover: 600;
    --bith-z-tooltip: 700;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bith-header-bg: rgba(17, 24, 39, 0.95);
        --bith-header-text: var(--bith-gray-100);
    }
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--bith-font-family);
    font-size: var(--bith-font-size-base);
    line-height: var(--bith-line-height-base);
    color: var(--bith-gray-700);
    background-color: var(--bith-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: var(--bith-primary);
    color: var(--bith-white);
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--bith-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   Typography - Premium Styling
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--bith-spacing-4);
    font-family: var(--bith-font-family-heading);
    font-weight: 700;
    line-height: var(--bith-line-height-tight);
    color: var(--bith-gray-900);
    letter-spacing: var(--bith-letter-spacing-tight);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: var(--bith-font-size-lg);
}

h6 {
    font-size: var(--bith-font-size-base);
}

p {
    margin-top: 0;
    margin-bottom: var(--bith-spacing-4);
}

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

a:hover {
    color: var(--bith-primary-hover);
}

/* Lead Text */
.bith-lead {
    font-size: var(--bith-font-size-xl);
    line-height: var(--bith-line-height-relaxed);
    color: var(--bith-gray-600);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.bith-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.bith-site-content {
    flex: 1;
}

.bith-container {
    width: 100%;
    max-width: var(--bith-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bith-container-padding);
    padding-right: var(--bith-container-padding);
}

.bith-container-narrow {
    max-width: var(--bith-container-narrow);
}

.bith-container-wide {
    max-width: var(--bith-container-wide);
}

.bith-container-fluid {
    width: 100%;
    padding-left: var(--bith-container-padding);
    padding-right: var(--bith-container-padding);
}

/* Content Wrapper with Sidebar */
.bith-content-wrapper,
.bith-archive-wrapper,
.bith-search-wrapper,
.bith-page-wrapper {
    display: grid;
    gap: var(--bith-spacing-8);
}

.bith-content-wrapper.has-sidebar,
.bith-archive-wrapper.has-sidebar,
.bith-search-wrapper.has-sidebar,
.bith-page-wrapper.has-sidebar {
    grid-template-columns: 1fr 320px;
}

.bith-content-wrapper.has-sidebar.sidebar-left,
.bith-archive-wrapper.has-sidebar.sidebar-left,
.bith-search-wrapper.has-sidebar.sidebar-left,
.bith-page-wrapper.has-sidebar.sidebar-left {
    grid-template-columns: 320px 1fr;
}

.bith-content-wrapper.has-sidebar.sidebar-left .bith-sidebar,
.bith-archive-wrapper.has-sidebar.sidebar-left .bith-sidebar,
.bith-search-wrapper.has-sidebar.sidebar-left .bith-sidebar,
.bith-page-wrapper.has-sidebar.sidebar-left .bith-sidebar {
    order: -1;
}

@media (max-width: 1024px) {

    .bith-content-wrapper.has-sidebar,
    .bith-archive-wrapper.has-sidebar,
    .bith-search-wrapper.has-sidebar,
    .bith-page-wrapper.has-sidebar,
    .bith-content-wrapper.has-sidebar.sidebar-left,
    .bith-archive-wrapper.has-sidebar.sidebar-left,
    .bith-search-wrapper.has-sidebar.sidebar-left,
    .bith-page-wrapper.has-sidebar.sidebar-left {
        grid-template-columns: 1fr;
    }

    .bith-content-wrapper.has-sidebar.sidebar-left .bith-sidebar,
    .bith-archive-wrapper.has-sidebar.sidebar-left .bith-sidebar,
    .bith-search-wrapper.has-sidebar.sidebar-left .bith-sidebar,
    .bith-page-wrapper.has-sidebar.sidebar-left .bith-sidebar {
        order: 0;
    }
}

/* ==========================================================================
   Premium Header Styles
   ========================================================================== */

.bith-header-premium {
    position: relative;
    width: 100%;
    background-color: var(--bith-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--bith-z-sticky);
    transition: all var(--bith-transition-normal);
}

.bith-header-premium.sticky-enabled {
    position: sticky;
    top: 0;
}

.bith-header-premium.sticky-enabled.is-scrolled {
    box-shadow: var(--bith-shadow-lg);
}

.bith-header-premium.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: none;
}

.bith-header-premium.header-transparent.is-scrolled {
    /* Keep transparent header non-sticky: do not switch to fixed on scroll */
    position: absolute;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Top Bar */
.bith-topbar {
    background-color: var(--bith-gray-900);
    color: var(--bith-gray-300);
    font-size: var(--bith-font-size-sm);
    padding: var(--bith-spacing-2) 0;
}

.bith-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--bith-spacing-4);
}

.bith-topbar-left,
.bith-topbar-right {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-4);
}

.bith-topbar a {
    color: var(--bith-gray-300);
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    transition: color var(--bith-transition-fast);
}

.bith-topbar a:hover {
    color: var(--bith-white);
}

/* Main Header */
.bith-header-main {
    height: var(--bith-header-height);
    display: flex;
    align-items: center;
}

.bith-header-main>.bith-container,
.bith-header-main>.bith-container-fluid {
    height: 100%;
}

.bith-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--bith-spacing-6);
}

/* Logo */
.bith-logo {
    flex-shrink: 0;
}

.bith-logo-link {
    display: flex;
    align-items: center;
}

.bith-logo-img {
    max-height: 48px;
    width: auto;
    transition: opacity var(--bith-transition-fast);
}

.bith-logo-dark,
.bith-logo-sticky {
    display: none;
}

.bith-site-title {
    font-family: var(--bith-font-family-heading);
    font-size: var(--bith-font-size-xl);
    font-weight: 700;
    color: var(--bith-gray-900);
}

/* Navigation */
.bith-nav-primary {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-align-left .bith-nav-primary {
    justify-content: flex-start;
    margin-left: var(--bith-spacing-8);
}

.header-align-right .bith-nav-primary {
    justify-content: flex-end;
    margin-right: var(--bith-spacing-8);
}

.bith-nav-menu-primary {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--bith-spacing-1);
}

.bith-nav-menu-primary>li {
    position: relative;
}

.bith-nav-menu-primary>li>a {
    display: flex;
    align-items: center;
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    color: var(--bith-header-text);
    font-weight: 500;
    font-size: var(--bith-font-size-sm);
    border-radius: var(--bith-radius-lg);
    transition: all var(--bith-transition-fast);
}

.bith-nav-menu-primary>li>a:hover,
.bith-nav-menu-primary>li.current-menu-item>a,
.bith-nav-menu-primary>li.current-menu-ancestor>a {
    background-color: rgba(var(--bith-primary-rgb), 0.1);
    color: var(--bith-primary);
}

/* Dropdown Menus */
.bith-nav-menu-primary .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--bith-white);
    box-shadow: var(--bith-shadow-xl);
    border-radius: var(--bith-radius-xl);
    padding: var(--bith-spacing-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bith-transition-normal);
    z-index: var(--bith-z-dropdown);
    list-style: none;
    margin: 0;
}

.bith-nav-menu-primary>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bith-nav-menu-primary .sub-menu li {
    margin: 0;
}

.bith-nav-menu-primary .sub-menu a {
    display: block;
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    color: var(--bith-gray-700);
    font-size: var(--bith-font-size-sm);
    border-radius: var(--bith-radius-md);
    transition: all var(--bith-transition-fast);
}

.bith-nav-menu-primary .sub-menu a:hover {
    background-color: var(--bith-gray-100);
    color: var(--bith-primary);
}

/* Nested Dropdowns */
.bith-nav-menu-primary .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: var(--bith-spacing-2);
}

/* Header Actions */
.bith-header-actions {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-2);
}

.bith-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--bith-radius-full);
    color: var(--bith-header-text);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-header-action:hover {
    background-color: var(--bith-gray-100);
    color: var(--bith-primary);
}

/* Search Wrapper */
.bith-search-wrapper {
    position: relative;
}

.bith-search-toggle .bith-icon-close {
    display: none;
}

.bith-search-toggle.active .bith-icon-search {
    display: none;
}

.bith-search-toggle.active .bith-icon-close {
    display: block;
}

/* Expandable Search */
.bith-search-expand {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    padding: var(--bith-spacing-4);
    background-color: var(--bith-white);
    box-shadow: var(--bith-shadow-xl);
    border-radius: var(--bith-radius-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bith-transition-normal);
    z-index: var(--bith-z-dropdown);
}

.bith-search-wrapper:focus-within .bith-search-expand,
.bith-search-wrapper.is-active .bith-search-expand {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bith-search-form {
    display: flex;
    gap: var(--bith-spacing-2);
}

.bith-search-field {
    flex: 1;
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    font-size: var(--bith-font-size-sm);
    border: 2px solid var(--bith-gray-200);
    border-radius: var(--bith-radius-lg);
    transition: all var(--bith-transition-fast);
}

.bith-search-field:focus {
    border-color: var(--bith-primary);
    box-shadow: 0 0 0 4px rgba(var(--bith-primary-rgb), 0.1);
}

.bith-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bith-gradient-primary);
    border: none;
    border-radius: var(--bith-radius-lg);
    color: var(--bith-white);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-search-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--bith-shadow-primary);
}

/* Mini Cart */
.bith-mini-cart-wrapper {
    position: relative;
}

.bith-cart-icon {
    position: relative;
}

.bith-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--bith-gradient-accent);
    color: var(--bith-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: var(--bith-radius-full);
    box-shadow: var(--bith-shadow-sm);
}

.bith-mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 450px;
    overflow-y: auto;
    padding: var(--bith-spacing-4);
    background-color: var(--bith-white);
    box-shadow: var(--bith-shadow-xl);
    border-radius: var(--bith-radius-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bith-transition-normal);
    z-index: var(--bith-z-dropdown);
}

.bith-mini-cart-wrapper:hover .bith-mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header CTA Button */
.bith-header-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-3) var(--bith-spacing-5);
    font-size: var(--bith-font-size-sm);
    font-weight: 600;
    border-radius: var(--bith-radius-full);
}

.bith-header-cta .bith-btn-icon {
    transition: transform var(--bith-transition-fast);
}

.bith-header-cta:hover .bith-btn-icon {
    transform: translateX(3px);
}

/* Mobile Menu Toggle */
.bith-menu-toggle {
    display: none;
    align-items: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-2);
    background: transparent;
    border: none;
    cursor: pointer;
}

.bith-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.bith-hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--bith-header-text);
    transition: all var(--bith-transition-fast);
}

.bith-hamburger-line:nth-child(1) {
    transform-origin: left center;
}

.bith-hamburger-line:nth-child(2) {
    margin: 5px 0;
}

.bith-hamburger-line:nth-child(3) {
    transform-origin: left center;
}

.bith-menu-toggle.active .bith-hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.bith-menu-toggle.active .bith-hamburger-line:nth-child(2) {
    opacity: 0;
}

.bith-menu-toggle.active .bith-hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

.bith-menu-toggle-text {
    font-size: var(--bith-font-size-sm);
    font-weight: 600;
    color: var(--bith-header-text);
}

/* Mobile Menu */
.bith-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--bith-transition-normal);
    z-index: var(--bith-z-modal-backdrop);
}

.bith-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bith-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--bith-white);
    transform: translateX(100%);
    transition: transform var(--bith-transition-normal);
    z-index: var(--bith-z-modal);
    overflow-y: auto;
}

.bith-mobile-menu.active {
    transform: translateX(0);
}

.bith-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bith-spacing-4) var(--bith-spacing-6);
    border-bottom: 1px solid var(--bith-gray-200);
}

.bith-mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bith-gray-100);
    border: none;
    border-radius: var(--bith-radius-full);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-mobile-menu-close:hover {
    background: var(--bith-gray-200);
}

.bith-mobile-menu-content {
    padding: var(--bith-spacing-6);
}

.bith-mobile-search {
    margin-bottom: var(--bith-spacing-6);
}

.bith-mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-mobile-nav-menu li {
    border-bottom: 1px solid var(--bith-gray-100);
}

.bith-mobile-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bith-spacing-4) 0;
    color: var(--bith-gray-800);
    font-weight: 500;
}

.bith-mobile-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 var(--bith-spacing-4);
}

.bith-mobile-nav-menu .sub-menu a {
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-600);
}

.bith-mobile-cta {
    margin-top: var(--bith-spacing-6);
}

.bith-mobile-social {
    margin-top: var(--bith-spacing-6);
    padding-top: var(--bith-spacing-6);
    border-top: 1px solid var(--bith-gray-200);
}

/* Search Overlay */
.bith-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--bith-transition-normal);
    z-index: var(--bith-z-modal);
}

.bith-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bith-search-overlay-inner {
    width: 100%;
    max-width: 800px;
    padding: var(--bith-spacing-8);
}

.bith-search-close {
    position: absolute;
    top: var(--bith-spacing-8);
    right: var(--bith-spacing-8);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--bith-radius-full);
    color: var(--bith-white);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.bith-search-overlay-title {
    color: var(--bith-white);
    text-align: center;
    margin-bottom: var(--bith-spacing-8);
    font-size: var(--bith-font-size-2xl);
    font-weight: 600;
}

.bith-search-form-large {
    text-align: center;
}

.bith-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.bith-search-field-large {
    width: 100%;
    padding: var(--bith-spacing-5) var(--bith-spacing-6);
    padding-right: 70px;
    font-size: var(--bith-font-size-xl);
    font-weight: 400;
    color: var(--bith-white);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--bith-radius-full);
    transition: all var(--bith-transition-fast);
}

.bith-search-field-large::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.bith-search-field-large:focus {
    outline: none;
    border-color: var(--bith-primary);
    background: rgba(255, 255, 255, 0.15);
}

.bith-search-submit-large {
    position: absolute;
    right: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bith-gradient-primary);
    border: none;
    border-radius: var(--bith-radius-full);
    color: var(--bith-white);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-search-submit-large:hover {
    transform: scale(1.1);
    box-shadow: var(--bith-shadow-glow);
}

.bith-search-hint {
    display: block;
    margin-top: var(--bith-spacing-4);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--bith-font-size-sm);
}

.bith-search-suggestions {
    margin-top: var(--bith-spacing-8);
    text-align: center;
}

.bith-search-suggestions-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--bith-font-size-sm);
    margin-right: var(--bith-spacing-2);
}

.bith-search-suggestion {
    display: inline-block;
    padding: var(--bith-spacing-2) var(--bith-spacing-4);
    margin: var(--bith-spacing-1);
    background: rgba(255, 255, 255, 0.1);
    color: var(--bith-white);
    font-size: var(--bith-font-size-sm);
    border-radius: var(--bith-radius-full);
    transition: all var(--bith-transition-fast);
}

.bith-search-suggestion:hover {
    background: var(--bith-primary);
    color: var(--bith-white);
}

@media (max-width: 991px) {
    .bith-menu-toggle {
        display: flex;
    }

    .bith-nav-primary {
        display: none;
    }

    .bith-header-social {
        display: none;
    }

    .bith-header-height {
        height: var(--bith-header-height-mobile);
    }
}

/* ==========================================================================
   Premium Footer Styles
   ========================================================================== */

.bith-footer-premium {
    background: var(--bith-gradient-dark);
    color: var(--bith-footer-text);
    position: relative;
    overflow: hidden;
}

.bith-footer-premium.footer-style-light {
    background: var(--bith-gray-50);
    color: var(--bith-gray-600);
}

/* Newsletter Section */
.bith-footer-newsletter {
    padding: var(--bith-spacing-16) 0;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bith-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bith-spacing-8);
}

.bith-newsletter-content {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-6);
}

.bith-newsletter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bith-gradient-primary);
    border-radius: var(--bith-radius-2xl);
    color: var(--bith-white);
    flex-shrink: 0;
}

.bith-newsletter-title {
    font-size: var(--bith-font-size-2xl);
    color: var(--bith-white);
    margin-bottom: var(--bith-spacing-2);
}

.bith-newsletter-desc {
    color: var(--bith-gray-400);
    margin: 0;
}

.bith-newsletter-form {
    flex: 1;
    max-width: 500px;
}

.bith-newsletter-field {
    display: flex;
    gap: var(--bith-spacing-3);
}

.bith-newsletter-field input {
    flex: 1;
    padding: var(--bith-spacing-4) var(--bith-spacing-5);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--bith-radius-xl);
    color: var(--bith-white);
    font-size: var(--bith-font-size-base);
}

.bith-newsletter-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.bith-newsletter-field input:focus {
    outline: none;
    border-color: var(--bith-primary);
}

.bith-newsletter-field .bith-btn {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-4) var(--bith-spacing-6);
    white-space: nowrap;
}

@media (max-width: 991px) {
    .bith-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .bith-newsletter-content {
        flex-direction: column;
    }

    .bith-newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    .bith-newsletter-field {
        flex-direction: column;
    }
}

/* Footer Widgets */
.bith-footer-widgets {
    padding: var(--bith-spacing-16) 0;
}

.bith-footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(var(--footer-columns, 4), 1fr);
    gap: var(--bith-spacing-8);
}

@media (max-width: 991px) {
    .bith-footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bith-footer-widgets-grid {
        grid-template-columns: 1fr;
    }
}

.bith-footer-widget-area .widget {
    margin-bottom: var(--bith-spacing-8);
}

.bith-footer-widget-area .widget:last-child {
    margin-bottom: 0;
}

.bith-footer-widget-area .widget-title {
    font-size: var(--bith-font-size-lg);
    color: var(--bith-white);
    margin-bottom: var(--bith-spacing-5);
    padding-bottom: var(--bith-spacing-3);
    border-bottom: 2px solid var(--bith-primary);
    display: inline-block;
}

.footer-style-light .bith-footer-widget-area .widget-title {
    color: var(--bith-gray-900);
}

.bith-footer-widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-footer-widget-area li {
    margin-bottom: var(--bith-spacing-3);
}

.bith-footer-widget-area a {
    color: var(--bith-gray-400);
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    transition: all var(--bith-transition-fast);
}

.bith-footer-widget-area a:hover {
    color: var(--bith-white);
    transform: translateX(5px);
}

.footer-style-light .bith-footer-widget-area a {
    color: var(--bith-gray-600);
}

.footer-style-light .bith-footer-widget-area a:hover {
    color: var(--bith-primary);
}

/* Footer Bottom */
.bith-footer-bottom {
    padding: var(--bith-spacing-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-style-light .bith-footer-bottom {
    border-color: var(--bith-gray-200);
}

.bith-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--bith-spacing-4);
}

.bith-footer-logo img {
    max-height: 40px;
    width: auto;
}

.bith-copyright p {
    margin: 0;
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-500);
}

.bith-copyright .bith-heart {
    color: #EF4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.bith-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bith-spacing-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-footer-menu a {
    color: var(--bith-gray-400);
    font-size: var(--bith-font-size-sm);
}

.bith-footer-menu a:hover {
    color: var(--bith-white);
}

.footer-style-light .bith-footer-menu a:hover {
    color: var(--bith-primary);
}

.bith-footer-social {
    display: flex;
    gap: var(--bith-spacing-2);
}

@media (max-width: 768px) {
    .bith-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer Decoration */
.bith-footer-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.bith-footer-wave {
    height: 100px;
    color: var(--bith-gray-800);
}

.bith-footer-wave svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Page Header Styles
   ========================================================================== */

.bith-page-header,
.bith-archive-header,
.bith-search-header {
    position: relative;
    padding: var(--bith-spacing-16) 0;
    background: var(--bith-gradient-hero);
    overflow: hidden;
}

.bith-page-header-content,
.bith-archive-header-content,
.bith-search-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.bith-page-title,
.bith-archive-title,
.bith-search-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--bith-spacing-4);
    background: var(--bith-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bith-page-subtitle,
.bith-archive-description {
    font-size: var(--bith-font-size-lg);
    color: var(--bith-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.bith-archive-label {
    display: inline-block;
    padding: var(--bith-spacing-1) var(--bith-spacing-3);
    background: var(--bith-primary);
    color: var(--bith-white);
    font-size: var(--bith-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--bith-radius-full);
    margin-bottom: var(--bith-spacing-3);
}

.bith-archive-count {
    margin-top: var(--bith-spacing-4);
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-500);
}

/* Page Header Decorations */
.bith-page-header-decoration,
.bith-archive-header-bg,
.bith-search-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bith-decoration-shape,
.bith-archive-header-shape,
.bith-search-decoration {
    position: absolute;
    border-radius: var(--bith-radius-full);
    background: var(--bith-gradient-primary);
    opacity: 0.1;
}

.bith-decoration-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.bith-decoration-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
}

/* Author Archive Box */
.bith-author-archive-box {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-4);
    margin-top: var(--bith-spacing-6);
    padding: var(--bith-spacing-4);
    background: var(--bith-white);
    border-radius: var(--bith-radius-xl);
    box-shadow: var(--bith-shadow-md);
}

.bith-author-archive-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--bith-radius-full);
    object-fit: cover;
}

/* ==========================================================================
   Posts Grid - Premium Cards
   ========================================================================== */

.bith-posts {
    display: grid;
    gap: var(--bith-spacing-8);
}

.bith-posts.bith-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

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

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

.bith-posts.bith-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.bith-posts.bith-layout-list {
    grid-template-columns: 1fr;
}

@media (max-width: 991px) {

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

@media (max-width: 576px) {

    .bith-posts.bith-columns-2,
    .bith-posts.bith-columns-3,
    .bith-posts.bith-columns-4,
    .bith-posts.bith-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Post Card */
.bith-post-card {
    position: relative;
    background: var(--bith-white);
    border-radius: var(--bith-radius-2xl);
    overflow: hidden;
    box-shadow: var(--bith-shadow-md);
    transition: all var(--bith-transition-normal);
}

.bith-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--bith-shadow-xl);
}

/* List Layout Card */
.bith-layout-list .bith-post-card {
    display: grid;
    grid-template-columns: 350px 1fr;
}

@media (max-width: 768px) {
    .bith-layout-list .bith-post-card {
        grid-template-columns: 1fr;
    }
}

/* Sticky Badge */
.bith-sticky-badge {
    position: absolute;
    top: var(--bith-spacing-4);
    left: var(--bith-spacing-4);
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-1);
    padding: var(--bith-spacing-1) var(--bith-spacing-3);
    background: var(--bith-gradient-accent);
    color: var(--bith-white);
    font-size: var(--bith-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--bith-radius-full);
    z-index: 10;
}

/* Post Thumbnail */
.bith-post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.bith-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bith-transition-slow);
}

.bith-post-card:hover .bith-post-thumbnail img {
    transform: scale(1.08);
}

/* Post Thumbnail Overlay */
.bith-post-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    transition: all var(--bith-transition-normal);
}

.bith-post-card:hover .bith-post-thumbnail::after {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Post Format Icon */
.bith-post-format-icon {
    position: absolute;
    top: var(--bith-spacing-4);
    right: var(--bith-spacing-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: var(--bith-white);
    border-radius: var(--bith-radius-full);
    z-index: 10;
}

/* Post Content */
.bith-post-content {
    padding: var(--bith-spacing-6);
}

.bith-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bith-spacing-2);
    margin-bottom: var(--bith-spacing-3);
}

.bith-category-link {
    display: inline-block;
    padding: var(--bith-spacing-1) var(--bith-spacing-3);
    background: rgba(var(--bith-primary-rgb), 0.1);
    color: var(--bith-primary);
    font-size: var(--bith-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--bith-radius-full);
    transition: all var(--bith-transition-fast);
}

.bith-category-link:hover {
    background: var(--bith-primary);
    color: var(--bith-white);
}

.bith-post-title {
    font-size: var(--bith-font-size-xl);
    line-height: var(--bith-line-height-tight);
    margin-bottom: var(--bith-spacing-3);
}

.bith-post-title a {
    color: var(--bith-gray-900);
    transition: color var(--bith-transition-fast);
}

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

/* Post Meta */
.bith-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bith-spacing-4);
    margin-bottom: var(--bith-spacing-4);
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-500);
}

.bith-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-1);
}

.bith-post-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.bith-post-meta a {
    color: var(--bith-gray-600);
}

.bith-post-meta a:hover {
    color: var(--bith-primary);
}

/* Post Excerpt */
.bith-post-excerpt {
    color: var(--bith-gray-600);
    line-height: var(--bith-line-height-relaxed);
    margin-bottom: var(--bith-spacing-4);
}

/* Read More Link */
.bith-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    color: var(--bith-primary);
    font-weight: 600;
    font-size: var(--bith-font-size-sm);
    transition: all var(--bith-transition-fast);
}

.bith-read-more svg {
    transition: transform var(--bith-transition-fast);
}

.bith-read-more:hover {
    color: var(--bith-primary-hover);
}

.bith-read-more:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Single Post Styles
   ========================================================================== */

.bith-single-post {
    max-width: 800px;
    margin: 0 auto;
}

.bith-single-header {
    text-align: center;
    margin-bottom: var(--bith-spacing-8);
}

.bith-single-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--bith-spacing-4);
}

.bith-single-header .bith-post-meta {
    justify-content: center;
}

.bith-single-thumbnail {
    margin-bottom: var(--bith-spacing-8);
    border-radius: var(--bith-radius-2xl);
    overflow: hidden;
    box-shadow: var(--bith-shadow-xl);
}

.bith-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single Post Content - Typography */
.bith-single-content {
    font-size: var(--bith-font-size-lg);
    line-height: var(--bith-line-height-relaxed);
    color: var(--bith-gray-700);
}

.bith-single-content p {
    margin-bottom: var(--bith-spacing-6);
}

.bith-single-content h2 {
    font-size: var(--bith-font-size-3xl);
    margin-top: var(--bith-spacing-12);
    margin-bottom: var(--bith-spacing-4);
}

.bith-single-content h3 {
    font-size: var(--bith-font-size-2xl);
    margin-top: var(--bith-spacing-8);
    margin-bottom: var(--bith-spacing-4);
}

.bith-single-content h4 {
    font-size: var(--bith-font-size-xl);
    margin-top: var(--bith-spacing-6);
    margin-bottom: var(--bith-spacing-3);
}

.bith-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bith-radius-xl);
    margin: var(--bith-spacing-8) 0;
}

.bith-single-content blockquote {
    position: relative;
    margin: var(--bith-spacing-8) 0;
    padding: var(--bith-spacing-8);
    padding-left: var(--bith-spacing-12);
    background: var(--bith-gradient-hero);
    border-radius: var(--bith-radius-xl);
    font-size: var(--bith-font-size-xl);
    font-style: italic;
    color: var(--bith-gray-800);
}

.bith-single-content blockquote::before {
    content: '"';
    position: absolute;
    top: var(--bith-spacing-4);
    left: var(--bith-spacing-4);
    font-size: 4rem;
    line-height: 1;
    color: var(--bith-primary);
    font-family: Georgia, serif;
}

.bith-single-content blockquote p:last-child {
    margin-bottom: 0;
}

.bith-single-content pre {
    background-color: var(--bith-gray-900);
    color: var(--bith-gray-100);
    padding: var(--bith-spacing-6);
    border-radius: var(--bith-radius-xl);
    overflow-x: auto;
    font-family: var(--bith-font-family-mono);
    font-size: var(--bith-font-size-sm);
}

.bith-single-content code {
    background-color: var(--bith-gray-100);
    padding: 2px 8px;
    border-radius: var(--bith-radius-sm);
    font-size: 0.9em;
    font-family: var(--bith-font-family-mono);
}

.bith-single-content pre code {
    background-color: transparent;
    padding: 0;
}

.bith-single-content ul,
.bith-single-content ol {
    margin-bottom: var(--bith-spacing-6);
    padding-left: var(--bith-spacing-6);
}

.bith-single-content li {
    margin-bottom: var(--bith-spacing-2);
}

/* Single Post Footer */
.bith-single-footer {
    margin-top: var(--bith-spacing-8);
    padding-top: var(--bith-spacing-8);
    border-top: 1px solid var(--bith-gray-200);
}

.bith-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bith-spacing-2);
    margin-bottom: var(--bith-spacing-6);
}

.bith-tags-label {
    font-weight: 600;
    color: var(--bith-gray-700);
}

.bith-post-tags a {
    display: inline-block;
    padding: var(--bith-spacing-1) var(--bith-spacing-3);
    background: var(--bith-gray-100);
    color: var(--bith-gray-700);
    font-size: var(--bith-font-size-sm);
    border-radius: var(--bith-radius-full);
    transition: all var(--bith-transition-fast);
}

.bith-post-tags a:hover {
    background: var(--bith-primary);
    color: var(--bith-white);
}

/* Share Buttons */
.bith-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bith-spacing-3);
}

.bith-share-label {
    font-weight: 600;
    color: var(--bith-gray-700);
}

.bith-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--bith-radius-full);
    color: var(--bith-white);
    transition: all var(--bith-transition-fast);
}

.bith-share-button:hover {
    transform: translateY(-4px);
    color: var(--bith-white);
    box-shadow: var(--bith-shadow-lg);
}

.bith-share-facebook {
    background: #1877f2;
}

.bith-share-twitter {
    background: #000000;
}

.bith-share-linkedin {
    background: #0a66c2;
}

.bith-share-pinterest {
    background: #e60023;
}

.bith-share-whatsapp {
    background: #25d366;
}

.bith-share-telegram {
    background: #0088cc;
}

/* Author Box */
.bith-author-box {
    display: flex;
    gap: var(--bith-spacing-6);
    padding: var(--bith-spacing-8);
    background: var(--bith-gradient-hero);
    border-radius: var(--bith-radius-2xl);
    margin-top: var(--bith-spacing-8);
}

.bith-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: var(--bith-radius-full);
    object-fit: cover;
    border: 4px solid var(--bith-white);
    box-shadow: var(--bith-shadow-md);
}

.bith-author-name {
    font-size: var(--bith-font-size-xl);
    margin-bottom: var(--bith-spacing-2);
}

.bith-author-name a {
    color: var(--bith-gray-900);
}

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

.bith-author-bio {
    color: var(--bith-gray-600);
    line-height: var(--bith-line-height-relaxed);
}

@media (max-width: 576px) {
    .bith-author-box {
        flex-direction: column;
        text-align: center;
    }

    .bith-author-avatar {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Comments - Modern Bubble Style
   ========================================================================== */

.bith-comments-section {
    margin-top: var(--bith-spacing-12);
    padding-top: var(--bith-spacing-8);
    border-top: 1px solid var(--bith-gray-200);
}

.bith-comments-header {
    margin-bottom: var(--bith-spacing-8);
}

.bith-comments-title {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-3);
    font-size: var(--bith-font-size-2xl);
}

.bith-comments-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bith-gradient-primary);
    border-radius: var(--bith-radius-xl);
    color: var(--bith-white);
}

.bith-comments-count {
    color: var(--bith-primary);
}

/* Comment List */
.bith-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-comment {
    margin-bottom: var(--bith-spacing-6);
}

.bith-comment .children {
    list-style: none;
    margin: var(--bith-spacing-6) 0 0 var(--bith-spacing-12);
    padding: 0;
}

@media (max-width: 576px) {
    .bith-comment .children {
        margin-left: var(--bith-spacing-4);
    }
}

/* Comment Body */
.bith-comment-body {
    display: flex;
    gap: var(--bith-spacing-4);
}

/* Comment Avatar */
.bith-comment-avatar {
    position: relative;
    flex-shrink: 0;
}

.bith-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: var(--bith-radius-full);
    object-fit: cover;
}

.bith-author-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bith-gradient-accent);
    border-radius: var(--bith-radius-full);
    color: var(--bith-white);
    border: 2px solid var(--bith-white);
}

/* Comment Bubble */
.bith-comment-bubble {
    flex: 1;
    background: var(--bith-gray-50);
    border-radius: var(--bith-radius-2xl);
    padding: var(--bith-spacing-5);
    position: relative;
}

.bith-comment-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: var(--bith-gray-50);
    border-left: 0;
}

.bith-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--bith-spacing-2);
    margin-bottom: var(--bith-spacing-3);
}

.bith-comment-author-info {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-2);
}

.bith-comment-author-name {
    font-weight: 600;
    color: var(--bith-gray-900);
}

.bith-comment-author-name a {
    color: var(--bith-gray-900);
}

.bith-comment-author-name a:hover {
    color: var(--bith-primary);
}

.bith-author-label {
    padding: 2px 8px;
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    font-size: var(--bith-font-size-xs);
    font-weight: 600;
    border-radius: var(--bith-radius-full);
}

.bith-comment-meta {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-3);
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-500);
}

.bith-comment-date {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-1);
}

.bith-comment-link {
    color: var(--bith-gray-400);
}

.bith-comment-link:hover {
    color: var(--bith-primary);
}

.bith-comment-content {
    color: var(--bith-gray-700);
    line-height: var(--bith-line-height-relaxed);
}

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

.bith-comment-awaiting {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-3);
    background: rgba(245, 158, 11, 0.1);
    color: var(--bith-warning);
    font-size: var(--bith-font-size-sm);
    border-radius: var(--bith-radius-lg);
    margin-bottom: var(--bith-spacing-3);
}

.bith-comment-footer {
    margin-top: var(--bith-spacing-3);
}

.bith-comment-actions {
    display: flex;
    gap: var(--bith-spacing-4);
}

.bith-reply-link a,
.bith-edit-link a {
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-1);
    color: var(--bith-gray-500);
    font-size: var(--bith-font-size-sm);
    font-weight: 500;
    transition: color var(--bith-transition-fast);
}

.bith-reply-link a:hover,
.bith-edit-link a:hover {
    color: var(--bith-primary);
}

/* Comments Closed */
.bith-comments-closed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--bith-spacing-8);
    background: var(--bith-gray-100);
    border-radius: var(--bith-radius-xl);
    text-align: center;
    color: var(--bith-gray-500);
}

.bith-comments-closed svg {
    margin-bottom: var(--bith-spacing-3);
    opacity: 0.5;
}

/* Comment Form */
.bith-comment-respond {
    margin-top: var(--bith-spacing-8);
    padding: var(--bith-spacing-8);
    background: var(--bith-gray-50);
    border-radius: var(--bith-radius-2xl);
}

.bith-comment-respond .comment-reply-title {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-3);
    font-size: var(--bith-font-size-xl);
    margin-bottom: var(--bith-spacing-6);
}

.bith-reply-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bith-gradient-primary);
    border-radius: var(--bith-radius-lg);
    color: var(--bith-white);
}

.bith-comment-form {
    display: grid;
    gap: var(--bith-spacing-5);
}

.bith-comment-field {
    display: flex;
    flex-direction: column;
    gap: var(--bith-spacing-2);
}

.bith-field-label {
    font-weight: 600;
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-700);
}

.bith-field-label .required {
    color: var(--bith-error);
}

.bith-field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bith-field-input-wrap svg {
    position: absolute;
    left: var(--bith-spacing-4);
    color: var(--bith-gray-400);
    pointer-events: none;
}

.bith-field-input-wrap input {
    width: 100%;
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    padding-left: var(--bith-spacing-12);
    background: var(--bith-white);
    border: 2px solid var(--bith-gray-200);
    border-radius: var(--bith-radius-xl);
    font-size: var(--bith-font-size-base);
    transition: all var(--bith-transition-fast);
}

.bith-field-input-wrap input:focus {
    border-color: var(--bith-primary);
    box-shadow: 0 0 0 4px rgba(var(--bith-primary-rgb), 0.1);
}

.bith-field-textarea-wrap textarea {
    width: 100%;
    padding: var(--bith-spacing-4);
    background: var(--bith-white);
    border: 2px solid var(--bith-gray-200);
    border-radius: var(--bith-radius-xl);
    font-size: var(--bith-font-size-base);
    font-family: inherit;
    resize: vertical;
    min-height: 150px;
    transition: all var(--bith-transition-fast);
}

.bith-field-textarea-wrap textarea:focus {
    border-color: var(--bith-primary);
    box-shadow: 0 0 0 4px rgba(var(--bith-primary-rgb), 0.1);
}

/* Checkbox */
.bith-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--bith-spacing-3);
    cursor: pointer;
}

.bith-checkbox-label input {
    display: none;
}

.bith-checkbox-custom {
    width: 20px;
    height: 20px;
    background: var(--bith-white);
    border: 2px solid var(--bith-gray-300);
    border-radius: var(--bith-radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--bith-transition-fast);
}

.bith-checkbox-label input:checked+.bith-checkbox-custom {
    background: var(--bith-primary);
    border-color: var(--bith-primary);
}

.bith-checkbox-label input:checked+.bith-checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--bith-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bith-checkbox-text {
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-600);
    line-height: 1.5;
}

/* Logged In As */
.bith-logged-in-as {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bith-spacing-4);
    background: var(--bith-white);
    border-radius: var(--bith-radius-xl);
    margin-bottom: var(--bith-spacing-4);
}

.bith-user-info {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-3);
}

.bith-user-info img {
    border-radius: var(--bith-radius-full);
}

.bith-logout-link {
    color: var(--bith-gray-500);
    font-size: var(--bith-font-size-sm);
}

.bith-logout-link:hover {
    color: var(--bith-error);
}

/* Must Login */
.bith-must-login {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-3);
    padding: var(--bith-spacing-6);
    background: var(--bith-white);
    border-radius: var(--bith-radius-xl);
    color: var(--bith-gray-600);
}

.bith-must-login a {
    color: var(--bith-primary);
    font-weight: 600;
}

/* Form Submit */
.bith-form-submit {
    display: flex;
    justify-content: flex-start;
}

.bith-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-4) var(--bith-spacing-8);
    font-size: var(--bith-font-size-base);
    font-weight: 600;
}

.bith-btn-submit svg {
    transition: transform var(--bith-transition-fast);
}

.bith-btn-submit:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Sidebar - Premium Widget Styles
   ========================================================================== */

.bith-sidebar {
    position: relative;
}

.bith-sidebar-sticky {
    position: sticky;
    top: calc(var(--bith-header-height) + var(--bith-spacing-8));
}

.bith-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: var(--bith-spacing-8);
}

/* Widget Base */
.bith-sidebar .widget {
    background: var(--bith-white);
    padding: var(--bith-spacing-6);
    border-radius: var(--bith-radius-2xl);
    box-shadow: var(--bith-shadow-md);
}

.bith-sidebar .widget-title,
.bith-sidebar .bith-widget-title {
    position: relative;
    font-size: var(--bith-font-size-lg);
    font-weight: 700;
    color: var(--bith-gray-900);
    margin-bottom: var(--bith-spacing-5);
    padding-bottom: var(--bith-spacing-3);
}

.bith-sidebar .widget-title::after,
.bith-sidebar .bith-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bith-gradient-primary);
    border-radius: var(--bith-radius-full);
}

/* Widget Title Styles */
.bith-widget-title-underline .bith-widget-title-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bith-gradient-primary);
    border-radius: var(--bith-radius-full);
}

.bith-widget-title-accent {
    padding-left: var(--bith-spacing-4);
    border-left: 4px solid var(--bith-primary);
}

.bith-widget-title-boxed {
    display: inline-block;
    padding: var(--bith-spacing-2) var(--bith-spacing-4);
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    border-radius: var(--bith-radius-lg);
}

/* Widget Lists */
.bith-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-sidebar li {
    padding: var(--bith-spacing-3) 0;
    border-bottom: 1px solid var(--bith-gray-100);
}

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

.bith-sidebar li:first-child {
    padding-top: 0;
}

.bith-sidebar a {
    color: var(--bith-gray-700);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--bith-transition-fast);
}

.bith-sidebar a:hover {
    color: var(--bith-primary);
    transform: translateX(5px);
}

/* Search Widget */
.bith-sidebar .widget_search .search-form {
    display: flex;
    gap: var(--bith-spacing-2);
}

.bith-sidebar .widget_search .search-field {
    flex: 1;
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    border: 2px solid var(--bith-gray-200);
    border-radius: var(--bith-radius-xl);
    font-size: var(--bith-font-size-sm);
}

.bith-sidebar .widget_search .search-submit {
    padding: var(--bith-spacing-3) var(--bith-spacing-5);
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    border: none;
    border-radius: var(--bith-radius-xl);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-sidebar .widget_search .search-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--bith-shadow-primary);
}

/* Tag Cloud Widget */
.bith-sidebar .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bith-spacing-2);
}

.bith-sidebar .tagcloud a {
    display: inline-block;
    padding: var(--bith-spacing-1) var(--bith-spacing-3);
    background: var(--bith-gray-100);
    color: var(--bith-gray-700);
    font-size: var(--bith-font-size-sm) !important;
    border-radius: var(--bith-radius-full);
    transform: none;
}

.bith-sidebar .tagcloud a:hover {
    background: var(--bith-primary);
    color: var(--bith-white);
    transform: none;
}

/* Recent Posts Widget */
.bith-sidebar .widget_recent_entries li a {
    display: block;
    font-weight: 500;
}

.bith-sidebar .widget_recent_entries .post-date {
    display: block;
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-500);
    margin-top: var(--bith-spacing-1);
}

/* Categories Widget */
.bith-sidebar .widget_categories .cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bith-sidebar .widget_categories .cat-item a {
    flex: 1;
}

.bith-sidebar .widget_categories .count {
    background: var(--bith-gray-100);
    padding: 2px 8px;
    border-radius: var(--bith-radius-full);
    font-size: var(--bith-font-size-xs);
    color: var(--bith-gray-500);
}

/* Calendar Widget */
.bith-sidebar .widget_calendar table {
    width: 100%;
    text-align: center;
}

.bith-sidebar .widget_calendar th,
.bith-sidebar .widget_calendar td {
    padding: var(--bith-spacing-2);
}

.bith-sidebar .widget_calendar #today {
    background: var(--bith-primary);
    color: var(--bith-white);
    border-radius: var(--bith-radius-md);
}

/* ==========================================================================
   Search Results Page
   ========================================================================== */

.bith-search-main {
    background: var(--bith-gray-50);
}

.bith-search-header {
    padding: var(--bith-spacing-16) 0;
    background: var(--bith-white);
    text-align: center;
}

.bith-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bith-gradient-hero);
    border-radius: var(--bith-radius-full);
    color: var(--bith-primary);
    margin-bottom: var(--bith-spacing-4);
}

.bith-search-icon-empty {
    background: rgba(239, 68, 68, 0.1);
    color: var(--bith-error);
}

.bith-search-query {
    color: var(--bith-primary);
}

.bith-search-count {
    color: var(--bith-gray-600);
    margin-top: var(--bith-spacing-2);
}

.bith-search-form-hero {
    max-width: 600px;
    margin: var(--bith-spacing-8) auto 0;
}

.bith-search-input-group {
    display: flex;
    gap: var(--bith-spacing-3);
}

.bith-search-input-large {
    flex: 1;
    padding: var(--bith-spacing-4) var(--bith-spacing-6);
    border: 2px solid var(--bith-gray-200);
    border-radius: var(--bith-radius-full);
    font-size: var(--bith-font-size-lg);
    transition: all var(--bith-transition-fast);
}

.bith-search-input-large:focus {
    outline: none;
    border-color: var(--bith-primary);
    box-shadow: 0 0 0 4px rgba(var(--bith-primary-rgb), 0.1);
}

.bith-search-submit-large {
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-4) var(--bith-spacing-8);
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    border: none;
    border-radius: var(--bith-radius-full);
    font-size: var(--bith-font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-search-submit-large:hover {
    transform: scale(1.05);
    box-shadow: var(--bith-shadow-primary);
}

.bith-search-content {
    padding: var(--bith-spacing-12) 0;
}

/* Search Filters */
.bith-search-filters,
.bith-archive-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bith-spacing-4);
    background: var(--bith-white);
    border-radius: var(--bith-radius-xl);
    margin-bottom: var(--bith-spacing-6);
    box-shadow: var(--bith-shadow-sm);
}

.bith-results-showing {
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-600);
}

.bith-layout-toggle,
.bith-layout-switcher {
    display: flex;
    gap: var(--bith-spacing-1);
    padding: var(--bith-spacing-1);
    background: var(--bith-gray-100);
    border-radius: var(--bith-radius-lg);
}

.bith-layout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: var(--bith-radius-md);
    color: var(--bith-gray-500);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-layout-btn:hover {
    color: var(--bith-gray-700);
}

.bith-layout-btn.active {
    background: var(--bith-white);
    color: var(--bith-primary);
    box-shadow: var(--bith-shadow-sm);
}

.bith-sort-select {
    padding: var(--bith-spacing-2) var(--bith-spacing-4);
    border: 1px solid var(--bith-gray-200);
    border-radius: var(--bith-radius-lg);
    font-size: var(--bith-font-size-sm);
    cursor: pointer;
}

/* No Results Content */
.bith-no-results-content {
    max-width: 900px;
    margin: 0 auto;
}

.bith-search-suggestions-box,
.bith-popular-content,
.bith-browse-categories {
    background: var(--bith-white);
    padding: var(--bith-spacing-8);
    border-radius: var(--bith-radius-2xl);
    margin-bottom: var(--bith-spacing-6);
    box-shadow: var(--bith-shadow-md);
}

.bith-suggestions-title,
.bith-popular-title,
.bith-categories-title {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-3);
    font-size: var(--bith-font-size-xl);
    margin-bottom: var(--bith-spacing-5);
}

.bith-search-tips {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-search-tips li {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-3);
    padding: var(--bith-spacing-3) 0;
    color: var(--bith-gray-600);
}

.bith-search-tips li::before {
    content: '→';
    color: var(--bith-primary);
}

/* Popular Grid */
.bith-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--bith-spacing-4);
}

.bith-popular-item {
    display: flex;
    gap: var(--bith-spacing-3);
    padding: var(--bith-spacing-3);
    background: var(--bith-gray-50);
    border-radius: var(--bith-radius-xl);
    transition: all var(--bith-transition-fast);
}

.bith-popular-item:hover {
    background: var(--bith-gray-100);
}

.bith-popular-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--bith-radius-lg);
}

.bith-popular-item-title {
    font-size: var(--bith-font-size-sm);
    font-weight: 600;
    margin-bottom: var(--bith-spacing-1);
    line-height: var(--bith-line-height-tight);
}

.bith-popular-item-title a {
    color: var(--bith-gray-800);
}

.bith-popular-item-title a:hover {
    color: var(--bith-primary);
}

.bith-popular-date {
    font-size: var(--bith-font-size-xs);
    color: var(--bith-gray-500);
}

/* Category Cloud */
.bith-category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bith-spacing-2);
}

.bith-category-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-2) var(--bith-spacing-4);
    background: var(--bith-gray-100);
    color: var(--bith-gray-700);
    font-size: var(--bith-font-size-sm);
    font-weight: 500;
    border-radius: var(--bith-radius-full);
    transition: all var(--bith-transition-fast);
}

.bith-category-chip:hover {
    background: var(--bith-primary);
    color: var(--bith-white);
}

.bith-category-count {
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--bith-radius-full);
    font-size: var(--bith-font-size-xs);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.bith-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--bith-spacing-2);
    margin-top: var(--bith-spacing-12);
}

.bith-pagination a,
.bith-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--bith-spacing-3);
    font-weight: 600;
    font-size: var(--bith-font-size-sm);
    border-radius: var(--bith-radius-xl);
    transition: all var(--bith-transition-fast);
}

.bith-pagination a {
    background: var(--bith-white);
    color: var(--bith-gray-700);
    box-shadow: var(--bith-shadow-sm);
}

.bith-pagination a:hover {
    background: var(--bith-primary);
    color: var(--bith-white);
    transform: translateY(-2px);
    box-shadow: var(--bith-shadow-primary);
}

.bith-pagination .current {
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    box-shadow: var(--bith-shadow-primary);
}

.bith-pagination .dots {
    background: transparent;
    box-shadow: none;
}

/* ==========================================================================
   Buttons - Premium Styles
   ========================================================================== */

.bith-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-3) var(--bith-spacing-6);
    font-family: var(--bith-font-family);
    font-size: var(--bith-font-size-sm);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--bith-radius-xl);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-btn-primary {
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    border-color: transparent;
}

.bith-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--bith-shadow-primary);
    color: var(--bith-white);
}

.bith-btn-secondary {
    background: var(--bith-gradient-secondary);
    color: var(--bith-white);
}

.bith-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--bith-shadow-lg);
    color: var(--bith-white);
}

.bith-btn-outline {
    background: transparent;
    border-color: var(--bith-primary);
    color: var(--bith-primary);
}

.bith-btn-outline:hover {
    background: var(--bith-primary);
    color: var(--bith-white);
}

.bith-btn-ghost {
    background: transparent;
    color: var(--bith-gray-700);
}

.bith-btn-ghost:hover {
    background: var(--bith-gray-100);
}

.bith-btn-block {
    width: 100%;
}

.bith-btn-lg {
    padding: var(--bith-spacing-4) var(--bith-spacing-8);
    font-size: var(--bith-font-size-base);
}

.bith-btn-sm {
    padding: var(--bith-spacing-2) var(--bith-spacing-4);
    font-size: var(--bith-font-size-xs);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.bith-back-to-top {
    position: fixed;
    bottom: var(--bith-spacing-8);
    right: var(--bith-spacing-8);
    width: 56px;
    height: 56px;
    background: var(--bith-gradient-primary);
    border: none;
    border-radius: var(--bith-radius-full);
    color: var(--bith-white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--bith-transition-normal);
    z-index: var(--bith-z-fixed);
}

.bith-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bith-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--bith-shadow-glow);
}

.bith-back-to-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.bith-back-to-top-progress {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.bith-progress-circle {
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.3s ease;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.bith-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bith-spacing-2);
    padding: var(--bith-spacing-4) 0;
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-500);
}

.bith-breadcrumbs a {
    color: var(--bith-gray-600);
    transition: color var(--bith-transition-fast);
}

.bith-breadcrumbs a:hover {
    color: var(--bith-primary);
}

.bith-breadcrumb-separator {
    color: var(--bith-gray-400);
}

.bith-breadcrumb-current {
    color: var(--bith-gray-800);
    font-weight: 500;
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

.bith-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bith-spacing-2);
}

.bith-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--bith-radius-full);
    color: var(--bith-gray-600);
    transition: all var(--bith-transition-fast);
}

.bith-social-icon:hover {
    transform: translateY(-3px);
}

.bith-social-icon svg {
    width: 20px;
    height: 20px;
}

/* Size variations */
.bith-social-size-small .bith-social-icon {
    width: 32px;
    height: 32px;
}

.bith-social-size-small .bith-social-icon svg {
    width: 16px;
    height: 16px;
}

.bith-social-size-large .bith-social-icon {
    width: 48px;
    height: 48px;
}

.bith-social-size-large .bith-social-icon svg {
    width: 24px;
    height: 24px;
}

/* Style variations */
.bith-social-style-filled .bith-social-icon {
    background: var(--bith-gray-100);
}

.bith-social-style-filled .bith-social-icon:hover {
    background: var(--bith-primary);
    color: var(--bith-white);
}

.bith-social-style-outlined .bith-social-icon {
    border: 2px solid currentColor;
}

/* Color modes */
.bith-social-color-original .bith-social-facebook {
    color: #1877f2;
}

.bith-social-color-original .bith-social-instagram {
    color: #e4405f;
}

.bith-social-color-original .bith-social-twitter {
    color: #000000;
}

.bith-social-color-original .bith-social-linkedin {
    color: #0a66c2;
}

.bith-social-color-original .bith-social-youtube {
    color: #ff0000;
}

.bith-social-color-original .bith-social-tiktok {
    color: #000000;
}

.bith-social-color-original .bith-social-pinterest {
    color: #e60023;
}

.bith-social-color-original .bith-social-whatsapp {
    color: #25d366;
}

.bith-social-color-original .bith-social-telegram {
    color: #0088cc;
}

/* ==========================================================================
   404 Page Styles
   ========================================================================== */

.bith-error-404 {
    text-align: center;
    padding: var(--bith-spacing-16) 0;
}

.bith-error-404 .bith-page-title {
    font-size: clamp(3rem, 10vw, 8rem);
    background: var(--bith-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--bith-spacing-4);
}

.bith-404-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--bith-spacing-8);
    margin-top: var(--bith-spacing-12);
    text-align: left;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Text Alignment */
.bith-text-left {
    text-align: left;
}

.bith-text-center {
    text-align: center;
}

.bith-text-right {
    text-align: right;
}

/* Display */
.bith-hidden {
    display: none !important;
}

.bith-block {
    display: block;
}

.bith-inline-block {
    display: inline-block;
}

.bith-flex {
    display: flex;
}

.bith-grid {
    display: grid;
}

/* Flexbox */
.bith-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bith-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Spacing */
.bith-mt-0 {
    margin-top: 0;
}

.bith-mt-4 {
    margin-top: var(--bith-spacing-4);
}

.bith-mt-8 {
    margin-top: var(--bith-spacing-8);
}

.bith-mb-0 {
    margin-bottom: 0;
}

.bith-mb-4 {
    margin-bottom: var(--bith-spacing-4);
}

.bith-mb-8 {
    margin-bottom: var(--bith-spacing-8);
}

.bith-my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.bith-my-4 {
    margin-top: var(--bith-spacing-4);
    margin-bottom: var(--bith-spacing-4);
}

.bith-my-8 {
    margin-top: var(--bith-spacing-8);
    margin-bottom: var(--bith-spacing-8);
}

.bith-p-0 {
    padding: 0;
}

.bith-p-4 {
    padding: var(--bith-spacing-4);
}

.bith-p-8 {
    padding: var(--bith-spacing-8);
}

/* Screen Reader Only */
.bith-sr-only,
.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;
}

/* Skip Link */
.skip-link {
    position: fixed;
    top: -100px;
    left: 0;
    z-index: 9999;
    padding: var(--bith-spacing-4) var(--bith-spacing-6);
    background: var(--bith-primary);
    color: var(--bith-white);
    font-weight: 600;
    border-radius: 0 0 var(--bith-radius-lg) 0;
    transition: top var(--bith-transition-fast);
}

.skip-link:focus {
    top: 0;
    color: var(--bith-white);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 768px) {
    .bith-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .bith-hide-desktop {
        display: none !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .bith-header,
    .bith-footer,
    .bith-sidebar,
    .bith-back-to-top,
    .bith-comments-section,
    .bith-share-buttons,
    .bith-mobile-menu,
    .bith-search-overlay {
        display: none !important;
    }

    .bith-main {
        width: 100%;
    }

    .bith-single-content {
        font-size: 12pt;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.bith-animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.bith-animate-slideUp {
    animation: slideUp 0.5s ease forwards;
}

.bith-animate-slideDown {
    animation: slideDown 0.5s ease forwards;
}

.bith-animate-scaleIn {
    animation: scaleIn 0.5s ease forwards;
}

/* Loading Skeleton */
.bith-skeleton {
    background: linear-gradient(90deg, var(--bith-gray-200) 25%, var(--bith-gray-100) 50%, var(--bith-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--bith-radius-md);
}

/* ==========================================================================
   WooCommerce Compatibility
   ========================================================================== */

.woocommerce .bith-container {
    max-width: var(--bith-container-width);
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--bith-spacing-6);
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--bith-white);
    border-radius: var(--bith-radius-2xl);
    overflow: hidden;
    box-shadow: var(--bith-shadow-md);
    transition: all var(--bith-transition-normal);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--bith-shadow-xl);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--bith-font-size-lg);
    padding: 0 var(--bith-spacing-4);
}

.woocommerce ul.products li.product .price {
    color: var(--bith-primary);
    font-weight: 700;
    padding: 0 var(--bith-spacing-4) var(--bith-spacing-4);
}

.woocommerce ul.products li.product .button {
    margin: 0 var(--bith-spacing-4) var(--bith-spacing-4);
    padding: var(--bith-spacing-3) var(--bith-spacing-6);
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    border-radius: var(--bith-radius-xl);
    font-weight: 600;
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */

.elementor-page .bith-content {
    padding: 0;
}

.elementor-page .bith-main {
    min-height: auto;
}

.elementor-page .bith-page-header {
    display: none;
}

/* ==========================================================================
   Off-Canvas Menu Styles
   ========================================================================== */

/* Off-Canvas Overlay */
.bith-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--bith-transition-normal), visibility var(--bith-transition-normal);
    z-index: calc(var(--bith-z-modal) - 1);
    pointer-events: none;
}

.bith-offcanvas-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Off-Canvas Container */
.bith-offcanvas-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: var(--bith-white);
    box-shadow: var(--bith-shadow-2xl);
    z-index: var(--bith-z-modal);
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1), right 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s, opacity 0.2s ease;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.bith-offcanvas-menu.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Direction: Left (default) */
.bith-offcanvas-left {
    left: -100%;
    right: auto;
}

.bith-offcanvas-left.is-active {
    left: 0;
}

/* Direction: Right */
.bith-offcanvas-right {
    right: -100%;
    left: auto;
}

.bith-offcanvas-right.is-active {
    right: 0;
}

/* Off-Canvas Header */
.bith-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bith-spacing-5) var(--bith-spacing-6);
    border-bottom: 1px solid var(--bith-gray-100);
    flex-shrink: 0;
}

.bith-offcanvas-logo {
    max-width: 150px;
}

.bith-offcanvas-logo img {
    max-height: 40px;
    width: auto;
}

.bith-offcanvas-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bith-gray-100);
    border: none;
    border-radius: var(--bith-radius-full);
    color: var(--bith-gray-700);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-offcanvas-close:hover {
    background: var(--bith-gray-200);
    color: var(--bith-gray-900);
    transform: rotate(90deg);
}

/* Off-Canvas Content */
.bith-offcanvas-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--bith-spacing-6);
}

/* Off-Canvas Search */
.bith-offcanvas-search {
    margin-bottom: var(--bith-spacing-6);
}

.bith-offcanvas-search .search-form {
    display: flex;
    gap: var(--bith-spacing-2);
}

.bith-offcanvas-search .search-field {
    flex: 1;
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    border: 2px solid var(--bith-gray-200);
    border-radius: var(--bith-radius-xl);
    font-size: var(--bith-font-size-sm);
    transition: border-color var(--bith-transition-fast);
}

.bith-offcanvas-search .search-field:focus {
    border-color: var(--bith-primary);
    outline: none;
}

.bith-offcanvas-search .search-submit {
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    border: none;
    border-radius: var(--bith-radius-xl);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-offcanvas-search .search-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--bith-shadow-primary);
}

/* Off-Canvas Navigation */
.bith-offcanvas-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-offcanvas-nav>li {
    border-bottom: 1px solid var(--bith-gray-100);
}

.bith-offcanvas-nav>li:last-child {
    border-bottom: none;
}

.bith-offcanvas-nav>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bith-spacing-4) 0;
    color: var(--bith-gray-800);
    font-weight: 600;
    font-size: var(--bith-font-size-base);
    transition: color var(--bith-transition-fast);
}

.bith-offcanvas-nav>li>a:hover,
.bith-offcanvas-nav>li.current-menu-item>a {
    color: var(--bith-primary);
}

/* Submenu Toggle */
.bith-offcanvas-nav .menu-item-has-children {
    position: relative;
}

.bith-offcanvas-nav .bith-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bith-gray-100);
    border: none;
    border-radius: var(--bith-radius-md);
    color: var(--bith-gray-600);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-offcanvas-nav .bith-submenu-toggle:hover {
    background: var(--bith-gray-200);
}

.bith-offcanvas-nav .bith-submenu-toggle svg {
    transition: transform var(--bith-transition-fast);
}

.bith-offcanvas-nav .menu-item-has-children.is-open>a .bith-submenu-toggle svg {
    transform: rotate(180deg);
}

/* Offcanvas Submenu */
.bith-offcanvas-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bith-offcanvas-nav .menu-item-has-children.is-open>.sub-menu {
    max-height: 500px;
}

.bith-offcanvas-nav .sub-menu a {
    display: block;
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    padding-left: var(--bith-spacing-6);
    color: var(--bith-gray-600);
    font-size: var(--bith-font-size-sm);
    font-weight: 500;
    transition: all var(--bith-transition-fast);
}

.bith-offcanvas-nav .sub-menu a:hover {
    color: var(--bith-primary);
    padding-left: calc(var(--bith-spacing-6) + 5px);
}

/* Off-Canvas Footer */
.bith-offcanvas-footer {
    padding: var(--bith-spacing-6);
    border-top: 1px solid var(--bith-gray-100);
    flex-shrink: 0;
}

.bith-offcanvas-cta {
    margin-bottom: var(--bith-spacing-5);
}

.bith-offcanvas-cta .bith-btn {
    width: 100%;
}

.bith-offcanvas-social {
    display: flex;
    justify-content: center;
    gap: var(--bith-spacing-2);
}

/* Body Scroll Lock */
body.bith-offcanvas-open {
    overflow: hidden;
}

/* ==========================================================================
   Mobile Nav: Dropdown (fallback when off-canvas disabled)
   ========================================================================== */

.bith-mobile-dropdown {
    position: fixed;
    top: var(--bith-header-height-mobile);
    left: 0;
    right: 0;
    z-index: var(--bith-z-modal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--bith-transition-normal), transform var(--bith-transition-normal), visibility var(--bith-transition-normal);
    pointer-events: none;
}

.bith-mobile-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.bith-mobile-dropdown-inner {
    margin: var(--bith-spacing-3);
    background: var(--bith-white);
    border-radius: var(--bith-radius-2xl);
    box-shadow: var(--bith-shadow-2xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.bith-mobile-dropdown-nav {
    padding: var(--bith-spacing-4) var(--bith-spacing-6);
    border-bottom: 1px solid var(--bith-gray-100);
}

.bith-mobile-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-mobile-dropdown-menu>li {
    border-bottom: 1px solid var(--bith-gray-100);
}

.bith-mobile-dropdown-menu>li:last-child {
    border-bottom: 0;
}

.bith-mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bith-spacing-4) 0;
    color: var(--bith-gray-900);
    font-weight: 600;
}

.bith-mobile-dropdown-menu .sub-menu {
    list-style: none;
    margin: 0 0 var(--bith-spacing-3) 0;
    padding: 0 0 0 var(--bith-spacing-4);
}

.bith-mobile-dropdown-menu .sub-menu a {
    padding: var(--bith-spacing-3) 0;
    font-weight: 500;
    color: var(--bith-gray-700);
}

.bith-mobile-dropdown-actions {
    padding: var(--bith-spacing-5) var(--bith-spacing-6);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.bith-mobile-dropdown-actions .search-form {
    display: flex;
    gap: var(--bith-spacing-2);
}

.bith-mobile-dropdown-actions .search-field {
    flex: 1;
    padding: var(--bith-spacing-3) var(--bith-spacing-4);
    border: 2px solid var(--bith-gray-200);
    border-radius: var(--bith-radius-xl);
}

.bith-mobile-dropdown-actions .search-submit {
    padding: var(--bith-spacing-3) var(--bith-spacing-5);
    background: var(--bith-gradient-primary);
    color: var(--bith-white);
    border: none;
    border-radius: var(--bith-radius-xl);
}

/* Mobile trigger state (hamburger -> X) */
.bith-mobile-nav-trigger.active .bith-hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.bith-mobile-nav-trigger.active .bith-hamburger-line:nth-child(2) {
    opacity: 0;
}

.bith-mobile-nav-trigger.active .bith-hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* Off-Canvas Trigger */
.bith-offcanvas-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--bith-radius-lg);
    color: var(--bith-header-text);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-offcanvas-trigger:hover {
    background: var(--bith-gray-100);
    color: var(--bith-primary);
}

/* Show trigger on mobile when offcanvas is enabled */
body.bith-mobile-offcanvas .bith-menu-toggle,
body.bith-mobile-offcanvas .bith-offcanvas-trigger {
    display: none;
}

@media (max-width: 991px) {

    body.bith-mobile-offcanvas .bith-menu-toggle,
    body.bith-mobile-offcanvas .bith-offcanvas-trigger {
        display: flex !important;
    }

    body.bith-mobile-offcanvas .bith-nav-primary {
        display: none !important;
    }
}

/* Desktop hamburger (optional) */
body.bith-desktop-offcanvas .bith-offcanvas-trigger.bith-desktop-trigger,
body.bith-desktop-offcanvas .bith-desktop-menu-toggle {
    display: flex;
}

/* Mobile-only visibility */
.bith-mobile-only {
    display: none !important;
}

@media (max-width: 991px) {
    .bith-mobile-only {
        display: flex !important;
    }

    .bith-desktop-only {
        display: none !important;
    }
}

/* Menu Toggle Hamburger */
.bith-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--bith-radius-lg);
    color: var(--bith-header-text);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
    padding: 0;
}

.bith-menu-toggle:hover {
    background: var(--bith-gray-100);
    color: var(--bith-primary);
}

.bith-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    gap: 5px;
}

.bith-hamburger-line {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all var(--bith-transition-fast);
    border-radius: 2px;
}

/* ==========================================================================
   Enhanced Header Layout Styles
   ========================================================================== */

/* Header Layout: Center */
body.bith-header-layout-center .bith-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

body.bith-header-layout-center .bith-logo {
    grid-column: 2;
    justify-self: center;
}

body.bith-header-layout-center .bith-nav-primary {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

body.bith-header-layout-center .bith-header-actions {
    grid-column: 3;
    justify-self: end;
}

/* Header Layout: Left (default) */
body.bith-header-layout-left .bith-header-inner {
    display: flex;
}

body.bith-header-layout-left .bith-nav-primary {
    flex: 1;
    justify-content: flex-start;
    margin-left: var(--bith-spacing-8);
}

/* Header Layout: Right */
body.bith-header-layout-right .bith-header-inner {
    display: flex;
}

body.bith-header-layout-right .bith-logo {
    order: 3;
}

body.bith-header-layout-right .bith-nav-primary {
    flex: 1;
    order: 1;
    justify-content: flex-start;
}

body.bith-header-layout-right .bith-header-actions {
    order: 2;
    margin-right: var(--bith-spacing-6);
}

/* ==========================================================================
   Enhanced Sticky Header with Shrink Effect
   ========================================================================== */

/* Base header transition (evitar "saltos" al animar padding/height) */
.bith-header {
    padding: 0;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky Header Variables */
:root {
    --bith-header-height-scrolled: 60px;
    --bith-header-logo-scale: 0.85;
}

/* Sticky Header Base */
body.bith-sticky-header .bith-header {
    position: sticky;
    top: 0;
    z-index: var(--bith-z-sticky);
}

/* Sticky header: Transparent on top (optional) */
body.bith-sticky-header .bith-header.sticky-transparent-top {
    background-color: var(--bith-sticky-top-bg, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.bith-sticky-header .bith-header.sticky-transparent-top .bith-nav-menu-primary>li>a,
body.bith-sticky-header .bith-header.sticky-transparent-top .bith-header-action,
body.bith-sticky-header .bith-header.sticky-transparent-top .bith-site-title {
    color: var(--bith-sticky-top-text, var(--bith-white));
}

body.bith-sticky-header.bith-header-scrolled .bith-header.sticky-transparent-top {
    background-color: var(--bith-sticky-scrolled-bg, var(--bith-header-bg));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--bith-shadow-lg);
}

body.bith-sticky-header.bith-header-scrolled .bith-header.sticky-transparent-top .bith-nav-menu-primary>li>a,
body.bith-sticky-header.bith-header-scrolled .bith-header.sticky-transparent-top .bith-header-action,
body.bith-sticky-header.bith-header-scrolled .bith-header.sticky-transparent-top .bith-site-title {
    color: var(--bith-sticky-scrolled-text, var(--bith-header-text));
}

/* Sticky Shrink Effect */
body.bith-sticky-header.bith-sticky-shrink.bith-header-scrolled .bith-header {
    box-shadow: var(--bith-shadow-lg);
}

body.bith-sticky-header.bith-sticky-shrink.bith-header-scrolled .bith-header-main {
    padding-top: 0;
    padding-bottom: 0;
}

body.bith-sticky-header.bith-sticky-shrink.bith-header-scrolled .bith-header-main {
    height: var(--bith-header-height-scrolled);
}

body.bith-sticky-header.bith-sticky-shrink.bith-header-scrolled .bith-logo-img {
    transform: scale(var(--bith-header-logo-scale));
}

body.bith-sticky-header.bith-sticky-shrink.bith-header-scrolled .bith-nav-menu-primary>li>a {
    padding: var(--bith-spacing-2) var(--bith-spacing-3);
}

/* Transition smoothness for shrink elements */
.bith-header-main {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bith-logo-img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.bith-nav-menu-primary>li>a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transparent Header Styles */
body.bith-header-transparent .bith-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: var(--bith-z-sticky);
}

body.bith-header-transparent .bith-header-main {
    background: transparent;
}

body.bith-header-transparent .bith-nav-menu-primary>li>a,
body.bith-header-transparent .bith-header-action,
body.bith-header-transparent .bith-site-title {
    color: var(--bith-white);
}

body.bith-header-transparent .bith-logo-light {
    display: block;
}

body.bith-header-transparent .bith-logo-dark {
    display: none;
}

/* Transparent header: keep it non-sticky (do not switch to fixed on scroll) */
body.bith-header-transparent.bith-header-scrolled .bith-header {
    position: absolute;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.bith-header-transparent.bith-header-scrolled .bith-nav-menu-primary>li>a,
body.bith-header-transparent.bith-header-scrolled .bith-header-action,
body.bith-header-transparent.bith-header-scrolled .bith-site-title {
    color: var(--bith-white);
}

body.bith-header-transparent.bith-header-scrolled .bith-logo-light {
    display: block;
}

body.bith-header-transparent.bith-header-scrolled .bith-logo-dark {
    display: none;
}

/* Add padding to content when header is transparent */
body.bith-header-transparent .bith-site-content {
    padding-top: 0;
}

body.bith-header-transparent .bith-page-header:first-child,
body.bith-header-transparent .bith-archive-header:first-child {
    padding-top: calc(var(--bith-header-height) + var(--bith-spacing-16));
}

/* ==========================================================================
   Reading Progress Bar Styles
   ========================================================================== */

.bith-reading-progress {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: calc(var(--bith-z-sticky) + 1);
    pointer-events: none;
}

.bith-reading-progress .bith-reading-progress-bar {
    width: 100%;
    height: 100%;
    background: var(--bith-gradient-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.1s linear;
    border-radius: 2px 2px 0 0;
}

/* Hide on mobile if desired */
@media (max-width: 768px) {
    .bith-reading-progress {
        height: 3px;
    }
}

/* ==========================================================================
   Single Post Featured Image Styles
   ========================================================================== */

/* Featured Image: Boxed (default) */
.bith-single-featured.bith-featured-boxed {
    max-width: var(--bith-container-width);
    margin: 0 auto var(--bith-spacing-8);
    padding: 0 var(--bith-container-padding);
}

.bith-single-featured.bith-featured-boxed img {
    width: 100%;
    height: auto;
    border-radius: var(--bith-radius-2xl);
    box-shadow: var(--bith-shadow-xl);
}

/* Featured Image: Wide Hero */
.bith-single-featured.bith-featured-wide {
    width: 100%;
    margin-bottom: var(--bith-spacing-12);
    position: relative;
}

.bith-single-featured.bith-featured-wide img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
}

/* Wide Hero with Overlay */
.bith-single-featured.bith-featured-wide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

/* Featured Image: Hidden */
.bith-single-featured.bith-featured-hidden {
    display: none;
}

/* Post Header when featured is wide */
.bith-featured-wide+.bith-single-header {
    margin-top: calc(-1 * var(--bith-spacing-16));
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Single Post Enhancements
   ========================================================================== */

/* Author Box Enhanced */
.bith-author-box.bith-author-box-enhanced {
    display: flex;
    gap: var(--bith-spacing-6);
    padding: var(--bith-spacing-8);
    background: var(--bith-white);
    border-radius: var(--bith-radius-2xl);
    box-shadow: var(--bith-shadow-lg);
    margin-top: var(--bith-spacing-10);
}

.bith-author-box-enhanced .bith-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: var(--bith-radius-full);
    object-fit: cover;
    border: 4px solid var(--bith-primary-light);
}

.bith-author-box-enhanced .bith-author-social {
    margin-top: var(--bith-spacing-4);
    display: flex;
    gap: var(--bith-spacing-2);
}

/* Post Navigation */
.bith-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bith-spacing-6);
    margin-top: var(--bith-spacing-12);
    padding-top: var(--bith-spacing-8);
    border-top: 1px solid var(--bith-gray-200);
}

.bith-post-nav-item {
    padding: var(--bith-spacing-5);
    background: var(--bith-gray-50);
    border-radius: var(--bith-radius-xl);
    transition: all var(--bith-transition-fast);
}

.bith-post-nav-item:hover {
    background: var(--bith-white);
    box-shadow: var(--bith-shadow-md);
    transform: translateY(-2px);
}

.bith-post-nav-item.bith-post-nav-next {
    text-align: right;
}

.bith-post-nav-label {
    display: flex;
    align-items: center;
    gap: var(--bith-spacing-2);
    font-size: var(--bith-font-size-sm);
    color: var(--bith-gray-500);
    margin-bottom: var(--bith-spacing-2);
}

.bith-post-nav-next .bith-post-nav-label {
    justify-content: flex-end;
}

.bith-post-nav-title {
    font-size: var(--bith-font-size-base);
    font-weight: 600;
    color: var(--bith-gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bith-post-nav-title:hover {
    color: var(--bith-primary);
}

@media (max-width: 576px) {
    .bith-post-navigation {
        grid-template-columns: 1fr;
    }

    .bith-post-nav-item.bith-post-nav-next {
        text-align: left;
    }

    .bith-post-nav-next .bith-post-nav-label {
        justify-content: flex-start;
    }
}

/* Table of Contents */
.bith-toc {
    padding: var(--bith-spacing-6);
    background: var(--bith-gray-50);
    border-radius: var(--bith-radius-xl);
    margin-bottom: var(--bith-spacing-8);
}

.bith-toc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--bith-font-size-lg);
    font-weight: 700;
    color: var(--bith-gray-900);
    margin-bottom: var(--bith-spacing-4);
    cursor: pointer;
}

.bith-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bith-gray-200);
    border: none;
    border-radius: var(--bith-radius-md);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-toc-toggle svg {
    transition: transform var(--bith-transition-fast);
}

.bith-toc.is-collapsed .bith-toc-toggle svg {
    transform: rotate(180deg);
}

.bith-toc-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bith-toc.is-collapsed .bith-toc-content {
    max-height: 0;
}

.bith-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-toc-list li {
    padding: var(--bith-spacing-2) 0;
}

.bith-toc-list a {
    color: var(--bith-gray-600);
    font-size: var(--bith-font-size-sm);
    display: block;
    padding-left: var(--bith-spacing-4);
    border-left: 2px solid transparent;
    transition: all var(--bith-transition-fast);
}

.bith-toc-list a:hover,
.bith-toc-list a.is-active {
    color: var(--bith-primary);
    border-left-color: var(--bith-primary);
}

.bith-toc-list .bith-toc-h3 {
    padding-left: var(--bith-spacing-8);
}

.bith-toc-list .bith-toc-h4 {
    padding-left: var(--bith-spacing-12);
}

/* Sticky Sidebar for Single Post */
.bith-sidebar.bith-sticky-sidebar .bith-sidebar-inner {
    position: sticky;
    top: calc(var(--bith-header-height) + var(--bith-spacing-8));
}

body.bith-sticky-header.bith-sticky-shrink.bith-header-scrolled .bith-sidebar.bith-sticky-sidebar .bith-sidebar-inner {
    top: calc(var(--bith-header-height-scrolled) + var(--bith-spacing-8));
}

/* ==========================================================================
   Back to Top Button Styles - Enhanced
   ========================================================================== */

/* Back to Top: Circle Style (default) */
.bith-back-to-top.bith-btt-circle {
    width: 56px;
    height: 56px;
    border-radius: var(--bith-radius-full);
}

/* Back to Top: Rounded Style */
.bith-back-to-top.bith-btt-rounded {
    width: 56px;
    height: 56px;
    border-radius: var(--bith-radius-xl);
}

/* Back to Top: Square Style */
.bith-back-to-top.bith-btt-square {
    width: 56px;
    height: 56px;
    border-radius: var(--bith-radius-md);
}

/* Back to Top Position: Left */
.bith-back-to-top.bith-btt-left {
    right: auto;
    left: var(--bith-spacing-8);
}

/* Back to Top with Progress */
.bith-back-to-top.bith-btt-progress {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.bith-btt-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
}

.bith-btt-progress-circle-bg {
    fill: none;
    stroke: var(--bith-gray-200);
    stroke-width: 3;
}

.bith-btt-progress-circle {
    fill: none;
    stroke: var(--bith-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.1s linear;
}

.bith-btt-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    background: var(--bith-gradient-primary);
    border-radius: var(--bith-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bith-white);
    transition: transform var(--bith-transition-fast);
}

.bith-back-to-top.bith-btt-progress:hover .bith-btt-icon {
    transform: scale(1.1);
}

/* ==========================================================================
   Related Posts Section
   ========================================================================== */

.bith-related-posts {
    margin-top: var(--bith-spacing-12);
    padding: var(--bith-spacing-12) 0;
    background: var(--bith-gray-50);
}

.bith-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bith-spacing-8);
}

.bith-related-title {
    font-size: var(--bith-font-size-2xl);
}

.bith-related-nav {
    display: flex;
    gap: var(--bith-spacing-2);
}

.bith-related-nav button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bith-white);
    border: none;
    border-radius: var(--bith-radius-full);
    color: var(--bith-gray-600);
    cursor: pointer;
    transition: all var(--bith-transition-fast);
}

.bith-related-nav button:hover:not(:disabled) {
    background: var(--bith-primary);
    color: var(--bith-white);
}

.bith-related-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bith-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bith-spacing-6);
}

@media (max-width: 991px) {
    .bith-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bith-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Share Buttons Enhanced
   ========================================================================== */

.bith-share-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bith-spacing-4);
    padding: var(--bith-spacing-5);
    background: var(--bith-gray-50);
    border-radius: var(--bith-radius-xl);
    margin: var(--bith-spacing-8) 0;
}

.bith-share-label {
    font-weight: 600;
    color: var(--bith-gray-700);
    font-size: var(--bith-font-size-sm);
}

.bith-share-buttons-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bith-spacing-2);
}

.bith-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--bith-radius-full);
    color: var(--bith-white);
    transition: all var(--bith-transition-fast);
}

.bith-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--bith-shadow-lg);
    color: var(--bith-white);
}

.bith-share-btn-facebook {
    background: #1877f2;
}

.bith-share-btn-twitter {
    background: #000000;
}

.bith-share-btn-linkedin {
    background: #0a66c2;
}

.bith-share-btn-pinterest {
    background: #e60023;
}

.bith-share-btn-whatsapp {
    background: #25d366;
}

.bith-share-btn-telegram {
    background: #0088cc;
}

.bith-share-btn-email {
    background: var(--bith-gray-600);
}

.bith-share-btn-copy {
    background: var(--bith-primary);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.bith-toast {
    position: fixed;
    bottom: var(--bith-spacing-8);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--bith-spacing-4) var(--bith-spacing-6);
    background: var(--bith-gray-900);
    color: var(--bith-white);
    font-size: var(--bith-font-size-sm);
    font-weight: 500;
    border-radius: var(--bith-radius-xl);
    box-shadow: var(--bith-shadow-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: var(--bith-z-tooltip);
}

.bith-toast.bith-toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.bith-toast-success {
    background: var(--bith-success);
}

.bith-toast-error {
    background: var(--bith-error);
}

.bith-toast-warning {
    background: var(--bith-warning);
}

/* ==========================================================================
   Header Enhanced Padding & Centering (safe overrides)
   ========================================================================== */

/*
 * Nota:
 * El header ya define height/align-items en el bloque principal.
 * Evitamos re-definir padding vertical aquí porque, combinado con sticky shrink,
 * provoca “saltos” y descentrado del logo/acciones.
 */
.bith-header-main {
    display: flex;
    align-items: center;
    padding: 0;
    /* evita jump en sticky/shrink */
}

.bith-header-inner {
    width: 100%;
    min-height: 0;
}

/* El topbar ya tiene padding definido arriba; no lo duplicamos aquí. */

@media (max-width: 991px) {
    .bith-header-main {
        height: var(--bith-header-height-mobile);
    }

    .bith-header-inner {
        min-height: 0;
    }
}

/**
 * Bith Theme - Premium Styles
 * 
 * Advanced visual effects compatible with widget design system.
 * Light Mode Default with Indigo/Violet gradients.
 * 
 * @package Bith_Theme
 * @version 1.0.0
 */

/* ==========================================================================
   Premium CSS Variables (Override defaults)
   ========================================================================== */

:root {
    /* Primary Palette - Indigo/Violet as per widget design */
    --bith-primary: #6366f1;
    --bith-primary-hover: #4f46e5;
    --bith-primary-light: #818cf8;
    --bith-primary-dark: #4338ca;

    --bith-secondary: #a855f7;
    --bith-secondary-hover: #9333ea;
    --bith-secondary-light: #c084fc;

    --bith-accent: #8b5cf6;

    /* Light Mode Surface Colors */
    --bith-surface: #ffffff;
    --bith-page-bg: #f8fafc;
    --bith-surface-elevated: #ffffff;

    /* Text Colors - Slate palette */
    --bith-text-main: #0f172a;
    --bith-text-secondary: #1e293b;
    --bith-text-muted: #64748b;
    --bith-text-subtle: #94a3b8;

    /* Gradients */
    --bith-gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --bith-gradient-secondary: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    --bith-gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --bith-gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);

    /* Premium Border Radius */
    --bith-radius-premium: 20px;
    --bith-radius-button: 12px;
    --bith-radius-card: 24px;

    /* Premium Shadows - Layered soft shadows */
    --bith-shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --bith-shadow-elevated: 0 20px 40px -15px rgba(99, 102, 241, 0.15);
    --bith-shadow-premium:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 20px -5px rgba(0, 0, 0, 0.08),
        0 25px 50px -12px rgba(99, 102, 241, 0.1);
    --bith-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* Premium Transitions */
    --bith-ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --bith-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --bith-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --bith-transition-premium: 0.4s var(--bith-ease-bounce);
    --bith-transition-smooth: 0.3s var(--bith-ease-smooth);
}

/* ==========================================================================
   PREMIUM HEADER STYLES
   ========================================================================== */

.bith-header-premium {
    position: relative;
    background: var(--bith-header-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: var(--bith-shadow-soft);
    transition: all 0.4s var(--bith-ease-smooth);
    z-index: 1000;
}

/* Apply header colors from dashboard */
.bith-header-premium .bith-nav-menu-primary>li>a,
.bith-header-premium .bith-header-action,
.bith-header-premium .bith-site-title {
    color: var(--bith-header-text, #1e293b);
}

.bith-header-premium .bith-nav-menu-primary>li>a:hover,
.bith-header-premium .bith-nav-menu-primary>li.current-menu-item>a {
    color: var(--bith-primary);
}

.bith-header-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bith-gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bith-header-premium:hover::after {
    opacity: 0.5;
}

/* ==========================================================================
   ADMIN BAR COMPATIBILITY
   ========================================================================== */

/* Reset any margin from WordPress admin-bar for default header */
html.admin-bar,
body.admin-bar.bith-header-type-default,
body.admin-bar.bith-header-type-default .bith-site,
body.admin-bar.bith-header-type-default .bith-header-premium {
    margin-top: 0 !important;
}

/* Offset for WP Admin Bar (logged-in users) - ONLY for sticky header */
body.admin-bar .bith-header-premium.sticky-enabled {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .bith-header-premium.sticky-enabled {
        top: 46px;
    }
}

/* ==========================================================================
   STICKY HEADER STATES
   ========================================================================== */

/* ONLY apply fixed position when sticky-enabled class is present */
.bith-header-premium.sticky-enabled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
}

/* Default header (not sticky) - MUST be relative, NOT fixed */
.bith-header-premium.header-type-default {
    position: relative !important;
}

/* Transparent header - absolute but NOT fixed */
.bith-header-premium.header-type-transparent {
    position: absolute !important;
    background: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
}

.bith-header-premium.header-type-transparent .bith-nav-menu-primary>li>a,
.bith-header-premium.header-type-transparent .bith-header-action {
    color: #ffffff;
}

/* Scrolled state for sticky header */
.bith-header-premium.is-scrolled {
    background: var(--bith-header-bg, rgba(255, 255, 255, 0.98));
    box-shadow: var(--bith-shadow-elevated);
}

.bith-header-premium.is-scrolled.sticky-shrink-enabled {
    --bith-header-height: 70px;
}

/* Hide on scroll down, show on scroll up */
.bith-header-premium.header-hidden {
    transform: translateY(-100%);
}

/* Transparent top (before scroll), transitions to solid on scroll */
.bith-header-premium.sticky-transparent-top:not(.is-scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.bith-header-premium.sticky-transparent-top:not(.is-scrolled) .bith-nav-menu-primary>li>a,
.bith-header-premium.sticky-transparent-top:not(.is-scrolled) .bith-header-action {
    color: var(--bith-sticky-top-text, #ffffff);
}

/* Header Inner Layout */
.bith-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bith-header-height, 80px);
    gap: 2rem;
    transition: height 0.3s var(--bith-ease-smooth);
}

.bith-header-inner-center {
    justify-content: center;
}

.bith-header-inner-center .bith-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Logo Styles */
.bith-logo {
    flex-shrink: 0;
}

.bith-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bith-logo img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-logo:hover img {
    transform: scale(1.03);
}

.bith-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bith-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   PREMIUM NAVIGATION STYLES
   ========================================================================== */

.bith-nav-primary {
    flex: 1;
    display: flex;
    justify-content: center;
}

.bith-nav-menu-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-nav-menu-primary>li {
    position: relative;
}

.bith-nav-menu-primary>li>a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bith-text-secondary);
    text-decoration: none;
    border-radius: var(--bith-radius-button);
    transition: all 0.3s var(--bith-ease-bounce);
    position: relative;
}

/* Hover Underline Effect */
.bith-nav-menu-primary>li>a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--bith-gradient-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s var(--bith-ease-bounce);
}

.bith-nav-menu-primary>li>a:hover,
.bith-nav-menu-primary>li.current-menu-item>a {
    color: var(--bith-primary);
}

.bith-nav-menu-primary>li>a:hover::after,
.bith-nav-menu-primary>li.current-menu-item>a::after {
    width: calc(100% - 2rem);
}

/* Background Hover Effect (Alternative) */
.bith-nav-menu-primary.hover-style-background>li>a:hover {
    background: var(--bith-gradient-glow);
}

.bith-nav-menu-primary.hover-style-background>li>a::after {
    display: none;
}

/* Dropdown Submenu */
.bith-nav-menu-primary .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 0.75rem 0;
    background: var(--bith-surface);
    border-radius: var(--bith-radius-premium);
    box-shadow: var(--bith-shadow-premium);
    border: 1px solid rgba(99, 102, 241, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transform-origin: top center;
    transition: all 0.3s var(--bith-ease-bounce);
    z-index: 100;
    list-style: none;
    margin: 0;
}

.bith-nav-menu-primary>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.bith-nav-menu-primary .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: var(--bith-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.bith-nav-menu-primary .sub-menu li a:hover {
    color: var(--bith-primary);
    background: var(--bith-gradient-glow);
    padding-left: 2rem;
}

/* Nested Submenus */
.bith-nav-menu-primary .sub-menu .sub-menu {
    top: -0.75rem;
    left: 100%;
}

/* Dropdown Indicator */
.bith-nav-menu-primary>li.menu-item-has-children>a::before {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.bith-nav-menu-primary>li.menu-item-has-children:hover>a::before {
    transform: translateY(-50%) rotate(180deg);
}

/* ==========================================================================
   HEADER ACTIONS (Search, Cart, CTA)
   ========================================================================== */

.bith-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bith-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--bith-radius-button);
    color: var(--bith-text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-header-action:hover {
    background: var(--bith-gradient-glow);
    color: var(--bith-primary);
    transform: scale(1.05);
}

.bith-header-action svg {
    width: 20px;
    height: 20px;
}

/* Search Toggle Icons */
.bith-search-toggle .bith-icon-close {
    display: none;
}

.bith-search-toggle.active .bith-icon-search {
    display: none;
}

.bith-search-toggle.active .bith-icon-close {
    display: block;
}

/* Mini Cart */
.bith-mini-cart-wrapper {
    position: relative;
}

.bith-cart-icon {
    position: relative;
}

.bith-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--bith-gradient-primary);
    border-radius: 50%;
    animation: cartBounce 0.5s var(--bith-ease-bounce);
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.bith-mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    background: var(--bith-surface);
    border-radius: var(--bith-radius-premium);
    box-shadow: var(--bith-shadow-premium);
    border: 1px solid rgba(99, 102, 241, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--bith-ease-bounce);
    z-index: 100;
}

.bith-mini-cart-wrapper:hover .bith-mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header CTA Button */
.bith-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--bith-gradient-primary);
    border: none;
    border-radius: var(--bith-radius-button);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s var(--bith-ease-bounce);
    overflow: hidden;
    position: relative;
}

.bith-header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bith-header-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.bith-header-cta:hover::before {
    left: 100%;
}

.bith-header-cta .bith-btn-icon {
    transition: transform 0.3s var(--bith-ease-bounce);
}

.bith-header-cta:hover .bith-btn-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   TOP BAR STYLES
   ========================================================================== */

.bith-topbar {
    background: var(--bith-gradient-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
}

.bith-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.bith-topbar-left,
.bith-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bith-topbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.bith-topbar a:hover {
    color: #fff;
}

.bith-topbar svg {
    opacity: 0.7;
}

/* ==========================================================================
   HAMBURGER MENU TOGGLE
   ========================================================================== */

.bith-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--bith-radius-button);
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease;
}

.bith-menu-toggle:hover {
    background: var(--bith-gradient-glow);
}

.bith-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bith-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bith-text-secondary);
    border-radius: 2px;
    transition: all 0.3s var(--bith-ease-bounce);
    transform-origin: center;
}

/* Hamburger to X Animation */
.bith-menu-toggle.active .bith-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.bith-menu-toggle.active .bith-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.bith-menu-toggle.active .bith-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   OFF-CANVAS MENU (Mobile) - FIXED APPROACH
   Using left/right positioning instead of transform to avoid layout issues
   ========================================================================== */

/* Overlay - covers the entire screen when menu is open */
.bith-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bith-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Off-canvas panel - positioned off-screen using left/right, NOT transform */
.bith-offcanvas-menu {
    position: fixed;
    top: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left variant - slides from left */
.bith-offcanvas-left {
    left: -320px;
    right: auto;
}

.bith-offcanvas-left.active {
    left: 0;
}

/* Right variant - slides from right */
.bith-offcanvas-right {
    right: -320px;
    left: auto;
}

.bith-offcanvas-right.active {
    right: 0;
}

/* Admin bar offset for off-canvas */
body.admin-bar .bith-offcanvas-menu {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .bith-offcanvas-menu {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* Off-Canvas Header */
.bith-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.bith-offcanvas-logo img {
    max-height: 40px;
    width: auto;
}

.bith-offcanvas-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bith-gradient-glow);
    border: none;
    border-radius: 50%;
    color: var(--bith-primary);
    cursor: pointer;
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-offcanvas-close:hover {
    background: var(--bith-gradient-primary);
    color: #fff;
    transform: rotate(90deg);
}

/* Off-Canvas Content */
.bith-offcanvas-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Off-Canvas Navigation */
.bith-offcanvas-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-offcanvas-nav-menu>li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s var(--bith-ease-bounce);
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li,
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animation - supports both .active and .is-active */
.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(1),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(1) {
    transition-delay: 0.1s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(2),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(2) {
    transition-delay: 0.15s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(3),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(3) {
    transition-delay: 0.2s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(4),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(4) {
    transition-delay: 0.25s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(5),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(5) {
    transition-delay: 0.3s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(6),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(6) {
    transition-delay: 0.35s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(7),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(7) {
    transition-delay: 0.4s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(8),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(8) {
    transition-delay: 0.45s;
}

/* Off-Canvas Navigation Links - REFINED STYLES */
.bith-offcanvas-nav-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    position: relative;
}

.bith-offcanvas-nav-menu>li>a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bith-gradient-primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.bith-offcanvas-nav-menu>li>a:hover,
.bith-offcanvas-nav-menu>li.current-menu-item>a {
    color: var(--bith-primary, #6366f1);
    background: rgba(99, 102, 241, 0.05);
    padding-left: 1.5rem;
}

.bith-offcanvas-nav-menu>li>a:hover::before,
.bith-offcanvas-nav-menu>li.current-menu-item>a::before {
    opacity: 1;
}

/* Submenu in off-canvas */
.bith-offcanvas-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.02);
}

.bith-offcanvas-nav-menu .sub-menu li a {
    display: block;
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #475569;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.bith-offcanvas-nav-menu .sub-menu li a:hover {
    color: var(--bith-primary, #6366f1);
    padding-left: 2.5rem;
    background: rgba(99, 102, 241, 0.05);
}

/* Off-Canvas Actions */
.bith-offcanvas-actions {
    margin-top: 2rem;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bith-offcanvas-cta .bith-btn,
.bith-offcanvas-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--bith-gradient-primary, linear-gradient(135deg, #6366f1, #a855f7));
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-offcanvas-cta .bith-btn:hover,
.bith-offcanvas-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Off-Canvas Social */
.bith-offcanvas-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding-top: 1rem;
}

.bith-offcanvas-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    color: var(--bith-primary, #6366f1);
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-offcanvas-social a:hover {
    background: var(--bith-gradient-primary, linear-gradient(135deg, #6366f1, #a855f7));
    color: #fff;
    transform: translateY(-3px);
}

/* Off-Canvas Footer */
.bith-offcanvas-footer {
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
}

.bith-offcanvas-copyright {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   FULLSCREEN SEARCH OVERLAY
   ========================================================================== */

.bith-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--bith-ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bith-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bith-search-overlay-inner {
    width: 100%;
    max-width: 700px;
    padding: 2rem;
}

.bith-search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: var(--bith-gradient-glow);
    border: none;
    border-radius: 50%;
    color: var(--bith-primary);
    cursor: pointer;
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-search-close:hover {
    background: var(--bith-gradient-primary);
    color: #fff;
    transform: rotate(90deg);
}

.bith-search-overlay-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--bith-text-main);
    margin-bottom: 2rem;
}

.bith-search-form-large {
    margin-bottom: 1.5rem;
}

.bith-search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bith-surface);
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--bith-radius-premium);
    box-shadow: var(--bith-shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bith-search-input-wrap:focus-within {
    border-color: var(--bith-primary);
    box-shadow: var(--bith-shadow-glow);
}

.bith-search-field-large {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    border: none;
    background: transparent;
    color: var(--bith-text-main);
    outline: none;
}

.bith-search-field-large::placeholder {
    color: var(--bith-text-muted);
}

.bith-search-submit-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0.5rem;
    padding: 0;
    background: var(--bith-gradient-primary);
    border: none;
    border-radius: var(--bith-radius-button);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-search-submit-large:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.bith-search-hint {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: var(--bith-text-muted);
}

.bith-search-suggestions {
    text-align: center;
    margin-top: 2rem;
}

.bith-search-suggestions-label {
    font-size: 0.875rem;
    color: var(--bith-text-muted);
    margin-right: 0.5rem;
}

.bith-search-suggestion {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.875rem;
    color: var(--bith-primary);
    background: var(--bith-gradient-glow);
    border-radius: var(--bith-radius-full);
    text-decoration: none;
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-search-suggestion:hover {
    background: var(--bith-gradient-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   PREMIUM FOOTER STYLES
   ========================================================================== */

.bith-footer-premium {
    position: relative;
    background: var(--bith-gradient-dark);
    color: rgba(255, 255, 255, 0.8);
}

/* Gradient Top Border */
.bith-footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bith-gradient-primary);
}

/* Footer Widgets */
.bith-footer-widgets {
    padding: 4rem 0 3rem;
}

.bith-footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(var(--footer-columns, 4), 1fr);
    gap: 3rem;
}

@media (max-width: 991px) {
    .bith-footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .bith-footer-widgets-grid {
        grid-template-columns: 1fr;
    }
}

.bith-footer-widget-area h3,
.bith-footer-widget-area .widget-title {
    position: relative;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.bith-footer-widget-area h3::before,
.bith-footer-widget-area .widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bith-gradient-primary);
    border-radius: 2px;
}

.bith-footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bith-footer-widget-area ul li {
    margin-bottom: 0.75rem;
}

.bith-footer-widget-area ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bith-footer-widget-area ul li a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--bith-gradient-primary);
    transition: width 0.3s var(--bith-ease-bounce);
}

.bith-footer-widget-area ul li a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.bith-footer-widget-area ul li a:hover::before {
    width: 1rem;
}

/* Footer Newsletter */
.bith-footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bith-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.bith-newsletter-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bith-newsletter-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bith-gradient-primary);
    border-radius: 50%;
    color: #fff;
}

.bith-newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.bith-newsletter-desc {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.bith-newsletter-form {
    flex: 1;
    min-width: 300px;
}

.bith-newsletter-field {
    display: flex;
    gap: 0.75rem;
}

.bith-newsletter-field input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--bith-radius-button);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.bith-newsletter-field input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.bith-newsletter-field input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--bith-primary);
}

/* Footer Bottom */
.bith-footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bith-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.bith-copyright {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.bith-copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.bith-copyright a:hover {
    color: #fff;
}

.bith-heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Footer Navigation */
.bith-footer-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bith-footer-menu li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bith-footer-menu li a:hover {
    color: #fff;
}

/* Footer Social Icons */
.bith-footer-social {
    display: flex;
    gap: 0.75rem;
}

.bith-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-footer-social a:hover {
    background: var(--bith-gradient-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.bith-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    padding: 0;
    background: var(--bith-gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--bith-ease-bounce);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.bith-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bith-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.bith-back-to-top-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bith-back-to-top-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%) rotate(-90deg);
    pointer-events: none;
}

.bith-progress-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset 0.15s linear;
}

/* ==========================================================================
   404 PAGE PREMIUM STYLES
   ========================================================================== */

.bith-404-page {
    min-height: 100vh;
    background: var(--bith-page-bg);
    display: flex;
    align-items: center;
}

.bith-404-section {
    padding: 4rem 0;
    width: 100%;
}

.bith-404-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.bith-404-illustration {
    position: relative;
    margin-bottom: 3rem;
}

.bith-404-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bith-404-digit {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    background: var(--bith-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.bith-digit-0 {
    position: relative;
}

.bith-404-planet {
    width: clamp(5rem, 15vw, 10rem);
    height: clamp(5rem, 15vw, 10rem);
    animation: planetFloat 6s ease-in-out infinite;
}

@keyframes planetFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Floating Stars */
.bith-404-stars {
    position: absolute;
    inset: -2rem;
    pointer-events: none;
}

.bith-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--bith-primary);
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

.bith-star-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.bith-star-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.3s;
}

.bith-star-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 0.6s;
}

.bith-star-4 {
    bottom: 20%;
    right: 15%;
    animation-delay: 0.9s;
}

.bith-star-5 {
    top: 40%;
    right: 5%;
    animation-delay: 1.2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Floating Astronaut */
.bith-404-astronaut {
    position: absolute;
    top: -2rem;
    right: -3rem;
    width: 80px;
    height: 80px;
    animation: astronautFloat 8s ease-in-out infinite;
}

@keyframes astronautFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-10px, -20px) rotate(10deg);
    }

    50% {
        transform: translate(5px, -10px) rotate(-5deg);
    }

    75% {
        transform: translate(10px, -25px) rotate(5deg);
    }
}

.bith-404-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bith-text-main);
    margin-bottom: 1rem;
}

.bith-404-description {
    font-size: 1.125rem;
    color: var(--bith-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.bith-404-search {
    margin-bottom: 2rem;
}

.bith-search-form-404 .bith-search-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--bith-shadow-soft);
    border-radius: var(--bith-radius-premium);
    overflow: hidden;
}

.bith-search-form-404 .bith-search-field {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--bith-radius-premium) 0 0 var(--bith-radius-premium);
    outline: none;
    transition: border-color 0.3s ease;
}

.bith-search-form-404 .bith-search-field:focus {
    border-color: var(--bith-primary);
}

.bith-search-form-404 .bith-search-submit {
    padding: 1rem 1.5rem;
    background: var(--bith-gradient-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-search-form-404 .bith-search-submit:hover {
    opacity: 0.9;
}

.bith-404-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bith-404-actions .bith-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 404 Helpful Links */
.bith-404-helpful {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.bith-404-helpful-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bith-text-main);
    margin-bottom: 2rem;
    text-align: center;
}

.bith-404-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 767px) {
    .bith-404-links-grid {
        grid-template-columns: 1fr;
    }
}

.bith-404-link-group {
    background: var(--bith-surface);
    padding: 1.5rem;
    border-radius: var(--bith-radius-premium);
    box-shadow: var(--bith-shadow-soft);
}

.bith-link-group-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bith-text-main);
    margin-bottom: 1rem;
}

.bith-link-group-title svg {
    color: var(--bith-primary);
}

.bith-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bith-link-list li {
    margin-bottom: 0.5rem;
}

.bith-link-list li a {
    color: var(--bith-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.bith-link-list li a:hover {
    color: var(--bith-primary);
}

.bith-count {
    font-size: 0.8125rem;
    color: var(--bith-text-muted);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 991px) {
    .bith-hide-mobile {
        display: none !important;
    }

    .bith-menu-toggle {
        display: flex;
    }

    .bith-nav-primary {
        display: none;
    }

    .bith-header-actions {
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .bith-hide-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .bith-topbar-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .bith-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .bith-newsletter-content {
        flex-direction: column;
    }

    .bith-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .bith-footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   STICKY HEADER - CONTENT PADDING COMPENSATION
   Apply margin-top to .bith-site-content for fixed header compensation
   ========================================================================== */

/* CORE FIX: When header is sticky/fixed, push content down with margin-top */
.bith-site .bith-site-content {
    transition: margin-top 0.3s ease;
}

body.has-sticky-header .bith-site-content,
body.bith-has-sticky-header .bith-site-content,
body.bith-sticky-header .bith-site-content,
body.bith-header-type-sticky .bith-site-content {
    margin-top: 20px;
}

/* Admin bar adds 32px on desktop, 46px on mobile */
body.admin-bar.has-sticky-header .bith-site-content,
body.admin-bar.bith-has-sticky-header .bith-site-content,
body.admin-bar.bith-sticky-header .bith-site-content,
body.admin-bar.bith-header-type-sticky .bith-site-content {
    margin-top: 20px;
}

/* For default and transparent headers - NO margin needed */
body.bith-header-type-default .bith-site-content,
body.has-transparent-header .bith-site-content,
body.bith-transparent-header .bith-site-content,
body.bith-header-type-transparent .bith-site-content {
    margin-top: 0 !important;
}

/* Remove extra padding from sticky header pages */
body.has-sticky-header .bith-main,
body.bith-has-sticky-header .bith-main,
body.bith-sticky-header .bith-main,
body.bith-header-type-sticky .bith-main {
    padding-top: 0;
}

/* Main content areas - only add spacing for default header */
body.bith-header-type-default .bith-main {
    padding-top: 1rem;
}

.bith-archive-main {
    padding-top: 0;
    /* Archive has its own header */
}

/* Archive header styling */
.bith-archive-header {
    padding: 3rem 0 2rem;
    background: var(--bith-page-bg, #f8fafc);
    position: relative;
    margin-bottom: 2rem;
}

/* ==========================================================================
   ARCHIVE PAGE LAYOUT WITH SIDEBAR
   ========================================================================== */

.bith-archive-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.bith-archive-wrapper.no-sidebar .bith-archive-main-content {
    flex: 1 1 100%;
    max-width: 100%;
}

.bith-archive-wrapper.has-sidebar .bith-archive-main-content {
    flex: 1;
    min-width: 0;
    /* Prevent flex item from overflowing */
}

.bith-archive-wrapper.has-sidebar .bith-archive-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
}

.bith-archive-wrapper.sidebar-left .bith-archive-sidebar {
    order: -1;
}

@media (max-width: 991px) {
    .bith-archive-wrapper.has-sidebar {
        flex-direction: column;
    }

    .bith-archive-wrapper.has-sidebar .bith-archive-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        order: 1;
    }
}

/* ==========================================================================
   SIDEBAR STYLES - REFINED
   ========================================================================== */

.bith-sidebar {
    background: var(--bith-surface, #ffffff);
    border-radius: var(--bith-radius-premium, 20px);
    padding: 1.5rem;
    box-shadow: var(--bith-shadow-soft, 0 10px 30px -10px rgba(0, 0, 0, 0.1));
}

.bith-sidebar .widget {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bith-sidebar .widget:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.bith-sidebar .widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bith-text-main, #0f172a);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bith-primary, #6366f1);
    display: inline-block;
}

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

.bith-sidebar ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.bith-sidebar ul li:last-child {
    border-bottom: none;
}

.bith-sidebar ul li a {
    color: var(--bith-text-secondary, #475569);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bith-sidebar ul li a:hover {
    color: var(--bith-primary, #6366f1);
}

.bith-sidebar .post-count,
.bith-sidebar .count {
    font-size: 0.75rem;
    color: var(--bith-text-muted, #94a3b8);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

/* ==========================================================================
   STICKY SIDEBAR - PROPER IMPLEMENTATION
   ========================================================================== */

.bith-sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--bith-header-height, 80px) + 2rem);
    align-self: flex-start;
    max-height: calc(100vh - var(--bith-header-height, 80px) - 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Adjust for admin bar */
body.admin-bar .bith-sticky-sidebar {
    top: calc(var(--bith-header-height, 80px) + 32px + 2rem);
    max-height: calc(100vh - var(--bith-header-height, 80px) - 32px - 4rem);
}

@media screen and (max-width: 782px) {
    body.admin-bar .bith-sticky-sidebar {
        top: calc(var(--bith-header-height, 80px) + 46px + 2rem);
        max-height: calc(100vh - var(--bith-header-height, 80px) - 46px - 4rem);
    }
}

/* When sticky header is not enabled, reduce top offset */
body:not(.has-sticky-header) .bith-sticky-sidebar {
    top: 2rem;
    max-height: calc(100vh - 4rem);
}

/* Apply sticky to any sidebar when sticky-sidebar class is present */
.bith-archive-wrapper .bith-sticky-sidebar,
.bith-single-wrapper .bith-sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--bith-header-height, 80px) + 2rem);
    align-self: flex-start;
}

/* Sidebar wrapper must have flex for sticky to work */
.bith-single-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.bith-single-wrapper.no-sidebar {
    display: block;
}

.bith-single-wrapper.has-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.bith-single-wrapper.has-sidebar .bith-single-article {
    flex: 1;
    min-width: 0;
}

.bith-single-wrapper.has-sidebar .bith-sidebar {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

/* Sidebar Order for left position - Multiple selectors for compatibility */
.bith-single-wrapper.sidebar-left .bith-sidebar,
.bith-single-wrapper.sidebar-left .bith-single-sidebar,
.bith-single-wrapper .bith-sidebar.bith-order-1,
.sidebar-left .bith-sidebar {
    order: -1 !important;
}

/* Content order when sidebar is left */
.bith-single-wrapper.sidebar-left .bith-single-article,
.bith-single-wrapper .bith-order-2 {
    order: 2;
}

/* Archive sidebar left */
.bith-archive-wrapper.sidebar-left .bith-archive-sidebar,
.bith-content-wrapper.sidebar-left .bith-sidebar {
    order: -1 !important;
}

@media (max-width: 991px) {
    .bith-single-wrapper.has-sidebar {
        flex-direction: column;
    }

    .bith-single-wrapper.has-sidebar .bith-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        order: 1 !important;
        /* On mobile, sidebar always comes after content */
    }

    .bith-sticky-sidebar {
        position: static;
        max-height: none;
    }
}

/* ==========================================================================
   SINGLE POST GRID FIXES
   ========================================================================== */

/* Grid columns for single post layout */
.bith-col-lg-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.bith-col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.bith-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (max-width: 991px) {

    .bith-col-lg-8,
    .bith-col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Order utilities */
.bith-order-1 {
    order: 1;
}

.bith-order-2 {
    order: 2;
}

@media (max-width: 991px) {

    .bith-order-1,
    .bith-order-2 {
        order: unset;
    }
}

/* ==========================================================================
   CONTENT WRAPPER - PROPER SPACING WITH STICKY HEADER
   ========================================================================== */

/* Main content wrapper that contains posts and sidebar */
.bith-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 2rem 0;
}

.bith-content-wrapper.no-sidebar .bith-main {
    flex: 1 1 100%;
    max-width: 100%;
}

.bith-content-wrapper.has-sidebar .bith-main {
    flex: 1;
    min-width: 0;
}

.bith-content-wrapper.has-sidebar .bith-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
}

.bith-content-wrapper.sidebar-left .bith-sidebar {
    order: -1;
}

@media (max-width: 991px) {
    .bith-content-wrapper.has-sidebar {
        flex-direction: column;
    }

    .bith-content-wrapper.has-sidebar .bith-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        order: 1;
    }
}

/* ==========================================================================
   BLOG PAGE HEADER - MATCHING ARCHIVE STYLE
   ========================================================================== */

.bith-page-header {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--bith-page-bg, #f8fafc) 0%, rgba(99, 102, 241, 0.05) 100%);
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--bith-radius-premium, 20px);
    margin-top: -1rem;
}

.bith-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Ccircle cx='5' cy='5' r='5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.bith-page-title {
    position: relative;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--bith-text-main, #0f172a);
    margin: 0;
    background: var(--bith-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   OFF-CANVAS MENU - VISIBILITY FIX
   Support both .active and .is-active classes (used by different JS files)
   ========================================================================== */

/* Ensure off-canvas menu is visible when active */
.bith-offcanvas-menu .bith-offcanvas-nav-menu>li {
    opacity: 1;
    transform: translateX(0);
}

/* Only animate when opening - hidden state */
.bith-offcanvas-menu:not(.active):not(.is-active) .bith-offcanvas-nav-menu>li {
    opacity: 0;
    transform: translateX(20px);
}

/* Re-enable staggered animation for active state */
.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li,
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: opacity 0.3s ease, transform 0.3s var(--bith-ease-bounce);
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(1),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(1) {
    transition-delay: 0.05s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(2),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(2) {
    transition-delay: 0.1s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(3),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(3) {
    transition-delay: 0.15s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(4),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(4) {
    transition-delay: 0.2s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(5),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(5) {
    transition-delay: 0.25s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(6),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(6) {
    transition-delay: 0.3s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(7),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(7) {
    transition-delay: 0.35s;
}

.bith-offcanvas-menu.active .bith-offcanvas-nav-menu>li:nth-child(8),
.bith-offcanvas-menu.is-active .bith-offcanvas-nav-menu>li:nth-child(8) {
    transition-delay: 0.4s;
}

/* Ensure off-canvas content and links are visible */
.bith-offcanvas-content {
    visibility: visible !important;
    opacity: 1 !important;
}

.bith-offcanvas-nav-menu>li>a {
    color: #1e293b !important;
    opacity: 1 !important;
}

/* ==========================================================================
   STICKY SIDEBAR - PREMIUM SCROLLBAR
   ========================================================================== */

.bith-sticky-sidebar::-webkit-scrollbar {
    width: 6px;
}

.bith-sticky-sidebar::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
}

.bith-sticky-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--bith-primary, #6366f1), var(--bith-secondary, #a855f7));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bith-sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--bith-primary, #6366f1);
}

/* Firefox scrollbar */
.bith-sticky-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--bith-primary, #6366f1) rgba(99, 102, 241, 0.05);
}

/* ==========================================================================
   COMMENTS SECTION - PREMIUM STYLING
   ========================================================================== */

.bith-comments-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bith-surface, #ffffff);
    border-radius: var(--bith-radius-premium, 20px);
    box-shadow: var(--bith-shadow-soft, 0 10px 30px -10px rgba(0, 0, 0, 0.1));
}

.bith-comments-section .comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bith-text-main, #0f172a);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

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

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 16px;
    border-left: 3px solid var(--bith-primary, #6366f1);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--bith-text-main, #0f172a);
}

.comment-metadata {
    font-size: 0.8125rem;
    color: var(--bith-text-muted, #94a3b8);
}

.comment-content {
    color: var(--bith-text-secondary, #475569);
    line-height: 1.7;
}

.reply .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bith-primary, #6366f1);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.reply .comment-reply-link:hover {
    background: var(--bith-primary, #6366f1);
    color: #ffffff;
}

/* Comment Form Styling */
.comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.comment-respond .comment-reply-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bith-text-main, #0f172a);
    margin-bottom: 1rem;
}

.comment-form .comment-notes {
    font-size: 0.875rem;
    color: var(--bith-text-muted, #94a3b8);
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 500;
    color: var(--bith-text-main, #0f172a);
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: var(--bith-text-main, #0f172a);
    background: rgba(99, 102, 241, 0.03);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--bith-primary, #6366f1);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

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

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--bith-gradient-primary, linear-gradient(135deg, #6366f1, #a855f7));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--bith-ease-bounce);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   SINGLE POST FEATURED IMAGE - LAYOUT FIX
   ========================================================================== */

/* Ensure featured image doesn't go under sidebar */
.bith-single-article .bith-entry-thumbnail,
.bith-single-article .bith-single-featured {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    border-radius: var(--bith-radius-premium, 20px);
    overflow: hidden;
    box-shadow: var(--bith-shadow-elevated, 0 20px 40px -10px rgba(0, 0, 0, 0.15));
}

.bith-single-article .bith-entry-thumbnail img,
.bith-single-article .bith-single-featured img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hero style featured image (wide) */
.bith-single-hero {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2rem;
}

.bith-single-hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.bith-single-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Boxed featured image stays in container */
.bith-single-wrapper .bith-single-article {
    overflow: visible;
}

/* ==========================================================================
   POSTS GRID - CONSISTENT STYLING
   ========================================================================== */

.bith-posts {
    display: grid;
    gap: 2rem;
}

.bith-posts.bith-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

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

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

.bith-posts.bith-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.bith-posts.bith-layout-list {
    grid-template-columns: 1fr;
}

@media (max-width: 991px) {

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

@media (max-width: 640px) {

    .bith-posts.bith-columns-2,
    .bith-posts.bith-columns-3,
    .bith-posts.bith-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Post Card Styling */
.bith-post-card {
    background: var(--bith-surface, #ffffff);
    border-radius: var(--bith-radius-premium, 20px);
    overflow: hidden;
    box-shadow: var(--bith-shadow-soft, 0 10px 30px -10px rgba(0, 0, 0, 0.1));
    transition: all 0.3s var(--bith-ease-bounce);
}

.bith-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
}