/*
Theme Name: Bollyflix
Theme URI: https://bollyflix.com
Author: Bollyflix Team
Author URI: https://bollyflix.com
Description: A premium next-generation entertainment news theme optimized for Google Discover, AdSense, AdX, and Core Web Vitals. Designed for massive organic traffic with SEO-first, mobile-first architecture.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bollyflix
Tags: news, magazine, entertainment, movies, responsive-layout, custom-header, custom-menu, featured-images, post-formats, threaded-comments, translation-ready
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Colors */
    --bf-white: #FFFFFF;
    --bf-bg-primary: #FFFFFF;
    --bf-bg-secondary: #F8F9FA;
    --bf-bg-tertiary: #F1F3F5;
    --bf-bg-dark: #1A1A2E;
    --bf-bg-darker: #16162A;
    --bf-bg-card: #FFFFFF;

    --bf-text-primary: #1A1A1A;
    --bf-text-secondary: #6B7280;
    --bf-text-muted: #9CA3AF;
    --bf-text-light: #D1D5DB;
    --bf-text-white: #FFFFFF;

    --bf-accent: #E50914;
    --bf-accent-hover: #B20710;
    --bf-accent-light: rgba(229, 9, 20, 0.1);
    --bf-accent-ultra-light: rgba(229, 9, 20, 0.05);

    --bf-success: #10B981;
    --bf-warning: #F59E0B;
    --bf-info: #3B82F6;
    --bf-error: #EF4444;

    --bf-border: #E5E7EB;
    --bf-border-light: #F3F4F6;
    --bf-border-dark: #D1D5DB;

    /* Typography */
    --bf-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bf-font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bf-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --bf-fs-xs: 0.75rem;
    --bf-fs-sm: 0.8125rem;
    --bf-fs-base: 0.9375rem;
    --bf-fs-md: 1rem;
    --bf-fs-lg: 1.125rem;
    --bf-fs-xl: 1.25rem;
    --bf-fs-2xl: 1.5rem;
    --bf-fs-3xl: 1.875rem;
    --bf-fs-4xl: 2.25rem;
    --bf-fs-5xl: 3rem;
    --bf-fs-6xl: 3.75rem;

    --bf-fw-normal: 400;
    --bf-fw-medium: 500;
    --bf-fw-semibold: 600;
    --bf-fw-bold: 700;
    --bf-fw-extrabold: 800;

    --bf-lh-tight: 1.25;
    --bf-lh-snug: 1.375;
    --bf-lh-normal: 1.6;
    --bf-lh-relaxed: 1.75;

    /* Spacing */
    --bf-space-1: 0.25rem;
    --bf-space-2: 0.5rem;
    --bf-space-3: 0.75rem;
    --bf-space-4: 1rem;
    --bf-space-5: 1.25rem;
    --bf-space-6: 1.5rem;
    --bf-space-8: 2rem;
    --bf-space-10: 2.5rem;
    --bf-space-12: 3rem;
    --bf-space-16: 4rem;
    --bf-space-20: 5rem;
    --bf-space-24: 6rem;

    /* Layout */
    --bf-container: 1240px;
    --bf-container-narrow: 800px;
    --bf-container-wide: 1400px;
    --bf-sidebar-width: 340px;
    --bf-gap: 1.5rem;
    --bf-header-height: 70px;

    /* Borders & Radius */
    --bf-radius-sm: 4px;
    --bf-radius: 8px;
    --bf-radius-lg: 12px;
    --bf-radius-xl: 16px;
    --bf-radius-2xl: 20px;
    --bf-radius-full: 50%;
    --bf-radius-pill: 50px;

    /* Shadows */
    --bf-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --bf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --bf-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --bf-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --bf-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --bf-shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.12);
    --bf-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    --bf-shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --bf-shadow-accent: 0 4px 14px rgba(229, 9, 20, 0.25);

    /* Transitions */
    --bf-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bf-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --bf-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --bf-z-base: 1;
    --bf-z-dropdown: 100;
    --bf-z-sticky: 200;
    --bf-z-header: 500;
    --bf-z-overlay: 800;
    --bf-z-modal: 900;
    --bf-z-toast: 1000;
}


/* ==========================================================================
   2. CSS RESET & BASE
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--bf-font-primary);
    font-size: var(--bf-fs-base);
    font-weight: var(--bf-fw-normal);
    line-height: var(--bf-lh-normal);
    color: var(--bf-text-primary);
    background-color: var(--bf-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

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

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bf-font-heading);
    font-weight: var(--bf-fw-bold);
    line-height: var(--bf-lh-tight);
    color: var(--bf-text-primary);
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
}

table {
    border-collapse: collapse;
    width: 100%;
}

blockquote {
    border-left: 4px solid var(--bf-accent);
    padding: var(--bf-space-4) var(--bf-space-6);
    margin: var(--bf-space-6) 0;
    background: var(--bf-bg-secondary);
    border-radius: 0 var(--bf-radius) var(--bf-radius) 0;
    font-style: italic;
    font-size: var(--bf-fs-lg);
    color: var(--bf-text-secondary);
}

hr {
    border: none;
    border-top: 1px solid var(--bf-border);
    margin: var(--bf-space-8) 0;
}

figure {
    margin: 0;
}

figcaption {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
    margin-top: var(--bf-space-2);
    text-align: center;
}

::selection {
    background: var(--bf-accent);
    color: var(--bf-text-white);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bf-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bf-border-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bf-text-muted);
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1 { font-size: var(--bf-fs-4xl); letter-spacing: -0.025em; }
h2 { font-size: var(--bf-fs-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--bf-fs-2xl); letter-spacing: -0.015em; }
h4 { font-size: var(--bf-fs-xl); }
h5 { font-size: var(--bf-fs-lg); }
h6 { font-size: var(--bf-fs-md); }

.text-xs { font-size: var(--bf-fs-xs); }
.text-sm { font-size: var(--bf-fs-sm); }
.text-base { font-size: var(--bf-fs-base); }
.text-lg { font-size: var(--bf-fs-lg); }
.text-xl { font-size: var(--bf-fs-xl); }
.text-2xl { font-size: var(--bf-fs-2xl); }


/* ==========================================================================
   4. GRID SYSTEM & LAYOUT
   ========================================================================== */

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

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

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--bf-gap) / 2);
    margin-right: calc(-1 * var(--bf-gap) / 2);
}

.col {
    flex: 1;
    padding-left: calc(var(--bf-gap) / 2);
    padding-right: calc(var(--bf-gap) / 2);
}

.content-area {
    min-width: 0;
}


.main-content {
    min-width: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bf-gap);
}

@media (min-width: 576px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.posts-grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .posts-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 768px) {
    .posts-grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .posts-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ==========================================================================
   5. READING PROGRESS BAR
   ========================================================================== */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--bf-accent), #FF6B6B);
    z-index: calc(var(--bf-z-header) + 1);
    transition: width 0.1s linear;
    will-change: width;
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bf-white);
    border-bottom: 1px solid var(--bf-border);
    z-index: var(--bf-z-header);
    transition: transform var(--bf-transition), box-shadow var(--bf-transition);
}

.site-header.scrolled {
    box-shadow: var(--bf-shadow-md);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bf-header-height);
    gap: var(--bf-space-4);
}

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

.site-logo a {
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.site-logo img {
    max-height: 42px;
    width: auto;
}

.site-logo .site-title {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-2xl);
    font-weight: var(--bf-fw-extrabold);
    color: var(--bf-text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.site-logo .site-title span {
    color: var(--bf-accent);
}

.site-tagline {
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
    display: none;
}

/* Primary Navigation */
.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: center;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--bf-space-1);
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--bf-space-1);
    padding: var(--bf-space-2) var(--bf-space-3);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-primary);
    border-radius: var(--bf-radius);
    transition: all var(--bf-transition-fast);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--bf-accent);
    background: var(--bf-accent-ultra-light);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bf-white);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow-lg);
    padding: var(--bf-space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--bf-transition-fast);
    z-index: var(--bf-z-dropdown);
}

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

.nav-menu .sub-menu li a {
    display: block;
    padding: var(--bf-space-2) var(--bf-space-3);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    border-radius: var(--bf-radius-sm);
    transition: all var(--bf-transition-fast);
}

.nav-menu .sub-menu li a:hover {
    color: var(--bf-accent);
    background: var(--bf-accent-ultra-light);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
    flex-shrink: 0;
}

.search-toggle,
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--bf-radius);
    color: var(--bf-text-primary);
    transition: all var(--bf-transition-fast);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    background: var(--bf-bg-secondary);
    color: var(--bf-accent);
}

.search-toggle svg,
.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--bf-white);
    z-index: var(--bf-z-modal);
    padding: var(--bf-space-6);
    overflow-y: auto;
    transition: right var(--bf-transition);
    box-shadow: var(--bf-shadow-2xl);
}

body.mobile-menu-open .mobile-menu {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--bf-z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--bf-transition);
    backdrop-filter: blur(4px);
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: var(--bf-space-4);
    right: var(--bf-space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bf-radius-full);
    background: var(--bf-bg-secondary);
    color: var(--bf-text-primary);
    transition: all var(--bf-transition-fast);
}

.mobile-menu-close:hover {
    background: var(--bf-accent);
    color: var(--bf-text-white);
}

.mobile-menu .mobile-nav {
    margin-top: var(--bf-space-8);
}

.mobile-menu .mobile-nav li {
    border-bottom: 1px solid var(--bf-border-light);
}

.mobile-menu .mobile-nav li a {
    display: block;
    padding: var(--bf-space-3) 0;
    font-size: var(--bf-fs-md);
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-primary);
    transition: color var(--bf-transition-fast);
}

.mobile-menu .mobile-nav li a:hover {
    color: var(--bf-accent);
}

.mobile-menu .mobile-nav .sub-menu {
    padding-left: var(--bf-space-4);
}

