/*
Theme Name: BiologyNotes
Theme URI: https://www.biologynotes.site
Author: BiologyNotes Team
Author URI: https://www.biologynotes.site
Description: A clean, modern WordPress theme for BiologyNotes.site - optimized for Elementor Free. Features a dark green header, category cards, post grids, and a responsive layout built for biology education.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biologynotes
Tags: education, blog, custom-header, custom-logo, featured-images, full-width-template, sticky-post, theme-options, two-columns, right-sidebar
*/

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bn-primary:       #0d5c3a;
    --bn-primary-dark:  #0a4028;
    --bn-primary-deeper:#073020;
    --bn-accent:        #22c97b;
    --bn-accent-light:  #6ee7b7;
    --bn-accent-pale:   #d1fae5;
    --bn-accent-bg:     #f0fdf4;
    --bn-footer-bg:     #0a3020;
    --bn-text:          #1a1a1a;
    --bn-text-muted:    #6b7280;
    --bn-border:        #e5e7eb;
    --bn-white:         #ffffff;
    --bn-font-heading:  'DM Serif Display', 'Georgia', serif;
    --bn-font-body:     'DM Sans', 'Nunito', sans-serif;
    --bn-radius:        10px;
    --bn-radius-sm:     6px;
    --bn-shadow:        0 1px 4px rgba(0,0,0,0.08);
    --bn-shadow-md:     0 4px 16px rgba(0,0,0,0.10);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--bn-font-body);
    color: var(--bn-text);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--bn-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bn-font-heading);
    line-height: 1.25;
    color: var(--bn-text);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.site-main { flex: 1; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: var(--bn-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 1.5rem;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon-wrap {
    width: 36px;
    height: 36px;
    background: var(--bn-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--bn-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.logo-main span { color: var(--bn-accent-light); }

.logo-tagline {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

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

.primary-nav ul li { position: relative; }

.primary-nav ul li a {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current-menu-parent > a {
    color: #fff;
    border-bottom-color: var(--bn-accent);
}

/* Dropdown menus */
.primary-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bn-primary-dark);
    min-width: 200px;
    border-radius: 0 0 var(--bn-radius-sm) var(--bn-radius-sm);
    box-shadow: var(--bn-shadow-md);
    z-index: 100;
    flex-direction: column;
}

.primary-nav ul li:hover > ul { display: flex; }

.primary-nav ul li ul li a {
    height: auto;
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: none;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,0.75);
}

.primary-nav ul li ul li a:hover {
    color: var(--bn-accent-light);
    border-left-color: var(--bn-accent);
    background: rgba(255,255,255,0.05);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 5px 14px;
    gap: 8px;
    transition: background 0.2s;
}

.header-search-form:focus-within {
    background: rgba(255,255,255,0.18);
}

.header-search-form input[type="search"] {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 150px;
    font-family: var(--bn-font-body);
}

.header-search-form input::placeholder { color: rgba(255,255,255,0.45); }

.search-submit {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    line-height: 1;
}

/* Hamburger (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--bn-primary-dark) 0%, var(--bn-primary) 55%, #0e6b42 100%);
    padding: 60px 0 0;
    overflow: hidden;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid rgba(255,255,255,0.03);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: flex-end;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,201,123,0.15);
    border: 1px solid rgba(34,201,123,0.35);
    color: var(--bn-accent-light);
    font-size: 10px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-title {
    font-family: var(--bn-font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    line-height: 1.18;
    margin-bottom: 16px;
}

.hero-title em {
    color: var(--bn-accent);
    font-style: normal;
}

.hero-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 28px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 3rem; }

.btn-hero-primary {
    background: var(--bn-accent);
    color: var(--bn-primary-dark);
    border: none;
    padding: 11px 24px;
    border-radius: var(--bn-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.15s;
    font-family: var(--bn-font-body);
}

.btn-hero-primary:hover {
    background: var(--bn-accent-light);
    color: var(--bn-primary-dark);
    transform: translateY(-1px);
}

.btn-hero-outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 11px 24px;
    border-radius: var(--bn-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
    font-family: var(--bn-font-body);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.hero-cards { display: flex; flex-direction: column; gap: 10px; padding-bottom: 2.5rem; }

.hero-card {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.hero-card:hover { background: rgba(255,255,255,0.14); }

.hero-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(34,201,123,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hero-card-text p {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.hero-card-text span {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--bn-accent-bg);
    border-bottom: 1px solid var(--bn-accent-pale);
    padding: 12px 0;
}

.stats-bar-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bn-accent);
    flex-shrink: 0;
}

.stat-item strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--bn-primary);
}

.stat-item span {
    font-size: 12px;
    color: var(--bn-text-muted);
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.section-label span {
    font-size: 10px;
    color: var(--bn-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    white-space: nowrap;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bn-border);
}

.section-title {
    font-family: var(--bn-font-heading);
    font-size: 1.6rem;
    color: var(--bn-text);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--bn-text-muted);
    font-size: 14px;
    margin-bottom: 2rem;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-section { padding: 2.5rem 0; }

.cats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.cat-card {
    background: var(--bn-accent-bg);
    border: 1px solid var(--bn-accent-pale);
    border-radius: var(--bn-radius);
    padding: 20px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bn-shadow-md);
    border-color: var(--bn-accent);
    color: inherit;
}

.cat-icon { font-size: 26px; line-height: 1; }

.cat-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--bn-primary);
    line-height: 1.3;
}

.cat-count {
    font-size: 11px;
    color: var(--bn-accent);
    font-weight: 500;
}

/* ============================================================
   MAIN CONTENT + SIDEBAR
   ============================================================ */
.content-area { padding: 2.5rem 0; }

.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* ============================================================
   FEATURED POST
   ============================================================ */
.featured-post {
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--bn-shadow);
}

.featured-post-thumb {
    height: 220px;
    background: linear-gradient(135deg, var(--bn-primary-dark), #1d9e75);
    overflow: hidden;
    position: relative;
}

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

.featured-post-body { padding: 22px; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.tag {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tag-primary { background: var(--bn-accent-pale); color: var(--bn-primary); }
.tag-secondary { background: #e1f5ee; color: #0f6e56; }
.tag-featured { background: var(--bn-primary); color: #fff; }

.featured-post-title {
    font-family: var(--bn-font-heading);
    font-size: 1.35rem;
    color: var(--bn-text);
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-post-title a { color: inherit; }
.featured-post-title a:hover { color: var(--bn-primary); }

.featured-post-excerpt {
    font-size: 14px;
    color: var(--bn-text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--bn-text-muted);
    flex-wrap: wrap;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bn-primary);
    color: var(--bn-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

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

.meta-dot { color: var(--bn-border); }

.read-now-btn {
    margin-left: auto;
    background: var(--bn-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--bn-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
    font-family: var(--bn-font-body);
}

.read-now-btn:hover { background: var(--bn-accent); color: var(--bn-primary-dark); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 18px; }

.sidebar-widget {
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius);
    overflow: hidden;
    background: #fff;
}

.widget-header {
    background: var(--bn-accent-bg);
    padding: 10px 16px;
    border-bottom: 1px solid var(--bn-accent-pale);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header span {
    font-size: 11px;
    font-weight: 700;
    color: var(--bn-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.widget-body { padding: 12px 16px; }

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bn-border);
    align-items: flex-start;
}

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

.rp-number {
    font-family: var(--bn-font-heading);
    font-size: 1.4rem;
    color: var(--bn-accent-pale);
    width: 28px;
    flex-shrink: 0;
    line-height: 1;
    font-weight: 700;
}

.rp-content { flex: 1; }

.rp-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--bn-text);
    line-height: 1.4;
    margin-bottom: 3px;
    display: block;
    text-decoration: none;
}

.rp-title:hover { color: var(--bn-primary); }

.rp-date { font-size: 11px; color: var(--bn-text-muted); }

/* Tag Cloud Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}

.tag-cloud a {
    background: var(--bn-accent-pale);
    color: var(--bn-primary-dark);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tag-cloud a:hover {
    background: var(--bn-primary);
    color: #fff;
}

/* ============================================================
   POST GRID
   ============================================================ */
.posts-grid-section { padding: 0 0 2.5rem; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.post-card {
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--bn-shadow);
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bn-shadow-md);
}

.post-card-thumb {
    height: 130px;
    background: linear-gradient(135deg, var(--bn-primary-dark), var(--bn-primary));
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.post-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--bn-text);
    line-height: 1.4;
    margin-bottom: 7px;
    font-family: var(--bn-font-body);
}

.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--bn-primary); }

.post-card-excerpt {
    font-size: 12px;
    color: var(--bn-text-muted);
    line-height: 1.55;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--bn-border);
}

.read-more-link {
    font-size: 12px;
    color: var(--bn-primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.read-more-link:hover { color: var(--bn-accent); }

.read-time {
    font-size: 11px;
    color: var(--bn-text-muted);
}

/* Load More Button */
.load-more-wrap { text-align: center; margin-top: 2rem; }

.btn-load-more {
    background: transparent;
    color: var(--bn-primary);
    border: 2px solid var(--bn-primary);
    padding: 11px 32px;
    border-radius: var(--bn-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--bn-font-body);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.btn-load-more:hover {
    background: var(--bn-primary);
    color: #fff;
}

/* ============================================================
   NEWSLETTER BANNER
   ============================================================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--bn-primary-dark), var(--bn-primary));
    padding: 3rem 0;
    margin: 0;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.newsletter-text h2 {
    font-family: var(--bn-font-heading);
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.newsletter-text p {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}

.newsletter-form { display: flex; gap: 10px; }

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 11px 18px;
    border-radius: var(--bn-radius-sm);
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    font-family: var(--bn-font-body);
    outline: none;
}

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

.newsletter-form button {
    background: var(--bn-accent);
    color: var(--bn-primary-dark);
    border: none;
    padding: 11px 22px;
    border-radius: var(--bn-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--bn-font-body);
    white-space: nowrap;
    transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--bn-accent-light); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-header { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--bn-border); margin-bottom: 2rem; }

.single-post-title {
    font-family: var(--bn-font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--bn-text);
    line-height: 1.2;
    margin-bottom: 16px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--bn-text-muted);
}

.single-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2d2d2d;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 2rem 0 1rem;
    color: var(--bn-primary-dark);
}

.single-post-content p { margin-bottom: 1.25rem; }

.single-post-content ul,
.single-post-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
    list-style: disc;
}

.single-post-content ol { list-style: decimal; }
.single-post-content li { margin-bottom: 0.4rem; }

.single-post-content blockquote {
    border-left: 4px solid var(--bn-accent);
    padding: 1rem 1.5rem;
    background: var(--bn-accent-bg);
    border-radius: 0 var(--bn-radius-sm) var(--bn-radius-sm) 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--bn-primary-dark);
}

.single-post-content img {
    border-radius: var(--bn-radius);
    margin: 1.5rem 0;
}

.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 14px;
}

.single-post-content table th {
    background: var(--bn-primary);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.single-post-content table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--bn-border);
}

.single-post-content table tr:nth-child(even) td {
    background: var(--bn-accent-bg);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2.5rem 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--bn-radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--bn-border);
    color: var(--bn-text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover { background: var(--bn-accent-bg); color: var(--bn-primary); border-color: var(--bn-accent); }
.pagination .current { background: var(--bn-primary); color: #fff; border-color: var(--bn-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bn-footer-bg);
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
    color: var(--bn-accent-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    font-family: var(--bn-font-body);
}

.footer-col p {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    line-height: 1.7;
}

.footer-col ul li { margin-bottom: 6px; }

.footer-col ul li a {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a::before {
    content: '›';
    color: var(--bn-accent);
    font-size: 14px;
}

.footer-col ul li a:hover { color: var(--bn-accent-light); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copy, .footer-links {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}

.footer-links { display: flex; gap: 14px; }
.footer-links a { color: rgba(255,255,255,0.35); font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: var(--bn-accent-light); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
    background: var(--bn-accent-bg);
    border-bottom: 1px solid var(--bn-accent-pale);
    padding: 10px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--bn-text-muted);
}

.breadcrumb a { color: var(--bn-primary); text-decoration: none; }
.breadcrumb a:hover { color: var(--bn-accent); }
.breadcrumb-sep { color: var(--bn-border); }
.breadcrumb-current { color: var(--bn-text-muted); font-weight: 500; }

/* ============================================================
   ELEMENTOR OVERRIDES
   ============================================================ */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--bn-font-heading) !important;
}

/* Elementor button overrides */
.elementor-button.elementor-button-primary,
.elementor-button {
    font-family: var(--bn-font-body) !important;
    font-weight: 600 !important;
    border-radius: var(--bn-radius-sm) !important;
    transition: all 0.2s !important;
}

/* Force global font override for Elementor */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
    font-family: var(--bn-font-body);
    line-height: 1.75;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .cats-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-cards { display: none; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .primary-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bn-primary-dark); padding: 1rem 0; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
    .primary-nav.open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .primary-nav ul li a { height: auto; padding: 12px 1.5rem; border-bottom: none; border-left: 3px solid transparent; }
    .primary-nav ul li a:hover { border-left-color: var(--bn-accent); }
    .primary-nav ul li ul { position: static; display: none; box-shadow: none; background: rgba(0,0,0,0.2); }
    .primary-nav ul li ul li a { padding-left: 2.5rem; }
    .content-sidebar-wrap { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-inner { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .stats-bar-inner { gap: 1rem; }
    .header-search-form { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .cats-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .post-meta { gap: 8px; }
    .read-now-btn { margin-left: 0; margin-top: 10px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Print */
@media print {
    .site-header, .site-footer, .sidebar, .newsletter-section { display: none; }
    .content-sidebar-wrap { grid-template-columns: 1fr; }
}