.mobile-menu .mobile-nav .sub-menu li a {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--bf-space-4);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    padding: var(--bf-space-2) var(--bf-space-4);
    border-radius: 0 0 var(--bf-radius) var(--bf-radius);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    z-index: var(--bf-z-toast);
    transition: top var(--bf-transition-fast);
}

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

/* Site Title Branding */
.site-branding {
    flex-shrink: 0;
}

.site-branding .site-title {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-2xl);
    font-weight: var(--bf-fw-extrabold);
    color: var(--bf-text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
}

.site-branding .site-title a {
    display: flex;
    align-items: center;
    color: var(--bf-text-primary);
}

.site-branding .site-title a:hover {
    color: var(--bf-text-primary);
}

.site-title__bolly {
    color: var(--bf-text-primary);
}

.site-title__flix {
    color: var(--bf-accent);
}

.site-branding .site-tagline {
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
    margin-top: 2px;
}

/* Header Search Dropdown */
.header-search {
    border-top: 1px solid var(--bf-border);
    background: var(--bf-bg-secondary);
    padding: var(--bf-space-4) 0;
}

.header-search .search-form {
    display: flex;
    gap: var(--bf-space-2);
    max-width: 600px;
    margin: 0 auto;
}

.header-search .search-field {
    flex: 1;
    padding: var(--bf-space-3) var(--bf-space-4);
    border: 2px solid var(--bf-border);
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-md);
    transition: border-color var(--bf-transition-fast);
}

.header-search .search-field:focus {
    outline: none;
    border-color: var(--bf-accent);
}

.header-search .search-submit {
    padding: var(--bf-space-3) var(--bf-space-6);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border: none;
    border-radius: var(--bf-radius);
    font-weight: var(--bf-fw-semibold);
    cursor: pointer;
    transition: all var(--bf-transition);
}

.header-search .search-submit:hover {
    background: var(--bf-accent-hover);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--bf-space-6);
    right: var(--bf-space-6);
    width: 44px;
    height: 44px;
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border: none;
    border-radius: var(--bf-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--bf-shadow-accent);
    transition: all var(--bf-transition);
    z-index: var(--bf-z-sticky);
    opacity: 0;
}

.back-to-top:hover {
    background: var(--bf-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--bf-shadow-lg);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bf-bg-dark);
    color: var(--bf-text-white);
    padding: var(--bf-space-4);
    z-index: var(--bf-z-toast);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: opacity var(--bf-transition);
}

.cookie-notice__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bf-space-4);
    flex-wrap: wrap;
}

.cookie-notice__text {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-light);
    margin: 0;
    flex: 1;
}

.cookie-notice__text a {
    color: var(--bf-accent);
    text-decoration: underline;
}

.cookie-notice__accept {
    padding: var(--bf-space-2) var(--bf-space-6);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border: none;
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    cursor: pointer;
    transition: all var(--bf-transition);
    white-space: nowrap;
}

.cookie-notice__accept:hover {
    background: var(--bf-accent-hover);
}

/* Animate utility */
.animate-fadeIn {
    animation: fadeIn 0.5s ease;
}


/* ==========================================================================
   7. BREAKING NEWS TICKER
   ========================================================================== */

.ticker-bar {
    background: var(--bf-bg-dark);
    color: var(--bf-text-white);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    padding: 0 var(--bf-space-4);
    height: 100%;
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    position: relative;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 12px;
    border-color: transparent transparent transparent var(--bf-accent);
}

.ticker-label .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--bf-text-white);
    border-radius: var(--bf-radius-full);
    animation: pulse 1.5s ease-in-out infinite;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    margin-left: var(--bf-space-6);
    position: relative;
}

.ticker-track {
    display: flex;
    gap: var(--bf-space-10);
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}

.ticker-bar:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-item a {
    color: var(--bf-text-white);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-medium);
    transition: color var(--bf-transition-fast);
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.ticker-item a:hover {
    color: var(--bf-accent);
}

.ticker-item a::before {
    content: '•';
    color: var(--bf-accent);
    font-size: 1.2em;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ==========================================================================
   7B. POSTS GRID SYSTEM
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bf-gap);
}

@media (min-width: 576px) {
    .posts-grid--2col {
        grid-template-columns: repeat(2, 1fr);
    }
    .posts-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .posts-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Inside sidebar layout, use 2 cols since content area is narrower */
    .content-sidebar-grid .posts-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
    .posts-grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) {
    /* On very wide screens, allow 3 cols even in sidebar layout */
    .content-sidebar-grid .posts-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Section base */
.section {
    padding: var(--bf-space-5) 0;
}

.section + .section {
    border-top: 1px solid var(--bf-border-light);
}

.section-title__accent {
    color: var(--bf-accent);
}

.section-view-all {
    display: flex;
    align-items: center;
    gap: var(--bf-space-1);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-accent);
    white-space: nowrap;
    transition: all var(--bf-transition-fast);
}

.section-view-all:hover {
    color: var(--bf-accent-hover);
    gap: var(--bf-space-2);
}

/* Content + Sidebar layout */
.content-sidebar-wrap {
    padding: var(--bf-space-5) 0;
}

.content-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .content-sidebar-grid {
        grid-template-columns: 1fr 320px;
    }
}

.content-area {
    min-width: 0;
}

.sidebar-area {
    min-width: 0;
    max-width: 320px;
}

/* Sidebar widget images should fit */
.sidebar-area img,
.sidebar img,
.widget img {
    max-width: 100%;
    height: auto;
}

/* Post list items (for tabs section) */
.posts-list {
    display: flex;
    flex-direction: column;
}

.post-list-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.post-list-item:last-child {
    border-bottom: none;
}

.post-list-item__number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #9CA3AF;
    line-height: 1;
}

.post-list-item:nth-child(-n+3) .post-list-item__number {
    background: var(--bf-accent, #E50914);
    color: #fff;
}

.post-list-item__thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.post-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-list-item__content {
    flex: 1 1 0%;
    min-width: 0;
}

.post-list-item__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-list-item__title a {
    color: #111827;
}

.post-list-item__title a:hover {
    color: var(--bf-accent, #E50914);
}

.post-list-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9CA3AF;
}

/* Content Tabs */
.content-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.content-tabs__tab {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    line-height: 1;
}

.content-tabs__tab:hover {
    color: #111827;
    background: #F9FAFB;
}

.content-tabs__tab.is-active {
    color: var(--bf-accent, #E50914);
    border-bottom-color: var(--bf-accent, #E50914);
    background: transparent;
}

.content-tabs__tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.content-tabs__panel {
    display: none;
}

.content-tabs__panel.is-active {
    display: block;
}

/* Celebrity card overrides */
.celebrity-card__link {
    display: block;
    text-align: center;
}

.celebrity-card__image {
    width: 90px;
    height: 90px;
    border-radius: var(--bf-radius-full);
    margin: 0 auto var(--bf-space-3);
    overflow: hidden;
    border: 3px solid var(--bf-border);
    transition: border-color var(--bf-transition-fast);
}

.celebrity-card:hover .celebrity-card__image {
    border-color: var(--bf-accent);
}

.celebrity-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--bf-radius-full);
}

.celebrity-card__placeholder {
    width: 90px;
    height: 90px;
    border-radius: var(--bf-radius-full);
    margin: 0 auto var(--bf-space-3);
    background: var(--bf-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bf-text-muted);
}

.celebrity-card__name {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Views count */
.views-count {
    display: flex;
    align-items: center;
    gap: var(--bf-space-1);
}

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

/* Spinner */
.spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bf-space-2);
    padding: var(--bf-space-6);
}

.spinner__dot {
    width: 10px;
    height: 10px;
    background: var(--bf-accent);
    border-radius: var(--bf-radius-full);
    animation: spinnerPulse 0.6s ease-in-out infinite alternate;
}

.spinner__dot:nth-child(2) { animation-delay: 0.2s; }
.spinner__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes spinnerPulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}


/* ==========================================================================
   8. HERO SECTION
   ==========================================================================*/

.hero-section {
    padding: var(--bf-space-4) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bf-gap);
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1.5fr 1fr;
        min-height: 480px;
    }
}

/* Featured Main Story */
.hero-featured {
    position: relative;
    border-radius: var(--bf-radius-lg);
    overflow: hidden;
    min-height: 400px;
    max-height: 500px;
    display: flex;
    align-items: flex-end;
}

.hero-featured .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    transition: transform var(--bf-transition-slow);
}

.hero-featured:hover .hero-image {
    transform: scale(1.03);
}

.hero-featured .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-featured .hero-content {
    position: relative;
    z-index: 2;
    padding: var(--bf-space-6);
    color: var(--bf-text-white);
    width: 100%;
}

@media (min-width: 768px) {
    .hero-featured .hero-content {
        padding: var(--bf-space-8);
    }
}

.hero-featured .hero-category {
    display: inline-block;
    background: var(--bf-accent);
    color: var(--bf-text-white);
    padding: var(--bf-space-1) var(--bf-space-3);
    border-radius: var(--bf-radius-sm);
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--bf-space-3);
}

.hero-featured .hero-title {
    font-size: var(--bf-fs-2xl);
    color: var(--bf-text-white);
    margin-bottom: var(--bf-space-3);
    line-height: var(--bf-lh-snug);
}

@media (min-width: 768px) {
    .hero-featured .hero-title {
        font-size: var(--bf-fs-3xl);
    }
}

@media (min-width: 1200px) {
    .hero-featured .hero-title {
        font-size: var(--bf-fs-4xl);
    }
}

.hero-featured .hero-title a {
    color: var(--bf-text-white);
}

.hero-featured .hero-title a:hover {
    color: var(--bf-accent);
}

.hero-featured .hero-excerpt {
    font-size: var(--bf-fs-sm);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--bf-space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-featured .hero-meta {
    display: flex;
    align-items: center;
    gap: var(--bf-space-3);
    font-size: var(--bf-fs-xs);
    color: rgba(255,255,255,0.7);
}

.hero-meta .meta-author {
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.hero-meta .meta-author img {
    width: 24px;
    height: 24px;
    border-radius: var(--bf-radius-full);
    border: 2px solid rgba(255,255,255,0.3);
}

/* Hero Side Grid */
.hero-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bf-gap);
}

@media (min-width: 768px) {
    .hero-side-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
    }
}

.hero-card {
    position: relative;
    border-radius: var(--bf-radius);
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .hero-card {
        min-height: auto;
    }
}

.hero-card .hero-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bf-transition);
}

.hero-card:hover .hero-card-image {
    transform: scale(1.05);
}

.hero-card .hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.hero-card .hero-card-content {
    position: relative;
    z-index: 2;
    padding: var(--bf-space-4);
    width: 100%;
}

.hero-card .hero-card-category {
    display: inline-block;
    background: var(--bf-accent);
    color: var(--bf-text-white);
    padding: 2px var(--bf-space-2);
    border-radius: var(--bf-radius-sm);
    font-size: 10px;
    font-weight: var(--bf-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--bf-space-2);
}

.hero-card .hero-card-title {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-white);
    line-height: var(--bf-lh-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card .hero-card-title a {
    color: var(--bf-text-white);
}

.hero-card .hero-card-title a:hover {
    color: var(--bf-accent);
}


/* ==========================================================================
   9. POST CARDS
   ========================================================================== */

.post-card {
    background: var(--bf-bg-card);
    border-radius: var(--bf-radius-lg);
    overflow: hidden;
    border: 1px solid var(--bf-border);
    box-shadow: var(--bf-shadow-sm);
    transition: all var(--bf-transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bf-shadow-xl);
    border-color: var(--bf-accent);
}

.post-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bf-bg-tertiary);
}

.post-card-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.post-card-thumbnail .post-card-category {
    position: absolute;
    top: var(--bf-space-3);
    left: var(--bf-space-3);
    background: linear-gradient(135deg, var(--bf-accent), #FF4757);
    color: var(--bf-text-white);
    padding: 4px 12px;
    border-radius: var(--bf-radius-pill);
    font-size: 0.6875rem;
    font-weight: var(--bf-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.35);
}

.post-card-thumbnail .post-card-category a {
    color: var(--bf-text-white);
}

.post-card-body {
    padding: var(--bf-space-4) var(--bf-space-4) var(--bf-space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-md);
    font-weight: var(--bf-fw-bold);
    line-height: var(--bf-lh-snug);
    margin-bottom: var(--bf-space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-title a {
    color: var(--bf-text-primary);
    transition: color var(--bf-transition-fast);
}

.post-card-title a:hover {
    color: var(--bf-accent);
}

.post-card-excerpt {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    line-height: var(--bf-lh-normal);
    margin-bottom: var(--bf-space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    max-height: 3.2em;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
    margin-top: auto;
    padding-top: var(--bf-space-3);
    border-top: 1px solid var(--bf-border-light);
    flex-wrap: wrap;
}

.post-card-meta .meta-author {
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.post-card-meta .meta-author img {
    width: 20px;
    height: 20px;
    border-radius: var(--bf-radius-full);
    border: 1px solid var(--bf-border-light);
}

.post-card-meta .meta-author a {
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-secondary);
}

.post-card-meta .meta-dot {
    color: var(--bf-border-dark);
    font-size: 8px;
}

.post-card-meta time {
    color: var(--bf-text-muted);
}

/* Horizontal Card */
.post-card--horizontal {
    flex-direction: row;
}

.post-card--horizontal .post-card-thumbnail {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

@media (max-width: 575px) {
    .post-card--horizontal .post-card-thumbnail {
        width: 120px;
    }
}

.post-card--horizontal .post-card-body {
    justify-content: center;
}

/* Compact Card */
.post-card--compact .post-card-thumbnail {
    aspect-ratio: 16 / 9;
}

.post-card--compact .post-card-body {
    padding: var(--bf-space-3);
}

.post-card--compact .post-card-title {
    font-size: var(--bf-fs-sm);
    -webkit-line-clamp: 2;
}

.post-card--compact .post-card-excerpt {
    display: none;
}

/* Featured Card */
.post-card--featured {
    border: 2px solid var(--bf-accent);
}

.post-card--featured .post-card-category {
    background: linear-gradient(135deg, var(--bf-accent), #FF6B6B);
}


/* ==========================================================================
   10. SECTION HEADERS
   ========================================================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bf-space-6);
    padding-bottom: var(--bf-space-3);
    border-bottom: 2px solid var(--bf-text-primary);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--bf-accent);
}

.section-title {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-xl);
    font-weight: var(--bf-fw-extrabold);
    color: var(--bf-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-subtitle {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
    margin-top: var(--bf-space-1);
}

.section-link {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-accent);
    display: flex;
    align-items: center;
    gap: var(--bf-space-1);
    white-space: nowrap;
    transition: all var(--bf-transition-fast);
}

.section-link:hover {
    color: var(--bf-accent-hover);
    gap: var(--bf-space-2);
}

.section-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--bf-transition-fast);
}

.section-link:hover svg {
    transform: translateX(3px);
}


/* ==========================================================================
   11. HOMEPAGE SECTIONS
   ========================================================================== */

.home-section {
    padding: var(--bf-space-8) 0;
}

.home-section:nth-child(even) {
    background: var(--bf-bg-secondary);
}

.home-section + .home-section {
    border-top: 1px solid var(--bf-border-light);
}

/* Trending Celebrities */
.trending-celebrities {
    overflow: hidden;
}

.celebrities-scroll {
    display: flex;
    gap: var(--bf-space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--bf-space-2) 0;
}

.celebrities-scroll::-webkit-scrollbar {
    display: none;
}

.celebrity-card {
    flex-shrink: 0;
    width: 130px;
    text-align: center;
    scroll-snap-align: start;
    transition: transform var(--bf-transition);
    cursor: pointer;
}

.celebrity-card:hover {
    transform: translateY(-4px);
}

.celebrity-avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--bf-radius-full);
    margin: 0 auto var(--bf-space-3);
    overflow: hidden;
    border: 3px solid var(--bf-border);
    transition: border-color var(--bf-transition-fast);
    position: relative;
}

.celebrity-card:hover .celebrity-avatar {
    border-color: var(--bf-accent);
}

.celebrity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.celebrity-name {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-primary);
    margin-bottom: var(--bf-space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.celebrity-name a {
    color: inherit;
}

.celebrity-tag {
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
    font-weight: var(--bf-fw-medium);
}

/* Movie Cards */
.movie-card {
    background: var(--bf-bg-card);
    border-radius: var(--bf-radius);
    overflow: hidden;
    border: 1px solid var(--bf-border-light);
    transition: all var(--bf-transition);
}

.movie-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bf-shadow-lg);
}

.movie-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    position: relative;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bf-transition-slow);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-rating {
    position: absolute;
    top: var(--bf-space-3);
    right: var(--bf-space-3);
    background: rgba(0,0,0,0.75);
    color: var(--bf-warning);
    padding: var(--bf-space-1) var(--bf-space-2);
    border-radius: var(--bf-radius-sm);
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}

.movie-info {
    padding: var(--bf-space-3);
}

.movie-info .movie-title {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info .movie-title a {
    color: var(--bf-text-primary);
}

.movie-info .movie-title a:hover {
    color: var(--bf-accent);
}

.movie-genre-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bf-space-1);
    margin-bottom: var(--bf-space-2);
}

.movie-genre-badges .genre-badge {
    font-size: 10px;
    padding: 2px var(--bf-space-2);
    background: var(--bf-bg-secondary);
    color: var(--bf-text-secondary);
    border-radius: var(--bf-radius-pill);
    font-weight: var(--bf-fw-medium);
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
}

/* OTT Cards */
.ott-card {
    background: var(--bf-bg-card);
    border-radius: var(--bf-radius);
    overflow: hidden;
    border: 1px solid var(--bf-border-light);
    transition: all var(--bf-transition);
}

.ott-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bf-shadow-lg);
}

.ott-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.ott-card:hover .ott-card-thumbnail img {
    transform: scale(1.05);
}

.ott-platform-badge {
    position: absolute;
    top: var(--bf-space-3);
    left: var(--bf-space-3);
    padding: var(--bf-space-1) var(--bf-space-3);
    border-radius: var(--bf-radius-sm);
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    color: var(--bf-text-white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

.ott-platform-badge--netflix { background: #E50914; }
.ott-platform-badge--prime { background: #00A8E1; }
.ott-platform-badge--disney { background: #113CCF; }
.ott-platform-badge--hotstar { background: #1F2937; }
.ott-platform-badge--jiocinema { background: #E91E63; }
.ott-platform-badge--sonyliv { background: #000000; }
.ott-platform-badge--zee5 { background: #8338EC; }
.ott-platform-badge--default { background: rgba(0,0,0,0.7); }

.ott-release-date {
    position: absolute;
    bottom: var(--bf-space-3);
    right: var(--bf-space-3);
    background: rgba(0,0,0,0.75);
    color: var(--bf-text-white);
    padding: var(--bf-space-1) var(--bf-space-2);
    border-radius: var(--bf-radius-sm);
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-medium);
    backdrop-filter: blur(4px);
}

.ott-card-body {
    padding: var(--bf-space-4);
}

.ott-card-body .ott-title {
    font-size: var(--bf-fs-md);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-2);
}

.ott-card-body .ott-title a {
    color: var(--bf-text-primary);
}

.ott-card-body .ott-title a:hover {
    color: var(--bf-accent);
}

.ott-card-body .ott-description {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   12. TABS
   ========================================================================== */

.tabs-nav {
    display: flex;
    gap: var(--bf-space-1);
    border-bottom: 2px solid var(--bf-border);
    margin-bottom: var(--bf-space-6);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: var(--bf-space-3) var(--bf-space-5);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-secondary);
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: all var(--bf-transition-fast);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--bf-text-primary);
}

.tab-btn.active {
    color: var(--bf-accent);
    border-bottom-color: var(--bf-accent);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}


/* ==========================================================================
   13. TRENDING STORIES SLIDER
   ========================================================================== */

.stories-slider {
    position: relative;
    margin: var(--bf-space-6) 0;
}

.slider-container {
    display: flex;
    gap: var(--bf-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: var(--bf-space-2) 0;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-card {
    flex-shrink: 0;
    width: 300px;
    scroll-snap-align: start;
}

@media (max-width: 575px) {
    .slider-card {
        width: 260px;
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--bf-radius-full);
    background: var(--bf-white);
    border: 1px solid var(--bf-border);
    box-shadow: var(--bf-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bf-text-primary);
    cursor: pointer;
    transition: all var(--bf-transition-fast);
    z-index: 3;
}

.slider-nav:hover {
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border-color: var(--bf-accent);
    box-shadow: var(--bf-shadow-accent);
}

.slider-nav svg {
    width: 18px;
    height: 18px;
}

.slider-prev {
    left: -12px;
}

.slider-next {
    right: -12px;
}

@media (max-width: 767px) {
    .slider-nav {
        display: none;
    }
}


/* ==========================================================================
   14. SINGLE POST / ARTICLE
   ========================================================================== */

.single-post-wrapper {
    max-width: var(--bf-container-narrow);
    margin: 0 auto;
    padding: var(--bf-space-8) var(--bf-space-4);
}

.post-header {
    margin-bottom: var(--bf-space-6);
}

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

.post-categories a {
    display: inline-block;
    background: var(--bf-accent-light);
    color: var(--bf-accent);
    padding: var(--bf-space-1) var(--bf-space-3);
    border-radius: var(--bf-radius-pill);
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all var(--bf-transition-fast);
}

.post-categories a:hover {
    background: var(--bf-accent);
    color: var(--bf-text-white);
}

.post-title {
    font-size: var(--bf-fs-3xl);
    line-height: var(--bf-lh-tight);
    margin-bottom: var(--bf-space-4);
}

@media (min-width: 768px) {
    .post-title {
        font-size: var(--bf-fs-4xl);
    }
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bf-space-4);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    padding-bottom: var(--bf-space-4);
    border-bottom: 1px solid var(--bf-border);
}

.post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.post-meta .meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--bf-text-muted);
}

.post-meta .meta-author {
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.post-meta .meta-author img {
    width: 32px;
    height: 32px;
    border-radius: var(--bf-radius-full);
}

.post-meta .meta-author a {
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-primary);
}

.post-meta .meta-author a:hover {
    color: var(--bf-accent);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: var(--bf-space-1);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
}

.reading-time svg {
    width: 14px;
    height: 14px;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: var(--bf-space-6);
    border-radius: var(--bf-radius-lg);
    overflow: hidden;
    position: relative;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-featured-image figcaption {
    padding: var(--bf-space-3);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
    text-align: center;
    background: var(--bf-bg-secondary);
}

/* Post Content */
.post-content {
    font-size: var(--bf-fs-lg);
    line-height: var(--bf-lh-relaxed);
    color: var(--bf-text-primary);
}

.post-content h2 {
    font-size: var(--bf-fs-2xl);
    margin: var(--bf-space-8) 0 var(--bf-space-4);
    padding-bottom: var(--bf-space-2);
    border-bottom: 2px solid var(--bf-border-light);
}

.post-content h3 {
    font-size: var(--bf-fs-xl);
    margin: var(--bf-space-6) 0 var(--bf-space-3);
}

.post-content h4 {
    font-size: var(--bf-fs-lg);
    margin: var(--bf-space-5) 0 var(--bf-space-3);
}

.post-content p {
    margin-bottom: var(--bf-space-4);
}

.post-content a {
    color: var(--bf-accent);
    font-weight: var(--bf-fw-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--bf-accent-light);
    transition: all var(--bf-transition-fast);
}

.post-content a:hover {
    text-decoration-color: var(--bf-accent);
}

.post-content ul,
.post-content ol {
    margin: var(--bf-space-4) 0;
    padding-left: var(--bf-space-6);
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: var(--bf-space-2);
    padding-left: var(--bf-space-2);
}

.post-content img {
    border-radius: var(--bf-radius);
    margin: var(--bf-space-4) 0;
}

.post-content pre {
    background: var(--bf-bg-dark);
    color: #E2E8F0;
    padding: var(--bf-space-4);
    border-radius: var(--bf-radius);
    overflow-x: auto;
    font-family: var(--bf-font-mono);
    font-size: var(--bf-fs-sm);
    margin: var(--bf-space-4) 0;
}

.post-content code {
    background: var(--bf-bg-secondary);
    padding: 2px var(--bf-space-2);
    border-radius: var(--bf-radius-sm);
    font-family: var(--bf-font-mono);
    font-size: 0.9em;
}

.post-content pre code {
    background: transparent;
    padding: 0;
}

.post-content table {
    margin: var(--bf-space-4) 0;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    overflow: hidden;
}

.post-content table th {
    background: var(--bf-bg-secondary);
    font-weight: var(--bf-fw-semibold);
    text-align: left;
}

.post-content table th,
.post-content table td {
    padding: var(--bf-space-3) var(--bf-space-4);
    border-bottom: 1px solid var(--bf-border-light);
}

.post-content table tr:last-child td {
    border-bottom: none;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bf-space-2);
    margin: var(--bf-space-8) 0;
    padding-top: var(--bf-space-4);
    border-top: 1px solid var(--bf-border);
}

.post-tags .tag-label {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-secondary);
    margin-right: var(--bf-space-2);
}

.post-tags a {
    display: inline-block;
    background: var(--bf-bg-secondary);
    color: var(--bf-text-secondary);
    padding: var(--bf-space-1) var(--bf-space-3);
    border-radius: var(--bf-radius-pill);
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-medium);
    border: 1px solid var(--bf-border);
    transition: all var(--bf-transition-fast);
}

.post-tags a:hover {
    background: var(--bf-accent-light);
    color: var(--bf-accent);
    border-color: var(--bf-accent-light);
}


/* ==========================================================================
   15. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    padding: var(--bf-space-4) 0;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bf-space-1);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
}

.breadcrumb-item a {
    color: var(--bf-text-secondary);
    transition: color var(--bf-transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--bf-accent);
}

.breadcrumb-separator {
    color: var(--bf-border-dark);
    font-size: var(--bf-fs-xs);
}

.breadcrumb-item.current {
    color: var(--bf-text-primary);
    font-weight: var(--bf-fw-medium);
}


/* ==========================================================================
   16. AUTHOR BOX
   ========================================================================== */

.author-box {
    display: flex;
    gap: var(--bf-space-5);
    background: var(--bf-bg-secondary);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-lg);
    padding: var(--bf-space-6);
    margin: var(--bf-space-8) 0;
}

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

.author-box .author-avatar {
    flex-shrink: 0;
}

.author-box .author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--bf-radius-full);
    border: 3px solid var(--bf-border);
}

.author-box .author-info {
    flex: 1;
}

.author-box .author-label {
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    color: var(--bf-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--bf-space-1);
}

.author-box .author-name {
    font-size: var(--bf-fs-xl);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-2);
}

.author-box .author-name a {
    color: var(--bf-text-primary);
}

.author-box .author-name a:hover {
    color: var(--bf-accent);
}

.author-box .author-bio {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    line-height: var(--bf-lh-normal);
    margin-bottom: var(--bf-space-3);
}

.author-box .author-social {
    display: flex;
    gap: var(--bf-space-2);
}

@media (max-width: 575px) {
    .author-box .author-social {
        justify-content: center;
    }
}

.author-box .author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--bf-radius-full);
    background: var(--bf-white);
    border: 1px solid var(--bf-border);
    color: var(--bf-text-secondary);
    transition: all var(--bf-transition-fast);
}

.author-box .author-social a:hover {
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border-color: var(--bf-accent);
}

.author-box .author-social a svg {
    width: 16px;
    height: 16px;
}


/* ==========================================================================
   17. TABLE OF CONTENTS
   ========================================================================== */

.toc-container {
    background: var(--bf-bg-secondary);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-lg);
    padding: var(--bf-space-5);
    margin: var(--bf-space-6) 0;
    max-width: 600px;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bf-space-4);
}

.toc-title {
    font-size: var(--bf-fs-md);
    font-weight: var(--bf-fw-bold);
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.toc-title svg {
    width: 18px;
    height: 18px;
    color: var(--bf-accent);
}

.toc-toggle {
    font-size: var(--bf-fs-xs);
    color: var(--bf-accent);
    font-weight: var(--bf-fw-semibold);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--bf-space-1);
}

.toc-list {
    counter-reset: toc-counter;
}

.toc-list.collapsed {
    display: none;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: var(--bf-space-1);
}

.toc-list li a {
    display: flex;
    align-items: flex-start;
    gap: var(--bf-space-2);
    padding: var(--bf-space-2) var(--bf-space-3);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    border-radius: var(--bf-radius-sm);
    transition: all var(--bf-transition-fast);
    border-left: 2px solid transparent;
}

.toc-list li a::before {
    content: counter(toc-counter) ".";
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-muted);
    flex-shrink: 0;
    min-width: 20px;
}

.toc-list li a:hover {
    background: var(--bf-white);
    color: var(--bf-accent);
    border-left-color: var(--bf-accent);
}

.toc-list li a.active {
    background: var(--bf-accent-ultra-light);
    color: var(--bf-accent);
    border-left-color: var(--bf-accent);
    font-weight: var(--bf-fw-medium);
}

.toc-list .toc-sub-list {
    margin-left: var(--bf-space-6);
    margin-top: var(--bf-space-1);
    counter-reset: toc-sub-counter;
}

.toc-list .toc-sub-list li {
    counter-increment: toc-sub-counter;
}

.toc-list .toc-sub-list li a::before {
    content: counter(toc-counter) "." counter(toc-sub-counter);
}


/* ==========================================================================
   18. SOCIAL SHARE BUTTONS
   ========================================================================== */

.sticky-share {
    position: fixed;
    left: var(--bf-space-4);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--bf-space-2);
    z-index: var(--bf-z-sticky);
}

@media (max-width: 1300px) {
    .sticky-share {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: var(--bf-white);
        border-top: 1px solid var(--bf-border);
        padding: var(--bf-space-2) var(--bf-space-4);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        gap: var(--bf-space-1);
    }
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--bf-radius-full);
    color: var(--bf-text-white);
    transition: all var(--bf-transition);
    position: relative;
}

@media (max-width: 1300px) {
    .share-btn {
        width: 38px;
        height: 38px;
    }
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--bf-shadow-md);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn--facebook { background: #1877F2; }
.share-btn--twitter { background: #1DA1F2; }
.share-btn--whatsapp { background: #25D366; }
.share-btn--telegram { background: #0088CC; }
.share-btn--linkedin { background: #0A66C2; }
.share-btn--copy {
    background: var(--bf-bg-dark);
}

.share-btn--copy.copied {
    background: var(--bf-success);
}

.share-btn--copy .copy-feedback {
    position: absolute;
    left: calc(100% + var(--bf-space-2));
    white-space: nowrap;
    font-size: var(--bf-fs-xs);
    color: var(--bf-success);
    font-weight: var(--bf-fw-semibold);
    opacity: 0;
    transition: opacity var(--bf-transition-fast);
}

@media (max-width: 1300px) {
    .share-btn--copy .copy-feedback {
        position: absolute;
        bottom: calc(100% + var(--bf-space-2));
        left: 50%;
        transform: translateX(-50%);
    }
}

.share-btn--copy.copied .copy-feedback {
    opacity: 1;
}


/* ==========================================================================
   19. RELATED POSTS
   ========================================================================== */

.related-posts {
    margin: var(--bf-space-10) 0;
    padding-top: var(--bf-space-8);
    border-top: 2px solid var(--bf-border);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bf-gap);
}

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

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================================
   20. POST NAVIGATION
   ========================================================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bf-gap);
    margin: var(--bf-space-8) 0;
    padding: var(--bf-space-6) 0;
    border-top: 1px solid var(--bf-border);
    border-bottom: 1px solid var(--bf-border);
}

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

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
    gap: var(--bf-space-2);
    padding: var(--bf-space-4);
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius);
    transition: all var(--bf-transition);
}

.nav-next {
    text-align: right;
}

.nav-previous:hover,
.nav-next:hover {
    background: var(--bf-accent-ultra-light);
}

.nav-previous .nav-label,
.nav-next .nav-label {
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--bf-space-1);
}

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

.nav-previous .nav-title,
.nav-next .nav-title {
    font-size: var(--bf-fs-md);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--bf-lh-snug);
}


/* ==========================================================================
   21. COMMENTS
   ========================================================================== */

.comments-area {
    margin: var(--bf-space-8) 0;
    padding-top: var(--bf-space-6);
}

.comments-title {
    font-size: var(--bf-fs-xl);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-6);
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.comments-title .comment-count {
    background: var(--bf-accent);
    color: var(--bf-text-white);
    padding: 2px var(--bf-space-2);
    border-radius: var(--bf-radius-pill);
    font-size: var(--bf-fs-sm);
}

.comment-list {
    margin-bottom: var(--bf-space-8);
}

.comment-item {
    padding: var(--bf-space-5);
    margin-bottom: var(--bf-space-4);
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius);
    border: 1px solid var(--bf-border-light);
}

.comment-item .children {
    margin-top: var(--bf-space-4);
    padding-left: var(--bf-space-5);
    border-left: 2px solid var(--bf-accent-light);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--bf-space-3);
    margin-bottom: var(--bf-space-3);
}

.comment-header .comment-avatar img {
    width: 44px;
    height: 44px;
    border-radius: var(--bf-radius-full);
}

.comment-author-name {
    font-weight: var(--bf-fw-semibold);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-primary);
}

.comment-date {
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
}

.comment-body {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    line-height: var(--bf-lh-normal);
    margin-bottom: var(--bf-space-3);
}

.comment-body p {
    margin-bottom: var(--bf-space-2);
}

.comment-reply-link {
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--bf-space-1);
    transition: color var(--bf-transition-fast);
}

.comment-reply-link:hover {
    color: var(--bf-accent-hover);
}

/* Comment Form */
.comment-form {
    padding: var(--bf-space-6);
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius-lg);
    border: 1px solid var(--bf-border);
}

.comment-form .comment-form-title {
    font-size: var(--bf-fs-xl);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-5);
}

.comment-form label {
    display: block;
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-secondary);
    margin-bottom: var(--bf-space-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: var(--bf-space-3) var(--bf-space-4);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    background: var(--bf-white);
    transition: all var(--bf-transition-fast);
    margin-bottom: var(--bf-space-4);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--bf-accent);
    box-shadow: 0 0 0 3px var(--bf-accent-light);
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form .form-submit .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--bf-space-3) var(--bf-space-8);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border: none;
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    cursor: pointer;
    transition: all var(--bf-transition);
}

.comment-form .form-submit .submit:hover {
    background: var(--bf-accent-hover);
    box-shadow: var(--bf-shadow-accent);
    transform: translateY(-1px);
}

/* Honeypot */
.bf-honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}


/* ==========================================================================
   22. NEWSLETTER
   ========================================================================== */

.newsletter-section {
    background: linear-gradient(135deg, var(--bf-bg-dark) 0%, #2D1B69 50%, var(--bf-accent) 100%);
    border-radius: var(--bf-radius-xl);
    padding: var(--bf-space-10) var(--bf-space-8);
    text-align: center;
    margin: var(--bf-space-10) 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: var(--bf-radius-full);
}

.newsletter-section .newsletter-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--bf-space-4);
    color: var(--bf-text-white);
}

.newsletter-section .newsletter-title {
    font-size: var(--bf-fs-2xl);
    font-weight: var(--bf-fw-extrabold);
    color: var(--bf-text-white);
    margin-bottom: var(--bf-space-3);
    position: relative;
}

.newsletter-section .newsletter-description {
    font-size: var(--bf-fs-md);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--bf-space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.newsletter-form {
    display: flex;
    gap: var(--bf-space-3);
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 575px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-input {
    flex: 1;
    padding: var(--bf-space-3) var(--bf-space-4);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--bf-radius);
    background: rgba(255,255,255,0.1);
    color: var(--bf-text-white);
    font-size: var(--bf-fs-sm);
    backdrop-filter: blur(4px);
    transition: all var(--bf-transition-fast);
}

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

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.newsletter-btn {
    padding: var(--bf-space-3) var(--bf-space-6);
    background: var(--bf-text-white);
    color: var(--bf-text-primary);
    border: none;
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-bold);
    cursor: pointer;
    transition: all var(--bf-transition);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--bf-shadow-lg);
}

.newsletter-privacy {
    font-size: var(--bf-fs-xs);
    color: rgba(255,255,255,0.5);
    margin-top: var(--bf-space-3);
    position: relative;
}

.newsletter-privacy a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
}


/* ==========================================================================
   23. SIDEBAR
   ========================================================================== */

.sidebar {
    position: sticky;
    top: 80px;
}

.widget {
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-lg);
    padding: var(--bf-space-5);
    margin-bottom: var(--bf-space-5);
    box-shadow: var(--bf-shadow-sm);
}

.widget-title {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-md);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-4);
    padding-bottom: var(--bf-space-3);
    border-bottom: 2px solid var(--bf-text-primary);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--bf-accent);
}

/* Sidebar Post List */
.sidebar-post-item {
    display: flex;
    gap: var(--bf-space-3);
    padding: var(--bf-space-3) 0;
    border-bottom: 1px solid var(--bf-border-light);
    align-items: flex-start;
}

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

.sidebar-post-item:first-child {
    padding-top: 0;
}

.sidebar-post-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius-sm);
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    color: var(--bf-text-muted);
}

.sidebar-post-item:nth-child(-n+3) .sidebar-post-number {
    background: var(--bf-accent);
    color: var(--bf-text-white);
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--bf-radius-sm);
    overflow: hidden;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-info {
    flex: 1;
    min-width: 0;
}

.sidebar-post-info .sidebar-post-title {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    line-height: var(--bf-lh-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--bf-space-1);
}

.sidebar-post-info .sidebar-post-title a {
    color: var(--bf-text-primary);
}

.sidebar-post-info .sidebar-post-title a:hover {
    color: var(--bf-accent);
}

.sidebar-post-info .sidebar-post-date {
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
}

/* Sidebar Search */
.widget .search-form {
    display: flex;
    gap: var(--bf-space-2);
}

.widget .search-form .search-field {
    flex: 1;
    padding: var(--bf-space-3) var(--bf-space-4);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    transition: all var(--bf-transition-fast);
}

.widget .search-form .search-field:focus {
    outline: none;
    border-color: var(--bf-accent);
    box-shadow: 0 0 0 3px var(--bf-accent-light);
}

.widget .search-form .search-submit {
    padding: var(--bf-space-3) var(--bf-space-4);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border: none;
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    cursor: pointer;
    transition: all var(--bf-transition);
}

.widget .search-form .search-submit:hover {
    background: var(--bf-accent-hover);
}

/* Sidebar Categories */
.widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--bf-space-2) 0;
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    border-bottom: 1px solid var(--bf-border-light);
    transition: all var(--bf-transition-fast);
}

.widget ul li:last-child a {
    border-bottom: none;
}

.widget ul li a:hover {
    color: var(--bf-accent);
    padding-left: var(--bf-space-2);
}

.widget ul li a .count {
    background: var(--bf-bg-secondary);
    padding: 2px var(--bf-space-2);
    border-radius: var(--bf-radius-pill);
    font-size: var(--bf-fs-xs);
}


/* ==========================================================================
   24. AD CONTAINERS
   ========================================================================== */

.ad-container {
    text-align: center;
    margin: var(--bf-space-6) 0;
    padding: var(--bf-space-4);
    overflow: hidden;
}

.ad-label {
    display: block;
    font-size: 10px;
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--bf-space-2);
}

.ad-responsive {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    background: var(--bf-bg-secondary);
    border: 1px dashed var(--bf-border);
    border-radius: var(--bf-radius);
}

.ad-below-header {
    border-bottom: 1px solid var(--bf-border-light);
    padding: var(--bf-space-3) 0;
    margin: 0;
    min-height: 100px;
}

.ad-in-content {
    margin: var(--bf-space-6) 0;
    min-height: 250px;
}

.ad-sidebar {
    margin: 0 0 var(--bf-space-5);
    padding: var(--bf-space-3);
    min-height: 250px;
}

.ad-footer {
    padding: var(--bf-space-4) 0;
    min-height: 90px;
}

.ad-sticky-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bf-white);
    border-top: 1px solid var(--bf-border);
    padding: var(--bf-space-2);
    z-index: var(--bf-z-sticky);
    min-height: 50px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: none;
}

@media (max-width: 767px) {
    .ad-sticky-mobile {
        display: block;
    }
}


/* ==========================================================================
   25. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--bf-bg-dark);
    color: var(--bf-text-light);
    margin-top: var(--bf-space-16);
}

.footer-widgets {
    padding: var(--bf-space-12) 0 var(--bf-space-8);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bf-space-8);
    padding: var(--bf-space-12) 0;
}

@media (min-width: 576px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-md);
    font-weight: var(--bf-fw-bold);
    color: var(--bf-text-white);
    margin-bottom: var(--bf-space-5);
    padding-bottom: var(--bf-space-3);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--bf-accent);
}

.footer-about {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-light);
    line-height: var(--bf-lh-normal);
    margin-bottom: var(--bf-space-5);
}

.footer-social {
    display: flex;
    gap: var(--bf-space-2);
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--bf-radius-full);
    background: rgba(255,255,255,0.08);
    color: var(--bf-text-light);
    transition: all var(--bf-transition);
}

.footer-social a:hover {
    background: var(--bf-accent);
    color: var(--bf-text-white);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--bf-space-1);
}

.footer-links a {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-light);
    padding: var(--bf-space-1) 0;
    transition: all var(--bf-transition-fast);
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.footer-links a::before {
    content: '›';
    color: var(--bf-accent);
    font-weight: var(--bf-fw-bold);
    transition: transform var(--bf-transition-fast);
}

.footer-links a:hover {
    color: var(--bf-text-white);
    padding-left: var(--bf-space-2);
}

.footer-links a:hover::before {
    transform: translateX(2px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--bf-space-5) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--bf-space-3);
}

.copyright {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
}

.copyright a {
    color: var(--bf-accent);
}

.footer-bottom-links {
    display: flex;
    gap: var(--bf-space-4);
}

.footer-bottom-links a {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
    transition: color var(--bf-transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--bf-text-white);
}

/* Footer sidebar-post overrides for dark bg */
.site-footer .sidebar-post-item {
    border-bottom-color: rgba(255,255,255,0.08);
}

.site-footer .sidebar-post-title a {
    color: var(--bf-text-light) !important;
}

.site-footer .sidebar-post-title a:hover {
    color: var(--bf-text-white) !important;
}

.site-footer .sidebar-post-date {
    color: var(--bf-text-muted);
}


/* ==========================================================================
   26. SEARCH MODAL
   ========================================================================== */

.search-modal {
    position: fixed;
    inset: 0;
    z-index: var(--bf-z-modal);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all var(--bf-transition);
}

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

.search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.search-modal-content {
    position: relative;
    width: min(600px, 90vw);
    background: var(--bf-white);
    border-radius: var(--bf-radius-xl);
    box-shadow: var(--bf-shadow-2xl);
    padding: var(--bf-space-6);
    transform: translateY(-20px);
    transition: transform var(--bf-transition);
    z-index: 2;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal .search-form {
    display: flex;
    align-items: center;
    gap: var(--bf-space-3);
}

.search-modal .search-icon {
    color: var(--bf-text-muted);
    flex-shrink: 0;
}

.search-modal .search-icon svg {
    width: 24px;
    height: 24px;
}

.search-modal .search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--bf-fs-xl);
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-primary);
    background: transparent;
}

.search-modal .search-input::placeholder {
    color: var(--bf-text-muted);
}

.search-modal .search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--bf-radius-full);
    background: var(--bf-bg-secondary);
    color: var(--bf-text-secondary);
    flex-shrink: 0;
    transition: all var(--bf-transition-fast);
}

.search-modal .search-close:hover {
    background: var(--bf-accent);
    color: var(--bf-text-white);
}

.search-modal .search-hint {
    margin-top: var(--bf-space-4);
    padding-top: var(--bf-space-4);
    border-top: 1px solid var(--bf-border-light);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
    display: flex;
    align-items: center;
    gap: var(--bf-space-2);
}

.search-modal .search-hint kbd {
    background: var(--bf-bg-secondary);
    border: 1px solid var(--bf-border);
    padding: 2px var(--bf-space-2);
    border-radius: var(--bf-radius-sm);
    font-size: var(--bf-fs-xs);
    font-family: var(--bf-font-mono);
}


/* ==========================================================================
   27. 404 PAGE
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: var(--bf-space-16) var(--bf-space-4);
    max-width: 700px;
    margin: 0 auto;
}

.error-404 .error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: var(--bf-fw-extrabold);
    font-family: var(--bf-font-heading);
    background: linear-gradient(135deg, var(--bf-accent), #FF6B6B, var(--bf-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    line-height: 1;
    margin-bottom: var(--bf-space-4);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.error-404 .error-title {
    font-size: var(--bf-fs-3xl);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-4);
}

.error-404 .error-message {
    font-size: var(--bf-fs-lg);
    color: var(--bf-text-secondary);
    margin-bottom: var(--bf-space-8);
    line-height: var(--bf-lh-normal);
}

.error-404 .search-form {
    max-width: 500px;
    margin: 0 auto var(--bf-space-8);
    display: flex;
    gap: var(--bf-space-2);
}

.error-404 .search-form .search-field {
    flex: 1;
    padding: var(--bf-space-3) var(--bf-space-4);
    border: 2px solid var(--bf-border);
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-md);
    transition: border-color var(--bf-transition-fast);
}

.error-404 .search-form .search-field:focus {
    outline: none;
    border-color: var(--bf-accent);
}

.error-404 .search-form .search-submit {
    padding: var(--bf-space-3) var(--bf-space-6);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border: none;
    border-radius: var(--bf-radius);
    font-weight: var(--bf-fw-semibold);
    cursor: pointer;
    transition: all var(--bf-transition);
}

.error-404 .search-form .search-submit:hover {
    background: var(--bf-accent-hover);
}


/* ==========================================================================
   28. ARCHIVE / CATEGORY PAGES
   ========================================================================== */

.archive-header {
    padding: var(--bf-space-8) 0 var(--bf-space-6);
    margin-bottom: var(--bf-space-6);
    border-bottom: 2px solid var(--bf-border);
    background: linear-gradient(180deg, var(--bf-bg-secondary) 0%, var(--bf-bg-primary) 100%);
    border-radius: 0 0 var(--bf-radius-xl) var(--bf-radius-xl);
}

.archive-header__inner {
    max-width: var(--bf-container);
    margin: 0 auto;
    padding: 0 var(--bf-space-4);
}

.archive-header__label {
    display: inline-block;
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    color: var(--bf-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--bf-space-2);
    padding: 3px 10px;
    background: var(--bf-accent-light);
    border-radius: var(--bf-radius-pill);
}

.archive-header__title {
    font-family: var(--bf-font-heading);
    font-size: var(--bf-fs-4xl);
    font-weight: var(--bf-fw-extrabold);
    color: var(--bf-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--bf-space-2);
    line-height: var(--bf-lh-tight);
}

.archive-header__description {
    font-size: var(--bf-fs-md);
    color: var(--bf-text-secondary);
    max-width: 600px;
    line-height: var(--bf-lh-normal);
    margin-bottom: var(--bf-space-2);
}

.archive-header__description p {
    margin: 0;
}

.archive-header__count {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
    font-weight: var(--bf-fw-medium);
}

/* Legacy class names */
.archive-title {
    font-size: var(--bf-fs-3xl);
    font-weight: var(--bf-fw-extrabold);
    margin-bottom: var(--bf-space-2);
}

.archive-title .archive-label {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--bf-space-2);
}

.archive-description {
    font-size: var(--bf-fs-md);
    color: var(--bf-text-secondary);
    max-width: 600px;
    line-height: var(--bf-lh-normal);
}

.archive-description p {
    margin: 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--bf-space-12) var(--bf-space-4);
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius-xl);
    border: 1px dashed var(--bf-border);
}

.no-results__title {
    font-size: var(--bf-fs-2xl);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-3);
    color: var(--bf-text-primary);
}

.no-results__text {
    font-size: var(--bf-fs-md);
    color: var(--bf-text-secondary);
    margin-bottom: var(--bf-space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-results .search-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Search Results */
.search-header {
    padding: var(--bf-space-8) 0;
    margin-bottom: var(--bf-space-6);
    border-bottom: 2px solid var(--bf-border);
}

.search-header .search-title {
    font-size: var(--bf-fs-2xl);
    margin-bottom: var(--bf-space-2);
}

.search-header .search-query {
    color: var(--bf-accent);
}

.search-header .search-count {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-muted);
}


/* ==========================================================================
   29. AUTHOR PAGE
   ========================================================================== */

.author-page {
    padding: var(--bf-space-8) 0;
}

.author-header {
    display: flex;
    gap: var(--bf-space-6);
    padding: var(--bf-space-8);
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius-xl);
    margin-bottom: var(--bf-space-8);
    border: 1px solid var(--bf-border);
}

@media (max-width: 575px) {
    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--bf-space-6);
    }
}

.author-header .author-avatar-large {
    flex-shrink: 0;
}

.author-header .author-avatar-large img {
    width: 120px;
    height: 120px;
    border-radius: var(--bf-radius-full);
    border: 4px solid var(--bf-white);
    box-shadow: var(--bf-shadow-md);
}

.author-header .author-details {
    flex: 1;
}

.author-header .author-name-large {
    font-size: var(--bf-fs-3xl);
    font-weight: var(--bf-fw-extrabold);
    margin-bottom: var(--bf-space-2);
}

.author-header .author-role {
    font-size: var(--bf-fs-sm);
    color: var(--bf-accent);
    font-weight: var(--bf-fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--bf-space-3);
}

.author-header .author-bio-full {
    font-size: var(--bf-fs-md);
    color: var(--bf-text-secondary);
    line-height: var(--bf-lh-normal);
    margin-bottom: var(--bf-space-4);
}

.author-stats {
    display: flex;
    gap: var(--bf-space-6);
    margin-bottom: var(--bf-space-4);
}

@media (max-width: 575px) {
    .author-stats {
        justify-content: center;
    }
}

.author-stats .stat-item {
    text-align: center;
}

.author-stats .stat-number {
    font-size: var(--bf-fs-2xl);
    font-weight: var(--bf-fw-extrabold);
    color: var(--bf-text-primary);
    display: block;
}

.author-stats .stat-label {
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-experience {
    margin-top: var(--bf-space-4);
    padding-top: var(--bf-space-4);
    border-top: 1px solid var(--bf-border);
}

.author-experience .experience-title {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-bold);
    color: var(--bf-text-primary);
    margin-bottom: var(--bf-space-2);
}

.author-experience .experience-list {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
}


/* ==========================================================================
   30. PAGINATION
   ========================================================================== */

.pagination,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bf-space-2);
    margin: var(--bf-space-8) 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 var(--bf-space-3);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-secondary);
    background: var(--bf-white);
    transition: all var(--bf-transition-fast);
}

.page-numbers:hover {
    border-color: var(--bf-accent);
    color: var(--bf-accent);
    background: var(--bf-accent-ultra-light);
}

.page-numbers.current {
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border-color: var(--bf-accent);
    box-shadow: var(--bf-shadow-accent);
}

.page-numbers.dots {
    border: none;
    background: none;
    color: var(--bf-text-muted);
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: var(--bf-fw-semibold);
}


/* ==========================================================================
   31. PAGE TEMPLATES (Policy, Team, Contact)
   ========================================================================== */

.policy-page {
    padding: var(--bf-space-8) 0;
}

.policy-page .content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bf-space-8);
}

@media (min-width: 768px) {
    .policy-page .content-area {
        grid-template-columns: 1fr 280px;
    }
}

.policy-content {
    max-width: none;
}

.policy-content h1 {
    font-size: var(--bf-fs-3xl);
    margin-bottom: var(--bf-space-6);
    padding-bottom: var(--bf-space-4);
    border-bottom: 2px solid var(--bf-border);
}

.policy-sidebar {
    position: sticky;
    top: calc(var(--bf-header-height) + var(--bf-space-4));
}

.policy-sidebar .policy-nav {
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius);
    padding: var(--bf-space-4);
    border: 1px solid var(--bf-border);
}

.policy-sidebar .policy-nav-title {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-bold);
    color: var(--bf-text-primary);
    margin-bottom: var(--bf-space-3);
    padding-bottom: var(--bf-space-2);
    border-bottom: 1px solid var(--bf-border);
}

.policy-sidebar .policy-nav a {
    display: block;
    padding: var(--bf-space-2) var(--bf-space-3);
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    border-radius: var(--bf-radius-sm);
    transition: all var(--bf-transition-fast);
    margin-bottom: 2px;
}

.policy-sidebar .policy-nav a:hover,
.policy-sidebar .policy-nav a.current {
    background: var(--bf-accent-ultra-light);
    color: var(--bf-accent);
}

/* Team Page */
.team-page {
    padding: var(--bf-space-8) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--bf-gap);
}

.team-member {
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border-light);
    border-radius: var(--bf-radius-lg);
    padding: var(--bf-space-6);
    text-align: center;
    transition: all var(--bf-transition);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--bf-shadow-lg);
    border-color: var(--bf-border);
}

.team-member .member-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--bf-radius-full);
    margin: 0 auto var(--bf-space-4);
    overflow: hidden;
    border: 3px solid var(--bf-border);
}

.team-member .member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member .member-name {
    font-size: var(--bf-fs-lg);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-1);
}

.team-member .member-role {
    font-size: var(--bf-fs-sm);
    color: var(--bf-accent);
    font-weight: var(--bf-fw-semibold);
    margin-bottom: var(--bf-space-3);
}

.team-member .member-bio {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    line-height: var(--bf-lh-normal);
    margin-bottom: var(--bf-space-3);
}

.team-member .member-social {
    display: flex;
    justify-content: center;
    gap: var(--bf-space-2);
}

.team-member .member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--bf-radius-full);
    background: var(--bf-bg-secondary);
    color: var(--bf-text-secondary);
    transition: all var(--bf-transition-fast);
}

.team-member .member-social a:hover {
    background: var(--bf-accent);
    color: var(--bf-text-white);
}

/* Contact Page */
.contact-page {
    padding: var(--bf-space-8) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bf-space-8);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.contact-form {
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius-lg);
    padding: var(--bf-space-6);
    border: 1px solid var(--bf-border);
}

.contact-form .form-group {
    margin-bottom: var(--bf-space-4);
}

.contact-form label {
    display: block;
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-secondary);
    margin-bottom: var(--bf-space-2);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: var(--bf-space-3) var(--bf-space-4);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    background: var(--bf-white);
    transition: all var(--bf-transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--bf-accent);
    box-shadow: 0 0 0 3px var(--bf-accent-light);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form .submit-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--bf-space-2);
    padding: var(--bf-space-3) var(--bf-space-8);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border: none;
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    cursor: pointer;
    transition: all var(--bf-transition);
}

.contact-form .submit-btn:hover {
    background: var(--bf-accent-hover);
    box-shadow: var(--bf-shadow-accent);
    transform: translateY(-1px);
}

.contact-info-card {
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius-lg);
    padding: var(--bf-space-6);
    border: 1px solid var(--bf-border);
}

.contact-info-item {
    display: flex;
    gap: var(--bf-space-3);
    padding: var(--bf-space-4) 0;
    border-bottom: 1px solid var(--bf-border-light);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item .info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bf-accent-light);
    border-radius: var(--bf-radius-full);
    color: var(--bf-accent);
    flex-shrink: 0;
}

.contact-info-item .info-icon svg {
    width: 18px;
    height: 18px;
}

.contact-info-item .info-label {
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--bf-space-1);
}

.contact-info-item .info-value {
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-primary);
    font-weight: var(--bf-fw-medium);
}


/* ==========================================================================
   32. SPECIAL TOOLS (Calendars, Tracker)
   ========================================================================== */

.calendar-page {
    padding: var(--bf-space-8) 0;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bf-space-6);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: var(--bf-space-3);
}

.calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    background: var(--bf-white);
    color: var(--bf-text-primary);
    cursor: pointer;
    transition: all var(--bf-transition-fast);
}

.calendar-nav-btn:hover {
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border-color: var(--bf-accent);
}

.calendar-month-title {
    font-size: var(--bf-fs-xl);
    font-weight: var(--bf-fw-bold);
    min-width: 200px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--bf-border);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    overflow: hidden;
}

.calendar-day-header {
    background: var(--bf-bg-dark);
    color: var(--bf-text-white);
    padding: var(--bf-space-3);
    text-align: center;
    font-size: var(--bf-fs-xs);
    font-weight: var(--bf-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day {
    background: var(--bf-white);
    padding: var(--bf-space-2);
    min-height: 100px;
    vertical-align: top;
    position: relative;
}

@media (max-width: 767px) {
    .calendar-day {
        min-height: 60px;
        padding: var(--bf-space-1);
    }
}

.calendar-day .day-number {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-primary);
    margin-bottom: var(--bf-space-1);
}

.calendar-day.today {
    background: var(--bf-accent-ultra-light);
}

.calendar-day.today .day-number {
    background: var(--bf-accent);
    color: var(--bf-text-white);
    width: 24px;
    height: 24px;
    border-radius: var(--bf-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--bf-fs-xs);
}

.calendar-day.empty {
    background: var(--bf-bg-secondary);
}

.calendar-event {
    display: block;
    padding: 2px var(--bf-space-2);
    margin-bottom: 2px;
    border-radius: var(--bf-radius-sm);
    font-size: 10px;
    font-weight: var(--bf-fw-semibold);
    color: var(--bf-text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity var(--bf-transition-fast);
}

.calendar-event:hover {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .calendar-event {
        font-size: 0;
        width: 8px;
        height: 8px;
        border-radius: var(--bf-radius-full);
        padding: 0;
        display: inline-block;
    }
}

/* Tracker */
.tracker-page {
    padding: var(--bf-space-8) 0;
}

.tracker-filters {
    display: flex;
    gap: var(--bf-space-2);
    margin-bottom: var(--bf-space-6);
    flex-wrap: wrap;
}

.tracker-filter-btn {
    padding: var(--bf-space-2) var(--bf-space-4);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-pill);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-medium);
    color: var(--bf-text-secondary);
    background: var(--bf-white);
    cursor: pointer;
    transition: all var(--bf-transition-fast);
}

.tracker-filter-btn:hover,
.tracker-filter-btn.active {
    background: var(--bf-accent);
    color: var(--bf-text-white);
    border-color: var(--bf-accent);
}

.tracker-list {
    display: flex;
    flex-direction: column;
    gap: var(--bf-space-3);
}

.tracker-item {
    display: flex;
    align-items: center;
    gap: var(--bf-space-4);
    padding: var(--bf-space-4) var(--bf-space-5);
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border-light);
    border-radius: var(--bf-radius);
    transition: all var(--bf-transition);
}

.tracker-item:hover {
    box-shadow: var(--bf-shadow-md);
    border-color: var(--bf-border);
}

.tracker-rank {
    font-size: var(--bf-fs-2xl);
    font-weight: var(--bf-fw-extrabold);
    color: var(--bf-text-muted);
    min-width: 40px;
    text-align: center;
}

.tracker-item:nth-child(1) .tracker-rank { color: var(--bf-warning); }
.tracker-item:nth-child(2) .tracker-rank { color: var(--bf-text-muted); }
.tracker-item:nth-child(3) .tracker-rank { color: #CD7F32; }

.tracker-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--bf-radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--bf-border);
}

.tracker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tracker-info {
    flex: 1;
    min-width: 0;
}

.tracker-name {
    font-size: var(--bf-fs-md);
    font-weight: var(--bf-fw-bold);
    margin-bottom: var(--bf-space-1);
}

.tracker-name a {
    color: var(--bf-text-primary);
}

.tracker-name a:hover {
    color: var(--bf-accent);
}

.tracker-role-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px var(--bf-space-2);
    background: var(--bf-bg-secondary);
    color: var(--bf-text-secondary);
    border-radius: var(--bf-radius-pill);
    font-weight: var(--bf-fw-semibold);
}

.trending-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--bf-space-1);
    min-width: 120px;
}

.trending-score .score-bar {
    width: 100%;
    height: 6px;
    background: var(--bf-bg-secondary);
    border-radius: var(--bf-radius-pill);
    overflow: hidden;
}

.trending-score .score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bf-accent), #FF6B6B);
    border-radius: var(--bf-radius-pill);
    transition: width var(--bf-transition-slow);
}

.trending-score .score-label {
    font-size: var(--bf-fs-xs);
    color: var(--bf-text-muted);
    font-weight: var(--bf-fw-medium);
}


/* ==========================================================================
   33. COOKIE NOTICE
   ========================================================================== */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bf-bg-dark);
    color: var(--bf-text-white);
    padding: var(--bf-space-4) var(--bf-space-6);
    z-index: var(--bf-z-toast);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--bf-space-3);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform var(--bf-transition);
}

.cookie-notice.visible {
    transform: translateY(0);
}

.cookie-notice .cookie-text {
    flex: 1;
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-light);
    min-width: 200px;
}

.cookie-notice .cookie-text a {
    color: var(--bf-accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--bf-space-2);
    flex-shrink: 0;
}

.cookie-btn {
    padding: var(--bf-space-2) var(--bf-space-4);
    border-radius: var(--bf-radius);
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-semibold);
    cursor: pointer;
    transition: all var(--bf-transition-fast);
    border: none;
}

.cookie-btn--accept {
    background: var(--bf-accent);
    color: var(--bf-text-white);
}

.cookie-btn--accept:hover {
    background: var(--bf-accent-hover);
}

.cookie-btn--necessary {
    background: rgba(255,255,255,0.1);
    color: var(--bf-text-light);
    border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn--necessary:hover {
    background: rgba(255,255,255,0.2);
}


/* ==========================================================================
   34. BACK TO TOP
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: var(--bf-space-6);
    right: var(--bf-space-6);
    width: 44px;
    height: 44px;
    border-radius: var(--bf-radius-full);
    background: var(--bf-accent);
    color: var(--bf-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bf-shadow-accent);
    cursor: pointer;
    z-index: var(--bf-z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bf-transition);
    border: none;
}

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

.back-to-top:hover {
    background: var(--bf-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 70px;
        right: var(--bf-space-4);
    }
}


/* ==========================================================================
   35. LOADING / SKELETON STATES
   ========================================================================== */

.skeleton {
    background: linear-gradient(90deg, var(--bf-bg-secondary) 25%, var(--bf-bg-tertiary) 50%, var(--bf-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--bf-radius-sm);
}

.skeleton-card {
    border-radius: var(--bf-radius);
    overflow: hidden;
    border: 1px solid var(--bf-border-light);
}

.skeleton-card .skeleton-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(90deg, var(--bf-bg-secondary) 25%, var(--bf-bg-tertiary) 50%, var(--bf-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-body {
    padding: var(--bf-space-4);
}

.skeleton-card .skeleton-line {
    height: 14px;
    margin-bottom: var(--bf-space-2);
    border-radius: var(--bf-radius-sm);
}

.skeleton-card .skeleton-line:last-child {
    width: 60%;
    margin-bottom: 0;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--bf-border);
    border-top-color: var(--bf-accent);
    border-radius: var(--bf-radius-full);
    animation: spin 0.8s linear infinite;
    margin: var(--bf-space-4) auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.infinite-scroll-trigger {
    text-align: center;
    padding: var(--bf-space-8) 0;
}

.loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bf-space-3);
    color: var(--bf-text-muted);
    font-size: var(--bf-fs-sm);
}


/* ==========================================================================
   36. 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 slideLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

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

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

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


/* ==========================================================================
   37. UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--bf-space-1); }
.gap-2 { gap: var(--bf-space-2); }
.gap-3 { gap: var(--bf-space-3); }
.gap-4 { gap: var(--bf-space-4); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--bf-space-2); }
.mt-4 { margin-top: var(--bf-space-4); }
.mt-6 { margin-top: var(--bf-space-6); }
.mt-8 { margin-top: var(--bf-space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--bf-space-2); }
.mb-4 { margin-bottom: var(--bf-space-4); }
.mb-6 { margin-bottom: var(--bf-space-6); }
.mb-8 { margin-bottom: var(--bf-space-8); }

.py-4 { padding-top: var(--bf-space-4); padding-bottom: var(--bf-space-4); }
.py-8 { padding-top: var(--bf-space-8); padding-bottom: var(--bf-space-8); }
.px-4 { padding-left: var(--bf-space-4); padding-right: var(--bf-space-4); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   38. FOCUS & ACCESSIBILITY
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--bf-accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--bf-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .ticker-track {
        animation: none;
    }
}


/* ==========================================================================
   39. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1200px) {
    :root {
        --bf-container: 100%;
    }

    .container {
        padding-left: var(--bf-space-5);
        padding-right: var(--bf-space-5);
    }
}

@media (max-width: 992px) {
    .content-sidebar-grid {
        grid-template-columns: 1fr !important;
    }

    .sidebar {
        position: static;
        max-height: none;
    }

    .sticky-share {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --bf-header-height: 60px;
        --bf-fs-4xl: 1.875rem;
        --bf-fs-3xl: 1.5rem;
        --bf-fs-2xl: 1.25rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    h1 { font-size: var(--bf-fs-3xl); }
    h2 { font-size: var(--bf-fs-2xl); }
    h3 { font-size: var(--bf-fs-xl); }

    .home-section {
        padding: var(--bf-space-6) 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: var(--bf-space-4);
        padding-right: var(--bf-space-4);
    }

    .post-card--horizontal {
        flex-direction: column;
    }

    .post-card--horizontal .post-card-thumbnail {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-side-grid {
        grid-template-columns: 1fr;
    }

    .tracker-item {
        flex-wrap: wrap;
    }

    .trending-score {
        width: 100%;
        min-width: auto;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    :root {
        --bf-fs-4xl: 1.5rem;
        --bf-fs-3xl: 1.25rem;
    }

    .calendar-grid {
        font-size: var(--bf-fs-xs);
    }

    .calendar-day {
        min-height: 50px;
    }
}


/* ==========================================================================
   40. PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .site-header,
    .ticker-bar,
    .sticky-share,
    .back-to-top,
    .cookie-notice,
    .ad-container,
    .ad-sticky-mobile,
    .sidebar,
    .mobile-menu,
    .mobile-menu-overlay,
    .search-modal,
    .newsletter-section,
    .related-posts,
    .post-navigation,
    .comments-area,
    .reading-progress-bar,
    footer {
        display: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-weight: normal;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    .post-content {
        max-width: 100%;
    }
}


/* ==========================================================================
   41. MEGA MENU
   ========================================================================== */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90vw);
    background: var(--bf-white);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-lg);
    box-shadow: var(--bf-shadow-xl);
    padding: var(--bf-space-6);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all var(--bf-transition-fast);
    z-index: var(--bf-z-dropdown);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bf-space-6);
}

.nav-menu li:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-column .mega-title {
    font-size: var(--bf-fs-sm);
    font-weight: var(--bf-fw-bold);
    color: var(--bf-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--bf-space-3);
    padding-bottom: var(--bf-space-2);
    border-bottom: 2px solid var(--bf-accent);
}

.mega-menu-column a {
    display: block;
    padding: var(--bf-space-2) 0;
    font-size: var(--bf-fs-sm);
    color: var(--bf-text-secondary);
    transition: all var(--bf-transition-fast);
}

.mega-menu-column a:hover {
    color: var(--bf-accent);
    padding-left: var(--bf-space-2);
}
